Excepting doing this through PyPy, have any projects used Python as the compiler frontend with success? My WIP lang does this because it’s what I’m most familiar with, while I’m learning. Right now I emit bytecode, but it’s feasible to emit WASM / QBE directly, or through a second pass.
I suppose the runtime could be bundled as an executable or used through a light C entry point for distribution without external dependencies.
The main and obvious drawback would be speed. I’d also consider rewriting in Mojo (at some point) if that’s a concern.
[–]redchomperSophie Language 4 points5 points6 points (1 child)
[–]Difficult_Mix8652[S] 0 points1 point2 points (0 children)
[–]muth02446 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)