3 ms·
There’s nothing intrinsic to rust that makes it better suited for “foundational components” over anywhere else in the stack. Just because it’s capable of being
by arcticbull 7y ago
There’s nothing intrinsic to rust that makes it better suited for “foundational components” over anywhere else in the stack. Just because it’s capable of being used lower down doesn’t mean it’s a better or worse language higher up the stack. It’s probably got all the APIs or great crates you need for your work.
It’s not a language “for” anything per se, it’s ergonomic anywhere up the stack.
- mitchty 7y ago> There’s nothing intrinsic to rust that makes it better suited for “foundational components” over anywhere else in the stack. Actually, there is, not having a GC means you can better reason about stack/heap memory usage. That matters for performance critical and things like embedded systems where you might not even use malloc() in c.
- arcticbull 7y agoI think I may not have phrased it well, I agree with you, it’s better than many other languages for low level software development. What I’m saying is there’s nothing that makes it worse for high-level software development.
- tracker1 7y agoDepends on how your mind works really... I know a lot of devs that cannot break out of C# class and enterprise app thinking. I happen to like JS for a lot of workflows. It really depends on mindset. Been learning rust for a few months now and really enjoying it so far... waiting on the new async stuff to firm up a little before continuing.
- pacala 7y agoBecause explicit memory management has a higher cognitive overhead than implicit memory management, a GC-based language is more suitable higher up the stack.
- arcticbull 7y agoRust memory management is in fact implicit. Sometimes you have to be explicit about lifetimes, but the two are not the same.
- tracker1 7y agoFor that matter, wouldn't be too surprised to see MS publish crates that give nicer interfaces to Windows internals or even linux, sql, azure or other platforms access.