by pjmlp · 6y ago · 0 comments
- value types
- some form of RAII
- untraced reference (aka raw pointers)
- stack and global memory segment allocation
Examples of such languages:
Mesa/Cedar, Active Oberon, Mesa/Cedar, Component Pascal, D, Modula-3, Nim, Swift, C# (depends on the version, C# 9 is already quite sweet)
The future is not garbage collected.
The future is pretty much GC with affine types, even Rust has to deal with crude RC<RefCell<>>, without the corresponding tracing GC performance, when doing GUI applications.
It's essentially the Pareto principle. Most of your garbage is generated by a minority of your program. So only small bits of your program need to be optimised to not use the GC.