freenode/#lisp - IRC Chatlog
Search
15:56:27
mrrevolt
hello https://usercontent.irccloud-cdn.com/file/wqNCiTwM/MVIMG_20200330_210636%7E2.jpg
15:59:22
Bike
eta: http://www.sbcl.org/manual/#Waitqueue_002fcondition-variables maybe you want this?
16:00:32
eta
essentially my problem is that the main thread of the program doesn't do much except get woken up by a timer
16:03:22
Bike
wait, so you're saying you have a thread that just does some action at certain intervals? something like that?
16:10:20
beach
mrrevolt: If you want people to click on your link, you should tell them what they might expect if they do.
16:27:02
eta
I mean I already overwrote *debugger-hook* with something that aborts the program, so ;P
16:28:49
eta
I loaded the ASDF system, but then I try connecting and I get a "can't locate module: swank-io-package::swank-sbcl-exts"
16:32:31
pjb
eta: note that ~A is just princ, so you cannot use princ either. What you want is to print the objects yourself, in the format you need them. Note that print-object methods may force print newlines. (mine do, because I don't know enough about the pretty printer to make it optional or pretty-printer directed).
16:33:01
pjb
eta: this means, that for standard-objects you will also have to print the slots yourself, using the format you need to print them.
17:02:34
pjb
eta: when you type M-x slime RET, you can check what happens in the buffer *inferior-lisp* ; you may have an error in your rc files.
17:03:25
pjb
eta: in that case, you may want to edit the contrib list, or use quicklisp slime-helper to help install and use it. https://github.com/quicklisp/quicklisp-slime-helper
17:04:05
pjb
eta: on that server, you should want to install quicklisp and use the quicklisp slime helper to install swank.
17:04:35
pjb
eta: yes, if you use M-x slime-connet, then *inferior-lisp* won't be used. Slime will communicate thru the network to the remote CL.
17:05:03
pjb
eta: you can indeed load swank and save an image with it. But you will have to start the swank server when you boot the image.
17:06:51
pjb
But for the contrib, indeed, additionnal CL files might have to be loaded from an external file. I don't know if there is a way to preload them automatically. Hacking swank, you could probably set up a lisp image with them preloaded.
18:16:45
Bike
it won't work, just to skip ahead a bit. case keys aren't evaluated so they aren't macroexpanded.
18:21:45
jackdaniel
historical note: define-symbol-macro was added for compatibility with islispa long with the lambda macro
18:25:22
jmercouris
backing var is in a separate package so that you can't just setf it to like a new value or something?
18:28:31
_death
no, the backing var is just to provide a storage place.. the point is that with (deflex foo 42) (defun tofu () (* foo 2)) (let ((foo 123)) (tofu)) => 84
18:31:42
jmercouris
so using deflex is the closest you could get to a constant in something like CL?
18:32:58
_death
here's a toy I wrote some years ago https://gist.github.com/death/51c42a208445cd797b119aadf30c0245
18:41:12
jmercouris
we used to use a database for bookmarks for example in Next, but found saving SEXPs to a file much more flexible
18:42:34
_death
sqlite is not a traditional database management system (see https://www.sqlite.org/whentouse.html ) .. how were sexps more flexible?
18:49:20
jcowan
and so is ASN.1 BER if you ignore the schema part of it, which has most of the complexity
18:51:36
jackdaniel
not using a database for data managament is a bad practice, *especially* that there is such great solution as sqlite
18:52:57
jackdaniel
having all in plain text as sexps gives you initially impression, that you do not have to update the schema, but then when you need to update it (i.e you change the format and you update on a system which already runs), you lose big
18:53:48
jmercouris
you don't need to update it, you can have migrated and unmigrated data in the same file
18:53:59
aeth
text is for configuration, not data... you have to manually migrate if you put it in s-expressions... or, I guess, version it
18:54:05
jmercouris
and when you do need to update it, well you would be writing SQL transformations anyways
18:54:49
jackdaniel
this is an example where a difference between "simple" and "easy" is very apparent
19:04:23
buffergn0me
Another plus for s-expressions in files is less dependencies - the code and data will be easier to read and the system to run 20 years from now
19:09:29
_death
if you have a flat file of sexps, then looking up the value for a particular variable would be slow
19:10:20
_death
these arguments are age old.. when I wrote this defpersist toy, I chose sqlite because it worked well with my perceived use cases
19:11:32
jackdaniel
and before dbm there were text files, and before that there were sheets of paper ,)
20:58:51
adam4567
My .sbclrc contains quicklisp's location ".quicklisp/setup.lisp"..etc, that seems OK
20:59:03
adam4567
-rw-rw-r-- 1 adam adam 3985 Mar 19 23:56 /home/adam/.quicklisp/local-projects/cm/cm.asd
20:59:36
adam4567
Unhandled LOAD-SYSTEM-DEFINITION-ERROR in .. : Error while trying to load definition for system from pathname /home/adam/.quicklisp/quicklisp/: Can't LOAD a directory: #P"/home/adam/.quicklisp/quicklisp/".