<- Back
Comments (21)
- exceptione`Included batteries` and type safety are not the only but imho surely the most important criteria for software projects (I am excluding throw-away code and scripts). The article raises an important point but fails to teach the reader about the JVM ecosystem and the .net core ecosystem. The standard libraries of these two zoo's of programming languages vastly eclipse what the discussed languages offer (Go, Python and Rust).For example, this is asp.net core: <https://learn.microsoft.com/en-us/aspnet/core/?view=aspnetco...>. This is the std lib: <https://learn.microsoft.com/en-us/dotnet/api/?view=net-10.0>. This is EF core: <https://learn.microsoft.com/en-us/ef/core/>.There are many more (optional) technologies coming built-in. Your code will typically depend for 98% on official, trusted and vetted code. It might sound like hyperbole but it's reasonable to state that JVM and .net core have no competition if you select for these aspects.I know, programming languages and religion... So do whatever you want with this information.
- nicoburnsCurrently we generally have a trade-off between:- The standard library, which is both trusted/blessed and perma-stable- A package ecosystem which is neitherI would love to see more exploration of the space in between:- An extended stdlib which ships versioned libraries which use semver rather than being perma-stable.- Better support for managing verification and assurance of package ecosystems.
- noelwelshI think Unison has the most interesting take here: https://www.unison-lang.org/docs/the-big-idea/If you look at any language that has been around a while, with Java being a great example, you'll see many libraries that use an outdated coding style. Compare the different date/time libraries in Java, for example. Evolving these is always a problem, which I think Unison addresses in a way that lets the language evolve without having to carry too much baggage forward, while still not breaking others' code.
- karlsefniI was fully expecting a comparison of recent battery chemistries, and forgot the "batteries included" saying being used for programming.As someone who doesn't use the mentioned languages often, it's surprising to hear that Python's stdlib is inconsistent given how old it is / how much work has probably gone into it.
- rajaravivarma_rRuby is one of the languages to have the most elegant and consistent standard library. It is just few standard patterns to learn to get productive.I found Python's stdlib confusing. Is it list.sort() or sorted(list)? str.encode('UTF-8') to bytes and bytes.decode('UTF-8'). The string instance is already encoded in 'UTF-8'. async for item in fetch_data_stream(): print(item) Using async when infact you are `await`ing for items from fetch_data_stream() generator.
- CianticOne thing would be shipping interfaces without implementations. Rust could try to ship more traits without implementations, I do see it could be problematic with Rust as they don't try to be opinionated on what you will build.There is another alternative too, releasing interface only packages, then hoping everyone agrees to use those. JavaScript/TypeScript people actually did this already for one very tricky one, validation, see Standard Schema [1], which was great success. But I would hope to see more, for instance interfaces around typical building blocks like job queues, email sending etc.[1]: https://standardschema.dev/schema
- aarroyocYes! I've never been against languages with batteries included. In fact nowadays I prefer them. It's one of my biggest issues with Rust, but the problem also exists in Haskell. Funnily enough, in Node.js, which gave birth to npm, you can now do many stuff without external dependencies (last one I've seen are the sqlite functions).But yes, in languages with batteries included sometimes they feel like an afterthought. It's not just Python. Java also used to have a big standard library, with many useful things including GUI programming which has been neglected a little bit.
- jiaosdjfAre we really going to keep talking about code in the post-coding era like nothing ever happened?All that matters now is that your LLM can write reliable code and really that choice has already been made by the corpus of examples.
- Levitating> it seems that the reason for Rust not having an API to get a stream of random bytes from the OSThis is already in nightly[1]. I don't see what "getting money in peoples pockets" has to do with its stabilization.[1]: https://doc.rust-lang.org/std/random/trait.Rng.html#tymethod...