4 ms·
I prefer having a GC, makes things easier. Also a copying GC can be better for some of the stuff you do in a compiler (immutable data structures).
by vmchale 3y ago
I prefer having a GC, makes things easier. Also a copying GC can be better for some of the stuff you do in a compiler (immutable data structures).
- smaddox 3y agoEasier for quick prototypes, for sure (although I switched to Rust from Haskell due to even worse compile times in Haskell and my disdain for monad transformers). Also, Rust can't currently do nested pattern matching through Boxes, which can be annoying, coming from Haskell. But for a high performance compiler, manually managed arena allocation will beat out a generational GC.
- discardable_dan 3y agoChez Scheme would disagree.
- smaddox 3y agoHow so?
- phibz 3y agobox_patterns exists on unstable. Unfortunately it's still not merged.