miniblog.
← Back to all posts
Sep 29, 2016 at 01:01
It's remarkable how much of Emacs' byte-compiler optimiser is unchanged from 1992!
Blaming emacs/lisp/emacs-lisp/byte-opt.el at master · emacs-mirror/emacs
Mirror of GNU Emacs. Contribute to emacs-mirror/emacs development by creating an account on GitHub.
Wilfred Hughes
Related Posts
May 21, 2018 at 21:53
Emacs, or perhaps lisps in general, are a profoundly weird development experience. I've found a bug with byte compilation, so I'm stepping through the byte-compiler live in my current Emacs instance and amazingly everything works.
Wilfred Hughes
Shared words: Emacs, byte, compiler Score: 61.9
Feb 7, 2017 at 23:40
You can actually teach the Emacs byte-compiler to use specific opcodes for your functions! I've made dash.el faster:
Ensure that -first-item is as fast as car by Wilfred · Pull Request #210 · magnars/dash.el
Add symbol properties to -first-item so the byte-compiler compiles calls to the car opcode. This ensures that -first-item has the same performance as car. Add symbol properties to -first-item so th...
Wilfred Hughes
Shared words: Emacs, byte, compiler Score: 61.9
Dec 12, 2016 at 08:19
Emacs tip: add lexical-binding: t to your elisp files. This makes closures easier to reason about and lets the byte compiler find more bugs.
Wilfred Hughes
Shared words: Emacs, byte, compiler Score: 61.9