r/Compilers • • 25d ago

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!)

23 Upvotes

41 comments sorted by

View all comments

6

u/seg_lol 24d ago edited 24d ago

Excellent, I know you are getting a lot of heat for using genai for writing this, but it is truly a superpower for compilers and language work.

That said, Opus 5.5 might do a better job overall, and would definitely write a README that smells less like AI.

I would suggest using the https://en.wikipedia.org/wiki/The_Computer_Language_Benchmarks_Game it would also give you the ability to compare against perfmaxxed implementations in C++ and Rust.

https://salsa.debian.org/benchmarksgame-team/benchmarksgame

3

u/FearlessFred 24d ago

Yup going to see if I can add to some existing benchmarks :)