This is a port of the CL-HTTP system to SBCL (Steel Bank Common Lisp) for macOS, Linux, and other UNIX platforms. Version 1.4.1. Tested on SBCL 2.5.0 on macOS (Apple Silicon) with no known problems. System requirements ------------------- To run CL-HTTP under SBCL you need: SBCL 2.x on macOS, Linux, or UNIX. SBCL must be built with threading support (the default). The CL-HTTP portable source tree (~/git/cl-http/ by default). Third-party libraries for SSL/TLS (20 libraries, see below). Setting up third-party libraries --------------------------------- CL-HTTP uses pure-tls for TLS 1.3 support. pure-tls and its 20 transitive dependencies must be cloned as git working copies into ~/git/third-party/. A setup script is provided: From the devo mirrors on dev.cl-http.com (recommended): cd ~/git/cl-http/sbcl ./setup-third-party.sh --devo --devo-user The devo mirrors include CL-HTTP-specific patches (e.g., pure-tls PSK session resumption fixes) that have not yet been upstreamed. Alternatively, clone directly from the upstream origin repositories: ./setup-third-party.sh --origin To check which libraries are present or missing: ./setup-third-party.sh --check To clone into a different directory: ./setup-third-party.sh --target /path/to/third-party If you use a non-default directory, update *third-party-directory* in translations.lisp to match. The required libraries are: pure-tls TLS 1.3 implementation (pure Common Lisp) ironclad Cryptographic toolkit trivial-gray-streams Gray streams portability flexi-streams Flexible bivalent streams alexandria Common Lisp utility library cl-base64 Base64 encoding/decoding trivial-features Feature flag consistency idna International domain name encoding bordeaux-threads Threading portability usocket Socket portability cl-cancel Cancellation and deadlines split-sequence Sequence splitting utility atomics Atomic operations portability precise-time Precise time measurements global-vars Global variable utilities trivial-garbage Finalizers and weak references documentation-utils Documentation helper utilities trivial-indent Indentation hints for SWANK cffi Common Foreign Function Interface babel Character encoding conversions Compiling and running CL-HTTP ----------------------------- 1) Clone the third-party libraries (see above). 2) Load sbcl/start.lisp: (load "~/git/cl-http/sbcl/start.lisp") Or from the command line: cd ~/git/cl-http/sbcl sbcl --load start.lisp The loading script asks various questions, such as whether you want to compile, whether to include the proxy, LLM interface, or MCP server. For batch mode with defaults: sbcl --load start.lisp -- --batch For cold compile (force full recompilation): sbcl --load start.lisp -- --cold-compile --batch The first compilation takes several minutes. Subsequent loads use cached fasl files and complete in seconds. 3) The server is accessible at http://localhost:8002/ by default. To change the port, use --port: sbcl --load start.lisp -- --batch --port 9000 To stop the server: (http:disable-http-service :on-ports '(8002)) If your source tree directories differ from the defaults, edit translations.lisp and update the path variables. Please report any bugs to bug-cl-http@ai.mit.edu.