News for hackers. Stuff that matters.
Re:Fable is a compiler that brings F# into the JavaScript ec... by kirse on Tuesday October 19, 2021 @04:05PM (#28923022)
Along with Fable highly recommend a look at Feliz. A joy to work with and its ViewEngine can also separately be used w/ Giraffe just for the syntax:

https://zaid-ajaj.github.io/Feliz/

https://github.com/Zaid-Ajaj/Feliz

Re:Fable is a compiler that brings F# into the JavaScript ec... by lf-non on Tuesday October 19, 2021 @05:32PM (#28924026)
Zaid Ajaj probably has had the biggest impact in establishing the Fable/F# ecosystem.

Besides his numerous repos, the Elmish book [1] is really awesome.

[1] https://zaid-ajaj.github.io/the-elmish-book/#/

Re:Fable is a compiler that brings F# into the JavaScript ec... by xupybd on Tuesday October 19, 2021 @07:24PM (#28924985)
Zaid Ajaj is prolific to say the least. I can't believe the number of F# tools he has created.
Re:Fable is a compiler that brings F# into the JavaScript ec... by sbelskie on Tuesday October 19, 2021 @04:12PM (#28923141)
For those interested in Svetle, Sutil is another thing to check out. Top of my head I can’t remember if it is based on or just inspired by Feliz.

https://github.com/davedawkins/Sutil

Re:Fable is a compiler that brings F# into the JavaScript ec... by djdjgd on Wednesday October 20, 2021 @06:21AM (#28928957)
It's inspired heavily by Svelte itself, and borrows the Feliz DSL for building DOM. Feliz itself is a layer on top of React, Sutil is ground-up raw DOM building.
Re:Fable is a compiler that brings F# into the JavaScript ec... by eatonphil on Tuesday October 19, 2021 @04:47PM (#28923552)
> optimized for happiness

I like React and I like F#. But I never understand this kind of marketing. It's not that I want things optimized for pain. But I guess I'm just most interested in the technical choices and actual performance in the domain over my own happiness?

Re:Fable is a compiler that brings F# into the JavaScript ec... by headphoneswater on Tuesday October 19, 2021 @07:29PM (#28925022)
I'd imagine the folks who take up these projects require f# everywhere in their lives to obtain happiness
Re:Fable is a compiler that brings F# into the JavaScript ec... by isaacabraham79 on Wednesday October 20, 2021 @09:48AM (#28930640)
Since the F# transpiles into JS at runtime it's really no different than, say, TS in terms of performance concerns.

Unless you meant something else there?

Re:Fable is a compiler that brings F# into the JavaScript ec... by eatonphil on Wednesday October 20, 2021 @09:52AM (#28930687)
I mean that the marketing around "happiness" doesn't directly address any concerns that developers should have when evaluating a library. At best it's indirect if you assume that happiness means performance, but that's a big assumption.

So I'd rather marketing just say exactly what it's direct goals are rather than indirect ones like happiness.

> Since the F# transpiles into JS at runtime it's really no different than, say, TS in terms of performance concerns.

But as a particular point, this is hard to believe. TS tries to have no (or a minimal) runtime component whereas F# definitely must have a major runtime component.

Re:Fable is a compiler that brings F# into the JavaScript ec... by ilaksh on Tuesday October 19, 2021 @11:12PM (#28926340)
Does Feliz work with Fable?
Re:Fable is a compiler that brings F# into the JavaScript ec... by pharmakom on Wednesday October 20, 2021 @02:33AM (#28927443)
Feliz is an F# library designed to be used with Fable