logoalt Hacker News

ted_dunning • yesterday at 7:02 PM • 2 replies • view on HN

Embedded systems benefit substantially from decreased GC, especially in the context of non-relocating collectors (as with Go) in machines without memory management units. The problem is not the overhead, it is the effect of memory fragmentation.

The OP article here is nice because it allows selective enforcement of allocation free code. If you have code that has some discipline about heap allocation such as having all small allocations then you are OK on the fragmentation front.


Replies

bootsmann • yesterday at 7:36 PM

Isn’t writing Go for embedded systems kinda like eating soup with a fork tho? This language was designed to write multithreaded asynchronous code to power microservice meshes.

➕ show 1 reply
pjmlp • yesterday at 7:34 PM

Real time Java is doing just fine with PTC and Aicas still in business.

➕ show 1 reply