!yXBwWNYGCPdITQVxQG:matrix.org

Common Lisp

32 Members
Common Lisp2 Servers

Load older messages


Timestamp Message
3 Feb 2019
04:28:31@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredso if I define a variable before main, and it's defined by something that connects to the internet (ie weather), it will get redefined everytime the image is "executed"?
04:28:56@theemacsshibe:matrix.org#'no-defun-allowednope, you have to arrange for that in your toplevel function
04:29:03@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredoh?
04:30:03@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundred I tried adding defvar onside main but didn't like that.
And my research for a non-global defvar yieled nothing that seemed usable....
04:30:15@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundred*inside
04:30:19@theemacsshibe:matrix.org#'no-defun-allowedyeah, defvar has to be toplevel
04:30:35@theemacsshibe:matrix.org#'no-defun-allowed but something like (setf *weather-information* (get-weather-info)) inside the toplevel function would work
04:30:53@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredaight lemme try that thanks btw
04:39:10@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredit tells me "undefined variable"
04:40:37@theemacsshibe:matrix.org#'no-defun-allowed put (defvar *weather-information*) in your file too
04:40:40@theemacsshibe:matrix.org#'no-defun-allowedare you new to CL?
04:40:50@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredyes very new
04:41:30@theemacsshibe:matrix.org#'no-defun-allowedwell, you might not be excited by the results of s-l-a-d, namely the file size, and it's much easier to work in an integrated environment with CL
04:42:32@theemacsshibe:matrix.org#'no-defun-alloweds-l-a-d writes at least 17mb of data, mostly the compiler and runtime, and Climacs dumped to about 50mb last time i checked
04:45:23@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredand what is s-l-a-d?
04:45:39@theemacsshibe:matrix.org#'no-defun-allowedshorthand for save-lisp-and-die
04:45:54@theemacsshibe:matrix.org#'no-defun-allowed emacs-y shortenings like that are commonplace in #freenode_#lisp:matrix.org
04:47:59@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredmeaningful
04:50:06@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredSSL is doin a derp now
05:04:06@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredbut it only happens with s-l-a-d'd script
05:04:20@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundred if I just do (main) it works fine
05:08:07@theemacsshibe:matrix.org#'no-defun-allowedWhat does it say?
05:08:36@theemacsshibe:matrix.org#'no-defun-allowed Maybe it didn't link the library, since I think SSL uses CFFI.
05:10:09@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundred SSL initialization error: Can't create new SSL CTX
05:11:23@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundred
(CL+SSL:MAKE-CONTEXT :METHOD NIL :DISABLED-PROTOCOLS NIL :OPTIONS NIL :SESSION-CACHE-MODE 2 :VERIFY-LOCATION "/home/username/quicklisp/dists/quicklisp/software/dexador-20181018-git/certs/cacert.pem" :VERIFY-DEPTH 100 :VERIFY-MODE 1 :VERIFY-CALLBACK NIL :CIPHER-LIST #<(SIMPLE-BASE-STRING 383) ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-RSA-RC4-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AE... {1000B6F96F}> :PEM-PASSWORD-CALLBACK CL+SSL::PEM-PASSWORD-CALLBACK)
   source: (ERROR 'SSL-ERROR-INITIALIZE :REASON "Can't create new SSL CTX"
                  :QUEUE (READ-SSL-ERROR-QUEUE))
05:15:51@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredit sounds a lot like this error, except if that's the case it's the API's fault not mine: https://stackoverflow.com/questions/42512348/access-https-page-in-common-lisp-error
05:23:50@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundred a (ql:quickload :cffi) fixes it
05:51:08@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredthank you!
05:51:14@threenineonefourtyonehundred:matrix.orgthreenineonefourtyonehundredfo da help
14 Feb 2019
09:53:35@pfm:matrix.orgpfm changed their profile picture.

There are no newer messages yet.


Back to Room List