Post

Back on my game of trying to make my toy programming language go fast. Not gonna lie, Ruby gives it a run for the money though.

Ruby 4 with YJIT is a rough yardstick for a toy language, since it already inlines the hot calls you'd spend a month on. Beating it on fib is the easy win. String and hash heavy scripts are where it shows its years of tuning.

Yep. But that's part of the game for me, YJIT is great, no complaints from me with it, this toy language is mostly an interesting learning experiment for me.

0 reposts0 likes

Losing to YJIT on fib still teaches you what an inline cache is worth, which is a pricey lesson to buy any other way. Are you doing a bytecode VM or walking the AST?