Hey, Goheeca!
I've been using Cygwin on Windows 7, (don't laugh), for development which doesn't have a port for
SBCL. So I went to their site, downloaded the x86 installer, ran it, started
SBCL, evaluated *features* and there was absolutely no thread package! So a quick search turned up:
SBCL wrote:
Threads are part of the default build on x86[-64] Linux only.
They are also experimentally supported on: x86[-64] Darwin (Mac OS X), x86[-64] FreeBSD, x86 SunOS (Solaris), and PPC Linux. On these platforms threads must be explicitly enabled at build-time, see INSTALL for directions.
It will be a few months before I have FreeBSD up and running again, so I almost gave up until I found
this, which is a fork of a fork of
SBCL by
Anton Kovalenko. I installed, ran it, and of course tested it:
Code: Select all
(make-thread (lambda()(write-line "Hello, world")))
;;; caught STYLE-WARNING:
; undefined function: MAKE-THREAD
;
; compilation unit finished
; Undefined function:
; MAKE-THREAD
pretty verbose. So then I remembered and tried:
Code: Select all
* (sb-thread::make-thread (lambda()(write-line "Hello")))
Hello
#<SB-THREAD:THREAD RUNNING {23E1BB49}>
so I'm not really sure what is going on, but I'm happy so far. I'll probably setup some sort of environment to play around with
SBCL. Thanks for this!
BTW, how the heck do I kill the thread?? o.0