Setting up Bordeaux Threads in SBCL

To set up Bordeaux Threads in SBCL (on Gentoo Linux with slime)…

  1. Download Bordeaux Threads from their releases page.
  2. 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).
  3. 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 .
    
  4. Start slime and load Bordeaux Threads:

    CL-USER> (asdf:operate 'asdf:load-op 'bordeaux-threads)
    
    ; compiling file ...
    
  5. You should now be able to use the bt package:

    CL-USER> (bt:make-thread (lambda () 'foo)
    #<SB-THREAD:THREAD "Anonymous thread" RUNNING {CE89F39}>
    

Last modified: 21/11/2013 Tags: , ,

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top