libera/#commonlisp - IRC Chatlog
Search
18:06:48
NotThatRPG
I was thinking this would involve some fussy choices about when to use string-< and when < since the latter doesn't generalize over strings, and thinking about what to do when comparing lists and atoms (I'd prefer the latter come first). Not so?
18:07:14
NotThatRPG
ACTION suspects he actually wrote this at least once, but doesn't have it any more
18:10:47
Bike
i don't think there's any obviously right way to compare a string and a number, or what have you. depends on what you need for your application
18:37:58
NotThatRPG
Bike: I am just looking for something that is lexicographic-ish -- I'd like to make a list of s-expressions easier for a human (particularly a debugger) to read, so it would be nice to make it something like library order, but it's not hugely important.
18:39:25
NotThatRPG
It would probably be enough to have numbers all come before symbols, strings or lists, symbols and strings sorted with string-<= , lists last, and sorted recursively.
23:07:29
pjb
NotThatRPG: a Q&D such function is (lambda (a b) (string< (prin1-to-string a) (prin1-to-string b)))
23:08:06
pjb
NotThatRPG: and then, there are classes that don't have a natural order, eg. standard-object.
23:20:13
nij-
Hello :) I have a class PERSON, currently without a customized print-object method (so it's printed unREADbly). How do I modify its printer so that only when *print-readably* is true the effect I want takes over; otherwise we use the original printer?
23:23:36
nij-
However, as I inspect the PRINT-OBJECT generic function, it seems that there's no method for PERSON yet. I'm not sure why call-next-method would work.
23:24:28
whereiseveryone
hi does anyone know where the home for this library is now? https://gitorious.org/abnotation/midi
23:24:36
pjb
nij-: because you would define this method: (defmethod print-object ((p person) stream) (if *print-readably* (whatever) (call-next-method)))
23:24:48
Bike
next method means going farther up the class precedence list, not like, another method also specialized on the same classes
23:25:06
pjb
whereiseveryone: it moved to gitlab. But it's a clone of another, IIRC, which is in quicklisp.
23:28:15
pjb
whereiseveryone: don't hesitate to contact me if you need help with this. pjb@informatimago.com
23:33:52
whereiseveryone
pjb: Hi, what were you trying to say with this link? https://gitlab.com/abnotation/midi/-/commits/master?ref_type=heads
23:43:43
whereiseveryone
OpenMusic is not as open as it can be: https://github.com/openmusic-project/openmusic/issues/25
23:48:38
pjb
gsharp has its own file formats and editing concepts. I doubt you can easily use it as a replacement for just the GUI of OpenMusic. At least, you'd have to write format converters.
0:00:24
whereiseveryone
or I mean if gsharp ias it currently stands can be used as a key component of a computer-assisted environment similar to OM?
3:24:32
mfiano
whereiseveryone: Some projects have multiple forks, some are merged upstream, some diverge. They have the same name. Doesn't Guix have a mechanism for this common pattern in open source software?
3:28:33
whereiseveryone
mfiano: variables and the version field for the <package> record can be used from the command line as a package designator with @ symbol iirc
3:29:11
mfiano
Well there's your answer then. pjb's fork is not at the top of the tree. You can add both (and more).
3:30:18
mfiano
My first instinct would be to go with what people expect, that is, what everyone else using Quicklisp is using.
3:31:49
whereiseveryone
mfiano: BTW, check this out: https://git.sr.ht/~whereiseveryone/guixrus-scripts#modified-guix-shell
3:34:12
whereiseveryone
It's for live reloading a slime/sly REPL running in a profile/guix shell installing CL packages without restarting the REPL
3:39:25
whereiseveryone
How should we improve the search on cl-cookbook? https://github.com/LispCookbook/cl-cookbook/issues/306#issuecomment-1459130578
3:40:55
whereiseveryone
also https://github.com/vindarel/getpid/pull/2#discussion_r1135651542 get-pid, getpid, get-process-id, get-process-identifier or all of the above?
4:21:08
beach
whereiseveryone: I am (slowly) working on a better version of Gsharp, called Clovetree. Many decisions I made for Gsharp had to do with the technology available at the time. Now we have a great open music font that I plan to use, and McCLIM has improved to be able to use it. So I wouldn't put too much work into Gsharp.
5:09:53
beach
I have a system that creates nested instances of standard classes from Common Lisp expressions. What is a good way to structure a batch of unit tests to verify that the creation is correct? The most obvious thing that comes to mind is to use accessors and check explicitly, but that seems a bit tedious. But that seems tedious.