Re:Emacs Lisp Lambda Expressions Are Not Self-Evaluating
by kazinator on Saturday February 24, 2018 @10:32AM
(#16453628)
The useful thing about unexec is that it is general. I ported it from Emacs to GNU Make about ten years ago. I was then able to instantly run incremental make jobs (where the rule tree of included Makefiles was so large that it otherwise took 30 seconds between typing make and the command to rebuild your file being dispatched!) GNU Make doesn't use any special data structures; just malloced structs with arbitrary pointers that no garbage collector is informed about.
Re:Emacs Lisp Lambda Expressions Are Not Self-Evaluating
by usernam on Saturday February 24, 2018 @06:12AM
(#16452770)
But is it? I don't actually think it's bad design. Having system images of a pre-loaded heap is pretty common in many systems and languages. How such systems are generated and loaded vary, but they always come with some tricky issues. This is especially common in lisp-like systems.
The whole lisp implementation is emacs is a bit crummy, but I don't get the excessive criticism against unexec. I consider lexical binding a much a much bigger oversight.
Re:Emacs Lisp Lambda Expressions Are Not Self-Evaluating
by taeric on Friday February 23, 2018 @02:20PM
(#16448614)
Few things are pretty "under the covers." In large, that is why we have cover panels, period. Have you looked under the panel of your computer lately? :)
Re:Emacs Lisp Lambda Expressions Are Not Self-Evaluating
by Steltek on Friday February 23, 2018 @02:35PM
(#16448718)
What an interesting question! Many computers are an impenetrable "unibody" or otherwise glued-together cryptex these days :).
Guile/Emacs offers a way to clear a staggering amount of baggage, offering some great features, while mostly keeping add-on packages compatible. You'd think it would get more love. I use Emacs (having switch from Vim because of elisp) but I'm definitely not well positioned to do anything here :/. As it is, I'm a very strange Emacs user: no emacs-server and always '-nw' inside tmux.
Re:Emacs Lisp Lambda Expressions Are Not Self-Evaluating
by taeric on Friday February 23, 2018 @02:39PM
(#16448753)
Even the unibody ones are a mess, if you can get under the body. That is half the point of having the body, after all.
Not to say we shouldn't shake off some baggage. Just at some point having things "tidy" is purely an indulgence.
So then comes the perennial reminder of Guile/Emacs. There'd be no unexec (in theory) and while this appears to be design-intent from a Common Lisp, maybe it could be cleaned up in bytecode. The last Guile/Emacs push was, I think, a Google SoC project with some community followup from someone who knows far more about Emacs and Lisp than I. Guile 2.2 is out and is really sweet (fast, feels modern, kind of exciting). I wonder if it's time for another push to completion? Has anyone gave the experimental branch a spin lately?