F#/JavaScript tool?

后端 未结 4 1542
灰色年华
灰色年华 2021-02-14 17:43

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#. Functi

相关标签:
4条回答
  • 2021-02-14 18:18

    It's the WebSharper™ Platform.

    0 讨论(0)
  • 2021-02-14 18:18

    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 (e.g. 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.

    0 讨论(0)
  • 2021-02-14 18:27

    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.
    0 讨论(0)
  • 2021-02-14 18:28

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

    • Pit
    • FunScript
    0 讨论(0)
提交回复
热议问题