Hacker Newsnew | past | comments | ask | show | jobs | submit | brunoborges's commentslogin

Why is everything "... built in Rust" trending so easily on HN?

It implies high performance, reliability, and a higher degree of mastery of the developer.

(Which may not all be true, but perhaps moreso than your average project)


Because Rust is an excellent language that pushes you into the "pit of success", and consequently software written in Rust tends to be fast, robust and easy to deploy.

There's no big mystery. No conspiracy or organised evangelism. Rust is just really good.


Worth noting that “robust” and “correct” are orthogonal. Graph databases (well, any database) seem like an area where correctness particularly matters, and I doubt Rust gives any meaningful advantage there.

They absolutely are not orthogonal. They are closely related. In any case, Rust improves both.

> I doubt Rust gives any meaningful advantage there.

Advantage over what? Haskell & OCaml? Maybe not. C++ or Python? Absolutely. Its type system is far stronger than those, and its APIs are much better designed and harder to misuse.


This is not a problem.

The government _must_ come to every city to collect votes.


This trial is mostly for voters outside Switzerland. It would be prohibitive for each municipal government to go to every city that an expat from there now lives...



Amazing that we were able to build technology that verifies if an account on the internet is a bot or not, but we can't figure out whether an account is a human or not (even by rule of exclusion when we can identify it is a bot!).

What a stupid timeline we are living in...


We have the technology, its just heavily despised due to the lack of privacy and anonymity.


You clearly haven't watched Stranger Things


I have and deeply regret the wasted time.


NPM as a cross platform package distribution system works really well.

The install script checks the OS and Arch, and pulls the right Rust binary.

Then, they get upgrade mechanism out of the box too, and an uninstall mechanism.

NPM has become the de facto standard for installing any software these days, because it is present on every OS.


To my knowledge NPM isn't shipped in _any_ major OSes. It's available to install on all, just like most package managers, but I'm not sure it's in the default distributions of macOS, Windows, or the major Linux distros?


No package manager is. But of the ones that are installed by users, npm is probably the most popular.


What about pip? It's either installed or immediately available on many OSes


pip might be but it was historically super inconsistent (at least in my experience). Is it `pip install`? `python3 -m pip install`? maybe `pip3 install`? Yeah ubuntu did a lot of damage to pip here. npm always worked because you had to install it and it didnt have a transition phase from python2 being in the OS by default.


`pip install` either doesn’t work out of the box or has the chance to clobber system files though


system pip w/ sudo usually unleashes Zalgo, i’d rather curl | bash but npm is fine too. it’s just about meeting people where they’re at, and in the ai age many devs have npm

if you build for the web, no matter what your backend is (python, go, rust, java, c#), your frontend will almost certainly have some js, so likely you need npm.


This is about eight years old. The python situation has mostly gotten worse since https://xkcd.com/1987/


python packaging / envs is solved now by uv. its not promising or used by people in the know like the last 2 trendy python package managers. i was a big time python hater since it was a pita to support as a devtools guy but now its trivial. uv just works, it won.


I'm not a python dev, but I see a bit of its ecosystem. How does uv compare with conda or venv? I thought JS had the monopoly on competing package managers.


What? It’s much much better now, you can just use uv. Yeah, it’s yet another package manager, but it does it well.


Or go up a rung or two on the abstraction ladder, and use mise to manage all the things (node, npm, python, etc).


> The install script checks the OS and Arch, and pulls the right Rust binary.

That's the arbitrary code execution at install time aspect of npm that developers should be extra wary of in this day and age. Saner node package managers like pnpm ignore the build script and you have to explicitly approve it on a case-by-case basis.

That said, you can execute code with build.rs with cargo too. Cargo is just not a build artifact distribution mechanism.


More of a de facto standard for supply chain attacks tbh


Yeah except you need to install NPM, whereas with a rust binary, which can easily compile cross platform, you don’t.

Honestly I’m shocked to see so many people supporting this


> NPM has become the de facto standard for installing any software these days, because it is present on every OS.

That's not remotely true. If there is a standard (which I wouldn't say there is), it's either docker or curl|bash. Nobody is out there using npm to install packages except web devs, this is absolutely ridiculous on Google's part.


I agree but this isn't a Google project, it's one Google employee.


they offer npm for the large market of cli users who have it, and curl|bash to those who don’t. ¯\_(ツ)_/¯


I think there has been an influx of people vibe coding in Rust because its "fast" but otherwise they have no idea about Rust.


Not because it's fast, but because of its compiler. It acts as a very good guardrail and feedback mechanism for LLMs.


Typescript has surpassed Python and JS as most used on Github for a similar reason

https://xcancel.com/github/status/2029277638934839605?s=20


> making strict typing an advantage, not a chore

It's crazy that people think strict typing is a chore. Says a lot about our society.


I learned TS after a few years with JS. I thought having strict types was cool. Many of my colleagues with much more (JS) experience than me thought it was a hassle. Not sure if they meant the setup or TS or what but I always thought it was weird.


"NPM has become the de facto standard for installing any software these days, because it is present on every OS."

What?!? Must not be in any OS I've ever installed.

Now tar, on the other hand, exists even in windows.


How does one start a Root DNS business?


Yeah, but how to convince investors that trusting the government-issued ID is good enough? /s


I will be happy to take in new patterns: https://github.com/javaevolved/javaevolved.github.io/issues


To not worry about system threads. Just create VTs freely without concerns with memory, pooling, etc.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: