4 ms·
You should check out Haxe. - it compiles to 10 source level languages and a couple of VMs. https://haxe.org/ https://haxe.org/
by swsieber 7y ago
You should check out Haxe. - it compiles to 10 source level languages and a couple of VMs.
https://haxe.org/ https://haxe.org/
- krcz 7y agoThank you, Haxe definitely has its place on my list of things to check. What worries me however is that there are no examples of output code on their webpage.
- swsieber 7y agoTrue. I don't think the output will be particularly pretty, and it does assume the presence of its own stdlib. But hopefully it's still fun to see how exactly they do things under the hood.
- haxiomic 7y agoThe output is pretty slim, it's one of the reasons I prefer using haxe over TypeScript when targeting the web – haxe has better dead-code-elimination so output js tends to be smaller and include a greater level of optimisation – check out this example to see what I mean https://try.haxe.org/#4f46D https://try.haxe.org/#4f46D
- dkersten 7y agoThe targets Haxe compiles to are all rather similar (object oriented mutable-state imperative VM's). While that's cool and interesting, its far from any language. I imagine adapting it to compiling to something like Haskell may be less than straightforward, at least in a way that produces decent quality/performant Haskell code.