4 ms·
That part of the talk surprised me. It implies that you can compile Elm into C? I wasn't aware that was in its capabilities. It seemed like a good idea worth e
by iamwil 3y ago
That part of the talk surprised me. It implies that you can compile Elm into C? I wasn't aware that was in its capabilities.
It seemed like a good idea worth exploring. I can see how he'd get Jeff'd there.
- marcosdumay 3y agoYou can compile almost anything into C. And if you can't, you can always compile it to machine code with a C compatible interface.
- 1-more 3y agoit's certainly not in the 0.19.1 compiler, but yeah you can compile anything into anything when you're the compiler writer (and he's a not bad compiler writer). Lamdera, fwiw, is storing Elm states in a database right now. It's a closed source fork of the Elm compiler. It's honestly amazing, and it may be what Jeffs the official Elm on the DB. IDK.
- iamwil 3y agoI wasn't aware this was a current capability of Elm. I didn't see it advertised anywhere on its web pages or docs. I thought maybe I missed something, or if it's something only known to those on the Elm mailing list. But it sounds like Elm is relatively easy to rewrite/reconfigure a backend to target a different language. Thanks for the lead on Lamdera, which is helpful.
- 1-more 3y ago> I wasn't aware this was a current capability of Elm. If it is it's a capability of a branch of the compiler that only exists on Evan's laptop > something only known to those on the Elm mailing list. As far as I know there is no Elm mailing list. > But it sounds like Elm is relatively easy to rewrite/reconfigure a backend to target a different language. I don't think it targets LLVM or anything, so you're gonna be on your own for that.