<div dir="ltr"><div><div></div>Hello! I started porting SBCL to DragonFlyBSD. Previous (and only) attempt was <a href="http://leaf.dragonflybsd.org/mailarchive/users/2006-05/msg00108.html">http://leaf.dragonflybsd.org/mailarchive/users/2006-05/msg00108.html</a> as far as I know. Google gives no more info on "sbcl on dragonfly" except this link.<br>
<br></div><div>So I forked sbcl/sbcl repo from github a while ago and added support for DragonFly on x86-64 platform (with multithreading support). I even build stumpwm with sbcl and tried hunchentoot web server. Hunchentoot can handle 100 connections/second. This rate is almost its limit with one-thread-per-connection model.<br>
<br></div><div>Link to repo:<br><a href="https://github.com/shamazmazum/sbcl-dragonfly">https://github.com/shamazmazum/sbcl-dragonfly</a><br></div><div><br></div><div>There is a problem nevertheless: use of symbol-value-in-thread in sb-concurrency tests causes sbcl to crash (not to ldb, but crash completely!).<br>
<br></div><div>So I have some questions:<br></div><div>1. src/runtime/Config.x86-64-freebsd states that we must use 1:1 threading not m:n threading and uses lthr for that purpose. It seems that there isn't lthr in dragonfly, only lpthread is present. Should I use it? Is 1:1 threading supported? (It seems to work with lpthread anyway).<br>
</div><div>2. SBCL uses GCC TLS with (and only with) FreeBSD. I heard something about lack of "native" TLS in FreeBSD. Is it true? Is TLS present on DragonFly?<br></div><div>3. Can I build and install x86 environment and virtual kernel on x86-64 machine? I prefer not to use VirtualBox if there is possibility to use vkernel. This is needed to port SBCL to x86 too.<br>
</div><div><br></div><div>Sorry for possibly stupid questions, I am new both to DragonFlyBSD and SBCL internals.<br></div><div><br></div><div>Any help of SBCL/Common Lisp hackers would be appreciated. I have really no idea how to fix sb-concurrency right now.<br>
</div><div></div></div>