Re:Facil.io: A micro-framework for C web applications
by oritsnile on Saturday January 26, 2019 @12:35PM
(#19007284)
As far as I know rust isn't garbage collected
[ Parent
| on HN ]
Re:Facil.io: A micro-framework for C web applications
by loeg on Saturday January 26, 2019 @12:39PM
(#19007304)
Reference counting is a form of GC.
https://words.steveklabnik.com/borrow-checking-escape-analys...
Re:Facil.io: A micro-framework for C web applications
by dwaltrip on Saturday January 26, 2019 @12:51PM
(#19007393)
Rust doesn't do runtime garbage collection. It "garbage collects" at compile time, in a highly optimized way, the same way a human would by manually writing "free". My understanding is that Rust does this well enough that there isn't really a performance cost compared to C.
Edit: I see your other comment about the use of Arc and Rc in the stdlib, that is a good point. However, how much does that actually matter? I'm genuinely curious, my guess is that it is not significant, but I'm not well informed. For example, would that affect embedded use cases?