3 ms·
Implementing Lua is a great way to test out your language-generating program, since Lua is an extremely simple yet popular language. CLISP or Scheme is also a g
by armchairhacker 4y ago
Implementing Lua is a great way to test out your language-generating program, since Lua is an extremely simple yet popular language. CLISP or Scheme is also a great test language...though Racket already has that covered.
It would be interesting to see someone implement a language like Python, C (interpreted or compiled to ASM), or Java in Racket. But it would also be an insane amount of work, probably to the point where you're almost just re-implementing the language, and I also wonder if Racket would get really slow or crash due to all of the complexity.
- jmclnx 4y agoAnd NetBSD has a hook to the kernel via lua https://man.netbsd.org/lua.4 https://man.netbsd.org/lua.4
- TedDoesntTalk 4y agoThis is both insane and cool.
- canadianfella 4y ago
- spdegabrielle 4y agoPython and Java have been implemented in Racket. I believe implementing a subset of Python was also an assignment for some course. There is `#lang c` for writing C programs in DrRacket but it uses the installed C compiler, rather than re-implementing C in Racket. https://docs.racket-lang.org/c/ https://docs.racket-lang.org/c/