3 ms·
> Crazy side of me would like to see it fully written in a safe(r) language like rust, swift or zig. Emacs Lisp is a very safe language. Even though the Emacs
by inkyoto 2y ago
> Crazy side of me would like to see it fully written in a safe(r) language like rust, swift or zig.
Emacs Lisp is a very safe language. Even though the Emacs core is written in C, that is immaterial and impalpable to Emacs users as they only interact with Emacs Lisp. What benefits would Rust / Swift / Zig bring to an average Emacs user?
> Basically your config would be a recompiled subsystem, loaded at runtime, or you'd recompile the whole editor.
elisp -> bytecode compilation in Emacs… predates humanity?
https://www.gnu.org/software/emacs/manual/html_node/elisp/Byte-Compilation.html https://www.gnu.org/software/emacs/manual/html_node/elisp/By...
The entire stash of Emacs packages compiles into the byte code at the package installation time, anyway. Personally, I even byte-compile-file my ~/.emacs to eke out an imperceptible speed improvement at the startup time, which is slightless less than entirely useless but it warms my heart that I can do it.
Recent versions of Emacs can also compile Elisp into the native code:
https://www.gnu.org/software/emacs/manual/html_node/elisp/Native-Compilation.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Na...
> Better key handling and none c-x nonsense.
Perhaps you do not need Emacs then.
- binary132 2y agoThe pseudo-JIT provided by gccjit is really quite good. I’ve been using emacs for a pretty long time and it is definitely the most noticeable improvement they’ve added so far (and it even works seamlessly out of the box on windows!)
- inkyoto 2y agoIt is exceptionally good, indeed. Emacs now starts up in an instant (< than 1 sec) from the cold to a fully working state, which includes loading a hefty .emacs
- kazinator 2y ago> elisp -> bytecode compilation in Emacs… predates humanity? Actually, I believe it was developed by HackerNews hater Jamie Zawinsky.
- inkyoto 2y agojwz also predates humanity.