简体   繁体   中英

F#/JavaScript tool?

At a UG meeting I heard about a tool called "web sharper" or "web sharpener" or something like that which is supposed to make it easy to generate JavaScript from F#. Functional JavaScript or something like that.

Unfortunately, I seem to have gotten the name wrong and I cannot find it. Does anyone know the name and have a link?

There are currently three projects that attempt to generate JavaScript from F#:

  • Fable (updated 2019) is an open-source F# to JavaScript compiler with an active community and plenty of additional libraries. If you are looking for an answer nowadays, this is where you should start!
  • WebSharper is a commercial product by IntelliFactory, but as far as I know it is the most advanced solution currently available.

  • I'm the author of F# WebTools - the project is currently unmaintained (but I'm hoping to get it working again one day!). It has some interesting features that are not present in any other solutions (eg monads are used to check whether you correctly call server from client, also it has a sophisticated system for maintaining state in controls that run on both client and server-side).

  • FSharp.JavaScript project is more recent and more lightweight and also open source - as far as I know it only translates F# to JavaScript (without additional features), but that may often be exactly what you want.

I know of the following alternatives to WebSharper which compile F# to JavaScript (using HTML5 APIs):

This question is old question, but currently (2019) there is a:

  • Fable , which is a JS compiler powered by Babel.
  • Bolero , which is F# with Blazor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM