News for hackers. Stuff that matters.
Re:Steel Bank Common Lisp by reikonomusha on Friday June 30, 2023 @09:01PM (#36545026)
SBCL is an implementation I love working with because updates are steady and the software is stable.

But the real superpower, in my opinion, is that, because the compiler and standard library are written in Common Lisp, you can reach in into the internals of SBCL for your own projects—as if SBCL were just another Lisp library. Is it advised to use unsupported APIs? Definitely not. But it's nice to be able to have seamless access to the same facilities and optimization tools (e.g., DEFTRANSFORM, DEFINE-VOP) that the SBCL uses for its own implementation. You can build impressively clear and highly efficient code this way, essentially by extending the compiler "in userspace".

Re:Steel Bank Common Lisp by kagevf on Friday June 30, 2023 @09:16PM (#36545170)
I wanted to get last modified dates from some files, and I tried to use OSICAT-POSIX, but it didn't work because it was missing a non-CL dependency, so I used SB-POSIX instead, and it worked as expected, no issues. I was glad to have that option, and for that particular code, cross-compatibility with other implementations wasn't a concern.
Re:Steel Bank Common Lisp by kaeland on Friday June 30, 2023 @09:31PM (#36545305)
I’ve been learning CL in my spare time and had no idea this was possible or even a distinction between CL implementations. Thanks for sharing.
Re:Steel Bank Common Lisp by lispm on Saturday July 01, 2023 @11:40AM (#36551267)
Most Common Lisp implementations have one or more compilers integrated into it. Most of them are written in itself. Thus, when the implementation provides the source for the compiler, you can explore/change the compiler like any other part of the Lisp code.
Re:Steel Bank Common Lisp by User23 on Friday June 30, 2023 @11:00PM (#36545969)
I have a real soft spot for DISASSEMBLE too. It’s magical to be able to instantly see how the optimizer handles your hot spots.
Re:Steel Bank Common Lisp by aidenn0 on Friday June 30, 2023 @11:41PM (#36546261)
And if you profile code, then you see assembly level profiling information too!
Re:Steel Bank Common Lisp by dunefox on Saturday July 01, 2023 @05:02AM (#36548199)
That's what I like about Julia as well with @code_native, @code_llvm, etc. https://docs.julialang.org/en/v1/stdlib/InteractiveUtils/#In...

It's just nice to have inside the language itself.

Re:Steel Bank Common Lisp by perihelions on Saturday July 01, 2023 @04:37AM (#36548070)
What's a good introduction for learning SBCL compiler internals like VOP's?
Re:Steel Bank Common Lisp by mtlmtlmtlmtl on Saturday July 01, 2023 @05:15AM (#36548259)
https://pvk.ca/Blog/2014/08/16/how-to-define-new-intrinsics-...

Some quick googling led me to this. Can't vouch for it though, since I need to learn this stuff too!

Can't find much documentation for DEFTRANSFORM though, unfortunately.