r/programminghumor • • May 12 '26

The future of coding

Post image
1.1k Upvotes

72 comments sorted by

View all comments

Show parent comment

3

u/HyperCodec May 13 '26

Seems pretty clean, not much feedback to give. I’d recommend you try doing either JIT or compile time bytecode optimization, since (as far as I can tell by quickly skimming through the code) it’s mostly just compiling directly to bytecode and then interpreting directly with a vm.

How is your bucket-based GC handling certain edge cases such as references outliving the stack frame of the target object (causing things like use-after-free if handled incorrectly)? Do you use some kind of reference counter?

And further down the road, it’ll be interesting to see how you handle things like concurrency within the language and especially the GC/VM. Do you plan on implementing async io and such as part of the language?

2

u/Ratstail91 May 18 '26

I've put this website up since the original post: https://toylang.com/

It's got some actual info on it, albeit kind of barebones. Strings are ref-counted, while other compounds (arrays and tables) are just carefully coded and free'd after use. The scopes are also ref-counted, and most variables live in those though, which is useful.