4 ms·
How does F# on Fable compare to Elm and Purescript, and how is each doing these days?
by xixixao 7y ago
How does F# on Fable compare to Elm and Purescript, and how is each doing these days?
- tpetricek 7y agoI don't have much experience with Elm or Purescript, but one nice thing about F# with Fable is that it's a pretty flexible language that let's you do things in many ways and integrates well with libraries that use different styles. For example, the Excel blog post is using virtual-dom directly (without higher level libraries like React) and getting that to work was a few lines of simple code with one mutable variable, but that's all you need to get a nice declarative Elm-style architecture.
- Risord 7y agoUnlike Elm, F# is 'functional first' but supports OO and impurity (with good and bad). Biggest clear plus is maybe full stack development support. Checkout SAFE stack (Saturn + Azure + Fable + Elmish). There is also Bolero, an alternative for Fable how to run F# in client side. Where Fable compiles F# to JS, Bolero relies on Microsoft Blazor project which has a whole .Net runtime on WebAssembly allowing to run .net binaries directly on browser. I think this is still quite experimental but if you need/want some dependencies from .net ecosystem it might be easier than you think.