Skip to content

How to load staple server in clasp

Karsten Poeck edited this page Feb 14, 2019 · 10 revisions

You need same changes not yet in quicklisp, so

(defgeneric serialize-object (node)
...
(:method ((nodes vector))
    (loop for child across nodes
       do (serialize child *stream*)))
  #+clasp
  (:method ((nodes array))
    ;;; better be one-dimensional
    (if (null (rest (array-dimensions nodes)))
        (loop for index from 0 to (length nodes)
           do (serialize (aref nodes index) *stream*))
        (warn "Multilevel-array in serialize-object ~a ~%" nodes)))
  #+clasp
  (:method ((nodes t))
    nil)
  )
    • hunchentoot-v1.2.38 with the following change in set-timeouts.lisp
(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)
  • To start (staple-server:start)
  • To stop (staple-server:stop)

Clone this wiki locally