生产在浏览器中运行的代码的最高效的Haskell JavaScript编译器是什么? [英] What is the most production-level Haskell to JavaScript compiler, to write code running in the browser?

查看:78
本文介绍了生产在浏览器中运行的代码的最高效的Haskell JavaScript编译器是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是在寻找具有十年历史记录的超强健解决方案,而是寻找可以在实际应用中使用的解决方案,而不仅仅是能够运行Hello World示例.

I am not looking for a necessarily super-robust solution with a 10-year track record, but for something that can be used in a real applications, and goes beyond just being able to run an Hello World example.

我的偏好是在服务器上运行编译器,因此我可以提前编译Haskell代码.当然,该解决方案不仅需要编译器,还需要使Haskell代码能够访问浏览器上可用的API(DOM,XHR…).

My preference is to run the compiler on the server, so I can compile Haskell code ahead of time. Of course, the solution would need to be more than just a compiler, and enable Haskell code to access the API available on the browser (DOM, XHR…).

脚注:到目前为止,我看过的项目似乎并没有得到积极维护,或者超出了能够运行"Hello world"的范围,甚至超出了项目描述的范围. /sub>

Footnote: the projects I have seen so far don't seem to be actively maintained, or to go beyond being able to run "Hello world", or in some case even to go beyond a project description.

推荐答案

此处有更完整的列表:

http://www.haskell.org/haskellwiki/The_JavaScript_Problem

还有Fay(尽管它只是haskell的一个子集)

and there is also Fay (although it is only a subset of haskell)

https://github.com/faylang/fay

这篇关于生产在浏览器中运行的代码的最高效的Haskell JavaScript编译器是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆