Get the latest tech news

Static Allocation for Compilers


TigerBeetle famously uses static allocation. Infamously, the use of the term is idiosyncratic: what is meant is not static arrays, as found in embedded development, but rather a weaker no allocation after startup form. The amount of memory TigerBeetle process uses is not hard-coded into the Elf binary. It depends on the runtime command line arguments. However, all allocation happens at startup, and there's no deallocation. The long-lived event loop goes round and round happily without alloc.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of compilers

compilers

Photo of Static Allocation

Static Allocation

Related news:

News photo

Static Allocation with Zig

News photo

When Compilers Surprise You

News photo

BAML is hiring compilers/rust engineers (YC W23)