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.
<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
* 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.
<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]
<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]