简体   繁体   English

F#/ JavaScript工具?

[英]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#. 在UG会议上,我听说过一个名为“web sharper”或“web sharpener”的工具或类似的东西,它可以让你轻松地从F#生成JavaScript。 Functional JavaScript or something like that. 功能JavaScript或类似的东西。

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#: 目前有三个项目试图从F#生成JavaScript:

  • Fable (updated 2019) is an open-source F# to JavaScript compiler with an active community and plenty of additional libraries. Fable (2019年更新)是一个开源的F#到JavaScript编译器,具有活动社区和大量其他库。 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. WebSharper是IntelliFactory的商业产品,但据我所知它是目前最先进的解决方案。

  • I'm the author of F# WebTools - the project is currently unmaintained (but I'm hoping to get it working again one day!). 我是F#WebTools的作者 - 该项目目前尚未维护(但我希望有一天能让它再次运行!)。 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). 它具有一些有趣的功能,这些功能在任何其他解决方案中都不存在(例如,monad用于检查您是否正确地从客户端调用服务器,还有一个复杂的系统用于维护在客户端和服务器端运行的控件中的状态)。

  • 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. FSharp.JavaScript项目更新,更轻量级,也是开源的 - 据我所知,它只将F#转换为JavaScript(没有附加功能),但这通常可能正是您想要的。

I know of the following alternatives to WebSharper which compile F# to JavaScript (using HTML5 APIs): 我知道WebSharper的以下替代方法,它将F#编译为JavaScript(使用HTML5 API):

This question is old question, but currently (2019) there is a: 这个问题是老问题,但目前(2019年)有一个:

  • Fable , which is a JS compiler powered by Babel. 寓言 ,这是一个由Babel驱动的JS编译器。
  • Bolero , which is F# with Blazor. Bolero ,是Blazor的F#。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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