News for hackers. Stuff that matters.
Re:Bringing GNU Emacs to native code [video] by slightwinder on Monday May 04, 2020 @11:44AM (#23069363)
I wonder whether a modern modularized architecture might be the better way to handle this. Similar to neovim where you have a backend which communicates with a detatched frontend and other backends over some rpc-mechanism.

Refactor the existing emacs to work headless and become the legacy-core, while also establishing channels to attatch any other core and frontend.

Re:Bringing GNU Emacs to native code [video] by Myrmornis on Monday May 04, 2020 @11:41PM (#23076254)
https://github.com/xi-editor is an example of the architecture you're referring to I believe. Xi's README makes it clear that very high performance is one of the main goals: in particular it mentions the latency between keypresses and screen painting. To what extent does this RPC-based architecture limit performance compared to a single-process architecture? I know that the original author of Xi very much knows what he is doing, so I guess the answer is "it doesn't" -- I was just hoping to be educated on this point.
Re:Bringing GNU Emacs to native code [video] by gpderetta on Monday May 04, 2020 @12:35PM (#23070102)
An important optimization discussed in the video is to optimize through call into C code (i.e elisp->C->elisp). adding RPC at the boundaries would go in the opposite direction.
Re:Bringing GNU Emacs to native code [video] by slightwinder on Monday May 04, 2020 @04:06PM (#23072663)
It's optimization for a single process vs multiple processes.

Additionally, when you free up your architecture and loose up the internal bindings between different areas, you sometimes can open chances for significant improvments which prior where not possible, thus still be faster with a "worse" solution.

Considering how old GNU Emacs is, how much historical problems it has and how often you hear that this and that can't be optimized for this and that reason, this seems like such a situation where loosing up would open faster roads long term.

Re:Bringing GNU Emacs to native code [video] by WhatIsDukkha on Monday May 04, 2020 @02:25PM (#23071491)
Well this is not to my taste but I take it as a proof of existence that an rpc at the boundary could make for some amazing things -

https://github.com/rhysd/NyaoVim