Hacker News new | ask | show | jobs
by Ygg2 1229 days ago
I disagree.

Even if Rust wasn't able to eliminate whole swath of errors in C(++). And it is (Nulls and data races).

Rust has way better package manager, and actually works on Windows.

For example coreutils got rewritten in Rust. And got adopted by Yocto.

2 comments

Just this week we were porting some old c++ over to rust, stuff from the 90s probably. It was relying on the last element of an array being zero due to null termination. It used that value in its computation. That sounds crazy but fine, except it wasn't an array of bytes, so if it wasn't aligned and padded to 4bytes that last value might not be all zeroes. I don't know a common arch outside of microcontrollers where it wouldn't work, but still!
What uC? I'm interested in learning which vendors are shipping rust toolchains for their chips.
not using it on a uC, it did work in c++. Bounds checker caught it in rust. I was just postulating it might not work in c++ everywhere.
Ahh, gotcha.
Cargo is not de facto better than vcpkg. That Rust has a blessed package manager instead of community of competing package managers is a lateral, neither better nor worse.
Vcpkg? Never heard of it. 90% of C++ project I saw were using make. Remainder were using cmake.

> community of competing package managers is a lateral, neither better nor worse.

While I understand your position, that's not my opinion. Having one way to build a package is a blessing. Having had to juggle Python's competitive package manager is a nightmare.

https://imgs.xkcd.com/comics/python_environment_2x.png

Each one has slightly different usages and they are mostly compatible but then you run into edge cases.

-----

And lack of blessed libs is something I am strongly against.

Rust doesn't have standardized time lib and everyone is suffering for it.

Except for grpc that uses bazel! I know two teams where I work, one uses vcpkg, but the other uses conan. Our company as a whole points to conan as the answer, but mostly everyone uses cmake and git submodules. That is why a single blessed package manager is better than many, none of them play well together. And that is ignoring hunter and meson. I don't know what the gp is talking about.