freenode/#lisp - IRC Chatlog
Search
13:49:45
loke
chrnybo: doesn't Yason do that? But you should type it as '((:foo . 1) (:bar . #((:zot . 12))))
13:54:52
chrnybo
ggole: I let a flag variable and declared it special, then I check for that flag in my around method. Thus I can leave other users of yason:encode undisturbed.
14:03:59
loke
I thought that it also affects the way it's written. I could be wrong though. It's been a while since I used it.
14:05:40
_death
(com.gigamonkeys.json:json '(:foo 1 :bar #((:zot 12)))) => "{\"foo\":1,\"bar\":[{\"zot\":12}]}"
14:32:57
_death
why do you declare *lists-as-plists* as special? did you not defvar/defparameter it?.. and if not, you should also declare it special in the :around method
14:41:22
chrnybo
_death: Described in a paper by Espen Vestre published at a japanese lisp conference
14:41:54
chrnybo
https://franz.com/services/conferences_seminars/jlugm00/conference/Talk05_Vestre.pdf
14:45:36
chrnybo
Sure, apply for a job in OSS, masquerading as an eager architect-type, then come sit next to us in order to join in.
19:33:58
fiddlerwoaroof
akater: I noticed you were talking about class redefinition issues the other day, CL has UPDATE-INSTANCE-FOR-REDEFINED-CLASS that can sometimes help.
19:34:50
fiddlerwoaroof
I've written methods on this for development purposes only to clean up/fix changes arising from class definition changes
19:36:36
fiddlerwoaroof
There's also UPDATE-INSTANCE-FOR-DIFFERENT-CLASS that handles cases where you CHANGE-CLASS on a class that's in use
19:37:03
fiddlerwoaroof
they're not much used, afaict, mostly because we tend to write programs in lisp rather than treating lisp as a system
0:54:18
asarch
How would traverse a directory in Common Lisp showing the kind of file (directory, link, plain file, etc) of each element found?
1:15:06
Jachy
Maybe just combine uiop:subdirectories and uiop:directory-files? Some post-processing could then resolve a symlink. The uiop suggests IOlib might handle symlink situations more cleanly.
1:21:35
fiddlerwoaroof
asarch: OSICAT:WALK and CL-FAD:WALK-DIRECTORY might do the walking part of your question
1:22:18
fiddlerwoaroof
UIOP doesn't have anything obvious, as far as I could tell with a quick apropos
1:22:57
fiddlerwoaroof
e.g. quicklisp doesn't recognize systems that are symlinked into local-projects while sbcl does
1:32:52
aeth
fiddlerwoaroof: huh? Are you saying that Quicklisp doesn't recognize ~/quicklisp/local-projects/foo if foo is a symlink? Because I've never had anything but symlinks in there.
1:33:46
fiddlerwoaroof
it's not exactly true, because CCL will pick up the projects if you quickload them in sbcl first
1:35:09
fiddlerwoaroof
Yeah, I've had some strange experiences where I happen to first use a new thing in local-projects from ccl
1:44:01
verisimilitude
What you should do is use DIRECTORY with a :WILD name and type and then call PATHNAME-TYPE on the resulting list, asarch.