Home » forums » LtU Forum Writing an interpreter, targeting a VM or writing from scratch? Do they generate byte code for a virtual machine?

Does the virtual machine handle garbage collection?

What virtual machine would be good to target if I need to implement typical things such tail call optimizations and closures?

Is parsers/lexers for modern languages handwritten or do they use something like Flex/Bison?

Is it easier to write an interpreter in C or to generate byte code? I'm going to write myself a small functional language just for fun. I've previously written an interpreter in Haskell for LC but now I want to try going the route of modern (popular, whatever) languages such as Python or Ruby. So exactly how are those languages implemented? Comment viewing options Flat list - collapsed Flat list - expanded Threaded list - collapsed Threaded list - expanded Date - newest first Date - oldest first Select your preferred way to display the comments and click "Save settings" to activate your changes.