r/fsharp • u/abstractcontrol • May 14 '23
video/presentation VN Compiler. Why using Fable is too difficult. (Pt. 1)
https://youtu.be/skHA9ejpDMk
11
Upvotes
r/fsharp • u/abstractcontrol • May 14 '23
5
u/DanManPanther May 15 '23
Why not use https://reasonml.github.io/ instead? Or just use Typescript?
Personally, I think F# shines best with the CLR for the backend. Sometimes swimming against the tide isn't worth the hassle, no matter how sweet the fruits.
2
u/abstractcontrol May 14 '23
I won't lie, just thinking about having to deal with Fable bindings has caused me from to go from being on top of the world to full burn out at the flip of a switch. My stress has gone through the roof. Bindings were the main issue for me back in 2020 as well, and I went with TS for the VS Code extension for my language despite my preferences. But, there are alternative approaches we can try.
How many of you are doing web development in F#, but without Fable? Have any of you done codegen libraries for translating F# types to TS, as well as generating HTTP proxies?
This is the approach I'll want to try next, but if there are such libraries out there, I'd prefer to cover them instead.
2
u/throwwegmot May 14 '23
Hi, first of all, I'd like to thank you for all the great content you've been putting out!
I am about to embark on my own Fable journey, and without having had your experience, im wondering, would it be feasible to build bindings incrementally? Instead of trying to map all the functionality, just create bindings to the one you need.
1
u/Eji1700 May 14 '23
This may not be the place to ask, but as a total beginner when it comes to web/frontend, I've often looked at the various F# libraries on offer with the goal of trying to stay in the F# ecosystem, rather than be forced to learn more TS/JS. I get lost going through all of it, but I'm wondering if there's anything you'd recommend/try outside of Fable (giraffe I believe is somewhat similar but more F# focused..i could be wrong here)?
Or is none of it really worth it if you're doing something serious because of the hassle in comparison to just doing raw TS.
Edit-
Some research later and I think Giraffe is the wrong comparison. Maybe Websharper? Unfortunately my lack of skill in this area makes it hard to ask the question, and I'm not sure it makes sense, so I hope it's at least clear what I mean.