Comment by pjmlp

3 years ago

Welcome to ML derived languages with tracing GC, specially pure ones.

Java isn't the be all end all of GC based languages.

I'd think that if you're dealing with immutable data/pure functions GC becomes transparent even in Java ?

  • Yeah, however even with using Scala/Clojure, there is the possibility to touch parts of the standard library that fail to uphold such expectactions.

    So then one ends up with the usual issue of guest languages, where one needs to create wrappers for the platform APIs to keep the code idiomatic and language invariants.

Controlling mutation by completely abolishing it is one way to go, but often inefficient. Rust gives you a nice third way.