yaneko has quit [Read error: Connection reset by peer]
Inline has joined #commonlisp
yaneko has joined #commonlisp
rkazak has joined #commonlisp
alfiee has quit [Ping timeout: 260 seconds]
veqq1 has joined #commonlisp
veqq has quit [Ping timeout: 248 seconds]
veqq1 is now known as veqq
pawa2 has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
Inline has quit [Remote host closed the connection]
notzmv has quit [Ping timeout: 252 seconds]
Inline has joined #commonlisp
Ruby has joined #commonlisp
younder has quit [Remote host closed the connection]
yaneko has quit [Quit: parting]
yaneko has joined #commonlisp
rkazak has joined #commonlisp
selpoke is now known as sellax
younder has joined #commonlisp
markb1 has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 268 seconds]
Inline has quit [Quit: Leaving]
markb1 has joined #commonlisp
veqq1 has joined #commonlisp
veqq has quit [Ping timeout: 244 seconds]
veqq1 is now known as veqq
ixelp has joined #commonlisp
rkazak has joined #commonlisp
Devon has joined #commonlisp
alfiee has joined #commonlisp
nil78 has quit [Read error: Connection reset by peer]
alfiee has quit [Ping timeout: 248 seconds]
Devon has quit [Ping timeout: 248 seconds]
nil78 has joined #commonlisp
markb1 has quit [Ping timeout: 260 seconds]
markb1 has joined #commonlisp
attila_lendvai has joined #commonlisp
deadmarshal_ has quit [Remote host closed the connection]
nil78 has quit [Read error: Connection reset by peer]
rkazak has quit [Ping timeout: 276 seconds]
robin_ is now known as robin
apac has joined #commonlisp
varjag has joined #commonlisp
nil78 has joined #commonlisp
markb1 has quit [Ping timeout: 244 seconds]
yaneko has quit [Read error: Connection reset by peer]
yaneko has joined #commonlisp
entro has quit [Ping timeout: 252 seconds]
entro has joined #commonlisp
markb1 has joined #commonlisp
alfiee has joined #commonlisp
rkazak has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
chomwitt has quit [Ping timeout: 276 seconds]
amoroso has joined #commonlisp
deadmarshal_ has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
Devon has joined #commonlisp
Inline has joined #commonlisp
mwnaylor has quit [Ping timeout: 276 seconds]
alfiee has joined #commonlisp
rkazak has quit [Ping timeout: 272 seconds]
markb1 has quit [Ping timeout: 252 seconds]
alfiee has quit [Ping timeout: 260 seconds]
markb1 has joined #commonlisp
rkazak has joined #commonlisp
cercopith has joined #commonlisp
alfiee has joined #commonlisp
rkazak has quit [Ping timeout: 260 seconds]
amoroso has quit [Ping timeout: 252 seconds]
alfiee has quit [Ping timeout: 248 seconds]
amoroso has joined #commonlisp
amoroso has quit [Client Quit]
markb1 has quit [Ping timeout: 276 seconds]
rkazak has joined #commonlisp
dtman34_ has joined #commonlisp
dtman34 has quit [Ping timeout: 268 seconds]
pranav has quit [Read error: Connection reset by peer]
rkazak has quit [Ping timeout: 272 seconds]
pranav has joined #commonlisp
markb1 has joined #commonlisp
green has joined #commonlisp
amoroso has joined #commonlisp
bpanthi977 has joined #commonlisp
rkazak has joined #commonlisp
random-nick has joined #commonlisp
bpanthi977 has quit [Ping timeout: 276 seconds]
markb1 has quit [Ping timeout: 268 seconds]
mange has quit [Remote host closed the connection]
alfiee has joined #commonlisp
deadmarshal_ has quit [Remote host closed the connection]
markb1 has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
rkazak has quit [Ping timeout: 260 seconds]
markb1 has quit [Ping timeout: 252 seconds]
Guest47 has joined #commonlisp
King_julian has quit [Ping timeout: 244 seconds]
Guest47 has quit [Client Quit]
rainthree has joined #commonlisp
markb1 has joined #commonlisp
rkazak has joined #commonlisp
bpanthi977 has joined #commonlisp
deadmarshal_ has joined #commonlisp
bpanthi977 has quit [Ping timeout: 248 seconds]
alfiee has joined #commonlisp
josrr has joined #commonlisp
rkazak has quit [Ping timeout: 268 seconds]
alfiee has quit [Ping timeout: 260 seconds]
dra has quit [Ping timeout: 246 seconds]
pawa2 has quit [Quit: leaving]
apac has quit [Ping timeout: 272 seconds]
rkazak has joined #commonlisp
bpanthi977 has joined #commonlisp
bpanthi977 has quit [Ping timeout: 260 seconds]
bendersteed has quit [Quit: bendersteed]
bendersteed has joined #commonlisp
decweb has joined #commonlisp
dnhester26 has joined #commonlisp
<dnhester26>
can anyone please help explaining some code? The code is using a macrolet, I just don't understand why use a macro if a regular function will do. Here's the file: https://github.com/Zulu-Inuoe/jzon/blob/develop/src/jzon.lisp#L1128 it's line 1128 in case the link doesn't work properly
<ixelp>
jzon/src/jzon.lisp at develop · Zulu-Inuoe/jzon · GitHub
rkazak has quit [Ping timeout: 265 seconds]
varjag has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.3)]
<Shinmera>
in that case, no idea. in other cases it can be useful since you can use it as a chea inlining mechanism
<Shinmera>
the macro would make sense to me if the class slots were expanded at compile time or something, but
<dnhester26>
what's "chea" cheap?
<Shinmera>
yes
<dnhester26>
thanks
<dnhester26>
what's the benefit of expanding the class slots at compile time? avoiding the extra function call during runtime for speed?
<ixelp>
Unnecessary use of macro. Changing macro usage to generic function. · Zulu-Inuoe/jzon@c7427fb · GitHub
<dnhester26>
Ok, let me see if I understood your example: write inline code depending on the type of the function, and basically this assumes that wherever this macrolet is used, the given `seq` variable is not going to change its type. Is that correct?
<Shinmera>
yeah
<dnhester26>
thanks
<Shinmera>
knowing for the entire body what sequence type it is lets the compiler generate far better code
<Shinmera>
otherwise each access will be generic, since no compiler at the moment is smart enough to do this kind of type unroll on its own.
<dnhester26>
interesting, I take it you use this often in your games to produce more optimized code
<dnhester26>
thanks for the insight into compilers as well
<Shinmera>
more in libraries, but sure.
alfiee has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
dnhester26 has quit [Remote host closed the connection]
jonatack has joined #commonlisp
josrr has quit [Remote host closed the connection]
green has quit [Ping timeout: 252 seconds]
rkazak has joined #commonlisp
Th30n has quit [Quit: going off]
dnhester26 has joined #commonlisp
amoroso has quit [Ping timeout: 260 seconds]
rainthree has quit [Ping timeout: 248 seconds]
surabax has joined #commonlisp
eddof13 has joined #commonlisp
Inline has quit [Ping timeout: 248 seconds]
rkazak has quit [Ping timeout: 276 seconds]
alfiee has joined #commonlisp
triffid has quit [Remote host closed the connection]
alfiee has quit [Ping timeout: 260 seconds]
jrm has quit [Quit: ciao]
triffid has joined #commonlisp
josrr has joined #commonlisp
amoroso has joined #commonlisp
jrm has joined #commonlisp
jrm has quit [Remote host closed the connection]
Posterdati has quit [Remote host closed the connection]
Posterdati has joined #commonlisp
jrm has joined #commonlisp
rkazak has joined #commonlisp
amoroso has quit [Quit: Leaving]
rkazak has quit [Ping timeout: 265 seconds]
jrm has quit [Quit: ciao]
jrm has joined #commonlisp
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
apac has joined #commonlisp
alfiee has joined #commonlisp
rkazak has joined #commonlisp
alfiee has quit [Ping timeout: 244 seconds]
chomwitt has joined #commonlisp
eddof13 has quit [Quit: eddof13]
eddof13 has joined #commonlisp
rkazak has quit [Ping timeout: 265 seconds]
bpanthi977 has joined #commonlisp
bendersteed has quit [Quit: bendersteed]
bpanthi977 has quit [Ping timeout: 260 seconds]
dra has joined #commonlisp
dra has quit [Changing host]
dra has joined #commonlisp
cercopith has quit [Remote host closed the connection]
rkazak has joined #commonlisp
bpanthi977 has joined #commonlisp
alfiee has joined #commonlisp
zxcvz has joined #commonlisp
jonatack has quit [Remote host closed the connection]
alfiee has quit [Ping timeout: 252 seconds]
jonatack has joined #commonlisp
Inline has joined #commonlisp
dnhester26 has quit []
jonatack has quit [Read error: Connection reset by peer]
jonatack has joined #commonlisp
apac has quit [Ping timeout: 265 seconds]
rkazak has quit [Ping timeout: 248 seconds]
JuanDaugherty has joined #commonlisp
Inline has quit [Quit: Leaving]
geminium has joined #commonlisp
Inline has joined #commonlisp
green has joined #commonlisp
wbooze has joined #commonlisp
rainthree has joined #commonlisp
green has quit [Ping timeout: 244 seconds]
zxcvz has quit [Quit: zxcvz]
rkazak has joined #commonlisp
alfiee has joined #commonlisp
josrr has quit [Remote host closed the connection]
rainthree has quit [Ping timeout: 260 seconds]
alfiee has quit [Ping timeout: 260 seconds]
chomwitt has quit [Ping timeout: 268 seconds]
jonatack has quit [Remote host closed the connection]
rainthree has joined #commonlisp
jonatack has joined #commonlisp
nybble has joined #commonlisp
ezakimak has quit [Ping timeout: 248 seconds]
varjag has joined #commonlisp
josrr has joined #commonlisp
Demosthenex has quit [Remote host closed the connection]
rkazak has quit [Ping timeout: 265 seconds]
markb1 has quit [Ping timeout: 272 seconds]
shawnw has joined #commonlisp
JuanDaugherty has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
varjag has quit [Ping timeout: 252 seconds]
markb1 has joined #commonlisp
rkazak has joined #commonlisp
jonatack has quit [Ping timeout: 260 seconds]
alfiee has joined #commonlisp
jonatack has joined #commonlisp
alfiee has quit [Ping timeout: 252 seconds]
rainthree has quit [Ping timeout: 265 seconds]
cage has joined #commonlisp
cage has quit [Excess Flood]
varjag has joined #commonlisp
Lord_of_Life has quit [Ping timeout: 248 seconds]
Lord_of_Life_ has joined #commonlisp
Lord_of_Life_ is now known as Lord_of_Life
cage has joined #commonlisp
varjag has quit [Ping timeout: 276 seconds]
varjag has joined #commonlisp
rkazak has quit [Ping timeout: 248 seconds]
Demosthenex has joined #commonlisp
kevingal has joined #commonlisp
Equill has quit [Ping timeout: 252 seconds]
elderK has joined #commonlisp
nil78 has quit [Read error: Connection reset by peer]
alfiee has joined #commonlisp
nil78 has joined #commonlisp
eddof13 has quit [Quit: eddof13]
alfiee has quit [Ping timeout: 260 seconds]
markb1 has quit [Ping timeout: 260 seconds]
rkazak has joined #commonlisp
Inline has quit [Quit: Leaving]
OverclockedPotat has joined #commonlisp
OverclockedPotat has quit [Max SendQ exceeded]
OverclockedPotat has joined #commonlisp
OverclockedPotat has quit [Changing host]
OverclockedPotat has joined #commonlisp
OverclockedPotat has quit [Max SendQ exceeded]
OverclockedPotat has joined #commonlisp
rkazak has quit [Ping timeout: 252 seconds]
Inline has joined #commonlisp
OverclockedPotat has quit [Max SendQ exceeded]
markb1 has joined #commonlisp
waleee has joined #commonlisp
wbooze has quit [Quit: Leaving]
eddof13 has joined #commonlisp
wbooze has joined #commonlisp
ezakimak has joined #commonlisp
wbooze has quit [Remote host closed the connection]