News for hackers. Stuff that matters.
Re:BuckleScript: write JavaScript faster, safer and smaller by aikah on Saturday January 21, 2017 @04:48AM (#13449524)
> This looks pretty interesting. It makes me want to learn OCaml. :-P

You can learn F# with dotnet core, which has a better ecosystem for web development. OCaml is quite poor in that domain.

Re:BuckleScript: write JavaScript faster, safer and smaller by yawaramin on Saturday January 21, 2017 @12:59PM (#13451197)
Have you heard of Ocsigen/Eliom? It's a complete OCaml system for web development.
Re:BuckleScript: write JavaScript faster, safer and smaller by KurtMueller on Saturday January 21, 2017 @10:28AM (#13450432)
Are you speaking from experience? If so, do you have any or know of any resources I could look at? Also, what type of backend are you using with F# and dotnet core?
Re:BuckleScript: write JavaScript faster, safer and smaller by ZenoArrow on Saturday January 21, 2017 @12:26PM (#13451051)
If you want the BuckleScript equivalent for F#, that would be Fable.

https://github.com/fable-compiler/Fable/blob/master/README.m...

There's a newer branch called Fable Arch which I believe is focused on promoting the Elm Architecture for structuring web apps:

https://github.com/fable-compiler/fable-arch

FunScript is another alternative:

http://funscript.info/

Re:BuckleScript: write JavaScript faster, safer and smaller by elbear on Saturday January 21, 2017 @04:18PM (#13452216)
Elm Architecture for F# is Elmish: https://github.com/fable-compiler/fable-elmish
Re:BuckleScript: write JavaScript faster, safer and smaller by Paradigma11 on Saturday January 21, 2017 @01:36PM (#13451374)
I do not think that Arch is a newer branch but a framework that uses the standard fable compiler.
Re:BuckleScript: write JavaScript faster, safer and smaller by Paradigma11 on Saturday January 21, 2017 @12:45PM (#13451141)
One popular web server is https://suave.io/ You can use http://fable.io/ for f# -> js transpilation. One big advantage is that you are able to use ts definitions for foreign js libraries. The js is generated by babel which is also nice.

There are several active projects and bindings that you can take a look at there: https://github.com/fable-compiler

Re:BuckleScript: write JavaScript faster, safer and smaller by KurtMueller on Saturday January 21, 2017 @04:33PM (#13452264)
What kind of data store do you use with F#? Some sort of SQL variant?
Re:BuckleScript: write JavaScript faster, safer and smaller by Paradigma11 on Sunday January 22, 2017 @10:46AM (#13455625)
https://blog.geist.no/suave-io-introduction-and-example-part...

"Database access from a Suave.IO app isn't any different from database access from any other .NET / F# app you write."

Any way you like, really.