Search
Monday, 20th of March 2017, 19:41:29 UTC
19:42:19
pebblexe
oh, I didn't know that. thanks!
19:42:50
Bike
your lisp image has a persistent state, calling load and whatnot just alters that state
19:43:03
Bike
defun adds a new function, but if it's commented out that just means it doesn't add a new function, not that it removes a function
19:43:09
daemoz
Bike: How do I undefine something from the slime-inspect menu? Just delete everything and press enter?
19:43:14
pebblexe
what does this error mean?: https://gist.github.com/pebblexe/31503c36172e43bc4c21ceb176d47d56
19:43:51
pebblexe
I've run manual disk checking and it hasn't found anything
19:43:56
Bike
daemoz: you can remove particular methods by going to the line with the method and hitting enter. where it says [remove method]
19:44:25
nyef
pebblexe: I'm not too familiar with CCL, but I think that it's saying that the file underlying whatever stream that is was closed?
19:44:39
nyef
Without the stream itself being informed about it.
19:44:44
daemoz
Bike: Oh, is this specific to CLOS? You cannot use this to undefine functions?
19:45:16
Bike
i don't think the slime inspector has that, no
19:45:22
Bike
you can just do fmakunbound
19:57:31
pebblexe
now I am getting this error trying to (ql:quickload "optima") https://gist.github.com/pebblexe/fd096a27962d9f81e6a5f7b8cac3c4b8
19:58:17
pebblexe
I think it's just my hdd, but not sure
19:59:37
pebblexe
yeah and in sbcl I get: https://gist.github.com/pebblexe/d30811426c3a0109d6108fedaff04358
19:59:46
pebblexe
from trying to quickload optima
20:00:36
jasom
pebblexe: that's a DNS resulution failure it looks like
20:13:17
websterbudding
I'm having trouble parsing json strings in lisp. Both cl-json and yason require outer double quotes and escaped inner double quotes. But JSON.stringify does not generate escaped double quotes.
20:18:30
isoraqathedh_
** NICK isoraqathedh
20:18:36
pebblexe
how do I use a package in a file that starts with in-package? for example I have (in-package #:cl-msgpack) and I would like to import optima
20:18:48
pebblexe
pcl didn't really go over in-package
20:18:56
Bike
usually you put the :use in the defpackage
20:19:19
pebblexe
but that's for the entire package, right? you can't do it file by file?
20:19:37
Bike
you can't use packages ona per-file basis, really.
20:19:47
Bike
i mean you could, i guess, but it's messy
20:22:49
pjb
websterbudding: (princ (aref "a\"b" 1)) #| " --> #\" |#
20:24:01
pjb
pebblexe: you could define one package per file, but usually it's too many packages.
20:31:52
websterbudding
pjb: I don't follow sorry
20:38:38
pebblexe
how do I create/append to a file? it seems that :if-exists :append causes it to error out if it doesn't exist
20:39:01
pebblexe
https://gist.github.com/pebblexe/c46777f5882db86308a50322b57728a7
20:39:05
pebblexe
that's what I have so far
20:39:16
jackdaniel
see http://www.lispworks.com/documentation/HyperSpec/Body/m_w_open.htm
20:39:24
jackdaniel
you have another option :if-does-not-exist
20:40:06
jackdaniel
http://www.lispworks.com/documentation/HyperSpec/Body/f_open.htm#open
20:40:07
pebblexe
ah, but what do I pass to :if-does-not-exist to create a file?
20:40:24
pebblexe
jackdaniel: thank you!
20:40:26
jackdaniel
pebblexe: I have pointed you at manual, so you can find it by yourself
20:40:38
jackdaniel
l1sp.org is useful to look for symbols
20:40:54
jackdaniel
not, it's not lisp.org but l1sp.org
20:42:18
pebblexe
jackdaniel: okay, I was just going off of practical common lisp, but I'll check there too
20:45:20
pebblexe
how do I use with-open-file to point to a file specific to a directory? I mean slime starts up with what as the home directory to write to?
20:46:04
rpav
the binary's cwd in SBCL's case, probably not a portable assumption ;)
20:46:25
rpav
on windows i think it may be the binary's directory
20:46:27
whoman
smile has ,cd command also
20:47:20
pebblexe
I was hoping there might be a way for ccl, as that's what I am using
20:48:16
whoman
if you are slimey, use ,cd or do M-x slime[-connect] in a buffer with the cwd set
20:49:29
pebblexe
figured it out! it's (merge-pathnames (asdf:system-source-directory :cl-msgpack) "temp-bytes")
20:49:42
pebblexe
where the package/filename is different for others of course
20:56:29
Xach
pebblexe: asdf:system-relative-pathname provides a shorthand
22:52:48
eulenspi1gel
** NICK eulenspiegel
7:09:51
beach
Good morning everyone!
Tuesday, 21st of March 2017, 7:41:29 UTC