F# has a JavaScript transpiler called Fable and a library called Elmish that uses the same basic principles but doesn't try to limit you from getting stuff done with existing technologies. You basically end up with a React application written using the Elm Architecture. Worth checking out if you want to learn from the ideas Elm has to offer in a language more suited for production.
Elmish is fundamentally flawed, though. One of the main features of the Elm architecture is subscriptions changing over time as the model changes. Elmish only subscribes once on initialization, and I don't think there's much leeway to fix it without breaking compatibility with many existing code.
Last I checked, Microsoft doesn't own JavaScript which F# has fantastic interop with. It's crossplatform and entirely open source. Not sure what else you'd want from them.
It's perfectly great to check out. It has some brilliant ideas and is exceedingly well designed (for where it focuses). Yes - maybe you won't use it in production, but it's absolutely worth checking out and learning.
You can learn Purescript instead. It is basically a (much) more advanced Elm without any of the politics/restrictions. It's also much more intimidating to learn. If people think Elm has some great ideas - they barely scratched the surface of what's possible in functional languages.
I did this over summer vacation a few years back and I had such a blast. Coq really pushes the "if it compiles, it's probably correct" principle to its limits, which people have used to write workbooks for learning it. In Software Foundations each chapter is a Coq file, every exercise is a hole in the file, and you're done with a chapter when there are no more holes in the file and it compiles. It's a really incredible way to learn because you get quick feedback.
personally I'm waiting for Idris2 to be fully baked, while I like the idea of Coq, other then a great LSD trip I don't really think I have a pressing need for a theorem proof assistant, I'm after something a little more "practical" for general programming !
You can use it to write formally verified software. No one does this in industry... yet! But e.g. the CompCert compiler was partially verified in Coq, with the result that as far as anyone can tell it has no middle-end bugs.
The striking thing about our CompCert results is that the middle-end bugs we found in all other compilers are absent. As of early 2011, the under-development version of CompCert is the only compiler we have tested for which Csmith cannot ο¬nd wrong-code errors. This is not for lack of trying: we have devoted about six CPU-years to the task. The apparent unbreakability of CompCert supports a strong argument that developing compiler optimizations within a proof framework, where safety checks are explicit and machine-checked, has tangible beneο¬ts for compiler users.
View all comments
271
u/stuckinmotion Apr 09 '20 edited Apr 11 '20
Phew, finally a reason to remove something off my "should check out one day" list, instead of constantly adding to it. Thanks OP π
edit: everyone piling on to reply to suggest what I should check out instead, I feel like you didn't really get the sentiment behind my post π