by api · 8y ago · 0 comments
Rust is really interesting and promising but it's newer. It has less platform support. The compilers probably aren't as good. There's not as much tooling.
Oh you wanted advice...
(1) How adventurous are you?
(2) How many platforms do you want to port this to? Do you want to port it to old, embedded, or closed platforms?
(3) How many people will you need to hire to work on it?
Ask questions like that and you'll get your answer.
I have yet to learn Rust but I'm following it closely. I'm a pretty heavy C++ programmer and it's the only language I've seen in many years that might be a contender to replace it.
This statement looks uninformed. The is just the one Rust compiler. (Yes, I'm aware if the other one that only works on valid Rust, so you can't use it without the first compiler.) And the one compiler uses LLVM, so it's as good as clang.
> There's not as much tooling.
Some C++ tooling like debuggers work for Rust with minor caveats about enums and trait objects.
OTOH, the tooling that exists is awesome. For example cargo compared to make.
1) Adventurous as I need to be, happy to take a deep dive into a language and try and understand corner and edge cases where necessary
2) Most likely would be running on Linux+windows but unlikely to be embedded
3) I'm mostly interested from the context of learning tools to make my work more performance conscious and just as a general learning exercise.
You want C for this. C++ and rust are aiming to give the same level of performance in higher level languages but to achieve this they have to abstract things from you. C has very little of these abstractions and you're forced to be much more aware of where your CPU cycles are going, it also allows you to optimize them in ways that can be harder in c++/rust.
It's not just the language itself but the libraries, the "standard" c ones are rather anemic which means you have to code a lot of things yourself, even for simple things like dynamic arrays and dictionaries. This means your directly exposed to a lot more of the basics and have to consciously think about things like memory layout.