munificent / craftinginterpreters

Repository for the book "Crafting Interpreters"
http://www.craftinginterpreters.com/
Other
8.84k stars 1.04k forks source link

New challenge for Chapter 3 #61

Closed meadori closed 7 years ago

meadori commented 7 years ago

Section 1.3 gives a great description of bootstrapping. After the description of Lox in Chapter 3 I think an interesting challenge would be:

Is it possible to bootstrap Lox with one of the given Lox implementations?
Why or why not?

I spent some time actually trying this and it was a very interesting exercise in terms of discovering the limits of the language. As I hit limits I would alter the jlox implementation (via a builtin or language feature) to keep going. We'll see how far I get :-)

munificent commented 7 years ago

That's a fun challenge, but I think it might a wee bit too intense to ask people to do. :)

meadori commented 7 years ago

Understood. Thank you for considering it!