Skip to content

How to load staple server in clasp

Nicolas Hafner edited this page Feb 15, 2019 · 10 revisions

You need same changes not yet in quicklisp, so

(defun set-timeouts (usocket read-timeout write-timeout)
#+:(or abcl clasp)
  (when write-timeout
    (warn "Unimplemented."))
  #-(or :clisp :allegro :openmcl :sbcl :lispworks :cmu :ecl :abcl :clasp)
  (not-implemented 'set-timeouts))
  • To load:
    • (load "~/quicklisp/setup.lisp")
    • (asdf:register-immutable-system :eclector)
    • (ql:quickload "staple-server" :verbose t)
  • after loading Staple, apply the following hotfix until #698 is fixed:
(defmethod plump-dom:serialize-object ((nodes array))
  (loop for index from 0 below (length nodes)
        do (plump-dom:serialize-object (aref nodes index))))
  • To start (staple-server:start)
  • To stop (staple-server:stop)

Clone this wiki locally