it'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.
I 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.
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.