3 ms·
My first compiler (Ur-Scheme, which compiles the subset of Scheme it's written in, and runs faster when compiled with itself than when compiled with any other S
by kragen 16y ago
My first compiler (Ur-Scheme, which compiles the subset of Scheme it's written in, and runs faster when compiled with itself than when compiled with any other Scheme compiler I could find) took me only three weeks, including the time to debug all the crashes from emitting faulty assembly code. Ten days to implement the JS interpreter seems eminently reasonable, especially if you get to use things like lex and yacc, and it isn't your first interpreter ever.