Re: [Wang Zai Xiang] 学习函数式语言
Ideas on implements a haskell vm on JVM:
- define a bytecode one base of STG, the haskell bytecode file has suffix as .klass or packaged in .kjar
- the ghc provide a haskell to haskell bytecode(need to modify the ghc little)
- a KVM now can load klass and execute it
- KVM translate klass to java class
- then it is runed on JVM
- the ghc is compiled to ghc.kjar and can be loaded to compile source to klass and then execute via the KVM, in the case, we provide a interpreter mode.
0 Comments:
张贴评论
<< Home