More Articles  

2013-12-04
Writing a (Ruby) compiler in Ruby bottom up - step 30

The Operators - Part 4: Comparisons

Where we left off last time, we had everything but comparison operators and &&, ! sorted out. When I started replacing runtime.c, I expected to do it in one go, as I've mentioned, but as you have seen there was quite a bit to ...

2013-11-04
Writing a (Ruby) compiler in Ruby bottom up - step 29

The Operators - Part 3: Operating on our newly minted Fixnums

Where we left off last time, we transform numbers into Fixnum objects, and turn + and other operators into method calls. In theory at least - we haven't actually tested that functionality properly in practice.

2013-10-31
The Last New (Paper) Book I Will Ever Buy?

I have just finished reading the Hydrogen Sonata, Iain (M.) Banks final Culture novel.

2013-10-08
Writing a (Ruby) compiler in Ruby bottom up - step 28

The Operators - Part 2: Turning numbers into Numbers

(or small enough integers into Fixnum's, at least)

As a recap from last time, where we left off we can parse our new, completely useless and primitive Numeric, Integer and FixNum classes, but our numbers aren't actually members of those classes, ...

2013-09-24
Inline Graphviz

This post by David King on inline Graphviz graphs inspired me to write my first Rack middleware in a long time. David's code uses PHP on the server-end coupled with javascript to parse out Graphviz data from script tags, and then render the graphs with the appropriate Graphviz ...

2013-09-02
Writing a (Ruby) compiler in Ruby bottom up - step 27

The Operators - Part 1: Parsing

As mentioned last time, over the previous parts I at some point brutally broke our built in operators. I did so by actually implementing proper method calls.

It also made the compiler largely unusuable, and went unnoticed because, well, the compiler is still largely unusable.

...

2013-08-06
Our Hidden Digital Libraries

How I learned about my dad, and the difficulties my son could find in learning about me the same way

Eivind Hokstad - my dad
Eivind Hokstad (my dad); picture from late 80's

2013-07-30
Writing a (Ruby) compiler in Ruby bottom up - step 26

I published the last article in this series in June 2010, after a long break. At the time of finally making a serious start to this part, it was April 2013, and as of the time I am editing and putting the final touches on this, it is July 2013, and ...

2010-06-12
Writing a (Ruby) compiler in Ruby bottom up - step 25

First of all, here's the biggest reason I've been so excrutiatingly slow with getting this part together (at least that's my story, I guess I've had other things on my plate too...):

Tristan is 13 months now, and a real menace to my laptop (pulling off keys ...