jackdaniel changed the topic of #commonlisp to: Common Lisp, the #1=(programmable . #1#) programming language | Wiki: <https://www.cliki.net> | IRC Logs: <https://irclog.tymoon.eu/libera/%23commonlisp> | Cookbook: <https://lispcookbook.github.io/cl-cookbook> | Pastebin: <https://plaster.tymoon.eu/>
lisp123 has quit [Ping timeout: 260 seconds]
drainpipe has quit [Quit: WeeChat 3.7.1]
notzmv has quit [Ping timeout: 260 seconds]
epony has quit [Ping timeout: 268 seconds]
varjag has quit [Ping timeout: 246 seconds]
epony has joined #commonlisp
lisp123_ has quit [Ping timeout: 260 seconds]
tyson2 has quit [Remote host closed the connection]
morganw has quit [Remote host closed the connection]
johnjaye has quit [Ping timeout: 265 seconds]
johnjaye has joined #commonlisp
agent1011001 has joined #commonlisp
pve has quit [Quit: leaving]
ClickHacker has quit [Ping timeout: 268 seconds]
scymtym_ has quit [Ping timeout: 260 seconds]
scymtym__ has joined #commonlisp
azimut has joined #commonlisp
waleee has quit [Ping timeout: 248 seconds]
waleee has joined #commonlisp
random-nick has quit [Ping timeout: 256 seconds]
notzmv has joined #commonlisp
Spawns_Carpeting has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
ClickHacker has joined #commonlisp
Spawns_Carpeting has joined #commonlisp
Josh_2 has quit [Remote host closed the connection]
waleee has quit [Quit: WeeChat 3.7.1]
chrcav has quit [Quit: leaving]
chrcav has joined #commonlisp
iska` has joined #commonlisp
<iska`> hii
<holycow> o/
<iska`> I'm kind of a novice with CL, and need some help with print-object
<Bike> what is the problem?
<iska`> I've made my own class, and I want to make it print it similarly to a list
<iska`> so like <1 2 3 ... n>
<Bike> Ok.
<Bike> and the problem?
azimut has quit [Ping timeout: 255 seconds]
<iska`> the problem is that I don't know how to do it and google doesn't help
<Bike> ok, so you just want your print-object to output in this particular format. you can use write-string/write-char for the <> and spaces, and write/etc for the elements.
<Bike> e.g. (defun anglelist (list stream) (write-char #\< stream) (dolist (elem list) (write elem :stream stream) (write-char #\Space stream)) (write-char #\> stream))
<iska`> so do I just loop over (write n) (next-element n)
<Bike> then (anglelist '(1 2 3) *standard-output*) prints <1 2 3 >
<Bike> yeah, something like that.
<yitzi> You could also use pprint-fill to write the contents in between the angle brackets for you
<iska`> guess I can do that too, I already have a function to convert to list
<Bike> you don't have to convert to list. i just gave an example of how iteration could work, since i have no idea what your objects are like
<iska`> tyvm :>
<Bike> the next-element thing works just as well, probably
<iska`> it's a doubly linked list
azimut has joined #commonlisp
<Bike> all i'm basically trying to say is that the fact it's a print-object method doesn't really affect anything; you just want to iterate over the elements and do something for each element, same as you might do with any other kind of processing
<iska`> (defmethod print-object ((obj dl-list) stream)
<iska`> (write-char #\< stream)
<iska`> (pprint-fill stream (dl-to-list obj) nil nil)
<iska`> (write-char #\> stream))
<iska`> this works
<iska`> thanks again
anticomputer_ has quit [Ping timeout: 255 seconds]
anticomputer has joined #commonlisp
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #commonlisp
dipper has joined #commonlisp
son0p has quit [Ping timeout: 260 seconds]
akoana has quit [Quit: leaving]
holycow has quit [Quit: Lost terminal]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 272 seconds]
genpaku has quit [Remote host closed the connection]
genpaku has joined #commonlisp
robin has joined #commonlisp
aartaka has joined #commonlisp
agent1011001 has quit [Quit: Client closed]
son0p has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #commonlisp
perrierjouet has quit [Client Quit]
perrierjouet has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
jolby has quit [Quit: Client closed]
jolby has joined #commonlisp
jolby has quit [Quit: Client closed]
Noisytoot has quit [Quit: ZNC 1.8.2 - https://znc.in]
Noisytoot has joined #commonlisp
rgherdt has joined #commonlisp
shka has joined #commonlisp
lisp123 has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
lisp123 has quit [Ping timeout: 265 seconds]
aartaka has joined #commonlisp
peterhil has joined #commonlisp
pve has joined #commonlisp
* splittist really wants a Pretty Printer (Cook?) Book now…
ecocode[m]1 has quit [Quit: You have been kicked for being idle]
phantomics has quit [Read error: Connection reset by peer]
aartaka has quit [Ping timeout: 265 seconds]
aartaka has joined #commonlisp
igemnace has joined #commonlisp
peterhil_ has joined #commonlisp
gxt has quit [Remote host closed the connection]
<beach> The section about pretty printing in the standard is one of the least understandable in my opinion. I had to read it many times to kind of understand what was meant.
gxt has joined #commonlisp
gxt has quit [Remote host closed the connection]
gxt has joined #commonlisp
<splittist> Richard Waters' papers were interesting, but for some reason (my being an idiot, probably) it never occurred to me that things like pprint-fill would be independently useful.
anon1234 has joined #commonlisp
anon1234 has quit [Quit: Leaving]
dipper has quit [Remote host closed the connection]
dipper has joined #commonlisp
pdietz has quit [Quit: Client closed]
dipper has quit [Remote host closed the connection]
dipper has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life has joined #commonlisp
prokhor_ has quit [Ping timeout: 272 seconds]
pranavats has left #commonlisp [Disconnected: Replaced by new connection]
pranavats has joined #commonlisp
peterhil_ has quit [Quit: Must not waste too much time here...]
prokhor_ has joined #commonlisp
lisp123 has joined #commonlisp
<beach> Definitely.
aartaka has quit [Ping timeout: 246 seconds]
aartaka has joined #commonlisp
<lisp123> splittist: why
<hayley> I guess he was testing the waters.
<lisp123> lol
<lisp123> For what its worth Richard Waters was one of the preeminent Lisp developers / computer scientists in the late 1980s - https://www.google.com/search?client=safari&rls=en&q=richard+waters+lisp&ie=UTF-8&oe=UTF-8
jmdaemon has quit [Ping timeout: 246 seconds]
<splittist> lisp123: yes, I know. Whoever is selling the freely-available AIM-1102 as a paperback on Amazon for USD110 is shameless. I highly doubt it is Mr Waters.
<lisp123> I wonder if it was released as a paperback
<lisp123> Its not available when I tried to click purchase. Unless I'm mistaken and there is widespread fraud on Amazon
<splittist> you are not mistaken
molson_ has joined #commonlisp
molson has quit [Ping timeout: 272 seconds]
cage has joined #commonlisp
<splittist> Wait, I don't know how to parse your last sentence. I am willing to stipulate that there is widespread fraud on Amazon. As to your state of mind, I have no opinion (:
<lisp123> I understand
<lisp123> You know LISP made it when scammers create fake books on it :)
<lisp123> (insert joke about Amazon would have better Garbage Collection if they wrote their systems in Lisp)
<hayley> Well, about that.
dipper has quit [Remote host closed the connection]
akonai has quit [Ping timeout: 256 seconds]
rgherdt_ has joined #commonlisp
akonai has joined #commonlisp
rgherdt has quit [Ping timeout: 248 seconds]
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #commonlisp
<pjb> iska`: (format stream "<~{~S~^ ~}>" (dl-to-list object)) prints: <1 2 3>
<pjb> Mmm if you want pprint, use also ~< … ~>.
akonai has quit [Ping timeout: 265 seconds]
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
jeosol has quit [Ping timeout: 260 seconds]
random-nick has joined #commonlisp
aartaka has quit [Ping timeout: 256 seconds]
aartaka has joined #commonlisp
akonai has joined #commonlisp
tyson2 has joined #commonlisp
aartaka has quit [Ping timeout: 260 seconds]
aartaka has joined #commonlisp
akonai has quit [Ping timeout: 248 seconds]
cmack has quit [Remote host closed the connection]
cmack has joined #commonlisp
akonai has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.7.1]
akonai has quit [Ping timeout: 252 seconds]
akonai has joined #commonlisp
rgherdt_ has quit [Ping timeout: 265 seconds]
akonai has quit [Ping timeout: 265 seconds]
attila_lendvai has joined #commonlisp
rgherdt has joined #commonlisp
akonai has joined #commonlisp
perrierjouet has joined #commonlisp
sbenitezb has joined #commonlisp
notzmv has quit [Ping timeout: 246 seconds]
akonai has quit [Ping timeout: 255 seconds]
akonai has joined #commonlisp
akonai has quit [Ping timeout: 252 seconds]
akonai has joined #commonlisp
attila_lendvai has quit [Ping timeout: 256 seconds]
akonai has quit [Ping timeout: 252 seconds]
morganw has joined #commonlisp
aartaka has quit [Ping timeout: 246 seconds]
aartaka has joined #commonlisp
lisp123 has quit [Remote host closed the connection]
lisp123 has joined #commonlisp
akonai has joined #commonlisp
akonai has quit [Ping timeout: 255 seconds]
Inline has joined #commonlisp
akonai has joined #commonlisp
<Shinmera> Two weeks until Kandria releases! Oh man oh god oh man!
<Inline> what is Kandria ?
<ixelp> Kandria on Steam
<Shinmera> My game
<Inline> ah
<sbenitezb> Is it available outside of steam?
<Shinmera> Yes, it's also on itch https://kandria.com/itch and will be available for direct purchase on the website as well https://kandria.com when it goes live.
<ixelp> Kandria by Shinmera
<sbenitezb> Perfect!
<sbenitezb> Oh, Mac is not supported?
<Shinmera> Afraid not.
perrierjouet has quit [Quit: WeeChat 3.7.1]
knusbaum has quit [Ping timeout: 260 seconds]
knusbaum has joined #commonlisp
knusbaum has quit [Max SendQ exceeded]
perrierjouet has joined #commonlisp
knusbaum has joined #commonlisp
<inward> Shinmera: is Kandria written in Common Lisp?
<Shinmera> Wouldn't be posting about it here if it wasn't.
<inward> Shinmera: I guess that's true, just had to be sure enough to buy it
coat has left #commonlisp [#commonlisp]
<Shinmera> Aw, and here I was hoping people would buy it because it's a good game
<inward> there are many good games but not many that are written in Common Lisp
<Shinmera> That is true.
akonai has quit [Ping timeout: 264 seconds]
<edgar-rft> Common LIsp is a good game if that makes you happy :-)
Sauvin has quit [Ping timeout: 246 seconds]
<inward> Shinmera: have you published any tutorials for writing games in Common Lisp?
* jackdaniel waits for a mezzano port ;)
* froggey too
<Shinmera> Not tutorials per se, but I wrote about the process back in July https://reader.tymoon.eu/article/413
<Shinmera> jackdaniel: I'll consider it when Mezzano gets GL support ;)
<inward> Shinmera: thanks :)
<inward> I'm so excited for this game
<Shinmera> Glad to hear. I'm more anxious than excited, myself
akonai has joined #commonlisp
<inward> Shinmera: why anxious?
<Shinmera> Because many things can go wrong, especially the game not selling well.
<sbenitezb> Is there any reason Mac isn't supported? OpenGL although not supported is still there
lisp123 has quit [Remote host closed the connection]
<Shinmera> Apple keeps pissing in my cereal every year and I got tired of dealing with piss in my cereal
lisp123 has joined #commonlisp
<Shinmera> Or in other words: they keep making deployment more and more of a pain in the ass and their documentation is trash, so I got tired of investing hours and hours for a fraction of the marketplace on a platform whose trajectory and leadership does Not Look Good.
Sauvin has joined #commonlisp
<Shinmera> The engine and game both are open source, so if someone is willing to figure out how to make it work again, then by all means.
<Shinmera> I'm just not going to do the work myself, I have enough on my plate as it is.
lisp123 has quit [Ping timeout: 260 seconds]
prokhor has quit [Remote host closed the connection]
<inward> Shinmera: maybe you can get Johnny Giger to advertise your game :D
<Shinmera> Who's that?
<inward> famous swiss german skateboarder / influencer
<Shinmera> Ah. Probably not.
<inward> :(
akonai has quit [Ping timeout: 246 seconds]
Sauvin has quit [Quit: Leaving]
Sauvin has joined #commonlisp
akonai has joined #commonlisp
akonai has quit [Ping timeout: 256 seconds]
akonai has joined #commonlisp
notzmv has joined #commonlisp
akonai has quit [Ping timeout: 246 seconds]
akonai has joined #commonlisp
Josh_2 has joined #commonlisp
<Josh_2> :trumpet: GM :trumpet:
akonai has quit [Ping timeout: 272 seconds]
<sbenitezb> Shinmera: totally understand that. One of the reasons I'm moving away from macOS development for future projects, but I wouldn't ignore the platform anyway.
akonai has joined #commonlisp
epony has quit [Ping timeout: 268 seconds]
aartaka has quit [Ping timeout: 246 seconds]
aartaka has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<zephyr> is anyone aware of a parser generator library similar to https://github.com/Engelberg/instaparse? instaparse gives you functions that generate parser functions from grammar strings. algorithm is GLL.
<ixelp> GitHub - Engelberg/instaparse
<phoe> zephyr: seems like esrap plus some string->sexpr layer
<zephyr> phoe thanks much, i'll take a look at esrap
<zephyr> hm, i think i prefer the sexp grammar anyway. yay
<utis> in format, can one set the maximum width of an ~a ?
<Shinmera> No.
akonai has quit [Ping timeout: 256 seconds]
epony has joined #commonlisp
akonai has joined #commonlisp
aartaka has quit [Ping timeout: 272 seconds]
tyson2 has joined #commonlisp
aartaka has joined #commonlisp
perrierjouet has quit [Quit: WeeChat 3.7.1]
aartaka has quit [Ping timeout: 272 seconds]
jeosol has joined #commonlisp
aartaka has joined #commonlisp
asarch has joined #commonlisp
akonai has quit [Ping timeout: 260 seconds]
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
akonai has joined #commonlisp
akonai has quit [Ping timeout: 268 seconds]
akonai has joined #commonlisp
igemnace has quit [Remote host closed the connection]
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #commonlisp
lisp123 has joined #commonlisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #commonlisp
peterhil has quit [Read error: Connection reset by peer]
peterhil has joined #commonlisp
lisp123 has quit [Ping timeout: 255 seconds]
tyson2 has quit [Remote host closed the connection]
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
notzmv has quit [Ping timeout: 246 seconds]
lisp123 has joined #commonlisp
akonai has quit [Ping timeout: 255 seconds]
lisp123 has quit [Ping timeout: 268 seconds]
akonai has joined #commonlisp
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 272 seconds]
akonai has quit [Ping timeout: 246 seconds]
lisp123 has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
lisp123 has quit [Ping timeout: 268 seconds]
akonai has joined #commonlisp
jolby has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
akonai has quit [Ping timeout: 272 seconds]
akonai has joined #commonlisp
asarch has quit [Quit: Leaving]
tyson2 has joined #commonlisp
peterhil has quit [Ping timeout: 260 seconds]
<utis> when i try to quickload ironclad i get a complaint that package sb-rotate-byte doesn't exist
<Bike> that's an sbcl contrib. you can do (require :sb-rotate-byte) to load it, assuming you're using sbcl
<utis> ``Don't know how to REQUIRE sb-rotate-byte''
<utis> is the reply i get
masinter has joined #commonlisp
<Bike> do you have the sbcl sources where sbcl can find them?
<utis> not that i know
<utis> i do seem to have /usr/lib/sbcl/contrib/sb-rotate-byte.{fasl,asd}
<_death> what's the value of (sb-int::sbcl-homedir-pathname)
ldb has joined #commonlisp
<utis> NIL
<ldb> #f
louis77 has joined #commonlisp
<_death> you can try setting the environment variable SBCL_HOME to /usr/lib/sbcl
<utis> _death: thanks! that worked. -- i suppose something must be wrong for that to have been necessary
<ldb> probably because package manager misconfig
perrierjouet has joined #commonlisp
<utis> ah
<_death> maybe ask the package maintainer
<utis> yeah
<_death> my advice is to compile sbcl on your own and also make sure your sbcl can find the sources, so that you can M-. on sbcl-defined symbols and see source code, modify it at will and such
varjagg has joined #commonlisp
varjagg is now known as varjag
jeosol has quit [Ping timeout: 260 seconds]
<utis> thanks, i didn't know about M-.
tyson2` has joined #commonlisp
jeosol has joined #commonlisp
tyson2 has quit [Ping timeout: 256 seconds]
Inline has quit [Quit: Leaving]
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
notzmv has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
tyson2` has quit [Remote host closed the connection]
random-jellyfish has joined #commonlisp
<random-jellyfish> is it possible to save an image from sbcl without exiting the repl?
<random-jellyfish> something like sb-ext:save-lisp without dying
Noisytoot has quit [Excess Flood]
<mfiano> No
Noisytoot has joined #commonlisp
<random-jellyfish> is there a specific reason for that?
jeosol has quit [Ping timeout: 260 seconds]
aartaka has quit [Ping timeout: 272 seconds]
speskk has joined #commonlisp
speskk has quit [Changing host]
speskk has joined #commonlisp
<mfiano> You'd have to ask #sbcl
random-jellyfish has quit [Quit: Client closed]
random-jellyfish has joined #commonlisp
random-jellyfish has quit [Client Quit]
random-jellyfish has joined #commonlisp
<_death> you can try (when (zerop (sb-posix:fork)) (sb-ext:save-lisp-and-die "foo"))
<random-jellyfish> hmm
<random-jellyfish> #sbcl recommends same thing
<pjb> the problem is how to reopen the files and network connections, the shared libraries, etc, that were opened when you forked and saved the image. You'd need a hook when you reboot the saved image. ccl has several such hooks. Check the sbcl user manual for similar.
random-jellyfish has quit [Quit: Client closed]
random-jellyfish has joined #commonlisp
random-jellyfish has quit [Quit: Client closed]
agent1011001 has joined #commonlisp
shka has quit [Ping timeout: 252 seconds]
<ldb> When unexec system call was still a thing, one can do similar things in a C program with fork then unexec.
ldb has quit [Quit: ERC 5.4 (IRC client for GNU Emacs 28.1)]
lisp123 has joined #commonlisp
lisp123 has quit [Ping timeout: 260 seconds]
varjag has quit [Ping timeout: 252 seconds]
random-jellyfish has joined #commonlisp
random-nick has quit [Ping timeout: 252 seconds]
rgherdt has quit [Remote host closed the connection]
johnjaye has quit [Ping timeout: 272 seconds]
johnjaye has joined #commonlisp