7 ms·
A large part of Emacs is the Lisp source. It would be great to have another interpreter written in Rust that reads the same Lisp files. What’s the breakout of
by melling 9y ago
A large part of Emacs is the Lisp source. It would be great to have another interpreter written in Rust that reads the same Lisp files.
What’s the breakout of C vs Elisp?
Ideally more of Emacs could be rewritten in Lisp with a smaller interpreter.
- mschaef 9y agoThe last numbers I heard were from a few years ago, but on the order of 250KLOC of C and 1MLOC of Emacs Lisp. There's a lot there (and some of it gets fairly exotic around redisplay, unexec, etc.)
- sillysaurus3 9y ago349,615 lines of C 1,632,280 lines of elisp
- znpy 9y agoAlso... I have dug the emacs sources for a while and i can testify that many times, function have two, three (sometimes more) actual implementations that gets actually built depending on configuration (example: sunos va dos vs linux vs win32 version of function foo). So... Yeah. The c lines are in a way, "overcounted".
- Ar-Curunir 9y agoNo... those lines still have to be maintained and kept in sync, otherwise you end up with bugs. So it's not over counting, because there is still work associated with these different implementations
- flavio81 9y ago>It would be great to have another interpreter written in Rust that reads the same Lisp files. Agree, but then we would have a new case of Greenspun's 10th rule.