p_l changed the topic of #lisp to: Common Lisp, the #1=(programmable . #1#) programming language | <https://irclog.tymoon.eu/freenode/%23lisp> <https://irclog.whitequark.org/lisp> <http://ccl.clozure.com/irc-logs/lisp/> | ASDF 3.3.4
hhdave has quit [Client Quit]
hhdave has joined #lisp
hhdave has quit [Client Quit]
hhdave has joined #lisp
hhdave has quit [Client Quit]
frodef has joined #lisp
random-nick has quit [Ping timeout: 272 seconds]
wxie has joined #lisp
turona has quit [Ping timeout: 272 seconds]
turona has joined #lisp
pierpal has quit [Ping timeout: 240 seconds]
varjag has quit [Ping timeout: 268 seconds]
karlosz has quit [Quit: karlosz]
FreeBirdLjj has joined #lisp
vibs29 has joined #lisp
FreeBirdLjj has quit [Ping timeout: 272 seconds]
vibs29 has left #lisp [#lisp]
EvW has quit [Ping timeout: 260 seconds]
Inline has quit [Ping timeout: 272 seconds]
buffergn0me has quit [Ping timeout: 240 seconds]
prince1 has joined #lisp
prince1 has quit [Ping timeout: 265 seconds]
ebzzry has quit [Read error: Connection reset by peer]
z147 has quit [Ping timeout: 240 seconds]
Aruseus has joined #lisp
Aruseus has quit [Client Quit]
EvW has joined #lisp
Blukunfando has quit [Ping timeout: 248 seconds]
EvW has quit [Ping timeout: 240 seconds]
frodef has quit [Ping timeout: 240 seconds]
Aruseus has joined #lisp
j-r has joined #lisp
j-r has joined #lisp
j-r has quit [Changing host]
gko_ has joined #lisp
Aruseus has quit []
aindilis` has quit [Remote host closed the connection]
aindilis has joined #lisp
Aruseus has joined #lisp
bitmapper has quit [Ping timeout: 272 seconds]
pierpal has joined #lisp
FreeBirdLjj has joined #lisp
Aruseus has quit [Quit: Aruseus]
Aruseus has joined #lisp
wxie has quit [Ping timeout: 240 seconds]
Aruseus has quit [Client Quit]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
karlosz has joined #lisp
MCP_ has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
nowhere_man has joined #lisp
georgiePorgie has joined #lisp
prince1 has joined #lisp
prince1 has quit [Ping timeout: 272 seconds]
Lord_of_Life_ has joined #lisp
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life_ is now known as Lord_of_Life
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
epony has quit [Quit: reconf]
epony has joined #lisp
surrealpie has quit [Quit: WeeChat 2.2]
j-r is now known as Guest43103
Guest43103 has quit [Killed (weber.freenode.net (Nickname regained by services))]
KingRiver has joined #lisp
j-r has joined #lisp
j-r has joined #lisp
j-r has quit [Changing host]
xkapastel has joined #lisp
Bourne has joined #lisp
georgiePorgie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Nilby has quit [Read error: Connection reset by peer]
shangul has joined #lisp
terpri has quit [Remote host closed the connection]
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #lisp
pjb has joined #lisp
paul0 has quit [Remote host closed the connection]
paul0 has joined #lisp
shangul has quit [Ping timeout: 268 seconds]
zaquest has quit [Quit: Leaving]
prince1 has joined #lisp
KingRiver has quit [Ping timeout: 265 seconds]
zaquest has joined #lisp
karlosz has quit [Quit: karlosz]
buffergn0me has joined #lisp
sunwukong has quit [Read error: Connection reset by peer]
karlosz has joined #lisp
igemnace has joined #lisp
igemnace has quit [Client Quit]
shifty has joined #lisp
karlosz has quit [Client Quit]
gravicappa has joined #lisp
KingRiver has joined #lisp
ebzzry has joined #lisp
KingRiver has quit [Client Quit]
KingRiver has joined #lisp
ebzzry has quit [Read error: Connection reset by peer]
dddddd has quit [Ping timeout: 248 seconds]
Josh_2 has quit [Remote host closed the connection]
wxie has joined #lisp
prince1 has quit [Ping timeout: 265 seconds]
buffergn0me has quit [Ping timeout: 240 seconds]
gko_ has quit [Ping timeout: 240 seconds]
KingRiver has quit [Quit: KingRiver]
Jeanne-Kamikaze has joined #lisp
torbo has joined #lisp
karlosz has joined #lisp
<beach> Good morning everyone!
pnp has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
gxt has joined #lisp
varjag has joined #lisp
karlosz has quit [Quit: karlosz]
varjag has quit [Ping timeout: 265 seconds]
ebzzry has joined #lisp
MCP_ has quit [Read error: Connection reset by peer]
wxie has quit [Ping timeout: 240 seconds]
phlim has quit [Quit: WeeChat 2.4]
xkapastel has joined #lisp
ggole has joined #lisp
Khisanth has quit [Ping timeout: 268 seconds]
Khisanth has joined #lisp
ebzzry has quit [Ping timeout: 272 seconds]
wxie has joined #lisp
wxie has quit [Ping timeout: 240 seconds]
karlosz has joined #lisp
pnp has quit [Remote host closed the connection]
shka_ has joined #lisp
Bourne has quit [Ping timeout: 260 seconds]
vlatkoB has joined #lisp
pjb has quit [Remote host closed the connection]
Jeanne-Kamikaze has quit [Remote host closed the connection]
prince1 has joined #lisp
ebzzry has joined #lisp
prince1 has quit [Ping timeout: 240 seconds]
Khisanth has quit [Ping timeout: 272 seconds]
Bourne has joined #lisp
shifty has quit [Ping timeout: 260 seconds]
KingRiver has joined #lisp
KingRiver has quit [Client Quit]
Khisanth has joined #lisp
torbo has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
ebzzry has quit [Ping timeout: 240 seconds]
Inline has joined #lisp
z147 has joined #lisp
wxie has joined #lisp
georgiePorgie has joined #lisp
KingRiver has joined #lisp
ebzzry has joined #lisp
ebzzry has quit [Read error: Connection reset by peer]
wxie has quit [Ping timeout: 240 seconds]
gxt has quit [Ping timeout: 240 seconds]
zaquest has quit [Quit: Leaving]
frodef has joined #lisp
ebzzry has joined #lisp
zaquest has joined #lisp
dale has quit [Quit: My computer has gone to sleep]
prince1 has joined #lisp
prince1 has quit [Ping timeout: 240 seconds]
pierpal has joined #lisp
nika has joined #lisp
varjag has joined #lisp
samebchase has quit [Ping timeout: 260 seconds]
samebchase- has quit [Ping timeout: 260 seconds]
ebzzry has quit [Ping timeout: 272 seconds]
<tempate> Can I get tips to improve this piece of code? https://gist.github.com/Tempate/2a05c584e1b29c9c609c90856c566128
ebzzry has joined #lisp
fookara has joined #lisp
nowhere_man has quit [Read error: Connection reset by peer]
<beach> tempate: Your indentation seems off.
<beach> tempate: Your PROGN should be indented 2 spaces, but then, since LET has an implicit PROGN, you don't need it.
Aruseus has joined #lisp
<beach> You can use with-slots to avoid repeating (slot-value deck 'cards).
<beach> But then I advise against using slot-value in favor of using a slot accessor.
<tempate> What's wrong with slot-value?
<beach> It is very low level. Usually, you design a data structure around classes and generic functions. That's known as a "protocol".
<beach> A protocol is a generalization of an interface in other languages.
<beach> Just as you don't want to access fields in a structure or class directly, you typically don't want to access Common Lisp slots directly.
<beach> That's just basic software engineering.
<beach> But for this small a problem, it won't matter.
<tempate> oh, I see. Thank you.
<beach> But you should definitely use WITH-SLOTS.
<beach> clhs with-slots.
<specbot> Couldn't find anything for with-slots..
<beach> clhs with-slots
<tempate> Reading
<beach> Yes, much better.
<beach> If you care about performance, using a vector would be better.
<White_Flame> it would have to use a different algorith, though
<tempate> At the moment performance is not one of my priorities
<tempate> It would make more sense to make hit a method, right?
<beach> White_Flame: Right, you wouldn't use DELETE.
karlosz has quit [Quit: karlosz]
<White_Flame> you could add a count to the class to cache the length, so you don't have to recompute it, which would be a fairly easy optimizatin
<beach> tempate: It would be a generic function, but it might be overkill for this problem.
chewbranca has quit [Read error: Connection reset by peer]
chewbranca has joined #lisp
<tempate> what are the differences between C++ classes and Lisp's?
<tempate> White_Flame: oh, right. Let me try to do that.
<beach> tempate: Common Lisp classes don't have methods in them. Encapsulation is accomplished with an orthogonal mechanism known as "packages".
makomo has joined #lisp
<White_Flame> (and packages aren't really "encapsulation" because you can always still poke into them; there's no real data hiding in CL, besides closures (and you can use implementation tools to poke into those, too))
<tempate> oh, I see
<tempate> It does sound like an overkill
KingRiver has quit [Ping timeout: 265 seconds]
<White_Flame> just for fun, a verbose single-pass version on a list: https://pastebin.com/TRwCBaHw
<tempate> White_Flame: updated to use a counter: https://gist.github.com/Tempate/2a05c584e1b29c9c609c90856c566128
gxt has joined #lisp
<White_Flame> yep, and you see how optimization tends to make things bigger and less independent
<White_Flame> (oftentimes)
FreeBirdLjj has quit [Remote host closed the connection]
<White_Flame> if some external code munged your list behind the scenes, the prior version would still work, while this would get confused
FreeBirdLjj has joined #lisp
<White_Flame> for initial development, it's advantageous to have code as clear and flexible as possible, even if it's slow
<White_Flame> putting the screws to it to make it faster tends to come after it's settled down
<tempate> "Premature optimization: the root and stem of all evils."
Bourne has quit [Ping timeout: 265 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
jonatack has quit [Ping timeout: 272 seconds]
jonatack has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #lisp
makomo has quit [Ping timeout: 260 seconds]
gabiruh_ has quit [Quit: ZNC - 1.6.0 - http://znc.in]
georgiePorgie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__jrjsmrtn__ has quit [Quit: Bye !]
Bourne has joined #lisp
cosimone has joined #lisp
gko_ has joined #lisp
__jrjsmrtn__ has joined #lisp
<jackdaniel> I think that this bon mot is one of few causes of a very sad state of software today
random-nick has joined #lisp
georgiePorgie has joined #lisp
orivej has joined #lisp
<jackdaniel> not that it doesn't have some truth to it, just that people stick to it even when they absolutely shouldn't
frodef has quit [Ping timeout: 265 seconds]
cosimone has quit [Quit: Quit.]
<beach> jackdaniel: What are you referring to?
Nilby has joined #lisp
prince1 has joined #lisp
georgiePorgie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dddddd has joined #lisp
prince1 has quit [Ping timeout: 272 seconds]
georgiePorgie has joined #lisp
FreeBirdLjj has joined #lisp
gxt has quit [Remote host closed the connection]
<jackdaniel> to "premature optiimization is the root of all evil" - efficiency is not a feature which may be implemented aposteriori, it is often a trait of software architecture
<beach> I see.
Necktwi has quit [Read error: Connection reset by peer]
shifty has joined #lisp
<beach> And, yes, I agree.
vs has joined #lisp
nowhere_man has joined #lisp
hhdave has joined #lisp
ebzzry has quit [Ping timeout: 268 seconds]
shangul has joined #lisp
frodef has joined #lisp
Bourne has quit [Ping timeout: 265 seconds]
lucasb has joined #lisp
ebzzry has joined #lisp
KingRiver has joined #lisp
KingRiver has quit [Remote host closed the connection]
KingRiver has joined #lisp
gabiruh has joined #lisp
Bourne has joined #lisp
trafaret1 has joined #lisp
orivej has quit [Ping timeout: 268 seconds]
<jonatack> Sunday thought: I don't get to use Lisp for my work ATM but this is still my favorite non-work IRC channel... thank you, people. Back to lurking.
frgo has quit [Read error: No route to host]
gabiruh has quit [Quit: ZNC 1.7.5 - https://znc.in]
gabiruh has joined #lisp
frgo has joined #lisp
wxie has joined #lisp
Aruseus has quit [Quit: leaving]
_jrjsmrtn has joined #lisp
__jrjsmrtn__ has quit [Ping timeout: 272 seconds]
robjk has joined #lisp
gxt has joined #lisp
shifty has quit [Ping timeout: 260 seconds]
pnp has joined #lisp
pierpal has quit [Remote host closed the connection]
wxie has quit [Remote host closed the connection]
shifty has joined #lisp
georgiePorgie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
georgiePorgie has joined #lisp
trafaret1 has quit [Remote host closed the connection]
_paul0 has joined #lisp
robjk has quit [Remote host closed the connection]
EvW has joined #lisp
paul0 has quit [Ping timeout: 272 seconds]
shifty has quit [Ping timeout: 240 seconds]
pjb has joined #lisp
gxt has quit [Ping timeout: 240 seconds]
ebzzry has quit [Ping timeout: 265 seconds]
pierpal has joined #lisp
prince1 has joined #lisp
hsaziz has quit [Read error: Connection reset by peer]
prince1 has quit [Ping timeout: 260 seconds]
pierpal has quit [Ping timeout: 240 seconds]
pierpal has joined #lisp
ebzzry has joined #lisp
ljavorsk has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
KingRiver has quit [Ping timeout: 272 seconds]
pierpal has joined #lisp
pierpal has quit [Read error: Connection reset by peer]
gareppa has joined #lisp
gareppa has quit [Remote host closed the connection]
ljavorsk has quit [Ping timeout: 240 seconds]
pierpal has joined #lisp
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #lisp
FreeBirdLjj has quit [Ping timeout: 265 seconds]
ebrasca has joined #lisp
frodef has quit [Ping timeout: 265 seconds]
Necktwi has joined #lisp
pierpal has quit [Quit: Poof]
pierpal has joined #lisp
pnp has quit [Remote host closed the connection]
bitmapper has joined #lisp
KingRiver has joined #lisp
pierpal has quit [Ping timeout: 260 seconds]
pierpal has joined #lisp
fookara has quit [Read error: Connection reset by peer]
orivej has joined #lisp
ebrasca has quit [Remote host closed the connection]
ebzzry has quit [Ping timeout: 272 seconds]
Lord_of_Life_ has joined #lisp
shifty has joined #lisp
Lord_of_Life has quit [Ping timeout: 272 seconds]
Lord_of_Life_ is now known as Lord_of_Life
prince1 has joined #lisp
Necktwi has quit [Quit: leaving]
oni-on-ion has joined #lisp
prince1 has quit [Ping timeout: 268 seconds]
momozor has joined #lisp
<momozor> do you guys know how to enable cors with clack?
<jackdaniel> momozor: you need to customize headers
<jackdaniel> i.e (200 (:content-type "text/plain" :access-control-allow-origin nil) whatever)
<momozor> jackdaniel: thank you so much!
gabiruh has quit [Quit: ZNC 1.7.5 - https://znc.in]
momozor has quit [Client Quit]
<jackdaniel> sure
EvW has quit [Ping timeout: 240 seconds]
gabiruh has joined #lisp
cosimone has joined #lisp
j-r has quit [Disconnected by services]
j-r has joined #lisp
j-r has quit [Changing host]
j-r has joined #lisp
ljavorsk has joined #lisp
xkapastel has quit [Quit: Connection closed for inactivity]
frodef has joined #lisp
ljavorsk has quit [Ping timeout: 272 seconds]
pierpal has quit [Ping timeout: 260 seconds]
gko_ has quit [Ping timeout: 265 seconds]
shangul has quit [Ping timeout: 240 seconds]
uint has quit [Quit: leaving]
v1sage has joined #lisp
j-r has quit [Disconnected by services]
pierpal has joined #lisp
j-r has joined #lisp
j-r has quit [Changing host]
j-r has joined #lisp
shifty has quit [Ping timeout: 260 seconds]
makomo has joined #lisp
shifty has joined #lisp
KingRiver has quit [Ping timeout: 260 seconds]
KingRiver has joined #lisp
KingRiver has quit [Ping timeout: 272 seconds]
Necktwi has joined #lisp
oni-on-ion has quit [Ping timeout: 240 seconds]
Frege has joined #lisp
frodef has quit [Ping timeout: 260 seconds]
oni-on-ion has joined #lisp
Frege has quit [Read error: Connection reset by peer]
Lord_of_Life has quit [Read error: Connection reset by peer]
Lord_of_Life has joined #lisp
rippa has joined #lisp
_paul0 is now known as paul0
pjb has quit [Remote host closed the connection]
pjb has joined #lisp
Jeanne-Kamikaze has joined #lisp
lottaquestions has quit [Read error: Connection reset by peer]
lottaquestions has joined #lisp
shifty has quit [Ping timeout: 272 seconds]
v88m has quit [Ping timeout: 240 seconds]
frodef has joined #lisp
prince1 has joined #lisp
Involuntary has joined #lisp
slyrus has joined #lisp
slyrus__ has quit [Ping timeout: 260 seconds]
Jeanne-Kamikaze has quit [Ping timeout: 260 seconds]
prince1 has quit [Ping timeout: 240 seconds]
nckx has quit [Quit: Updating my GNU Guix System — https://guix.gnu.org]
nckx has joined #lisp
georgiePorgie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
buffergn0me has joined #lisp
buffergn0me has quit [Read error: Connection reset by peer]
nowhere_man has quit [Ping timeout: 272 seconds]
hiroaki has quit [Ping timeout: 268 seconds]
lottaquestions_ has joined #lisp
lottaquestions has quit [Ping timeout: 265 seconds]
buffergn0me has joined #lisp
nika has quit []
buffergn0me has quit [Ping timeout: 240 seconds]
GuerrillaMonkey has joined #lisp
Involuntary has quit [Ping timeout: 260 seconds]
Jeanne-Kamikaze has joined #lisp
buffergn0me has joined #lisp
GuerrillaMonkey has quit [Ping timeout: 268 seconds]
karlosz has joined #lisp
efm has quit [Remote host closed the connection]
efm has joined #lisp
makomo has quit [Quit: WeeChat 2.4]
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 272 seconds]
X-Scale` is now known as X-Scale
Involuntary has joined #lisp
cosimone has quit [Quit: Terminated!]
Jeanne-Kamikaze has quit [Ping timeout: 240 seconds]
vhost- has quit [Ping timeout: 240 seconds]
cosimone has joined #lisp
shifty has joined #lisp
EvW has joined #lisp
buffergn0me has quit [Ping timeout: 240 seconds]
karlosz has quit [Quit: karlosz]
shifty has quit [Ping timeout: 265 seconds]
ggole has quit [Quit: Leaving]
shifty has joined #lisp
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mathrick_ has quit [Ping timeout: 240 seconds]
gendarme has joined #lisp
prince1 has joined #lisp
prince1 has quit [Ping timeout: 272 seconds]
gendarme has quit [Remote host closed the connection]
gendarme has joined #lisp
gendarme has quit [Remote host closed the connection]
gendarme has joined #lisp
ArthurStrong has quit [Quit: leaving]
slyrus has quit [Quit: Leaving]
shka_ has quit [Ping timeout: 260 seconds]
jmercouris has joined #lisp
X-Scale` has joined #lisp
X-Scale has quit [Ping timeout: 260 seconds]
X-Scale` is now known as X-Scale
shka_ has joined #lisp
slyrus has joined #lisp
torbo has joined #lisp
j-r has quit [Quit: ZNC 1.7.3 - https://znc.in]
jr0 has joined #lisp
jr0 has quit [Client Quit]
karlosz has joined #lisp
gravicappa has quit [Ping timeout: 268 seconds]
oni-on-ion has left #lisp ["Left"]
GuerrillaMonkey has joined #lisp
Involuntary has quit [Ping timeout: 260 seconds]
Involuntary has joined #lisp
GuerrillaMonkey has quit [Ping timeout: 240 seconds]
shka_ has quit [Ping timeout: 240 seconds]
EvW has quit [Ping timeout: 240 seconds]
v1sage has quit [Quit: v1sage]
akhetopnu has joined #lisp
<akhetopnu> hello. has anyone here tried to use websocket-driver and send messages to clients from a different thread? It doesn't seem to work. I'm not sure if I'm going crazy or if I'm doing something wrong...
GuerrillaMonkey has joined #lisp
Jesin has quit [Quit: Leaving]
terpri has joined #lisp
Involuntary has quit [Ping timeout: 260 seconds]
Jesin has joined #lisp
Aruseus has joined #lisp
gendarme has quit [Remote host closed the connection]
gendarme has joined #lisp
mathrick_ has joined #lisp
ravndal has quit [Quit: WeeChat 2.7]
GuerrillaMonkey has quit [Remote host closed the connection]
ravndal has joined #lisp
EvW has joined #lisp
vlatkoB has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
karlosz has quit [Quit: karlosz]
mathrick_ has quit [Ping timeout: 240 seconds]
Bourne has quit [Ping timeout: 240 seconds]
vms14 has joined #lisp
prince1 has joined #lisp
lucasb has quit [Quit: Connection closed for inactivity]
shifty has quit [Ping timeout: 268 seconds]
shifty has joined #lisp
prince1 has quit [Ping timeout: 272 seconds]
gdsg has joined #lisp
karlosz has joined #lisp
cosimone has quit [Quit: Quit.]
frodef has quit [Ping timeout: 265 seconds]
quazimodo has joined #lisp
Necktwi_ has joined #lisp
Necktwi has quit [Ping timeout: 265 seconds]
gdsg has quit [Quit: Leaving]
Inline has quit [Quit: Leaving]
akhetopnu has quit [Quit: Konversation terminated!]
jmercouris has quit [Remote host closed the connection]
karlosz has quit [Quit: karlosz]
karlosz has joined #lisp
rwcom2 has joined #lisp
rwcom has quit [Ping timeout: 268 seconds]
rwcom2 is now known as rwcom
z147 has quit [Quit: z147]
ebzzry has joined #lisp
nesomil has joined #lisp
CrazyPython has joined #lisp
CrazyPython has quit [Read error: Connection reset by peer]
ebzzry has quit [Ping timeout: 265 seconds]
karlosz has quit [Quit: karlosz]
varjag has quit [Quit: ERC (IRC client for Emacs 26.1)]
nesomil has quit [Ping timeout: 260 seconds]