Settings

Theme

Bending the CLOS Mop for Java-Style Single Dispatch

atgreen.github.io

8 points by atgreen a month ago · 2 comments

Reader

atgreenOP a month ago

I managed to get a clojure REPL running on Common Lisp (SBCL) via OpenLDK, my Java JIT compiler and runtime on Common Lisp. This blog post gives an overview on how I manipulated CLOS's method dispatch to improve performance for single-dispatch methods calls.

wild_egg a month ago

Interesting! I wrote a Smalltalk in CL last year that did the same kind of mapping: Smalltalk classes compile to CLOS classes and every message is a CLOS method. Worked great at the start and then performance dropped off as more classes compiled.

I never took the time to get that sorted out but it smells suspiciously similar to what you described here. Thanks for the write up!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection