News for hackers. Stuff that matters.
Re:Emacs Bytecode Internals (2014) by barrkel on Tuesday December 27, 2016 @10:05AM (#13263487)
Bytecode is not a novel idea and I wouldn't expect it to be difficult at all to map the well-known concepts to the particulars of the Emacs implementation.

Documentation of source code is often overrated IMO. Most software isn't difficult to understand if it's at least somewhat well-structured - and when the structure is poor, documentation doesn't help much.

It's usually the application domain that's hard to understand, because that's where global invariants and assumptions live.

(Don't get me wrong: documentation of module boundaries is great, particularly if there are many users of the module, up until you get to APIs, where documentation is essential for a decent experience. Documentation of the innards of software, not so much.)

Re:Emacs Bytecode Internals (2014) by imglorp on Tuesday December 27, 2016 @10:32AM (#13263667)
It was probably a novel application when it was first implemented in emacs 1985-ish (going by the bytecomp.el header comment by JWZ). First editor bytecode? First lisp bytecode? First interpreter bytecode?

O-code predates it by a couple decades for general purpose compilation: https://en.wikipedia.org/wiki/O-code

Re:Emacs Bytecode Internals (2014) by abecedarius on Tuesday December 27, 2016 @05:48PM (#13266908)
Peter Deutsch published a paper on a compact Lisp bytecode in the 70s, http://www.softwarepreservation.org/projects/LISP/interlisp-.... IIRC the Smalltalk-80 bytecode was pretty similar, descended from Smalltalk-76.
Re:Emacs Bytecode Internals (2014) by kazinator on Tuesday December 27, 2016 @08:35PM (#13267796)
The cell counts seem to be off by one in the Appendix examples (REVERSE and SUBST lambdas). I count 35 and 40 conses, respectively. :)
Re:Emacs Bytecode Internals (2014) by barrkel on Tuesday December 27, 2016 @02:23PM (#13265446)
The context of my comment is of course in maintaining the source - the comment I was replying to was concerned with bus numbers.

By the time it was implemented for emacs, many, if not most CS students would have been familiar with p-code as used for UCSD Pascal etc.