Do you like games?
Do you like modding?
Do you like games with modding?
I'm building a scripting language to enable easy modding, and I'm gonna build a roguelike with it!
Come check it out, and drop me a follow!
#gamedev #langdev #toylang #roguelike
toylang.com
Functions are successfully called.
No return statement or tests yet, but it's time for a break.
I'm happy now, even if today is a hard day.
#gamedev #langdev #coding #toylang
github.com/Ratstail91/Toy
-bool constant = false;
+bool constant = true; //parameters are immutable
It took me all day to change one line.
The simplest solutions are usually the best. I'm not exactly upset, I just wish more of that time had gone towards actually getting the functions working.
#coding #langdev #toylang
In case you missed it: Toy now has unofficial support for NetBSD, thanks to NishiOwO!
While not covered by CI, the newly added code is quite minimal, so it should work with little effort. I might even look into custom runners at some point.
#coding #langdev #toylang
github.com/Ratstail91/Toy
Why save a peice of text multiple times, when you can save it once and point to it instead?
I finally got this working today!! I've had the outline there for ages, but finally added the actual check - which wasn't easy.
github.com/Ratstail91/Toy
#coding #langdev #toylang
Fixed the keyword 'continue', changed the value '0' to be falsey, and started work on functions proper.
They're being parsed into the AST, but compilation is a no-op for now. Parameter types are also not parsed correctly, and the keyword 'return' is its own thing.
#langdev #toylang #coding
OK, be honest, who has the coolest mascot?
(My mascot has no eyes, but it does have one "I", just off screen.)
#rust #toylang #zig #cpp
A big chunk of text, showing my thoughts and plans for the current sprint.
#programming #coding #langdev #toylang
github.com/Ratstail91/T...
Toy Speed Test!
#programming #coding #toylang #langdev
krgamestudios.com/posts/2025-0...
GitHub's action runners seem to be bugging out, so the last couple commits lack the fancy tick.
Nonetheless, I've gotten some small features implemented today, including prefix and postfix ++ and --.
The code looks a lot cleaner with those.
github.com/Ratstail91/Toy
#langdev #toylang
It took a bit, but 'break' and 'continue' keywords are working & tested!
It's not exactly easy, when you're jumping around in memory - you need to be super thorough when looking for issues, because the VM will simply keep reading garbage, thinking it's code.
#coding #langdev #toylang
Yay! I put off the break & continue keywords for a bit, but I didn't really need to. Still, it gave me time to think on it.
I'll need to write a proper disassembler soon.
#coding #langdev #toylang
Yeah, your favourite programming language may be cool, but is it "working key-value tables" cool?
#coding #langdev #toylang
github.com/Ratstail91/Toy
I finally finished this benchmark and proved...
The default 'malloc()' is much faster than my 'Toy_Bucket' arena allocator. In hindsight, it makes sense, though it wasn't what I was expecting/hoping for.
It's better to know you're wrong than think you're right. Time to keep #coding.
#toylang
github.com/Ratstail91/T...
Top-tier commit message.
On the upside, I reworked Toy_String, so now Toy is C spec compliant across all platforms.
In other words, it shouldn't cause any errors or warnings if someone just dropped it into their project's toolchain.
#langdev #toylang
So how is your day going? I spent the morning having a great chat with a VP from a company worth over 27 billion USD about my scripting language Toy.
Yes I am serious, and no I will not elaborate.
#toylang #langdev
github.com/Ratstail91/Toy
Assignment within an array is working - even within nested arrays! It's not easy to get fundamental features working, but it's slowly getting closer to my goal.
#toylang #langdev #coding
github.com/Ratstail91/Toy
The 'while' keyword is working, though break and continue aren't done yet.
But, it does mean fizzbuzz is possible - I'm turing complete, bitches!
#toylang #langdev #coding
github.com/Ratstail91/T...
IF. THEN. ELSE.
IS.
FINISHED.
Only took about 8 days lol. On the upside, a lot of the groundwork for the other control flow keywords is in place now.
#toylang #langdev #coding
github.com/Ratstail91/Toy
github.com/Ratstail91/T...
Even when I'm trying to rest I'm still doing stuff :/
Types aren't working yet, but this is how they will.
#coding #langdev #toylang
github.com/Ratstail91/T...
I'm worn out. At some point, you just end up hacking away at the code like you're hacking a carcass with a blunt knife.
#programming #coding #langdev #toylang