I used it a long long time ago on one of my first freelance gigs (with a PHP target). It was already quite solid and saved me the need to use a PHP framework.
I also remember using it as a typed javascript pre-compiler, at a time where FB Flow and MS Typescript were still fighting over developer mindshare. I would probably still use it if TS didn't take over the ecosystem entirely.
I ported an entire AS3/Flash game to Haxe that my friends had written during our college years, as a kind of "thank you" present for ten years of friendship (adding mobile, cross-platform, gamepad controller, netplay and other things).
While the tooling was spotty, I found the experience wonderful! Haxe felt like a decent language with laudable goals and a nice community.
I hope one day I find another reason to work with Haxe.
Does anyone have any project that is using Haxe in production? Would love to hear about such stories!!
1 // len("""
console.log('javascript');
/* """)
print('python');
# */
Example: # python3 /tmp/test.py
python
# node /tmp/test.js
javascript
I _believe_ the only source limitations are the the JS cannot contain `"""` and Python cannot contain `*/`.
GeekFortyTwo•16h ago
bitwize•15h ago
belmarca•13h ago
I understand your comment was tongue-in-cheek, but we certainly have an interest in cross-language interoperability! You can check out our work here:
- https://try.gambitscheme.org is Gambit compiled to JavaScript with the universal backend. Evaluate \alert("hello!") at the REPL to see the JS<->Scheme Syntactic FFI in action.
- https://codeboot.org is our own Python interpreter running in the browser. It has a Python<->JS FFI. Evaluate \alert("hello!") at the REPL to test it out. You can even import JS libraries using the standard Python syntax by replacing the identifier with a string: import "https://mycdn.com/mylibrary.js".
- https://github.com/gambit/python is a Gambit module that integrates Gambit with CPython, using the same syntactic FFI. You can import PyPI modules from Gambit.
References to conferences/papers describing these features can be found on my GH profile (https://github.com/belmarca). AMA if you wish!
bitwize•12h ago