Using deftransform/defknown in SBCL internals to get the compiler to transform user authored functions

后端 未结 2 1082
旧巷少年郎
旧巷少年郎 2021-01-13 07:58

At the end of section 6.5 in the current SBCL manual, we have the following quote:

If your system\'s performance is suffering because of some construc

2条回答
  •  天涯浪人
    2021-01-13 08:03

    You achieve what you want in portable Common Lisp using define-compiler-macro

    AFAIK reading the SBCL sources is the only way to learn how deftransform works. But before diving into SBCL sources checkout Paul Khuong's Starting to Hack on SBCL or at the very least The Python Compiler for CMU Common Lisp it links to to have an overview of how SBCL works.

提交回复
热议问题