buzz-language / buzz

👨‍🚀 buzz, A small/lightweight statically typed scripting language
https://buzz-lang.dev
MIT License
1.2k stars 34 forks source link

Resize stack when needed #58

Open giann opened 2 years ago

giann commented 2 years ago

Right now the stack is a fixed array of 100 000 elements.

giann commented 10 months ago

Reading https://without.boats/blog/why-async-rust/ I realized that creating a fiber (and so a new stack) could be a performance and memory impact.

Do we need relatively short stack at the beginning and grow or shrink it as needed?