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/>
ec has joined #commonlisp
waleee has quit [Ping timeout: 265 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
tarski-operator has joined #commonlisp
Lycurgus has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
NicknameJohn has joined #commonlisp
random-nick has quit [Ping timeout: 248 seconds]
ec has joined #commonlisp
amb007 has quit [Ping timeout: 250 seconds]
amb007 has joined #commonlisp
prokhor has quit [Remote host closed the connection]
dcb has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
notzmv has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
amb007 has quit [Ping timeout: 265 seconds]
amb007 has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
gilberth has quit [Ping timeout: 268 seconds]
ixelp has quit [Ping timeout: 268 seconds]
ixelp has joined #commonlisp
akoana has quit [Quit: leaving]
thuna` has joined #commonlisp
<thuna`> Does anyone know of any tutorials for nodgui?
tyson2 has quit [Remote host closed the connection]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
Oladon has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
<hayley> prokhor: Indeed a parallel garbage collector for SBCL. I have to implement some compaction, and then it should be ready for...well, I wouldn't run it in production then, but it should be usable enough.
gilberth has joined #commonlisp
<pony> hello. https://bpa.st/O6S2K when I change ast on line 30 to (), it seems the setf on line 34 doesn't work. I expected it to work like (let ((a ())) (setf a (append a (list 1 2 3))) a).
<ixelp> View paste O6S2K
prokhor has joined #commonlisp
<hayley> I'm taking a look. ADD already exists as INCF, though it won't help with the bug.
<pony> ok :)
<hayley> The empty list is NIL, so that could go wrong if you use NIL to mean that a function couldn't find anything to parse.
<pony> oh, of course. clumsy of me.
<pony> indeed, if I take () out the string it works.
<hayley> (trace parse-expr parse-atom parse-list parse-elems) might also help you spot any oddities too.
<pony> ty
<beach> pony: You need to work on the layout of your code if you are going to submit it for us to read.
<pony> beach: sure, any ground rules?
<beach> Yes, use SLIME-INDENTATION. It is usually right.
<pony> all right.
<hayley> beach: Hopefully this document <https://gist.github.com/no-defun-allowed/f79ea6e211b5f078e349c53937b5be74> is more successful at explaining how to adapt the "partial read barrier" idea for Common Lisp.
<ixelp> Partial read barriers and Common Lisp · GitHub
<beach> Thanks. I'll read it during the day.
ec has joined #commonlisp
Fare has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
tarski-operator has left #commonlisp [Leaving]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
shka has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
NicknameJohn has quit [Ping timeout: 265 seconds]
ec has joined #commonlisp
<thuna`> Is there a way to set a defclass slot's type as (float 0 pi)?
ec has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 250 seconds]
<White_Flame> thuna`: probably the easiest would be (float 0 #.pi)
<White_Flame> since it's constant
ronald has quit [Ping timeout: 240 seconds]
ronald has joined #commonlisp
seok has joined #commonlisp
<seok> I've been trying openai asking it to code some common lisp. Sometimes it makes mistakes but performs quite well
<hayley> I have to convince the first years at university that ChatGPT is getting their logic homework wrong, and not the first years.
<seok> Haha
<seok> I haven't tried it with other programming languages but there may not be enough samples for common lisp to learn yet
<hayley> They've yet to learn to get the computer to do it. Well, I guess ChatGPT is "getting the computer to do it", but I mean to write programs.
<seok> what do you mean? chatgpt does write programs?
<hayley> One student asked something like "What is P(P(P({1, 2})))" (where P is the power-set function) and ChatGPT got it all wrong. Maybe asking ChatGPT for code to compute the power-set would work better though.
<hayley> In general I hear asking it to "show working out" works better, but it did show its working out for that prompt question, and the working out was all wrong.
<seok> Ah, I have not tried it to compute such recursive programs
<seok> It performs simple maths involving large numbers well
mi7 has quit [Read error: Connection reset by peer]
<hayley> (I think the question was P(P(P({}))) since P(P(P({1, 2}))) is huge. Still.)
<seok> ChatGPT indeed makes mistakes on various kinds of problems, and rectifies them if you point it out, but I cannot be sure if the rectification is correct
<seok> It is kind of a people pleaser
<hayley> I spend more time correcting it on interesting problems.
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ronald has quit [Ping timeout: 256 seconds]
ronald has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
Oladon has quit [Quit: Leaving.]
<thuna`> White_Flame: Oh yeah, that was a thing. Thanks
<White_Flame> but yeah, I think many people end up with a defclass* that has all their various specific needs anyway
ec has joined #commonlisp
ronald has quit [Ping timeout: 250 seconds]
ronald has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
pranavats has left #commonlisp [Disconnected: Hibernating too long]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
rainthree has joined #commonlisp
Krystof has quit [Ping timeout: 250 seconds]
ec has quit [Ping timeout: 240 seconds]
pranavats has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
Krystof has joined #commonlisp
pve has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
dcb has quit [Quit: MSN Messenger 3.8]
thuna` has quit [Remote host closed the connection]
Lycurgus has quit [Ping timeout: 240 seconds]
rainthree has quit [Ping timeout: 240 seconds]
rgherdt has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
msavoritias has joined #commonlisp
ec has joined #commonlisp
alcor has joined #commonlisp
attila_lendvai has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
<beach> I think this library: https://github.com/robert-strandh/Constrictor is close to being complete.
<ixelp> GitHub - robert-strandh/Constrictor: A library that implements the functionality of the Conses dictionary of the Common [...]
<beach> Remarks are welcome, and also contributions in the same spirit as the existing code.
<ixelp> Constrictor/TODO.text at master · robert-strandh/Constrictor · GitHub
ec has quit [Ping timeout: 240 seconds]
Lord_of_Life has quit [Ping timeout: 240 seconds]
Lord_of_Life has joined #commonlisp
attila_lendvai has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
Inline has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
evnnbd has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
steew has joined #commonlisp
evnnbd has quit [Quit: evnnbd]
nemo_ has joined #commonlisp
nemo_ has quit [Client Quit]
easye has quit [Ping timeout: 250 seconds]
easye has joined #commonlisp
Inline has quit [Ping timeout: 240 seconds]
scymtym_ has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
euandreh has joined #commonlisp
cosimone has joined #commonlisp
cosimone has quit [Remote host closed the connection]
cosimone has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
nemo_ has joined #commonlisp
<jackdaniel> making ChatGPT do things being like '“You’re saying it wrong,” Harry heard Hermione snap. “It’s Wing-gar-dium Levi-o-sa, make the ‘gar’ nice and long.”'
ec has joined #commonlisp
Inline has joined #commonlisp
Inline has quit [Remote host closed the connection]
Inline has joined #commonlisp
cosimone has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
<bitblit1> lol
nemo_ has quit [Quit: nemo_]
ec has quit [Ping timeout: 240 seconds]
elevenkb has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
random-nick has joined #commonlisp
Guest86 has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
cosimone has joined #commonlisp
ec has joined #commonlisp
Guest86 has quit [Quit: Client closed]
notzmv has quit [Ping timeout: 265 seconds]
zacque has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
edgar-rft has quit [Quit: Leaving]
ec has quit [Ping timeout: 240 seconds]
Inline has quit [Ping timeout: 240 seconds]
robin has quit [Ping timeout: 250 seconds]
ec has joined #commonlisp
Inline has joined #commonlisp
jrm has quit [Read error: Connection reset by peer]
Noisytoot has quit [Ping timeout: 240 seconds]
jrm has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
cosimone has quit [Ping timeout: 240 seconds]
Oladon has joined #commonlisp
tyson2 has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
Inline has quit [Ping timeout: 265 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
Noisytoot has joined #commonlisp
ec has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
ronald has quit [Ping timeout: 265 seconds]
cage has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
AstraGravityGirl has joined #commonlisp
AstraGravityGirl has quit [Quit: gone fishing]
AstraGravityGirl has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
AstraGravityGirl has quit [Remote host closed the connection]
AstraGravityGirl has joined #commonlisp
avocadoist has quit [Remote host closed the connection]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
dnhester26 has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
zacque has quit [Quit: Goodbye :D]
dnhester26 has quit [Remote host closed the connection]
dnhester26 has joined #commonlisp
ec has joined #commonlisp
dnhester26 has quit [Ping timeout: 250 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
Fare has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
zxrom has quit [Quit: Leaving]
ec has joined #commonlisp
Fare has quit [Ping timeout: 256 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
rainthree has joined #commonlisp
rainthree3 has joined #commonlisp
rainthree has quit [Ping timeout: 240 seconds]
ronald has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
<_death> beach: "We do not think it is important to optimize the implementation of an operator that is not used very often." does this also apply to time complexity in "simple" cases, e.g. INTERSECTION with the defaults can often do better than n*m comparisons where n and m are the list lengths
ec has joined #commonlisp
<beach> Well, INTERSECTION might be used a bit more often than "not very often". There is no sharp distinction as you know, because it depends on the workload. I am willing to accept contributions for optimizations that do not make the code too hard to maintain.
<beach> Also, there is a difference between improving the asymptotic complexity as in this particular case, and shaving of a small constant factor.
<beach> For INTERSECTION, I assume you are thinking of a hash table, yes?
<beach> In that case, one would have to take into account the cost of allocating a hash table and the length of the sets/lists involved.
<beach> Maybe start the function by computing the length of the lists and then decide.
ec has quit [Ping timeout: 240 seconds]
zxcvz has joined #commonlisp
<beach> _death: Does that answer your question?
<_death> yes, I was thinking of a hash-table.. another issue is stack blowing up (e.g., in SUBLIS implementation; I remember we had a relevant discussion about a FLATTEN operator a while ago)
zxcvz has quit [Client Quit]
<beach> Sure, the tree operations can be iffy if the tree is really skinny.
<beach> I am not sure how to prevent deep recursions in this case. I suppose one can assume that they are skinny in one dimension.
ec has joined #commonlisp
<_death> by maintaining an explicit stack
<beach> Sure, and that allocates memory, so again there is a trade-off.
tyson2 has quit [Remote host closed the connection]
<beach> I think I mentioned something in the README about clients who have knowledge about the structures they want to traverse, and that such clients are likely to want to implement a special version anyway.
<_death> right, I understand what you mean, but sometimes a client has to reimplement a general version just because the implementation is too naive
<beach> I can see that, yes.
<beach> So, again, I am willing to accept contributions that improve performance significantly without sacrificing too much maintainability.
<beach> For INTERSECTION I think computing the length of the lists first would be a good idea, because that's a linear cost, compared to the M*N cost of the default operation. And if M*N is significantly high, then allocating a hash table could pay off. Restricted by the TEST of course.
ec has quit [Ping timeout: 240 seconds]
<beach> I strongly suspect that most uses of INTERSECTION are for short lists, so it would not be a good idea to allocate a hash table in all cases.
<beach> _death: So, feel free to contribute.
<beach> I need to go fix dinner for my (admittedly small) family, so I am off for today. I'll read up tomorrow.
ec has joined #commonlisp
<_death> beach: yes, said client could very well send a patch after such reimplementation :) .. when I had a patch for alexandria's shuffle I did have some threshold that needed to be crossed in order to use a vector for list shuffling.. of course embedding such a threshold statically borders on the occult
<_death> beach: have fun
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
edgar-rft has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
<jackdaniel> (with-restarts ... (signal 'multiple-function-implementation-choices ...))
masinter_ has joined #commonlisp
zxrom has joined #commonlisp
masinter has quit [Ping timeout: 240 seconds]
<_death> (handler-bind ((multiple-implementations #'time-bandit)) ...)
green_ has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
amb007 has quit [Ping timeout: 248 seconds]
amb007 has joined #commonlisp
ec has joined #commonlisp
cosimone has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
n1to has joined #commonlisp
n1to has quit [Remote host closed the connection]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
attila_lendvai has joined #commonlisp
ec has joined #commonlisp
AstraGravityGirl has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
amb007 has quit [Ping timeout: 250 seconds]
amb007 has joined #commonlisp
Inline has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
avocadoist has joined #commonlisp
ec has joined #commonlisp
rainthree3 has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
dnhester26 has joined #commonlisp
masinter_ has quit [Quit: ~ Trillian - www.trillian.im ~]
ec has joined #commonlisp
Fare has joined #commonlisp
rgherdt has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
Inline has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 250 seconds]
dim has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
dcb has joined #commonlisp
akoana has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
NicknameJohn has joined #commonlisp
dnhester26 has quit [Remote host closed the connection]
overclucker has quit [Ping timeout: 265 seconds]
overclucker has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
attila_lendvai has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
cage has quit [Quit: rcirc on GNU Emacs 28.2]
euandreh has quit [Quit: euandreh]
ec has quit [Ping timeout: 240 seconds]
euandreh has joined #commonlisp
ec has joined #commonlisp
AstraGravityGirl has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
akoana has quit [Quit: leaving]
ec has joined #commonlisp
AstraGravityGirl has quit [Remote host closed the connection]
msavoritias has quit [Ping timeout: 240 seconds]
cosimone has quit [Read error: Connection reset by peer]
ec has quit [Ping timeout: 240 seconds]
robin has joined #commonlisp
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
waleee has joined #commonlisp
morganw has joined #commonlisp
makomo has joined #commonlisp
cosimone has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
dcb has quit [Ping timeout: 248 seconds]
ec has joined #commonlisp
avocadoist has quit [Ping timeout: 240 seconds]
makomo has quit [Quit: WeeChat 3.6]
avocadoist has joined #commonlisp
rgherdt has quit [Remote host closed the connection]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ronald has quit [Ping timeout: 240 seconds]
waleee has quit [Ping timeout: 256 seconds]
pranavats has left #commonlisp [Disconnected: Hibernating too long]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
pjb is now known as Guest8698
ec has joined #commonlisp
pjb has joined #commonlisp
Guest8698 has quit [Ping timeout: 250 seconds]
pve has quit [Quit: leaving]
ec has quit [Ping timeout: 240 seconds]
Inline has joined #commonlisp
ec has joined #commonlisp
ronald has joined #commonlisp
waleee has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
waleee has quit [Ping timeout: 265 seconds]
NicknameJohn has quit [Ping timeout: 240 seconds]
alcor has quit [Remote host closed the connection]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
Inline has quit [Ping timeout: 250 seconds]
son0p has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
shka has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
morganw has quit [Remote host closed the connection]
son0p has joined #commonlisp
waleee has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
bjorkintosh has joined #commonlisp
bjorkintosh has joined #commonlisp
bjorkintosh has quit [Changing host]
ec has joined #commonlisp
son0p has quit [Remote host closed the connection]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
cosimone` has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
cosimone has quit [Ping timeout: 265 seconds]
dcb has joined #commonlisp
ec has joined #commonlisp
flip214 has quit [Read error: Connection reset by peer]
flip214 has joined #commonlisp
euandreh has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
euandreh has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
euandreh has quit [Ping timeout: 250 seconds]
son0p has joined #commonlisp
<seok> awesome-lisp says "Editor's note: at the time of writing, it seems we don't have a full-featured websocket implementation for Common Lisp. We can however recommend Portal, and we invite you to double-check the current issues of Hunchensocket and websocket-driver.",
<seok> What features is portal missing?
euandreh has joined #commonlisp
ec has quit [Ping timeout: 240 seconds]
ec has joined #commonlisp
ronald has quit [Ping timeout: 240 seconds]
ec has quit [Ping timeout: 240 seconds]
Fare has joined #commonlisp
ec has joined #commonlisp
NicknameJohn has joined #commonlisp