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