3 ms·
Perhaps a nice project to learn both is to write a (simple) Go compiler in Rust :) In the same spirit as https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_
by amelius 11y ago
Perhaps a nice project to learn both is to write a (simple) Go compiler in Rust :)
In the same spirit as https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_...
Go is not a very complicated language. The main difficulty of writing a Go compiler would be to write the garbage collector, but you can easily skip that part by not collecting any garbage :)
- nickpsecurity 11y agoGetting started writing a compiler is a bad idea outside LISP's and such that are ideally suited to it. Compilers are complex, hard-to-write programs. Best to do a series of utilities that each explore functionality one is likely to use in real life or just wants to learn about. The IRL stuff gets one used to the feel of the language and whether it's worth proceeding in. The other part is, well, fun and a learning experience. :)