To set up Bordeaux Threads in SBCL (on Gentoo Linux with slime)…
- Download Bordeaux Threads from their releases page.
- Clone Alexandria, because it’s a dependency and BT won’t install without it. I couldn’t find a download link so I cloned (via git).
-
Link SBCL to their asd files:
cd /usr/share/common-lisp/systems ln -s /wherever/you/put/alexandria/alexandria.asd . ln -s /wherever/you/put/bordeaux-threads/bordeaux-threads.asd .
-
Start slime and load Bordeaux Threads:
CL-USER> (asdf:operate 'asdf:load-op 'bordeaux-threads) ; compiling file ...
-
You should now be able to use the bt package:
CL-USER> (bt:make-thread (lambda () 'foo) #<SB-THREAD:THREAD "Anonymous thread" RUNNING {CE89F39}>