3 ms·
It's the product of whipping together some basic examples for proof of concept in a few weeks. :) To some degree it will always be "messier". 30-60% of generat
by eatonphil 8y ago
It's the product of whipping together some basic examples for proof of concept in a few weeks. :)
To some degree it will always be "messier". 30-60% of generated code will just be converting between C++ and V8 types.
But really, I just need to prioritize using more tmp values so I'm not shoving crazy amounts of logic in one line.
It can definitely be difficult to debug. Things would be easier if I were generating C++ ASTs and pretty-printing it (I should probably do this in the future) but for the PoC I'm just emitting strings of C++.
Chicken Scheme's generated C is more along the lines of what I'm aspiring to.