Most active commenters
  • taminka(7)

←back to thread

217 points amazonhut | 17 comments | | HN request time: 0.015s | source | bottom
Show context
untrimmed ◴[] No.45248154[source]
As someone who has spent days wrestling with Python dependency hell just to get a model running, a simple cargo run feels like a dream. But I'm wondering, what was the most painful part of NOT having a framework? I'm betting my coffee money it was debugging the backpropagation logic.
replies(5): >>45248223 #>>45248315 #>>45248416 #>>45248640 #>>45248972 #
1. taminka ◴[] No.45248223[source]
lowkey ppl who praise cargo seem to have no idea of the tradeoffs involved in dependency management

the difficulty of including a dependency should be proportional to the risk you're taking on, meaning it shouldn't be as difficult as it in, say, C where every other library is continually reinventing the same 5 utilities, but also not as easy as it is with npm or cargo, because you get insane dependency clutter, and all the related issues like security, build times, etc

how good a build system isn't equivalent of how easy it is include a dependency, while modern languages should have a consistent build system, but having a centralised package repository that anyone freely pull to/from, and having those dependencies freely take on any number of other dependencies is a bad way to handle dependencies

replies(7): >>45248396 #>>45248405 #>>45248468 #>>45248509 #>>45248523 #>>45248580 #>>45249844 #
2. itsibitzi ◴[] No.45248396[source]
What tool or ecosystem does this well, in your opinion?
replies(1): >>45249115 #
3. quantumspandex ◴[] No.45248405[source]
Security is another problem, and should be tackled systematically. Artificially making dependency inclusion hard is not it and is detrimental to the more casual use cases.
4. ◴[] No.45248468[source]
5. jokethrowaway ◴[] No.45248509[source]
Is your argument that python's package management & ecosystem is bad by design - to increase security?

In my experience it's just bugs and poor decision making on the maintainers (eg. pytorch dropping support for intel mac, leftpad in node) or on the language and package manager developers side (py2->3, commonjs, esm, go not having a package manager, etc).

Cargo has less friction than pypi and npm. npm has less friction than pypi.

And yet, you just need to compromise one lone, unpaid maintainer to wreck the security of the ecosystem.

replies(1): >>45249163 #
6. dev_l1x_be ◴[] No.45248523[source]
> lowkey ppl who praise cargo seem to have no idea

Way to go on insulting people on HN. Cargo is literally the reason why people coming to Rust from languages like C++ where the lack of standardized tooling is giant glaring bomb crater that poses burden on people every single time they need to do some basic things (like for example version upgrades).

Example:

https://github.com/facebook/folly/blob/main/build.sh

replies(2): >>45248572 #>>45249051 #
7. IshKebab ◴[] No.45248580[source]
This is the weirdest excuse for Python's terrible tooling that I've ever heard.

"It's deliberately shit so that people won't use it unless they really have to."

replies(1): >>45249075 #
8. taminka ◴[] No.45249051[source]
i'm saying that ease of dependency inclusion should not be a main criterion for evaluating how good a build system is, not that it isn't the main criterion for many people...

like the entire point of my comment is that people have misguided criteria for evaluating build systems, and your comment seems to just affirm this?

replies(2): >>45249336 #>>45249342 #
9. taminka ◴[] No.45249075[source]
i just realised that my comment sounds like it's praising python's package management since it's often so inconvenient to use, i want to mention that that wasn't my intended point, python's package management contains the worst aspects from both words: being centralised AND horrible to use lol

my mistake :)

10. taminka ◴[] No.45249115[source]
any language that has a standardised build system (virtually every language nowadays?), but doesn't have a centralised package repository, such that including a dependency is seamless, but takes a bit of time and intent

i like how zig does this, and the creator of odin has a whole talk where he basically uses the same arguments as my original comment to reason why odin doesn't have a package manager

replies(1): >>45250016 #
11. taminka ◴[] No.45249163[source]
nah python's package management is just straight up terrible by every metric, i just used it as a tangent to talk about how imo ppl incorrectly evaluate build systems
12. adwn ◴[] No.45249336{3}[source]
> like the entire point of my comment is that people have misguided criteria for evaluating build systems, and your comment seems to just affirm this?

I think dev_l1x_be's comment is meant to imply that your believe about people having misguided criteria [for evaluation build systems] is itself misguided, and that your favored approach [that the difficulty of including a dependency should be proportional to the risk you're taking on] is also misguided.

replies(1): >>45249679 #
13. Sl1mb0 ◴[] No.45249342{3}[source]
> dependency inclusion _should not_ be a main criterion for evaluating how good a build system is

That's just like, your opinion, man.

replies(1): >>45249526 #
14. taminka ◴[] No.45249526{4}[source]
i mean, unless you have some absolute divine truths, that's kind of the best i have :shrug
15. taminka ◴[] No.45249679{4}[source]
my thesis is that negative externalities of build systems are important and i don't know how to convince of importance of externalities someone whose value system is built specifically on ignoring externalities and only factoring in immediate convenience...
16. hobofan ◴[] No.45249844[source]
> but having a centralised package repository that anyone freely pull to/from, and having those dependencies freely take on any number of other dependencies is a bad way to handle dependencies

So put a slim layer of enforcement to enact those policies on top? Who's stopping you from doing that?

17. zoobab ◴[] No.45250016{3}[source]
"a standardised build system (virtually every language nowadays?)"

Python packages still manage poorly dependencies that are in another lang like C or C++.