Bending the CLOS Mop for Java-Style Single Dispatch(atgreen.github.io)
atgreen.github.io
Bending the CLOS Mop for Java-Style Single Dispatch
https://atgreen.github.io/repl-yell/posts/clos-mop-dispatch/
2 comments
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.
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!
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!