4 ms·
Aaron Patterson, the author of phuby (https://github.com/tenderlove/phuby https://github.com/tenderlove/phuby) once explained in a talk what's good about embedd
by Xylakant 9y ago
Aaron Patterson, the author of phuby (https://github.com/tenderlove/phuby https://github.com/tenderlove/phuby) once explained in a talk what's good about embedding a php interpreter in ruby. The gist, as I remember was: Technically speaking, it makes no sense. It will never become anything useful. But you can make it work, and you might learn something useful along the way. IIRC, he found a couple of very interesting (and useful) issues along the way.
So the answer might just be "because I can and I want to".
This is the talk, IIRC: "Yak shaving is best shaving" https://www.youtube.com/watch?v=nY_Pl2x7Fgs https://www.youtube.com/watch?v=nY_Pl2x7Fgs
- chamton 9y agoEmbedding an interpreter in another language can certainly be useful, but this is just a parser.
- Xylakant 9y agoSorry, but phuby is not useful, was never intended to be and even says so. It's a hilarious prank, if you ask me.
- tyingq 9y agoAn interpreter in a compiled language, though, has obvious run time benefits. Though this is just a parser.
- randomdata 9y agoA parser is a big step towards building that interpreter, however. Who knows what the long-term goals are or what remains closed source software.