r/Compilers • • Oct 08 '26

Goose: a stack allocation flat data structure language

https://github.com/aardappel/goose

My latest language is meant to very efficiently let you work with flat pointerless inline data structures allocated on (address space reserved) stack that allow almost data structure creation to be just a pointer bump, with stable pointers.

When used well, it is both safer, faster and uses less memory than the equivalent C++ or Rust.

(see the repo readme for more!)

26 Upvotes

46 comments sorted by

View all comments

Show parent comment

4

u/FearlessFred Oct 08 '26

I had originally tried to find an independent benchmark suite to use, and did come across yours, but when I saw the requirements to make it fit in your system it didn't seem particularly friendly/simple, so I decided to just roll my own for the moment.

And yes, Goose is particularly strong at non-pointer inline growing data structures, so I wanted to make sure that was represented.

That said, now that the project is further along, it might be fun to make the effort to add it to yours as well. I'll put that on the TODO.

Btw, pretty sure interacted while at Google, probably as part of my project FlatBuffers.

3

u/kostya27 Oct 08 '26

Yeah, my readme can be strict :) Also, there are some tests that require maturity (json,csv,regex). I didn't work on FlatBuffers.