Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用STG分发专有/封闭源代码Haskell库_Haskell_Compatibility_Ghc_Bytecode_Software Distribution - Fatal编程技术网

使用STG分发专有/封闭源代码Haskell库

使用STG分发专有/封闭源代码Haskell库,haskell,compatibility,ghc,bytecode,software-distribution,Haskell,Compatibility,Ghc,Bytecode,Software Distribution,阅读了一些问题,比如GHC在小版本之间完全缺乏二进制兼容性,我想知道是否可以使用STG(或核心或类似)作为分发模糊(即“几乎二进制”)专有库的手段,然后在最后阶段将其编译为机码 我知道STG不是为这个设计的,但是这个想法在某种程度上看起来很简洁 我记得,GHC无法从文件中读回这些中间语言。而且它们也不是完全稳定的,例如,Core将在8.0.aha中发生重大变化;但“不完全稳定”似乎比“完全不稳定”要好得多:

阅读了一些问题,比如GHC在小版本之间完全缺乏二进制兼容性,我想知道是否可以使用STG(或核心或类似)作为分发模糊(即“几乎二进制”)专有库的手段,然后在最后阶段将其编译为机码


我知道STG不是为这个设计的,但是这个想法在某种程度上看起来很简洁

我记得,GHC无法从文件中读回这些中间语言。而且它们也不是完全稳定的,例如,Core将在8.0.aha中发生重大变化;但“不完全稳定”似乎比“完全不稳定”要好得多: