Haskell在JVM上? [英] Haskell on JVM?

查看:137
本文介绍了Haskell在JVM上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在Sourceforge上存在JHaskell,但这个似乎是是空的和死的。

GHC使用LLVM作为编译器后端。将LLVM编译为Java字节码是个好主意还是可能的?或者也许使用不同的编译器后端?

您可能想要调查弗雷格。从该页面引用:


Frege是Haskell精神中的非严格,纯粹的函数式编程语言。



Frege程序被编译为Java并运行在JVM中。


基于对语言规范的简要介绍,Frege看起来几乎是一个Haskell克隆。也许Haskell精神这个短语很简单,旨在设置适当的期望。

I'm wondering if there is some way to make Haskell run on the JVM (compiled or interpreted)?

There exists JHaskell on Sourceforge but this one seems to be empty and dead.

GHC uses LLVM as compiler backend. Would it be a good idea or possible to compile LLVM to Java bytecode? Or maybe use a different compiler backend?

解决方案

You may want to investigate Frege. Quoting from that page:

"Frege is a non-strict, pure functional programming language in the spirit of Haskell."

"Frege programs are compiled to Java and run in a JVM."

Based on a brief perusal of the language specification, Frege looks to be nearly a Haskell clone. Perhaps the phrase "in the spirit of Haskell" is simpy intended to set the proper expectation.

这篇关于Haskell在JVM上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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