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/>
jmdaemon has quit [Ping timeout: 255 seconds]
jmdaemon has joined #commonlisp
eddof13 has joined #commonlisp
pve has quit [Quit: leaving]
eddof13 has quit [Client Quit]
occ has joined #commonlisp
speskk has joined #commonlisp
speskk has quit [Changing host]
speskk has joined #commonlisp
speskk has quit [Quit: Bye.]
mhcat has joined #commonlisp
jello_pudding has quit [Ping timeout: 260 seconds]
tyson2 has joined #commonlisp
random-nick has quit [Ping timeout: 248 seconds]
jello_pudding has joined #commonlisp
notzmv has quit [Ping timeout: 246 seconds]
jmdaemon has quit [Ping timeout: 268 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 268 seconds]
<patrix> ok so I haven't built anything with CL in over 2 years, so I don't really remember *why* I disliked all the json libraries back then.. but I tried shasht yesterday and it was so smooth.. thanks to whoever made it :) (yitzi?)
Lord_of_Life_ is now known as Lord_of_Life
<yitzi> My pleasure. Glad it worked for you.
jmdaemon has joined #commonlisp
eddof13 has joined #commonlisp
<Josh_2> shasht is good :sunglasses:
eddof13 has quit [Client Quit]
azimut has joined #commonlisp
<Fare> JSON is bad, in general. But still better than XML.
markb1 has joined #commonlisp
waleee has quit [Ping timeout: 246 seconds]
<Josh_2> Its unfortunate that its in use everywhere :sob: should just use sexps
markb1 has quit [Client Quit]
markb1 has joined #commonlisp
<Josh_2> I rewrote a critical part of my software system and it seems to have come together nicely. There was a lot of deleting and rewriting :joy:
<Josh_2> took a couple weeks
azimut has quit [Ping timeout: 255 seconds]
dtman34 has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
azimut has joined #commonlisp
dtman34 has joined #commonlisp
akoana has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
pranavats has joined #commonlisp
jmdaemon has quit [Ping timeout: 248 seconds]
occ has quit [Ping timeout: 248 seconds]
<patrix> Nice. I’m about to embark on some refactoring as well, though my project is only 2 weeks old haha
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
agent1011001 has joined #commonlisp
mason has joined #commonlisp
empwilli has quit [Ping timeout: 264 seconds]
agent1011001 has quit [Quit: Client closed]
akoana has quit [Quit: leaving]
SunClonus has joined #commonlisp
empwilli has joined #commonlisp
SunClonus has quit [Read error: Connection reset by peer]
Krystof has quit [Ping timeout: 255 seconds]
jmdaemon has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #commonlisp
semarie has quit [Remote host closed the connection]
semarie has joined #commonlisp
azimut has quit [Ping timeout: 255 seconds]
azimut has joined #commonlisp
glaucon has joined #commonlisp
rgherdt has joined #commonlisp
occ has joined #commonlisp
aartaka has joined #commonlisp
vassenn has joined #commonlisp
kenran has joined #commonlisp
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
kenran has quit [Remote host closed the connection]
aartaka has quit [Ping timeout: 260 seconds]
Cymew has joined #commonlisp
aartaka has joined #commonlisp
triffid has quit [Remote host closed the connection]
triffid has joined #commonlisp
aartaka has quit [Ping timeout: 252 seconds]
aartaka has joined #commonlisp
LW has joined #commonlisp
aartaka has quit [Ping timeout: 248 seconds]
pve has joined #commonlisp
<Posterdati> hi
aartaka has joined #commonlisp
<Posterdati> please help. How can I represent 1/0 with the ratio? Thanks
<jdz> Posterdati: what does 1/0 represent?
<jackdaniel> ratio /is/ a representation. basically you can't, there are no nan for ratio
<Posterdati> jdz: it is used in Stern-Brocot algorithm
<jackdaniel> you can hack the structure itself to put zero as denominator, but then you'll break arithmetics
<Posterdati> 0/1 and 1/0 are the starting values for traversing the tree
<jdz> That's not the question I asked, though.
<jdz> Those are not values, really.
<jdz> Maybe labels?
<jackdaniel> |1/0|
<jdz> Posterdati: my feeling is that you're trying to use ratios where their use is inappropriate.
<jdz> Posterdati: maybe try complex numbers or cons cells if you really want to avoid your own data structure.
<Posterdati> jdz: I used cons
pdietz has quit [Ping timeout: 260 seconds]
quoosp has joined #commonlisp
lieven has quit [Ping timeout: 246 seconds]
thoughtron has quit [Ping timeout: 260 seconds]
lieven has joined #commonlisp
thoughtron has joined #commonlisp
Krystof has joined #commonlisp
MajorBiscuit has joined #commonlisp
tibfulv has quit [Remote host closed the connection]
tibfulv has joined #commonlisp
vassenn has quit [Quit: Leaving]
occ has quit [Read error: Connection reset by peer]
Gleefre has joined #commonlisp
shka has joined #commonlisp
jmdaemon has quit [Ping timeout: 248 seconds]
gxt has quit [Ping timeout: 255 seconds]
aartaka has quit [Ping timeout: 255 seconds]
aartaka has joined #commonlisp
<louis77> Josh_2: is there something in CL like Clojure's EDN for remote process-to-process communication?
<louis77> or do you use JSONRPC?
quoosp has quit [Ping timeout: 252 seconds]
<pjb> Posterdati: You can use the symbol '\1/0 (or nil)
<Posterdati> ok
Fare has quit [Ping timeout: 252 seconds]
<patrix> I've seen 2 attempts at EDN libraries on Github.. one is a skeleton with no code, one I haven't managed to load properly, and appears to be quite complex .. I also wish there was a simple EDN reader/emitter for CL.. still surprised there's none..
<patrix> but maybe there isn't great motivation for EDN in CL lol
<hayley> EDN doesn't capture interesting CL types adequately; vectors can have element types, and hash tables can have different test functions.
<patrix> hmmm right I hadn't considered that
<patrix> well I ended up converting my file from EDN to JSON and was able to read it in my CL code. so I'm not making use of anything fancy in EDN
cage has joined #commonlisp
quoosp has joined #commonlisp
<Demosthenex> ok, so i want to "tail -f" a file, is there a way to make read-line wait for input?
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
_cymew_ has joined #commonlisp
<phoe> create a custom stream that somehow hangs instead of returning a newline
<phoe> err, returning an EOF
<Demosthenex> hrm, i was reading from a FIFO before, that hung properly. now i'm reading a file and need to wait for it like tail -f
<Demosthenex> as a gross hack, maybe i should just call tail -f
<Demosthenex> (eww gross)
<patrix> hmm I've done that years ago, let me see if I can find my code...
<ixelp> clisp - Using stdout from shell script in common lisp - Stack Overflow
<jackdaniel> if you are interested in non-portable solutions then you may force fd-stream in sbcl to "hang" by setting (setf (sb-sys:fd-stream-listen stream) t)
<patrix> ah never mind my old code.. it was ruby that tailed a log file
karlosz has joined #commonlisp
_cymew_ has quit [Ping timeout: 268 seconds]
<Demosthenex> jackdaniel: i normally do sbcl only, that sounds like a plan!
<Demosthenex> hrm, odd, my stream doesn't seem to have that
Fare has joined #commonlisp
<Demosthenex> i'm using a normal open call, wonder if it is a different struct returned
<jackdaniel> you may always inspect the stream
<jackdaniel> to see what it is
<Demosthenex> maybe i have the wrong version of sbcl?
random-nick has joined #commonlisp
<Demosthenex> ok, i can manipulate it with slot-value
<Demosthenex> i'm a package n00b, so maybe i messed up calling fd-stream-listen
<jackdaniel> it is not that it is an exported interface, more a hack so don't get attached to it too much :)
<Demosthenex> hehe
<Demosthenex> arg, it's still spinning 100%. i guess i'll wrap tail -f
<jackdaniel> try calling LISTEN before READ-LINE
uics has joined #commonlisp
<Demosthenex> i set the listen slot immediately after open
<jackdaniel> I see, then I'm out of ideas
<Demosthenex> wait, listen like for sockets?
<Demosthenex> i'll go look, thanks for the idea
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
Krystof has quit [Ping timeout: 260 seconds]
pjb has quit [Read error: Connection reset by peer]
karlosz has quit [Quit: karlosz]
uics has left #commonlisp [#commonlisp]
Fare has quit [Ping timeout: 260 seconds]
gxt has joined #commonlisp
yottabyte has joined #commonlisp
glaucon has quit [Quit: Leaving.]
quoosp has quit [Ping timeout: 248 seconds]
karlosz has joined #commonlisp
parjanya has quit [Ping timeout: 252 seconds]
karlosz has quit [Quit: karlosz]
leo_song has quit [Ping timeout: 252 seconds]
<_death> you can see how tail does it.. my guess is this is a good starting point: https://github.com/coreutils/coreutils/blob/master/src/tail.c#L1158
<ixelp> coreutils/tail.c at master · coreutils/coreutils · GitHub
Fare has joined #commonlisp
uics has joined #commonlisp
karlosz has joined #commonlisp
scymtym has joined #commonlisp
aartaka has quit [Ping timeout: 255 seconds]
aartaka has joined #commonlisp
glaucon has joined #commonlisp
occ has joined #commonlisp
uics has quit [Remote host closed the connection]
epony has quit [Remote host closed the connection]
zxcvz has joined #commonlisp
zxcvz has quit [Client Quit]
epony has joined #commonlisp
dlowe has joined #commonlisp
leo_song has joined #commonlisp
karlosz has quit [Quit: karlosz]
karlosz has joined #commonlisp
tok has joined #commonlisp
pjb has joined #commonlisp
glaucon has quit [Quit: Leaving.]
<Demosthenex> neat idea, but i think i'll just call tail ;]
<Demosthenex> it's just watching a log file
sjl has quit [Quit: WeeChat 3.6]
eddof13 has joined #commonlisp
n0den1te has joined #commonlisp
zxcvz has joined #commonlisp
markb1 has joined #commonlisp
karlosz has quit [Quit: karlosz]
karlosz has joined #commonlisp
Krystof has joined #commonlisp
quoosp has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
parjanya has joined #commonlisp
jmdaemon has joined #commonlisp
waleee has joined #commonlisp
sedzcat has joined #commonlisp
eddof13 has joined #commonlisp
jmdaemon has quit [Quit: ZNC 1.8.2 - https://znc.in]
jmdaemon has joined #commonlisp
jmdaemon has quit [Ping timeout: 260 seconds]
tyson2 has joined #commonlisp
jmdaemon has joined #commonlisp
Oladon has joined #commonlisp
<Josh_2> :trumpet:
aartaka has quit [Ping timeout: 268 seconds]
aartaka has joined #commonlisp
amoroso has joined #commonlisp
n0den1te has quit [Quit: leaving]
<Josh_2> I assume the version of log4cl thats in quicklisp is from sharplispers?
glaucon has joined #commonlisp
<jackdaniel> yes
<Josh_2> Nice :sunglasses:
karlosz has quit [Read error: Connection reset by peer]
dlowe has quit [Ping timeout: 260 seconds]
amoroso has quit [Quit: Client closed]
waleee has quit [Ping timeout: 252 seconds]
n1to has joined #commonlisp
cage has quit [Remote host closed the connection]
cage has joined #commonlisp
_cymew_ has joined #commonlisp
jfloren has joined #commonlisp
<jfloren> Anybody here still use beirc? I've been fooling around with CLIM, like what I see, wanted to check out some applications using it
<jackdaniel> to the best of my knowledge beirc is rather unusable as it is now
<jfloren> But it drops into the debugger as soon as I start to join a channel. Wondering if the cl-irc library has changed since beirc was last touched
<jackdaniel> scymtym has some kind of a chat client in clim but I don't think it is open source
n1to has quit [Quit: Leaving]
amoroso has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
<beach> It is my impression that scymtym uses beirc often, but I may be wrong of course. He is here as Brucio-61.
<jackdaniel> I think that he uses his own client
Gleefre has quit [Remote host closed the connection]
MajorBiscuit has quit [Ping timeout: 260 seconds]
<beach> I see.
Gleefre has joined #commonlisp
Oladon has quit [Quit: Leaving.]
dlowe has joined #commonlisp
_cymew_ has quit [Ping timeout: 268 seconds]
zxcvz has quit [Quit: zxcvz]
frgo has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
dlowe has quit [Ping timeout: 265 seconds]
_cymew_ has joined #commonlisp
<NotThatRPG_away> I used to use beirc a lot, but had to give up on it at some point, many years ago.
NotThatRPG_away is now known as NotThatRPG
<jfloren> why did you give up on it?
eddof13 has joined #commonlisp
<jackdaniel> jfloren: if you have clim-specific questions you may also discuss them on #clim (this channel is perfectly fine too)
<jfloren> thank you, I'll probably at least lurk there
quoosp has quit [Ping timeout: 248 seconds]
<NotThatRPG> jfloren: It just stopped working at some point.
dlowe has joined #commonlisp
tyson2 has joined #commonlisp
aartaka has quit [Ping timeout: 246 seconds]
aartaka has joined #commonlisp
<jfloren> NotThatRPG: errors along the lines of "There is no applicable method for the generic function #<STANDARD-GENERIC-FUNCTION CL-IRC:NICKNAME (1)> when called with arguments (NIL)." perhaps?
<NotThatRPG> jfloren: I wish I could help, but it's so long ago that I have forgotten what stopped working.
<jfloren> no worries
jmdaemon has quit [Ping timeout: 260 seconds]
<jackdaniel> here is funny trivia - cl-irc is based on weirdirc which was clim application
<jackdaniel> so in some sense beirc made full circle
Brucio-58 has joined #commonlisp
<Brucio-58> well, turns out the cyrus branch of gitlab.common-lisp.net/charmon/beirc works
<ixelp> check connection users before colling nickname (641b6864) · Commits · Cyrus Harmon / beirc · GitLab
morganw has joined #commonlisp
<Brucio-58> definitely going to cherry-pick that into the master branch because the other changes are all about setting colors in the UI... and the colors are ugly as sin :)
igemnace has quit [Remote host closed the connection]
jmdaemon has joined #commonlisp
<Josh_2> Brucio-58: How is your application browsing chat apps coming along?
tok has quit [Read error: Connection reset by peer]
occ has quit [Ping timeout: 248 seconds]
occ has joined #commonlisp
redsith has joined #commonlisp
redsith has quit [Remote host closed the connection]
so-offish has joined #commonlisp
redsith has joined #commonlisp
redsith has quit [Remote host closed the connection]
jfloren has quit [Quit: Client closed]
amoroso has quit [Quit: Client closed]
tyson2 has quit [Remote host closed the connection]
azimut has quit [Ping timeout: 255 seconds]
so-offish has quit [Quit: Leaving]
glaucon has quit [Read error: Connection reset by peer]
Gleefre has quit [Remote host closed the connection]
Gleefre has joined #commonlisp
jfloren has joined #commonlisp
Brucio-58 is now known as floren
jfloren has quit [Client Quit]
dlowe has quit [Ping timeout: 248 seconds]
triffid has quit [Remote host closed the connection]
amoroso has joined #commonlisp
floren has quit [Ping timeout: 248 seconds]
<Josh_2> Are ironclads digests (hmac) destructive?
Fare has quit [Ping timeout: 260 seconds]
aartaka has quit [Ping timeout: 248 seconds]
aartaka has joined #commonlisp
igemnace has joined #commonlisp
karlosz has joined #commonlisp
Cymew has quit [Ping timeout: 248 seconds]
_cymew_ has quit [Ping timeout: 268 seconds]
tyson2 has joined #commonlisp
uics has joined #commonlisp
attila_lendvai has joined #commonlisp
waleee has joined #commonlisp
<uics> Do you know Mercury language? You should use it to annoy dirty haskellers
<Josh_2> I can just use cl to annoy haskellers :shrug:
<aeth> This isn't really the channel for language wars.
dlowe has joined #commonlisp
<uics> Hmm probably true Josh_2
<uics> aeth: mhm
<an_origamian[m]> What's the point in having a war when we can quietly assimilate them?
<aeth> Besides, everyone knows that the most elegant programming language is Perligata, the Latin translation of Perl.
quoosp has joined #commonlisp
dlowe has quit [Remote host closed the connection]
attila_lendvai has quit [Ping timeout: 248 seconds]
cage has quit [Quit: rcirc on GNU Emacs 28.2]
<cdegroot> I had so much fun reading that paper back in the day :)
karlosz_ has joined #commonlisp
karlosz has quit [Ping timeout: 248 seconds]
karlosz_ is now known as karlosz
pjb has quit [Read error: Connection reset by peer]
parjanya has quit [Read error: Connection reset by peer]
sedzcat has quit [Quit: sedzcat]
tyson2 has quit [Remote host closed the connection]
tyson2 has joined #commonlisp
amoroso has quit [Quit: amoroso]
igemnace has quit [Remote host closed the connection]
<buffet> just out of curiousity: what are the "best" examples for loop (ab)use?
pve has quit [Quit: leaving]
tyson2 has quit [Remote host closed the connection]
varjag has joined #commonlisp
<_death> (loop (bt:make-thread (lambda () (loop))))
quoosp has quit [Ping timeout: 268 seconds]
shka has quit [Ping timeout: 255 seconds]
waleee has quit [Ping timeout: 252 seconds]
aartaka has quit [Ping timeout: 260 seconds]
uics has quit [Remote host closed the connection]
uics has joined #commonlisp
aartaka has joined #commonlisp
<aeth> _death: it's always best to add some SLEEPs in there so everything can fall apart on a human time scale instead of on a computer one
<aeth> otherwise you don't even notice
<_death> until winter's over, a (loop) a day keeps the doctor away..
LW has quit [Quit: WeeChat 3.6]
LW has joined #commonlisp
Gleefre has quit [Ping timeout: 260 seconds]
rgherdt has quit [Remote host closed the connection]
waleee has joined #commonlisp
LW has quit [Quit: WeeChat 3.6]
LW has joined #commonlisp
LW has quit [Client Quit]
LW has joined #commonlisp
pjb has joined #commonlisp
varjag has quit [Quit: ERC 5.4.1 (IRC client for GNU Emacs 29.0.50)]
tyson2 has joined #commonlisp
tyson2 has quit [Remote host closed the connection]
sjl has joined #commonlisp
dudek has joined #commonlisp
LW has quit [Quit: WeeChat 3.6]
avocadoist has quit [Remote host closed the connection]
LW has joined #commonlisp
occ has quit [Ping timeout: 268 seconds]
LW has quit [Client Quit]
LW has joined #commonlisp
Oladon has joined #commonlisp
dudek has quit [Quit: Leaving]
avocadoist has joined #commonlisp
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]