noalloc: Tooling and libraries to enforce zero heap allocations in Golang

Posted by g0xA52A2A 23 hours ago

Counter31Comment4OpenOriginal

Comments

Comment by andrewla 22 minutes ago

The end state of every garbage collected language is a suite of tools to prevent garbage collection at all costs.

I think we can learn something here.

Comment by vatsachak 7 minutes ago

I think that people hyperoptimize for no reason though. How many applications are there that require no GC? I feel like you can write the no-gc code in Rust and then just use it from the C ABI from any GC language.

Comment by Gys 4 minutes ago

Maybe. Go code is designed to be readable and stable. My guess is that most Go code is running fine with garbage collection. There are always edge cases and then just choose another language.

Comment by zinodaur 1 hour ago

I love it. Any thoughts on allowing (value type) Pointers into a Region?