Managed to bring it down to ~1.7 seconds because of this comment in CPython's source explaining the performance gain for using computed GOTO's (vs a big ol' switch statement).

Show thread

Array & index expressions ✅

That wraps up book #1, can't wait to get started on book #2!

Show thread

Today's interpreter progress: string literals, string concatenation and built-in functions ✅

My (tree-walking) Monkey interpreter can now calculate the 35th fibonacci number in under 10 seconds with peak memory use of 500 kB...

For reference: PHP & JS both do it in under 1 second. On to the second book to do add some pre-processing it is then!

C programmers, how can I design this so that it compiles?

I am trying to define a struct field but the struct is not yet defined, because that struct might in turn depend on the struct I am trying to define.

Boolean expression parsing ✅

Time to tackle grouped expressions!

Good morning world! Finished chapter 8 of the Rust book last night and finished the first of these exercises. Hopefully I'll have some time later today to do the other two, as I'm quite stoked right now.

What are y'all working on?

Time for our yearly 1% for the planet donation. It's hard to determine where money is used most effectively, so I went all-in on just a single non-profit:

They've been doing some great work over the last year so I hope our small donation helps them do more of the same in 2020.

Ok now came across JSFuck and mind is blown.

How the hell is this valid JavaScript and printing "no".

Show thread

Personal Mastodon instance of @danny.