freenode/lisp - IRC Chatlog
Search
19:33:03
pebblexe
jasom: yeah I've looked at optima, I was just hoping I could get some experience with clos
19:33:19
scymtym
iirc, fortress had a solution for this kind of applicable method ordering. i think it was something like being forced to define a method that is more specific than both of the ambiguous methods. but that seems to prohibit call-next-method
19:34:41
pebblexe
okay I am having issues where sometimes stuff doesn't compile after using defmethods to experiment, like it complains about something that I've commented out
19:35:17
pebblexe
I think it's only happened in ccl, but I think it might have happened in sbcl as well
19:35:50
Bike
when you recompile a function, you replace the definition, but when you recompile a file and you just commented out a method, there's no reason for that method to go away, you know?
19:36:09
Bike
what i do is M-x slime-inspect the generic function, and that brings up a menu where you can undefine particular methods
19:38:17
pebblexe
Bike: I am not sure what you mean, I mean functions go away when I comment them out, right? why are methods different?
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: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:57:31
pebblexe
now I am getting this error trying to (ql:quickload "optima") https://gist.github.com/pebblexe/fd096a27962d9f81e6a5f7b8cac3c4b8
19:59:37
pebblexe
yeah and in sbcl I get: https://gist.github.com/pebblexe/d30811426c3a0109d6108fedaff04358
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: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: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: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:49:29
pebblexe
figured it out! it's (merge-pathnames (asdf:system-source-directory :cl-msgpack) "temp-bytes")