3 ms·
Stack allocation in GC managed languages is also available across C#, F#, Common Lisp, D, Nim, Mesa, Oberon, Oberon-2, Active Oberon, Oberon-07, Component Pasca
by pjmlp 1y ago
Stack allocation in GC managed languages is also available across C#, F#, Common Lisp, D, Nim, Mesa, Oberon, Oberon-2, Active Oberon, Oberon-07, Component Pascal, Swift (RC is a GC algorithm), Eiffel, and many others that usually are forgotten when discussing GC algorithms.
Also all modern Java implementations do escape analysis just like Go, instead of go build -gcflags='-m=3' one gets to use JITWatch or similar tooling, depending on the specific JVM implementation.
Given it still isn't as good as having explicit structs, hence the ongoing Valhala Project, that just got a second EA last week.
Finally, all this Go doesn't need to be like XYZ, usually ends up proven wrong a few years later.
Recently by adopting the keep alive and cleaner concepts from .NET and Java respectively, and a new GC implementation is in the works (Green Tea).