gpt4 book ai didi

lisp - 什么是最快的方案实现?

转载 作者:太空宇宙 更新时间:2023-11-03 18:41:15 25 4
gpt4 key购买 nike

显然,这将取决于您想要做什么:数值分析、线程、数据库等。我已经看过基准测试; Larceny 和 Bigloo 似乎排在前面。是否有任何 Scheme 的实现在几个不同的基准测试中表现良好?是否有任何可以创建运行速度比 SBCL 生成的代码更快的代码?我不明白为什么 SBCL 应该这么快 - Scheme 是一种比 Common Lisp 简单得多的语言!

最佳答案

http://community.schemewiki.org/?Stalin

http://en.wikipedia.org/wiki/Stalin_(Scheme_implementation)

来自维基百科:

Stalin (STAtic Language ImplementatioN) is an aggressive optimizing batch whole-program Scheme compiler written by Jeffrey Mark Siskind. It uses advanced flow analysis and type inference and a variety of other optimization techniques to produce code. Stalin is intended for production use in generating an optimized executable.

The compiler itself runs slowly, and there is little or no support for debugging or other niceties. Full R4RS Scheme is supported, with a few minor and rarely encountered omissions. Interfacing to external C libraries is straightforward. The compiler itself does lifetime analysis and hence does not generate as much garbage as might be expected, but global reclamation of storage is done using the Boehm garbage collector.

Stalin 似乎不再开发了。

关于lisp - 什么是最快的方案实现?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5691342/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com