3 ms·
> what does Rust do better than Nim? I can install Rust, for one thing (I’m on an M1 mac; trying the three main nim installers, one gives me an out of date ver
by Shish2k 4y ago
> what does Rust do better than Nim?
I can install Rust, for one thing (I’m on an M1 mac; trying the three main nim installers, one gives me an out of date version, one gives me the x86 version, and one segfaults)
Also Rust’s error messages and standard library documentation are way more helpful
Also Rust runs nearly twice as fast
(I do like the nim language, but no more or less than I like the rust language; tooling makes a big difference though)
- cb321 4y agoFor me (and inv2004) Nim, runs faster than Rust on your RosettaBoy project.. But perf usually depends on an awful lot of territory that is routinely unexplored before conclusions are bandied about. The Nim installation & tooling experience unfortunately can be rough. OTOH, it has like <1% the funding/exposure. Also, I find the "100s of packages dependencies" for any non-trivial Rust program to be pretty awful, as well as reading other people's Rust code (a point made more salient by all the deps). Anyway, there are many dimensions/axes by which to evaluate most things in life and usually no objective way to weight/combine them into a single overall score. So, it's often good to keep an open mind. (Not saying you don't do so personally!)
- Shish2k 4y ago> For me (and inv2004) Nim, runs faster than Rust on your RosettaBoy project I didn’t spot that it had improved that much; I guess I need to hurry up and brute-force my way past the installer issues to try it out :D
- cb321 4y agoIf it helps, I almost always just git clone & compile Nim from source myself.. takes just a couple minutes. Never tried it on an M1, though.