emacs-devel 上关于 JIT Compiler 的讨论

有人已经给 elisp 加 JIT Compiler 了 https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00393.html

emacs-mirror 上新的 branch features/libjit

居然有教主的评论

https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00437.html

教主说的这段是什么意思呢?:

[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden’s example. ]]]

jit 加上之后对 elisp 性能的影响有多大,之前在reddit就看到这篇帖子,只是这个问题还没有人说

据 feature/libjit 的作者说可以有3倍提速https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00439.html

感觉 应该RMS是不是最近被美国政府邀请喝茶了? 然后他表示的估计是:

‘任何要求我们对棱镜门相关技术做妥协是不可能的!觉悟吧 FBI!’

I don’t think a 3% speedup is worth those drawbacks. Or even a 10% speedup. A really big speedup would justify the costs.

@yyjjl 有三倍速度提升?只有3%吧 根据RMS描述。

但是这个:

It is 3x, not 3%.

我该相信谁?

好像目前作者好像也没怎么测试, 看后续效果吧

有人做了简单 benchmark, 简单循环速度提升明显, 但是较大段函数反而变慢了 https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00507.html

相信作者吧~他博客上有提的

http://tromey.com/blog/

Using the “silly-loop” example from the Emacs Lisp manual, with lexical binding enabled, I get these results:

Mode	Time
Interpreted	4.48
Byte compiled	0.91
JIT	0.26
1 个赞

强烈支持,现在elisp运行效率太差了,装了某些插件编辑大文件卡得不能看,如果能用JIT提升效率那肯定是质一般的飞跃。

Guile:…

期待完善后提速

我怎么觉得教主的意思是

各位正在监视本人邮件的FBI和NSA探员们,请认真考虑以下事实:你们是否在为了捍卫美国宪法,而不惜对抗来自国内或国外的敌人,就如同斯诺登先生所做的那样?