3 ms·
Perhaps a GC would help Rust being this productive?
by p0nce 8y ago
Perhaps a GC would help Rust being this productive?
- majewsky 8y agoWe have a ton of GC languages already. Rust is unique for being able to do a lot of things very safely, but also fast because it does not require a GC.
- pjmlp 8y agoBeing able to generate fast code doesn't imply not having a GC. It is all a matter how it is implemented and the additional language features for manual types and control of allocations, and how good the compiler backend is transforming all that AST information into actual code. Something like Modula-3, Active Oberon, System C#, Eiffel, D and so forth.
- Jach 8y agoRust had an optional GC once, they removed it. Nim is the answer to scrubs like me who thought Rust was interesting up until that point, since Nim is super fast and lets you allocate/deallocate directly (use of GC is optional) and has three different GC implementations to choose from (including a soft real time one).
- rcxdude 8y agodespite the name for the syntax, rust never really had a GC, just a slightly shorter syntax for reference-counted heap-allocated objects and a vague idea of 'probably it'll handle loops one day', until the language design solidified around an extremely minimal runtime and preferring standard library features over language features.
- sam0x17 8y agoOr crystal.