rainthree has quit [Remote host closed the connection]
rainthree has joined #commonlisp
<mesaoptimizer>
I see
ryanbw has joined #commonlisp
pve has joined #commonlisp
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
X-Scale86 has joined #commonlisp
X-Scale has quit [Ping timeout: 250 seconds]
<rainthree>
dbotton: does CLOG have the feature of automatic updating the html in browser (through websockets) when a relevant lisp function that generates the html (or part of the html) is recompiled? So that one doesn't have to manually refresh the page after each change
ryanbw has quit [Ping timeout: 246 seconds]
X-Scale86 has quit [Quit: Client closed]
<rainthree>
dbotton: question2: as the user clicks on a button (navigation button, let's say) in a site made with reblocks(weblocks), only the relevant part of the html will be updated, without the need to refresh the whole page. Does CLOG support that?
scymtym has quit [Read error: Connection reset by peer]
scymtym has joined #commonlisp
czy has quit [Ping timeout: 256 seconds]
shawnw has quit [Ping timeout: 246 seconds]
danse-nr3 has joined #commonlisp
ym has joined #commonlisp
czy has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
czy has quit [Remote host closed the connection]
ryanbw has joined #commonlisp
czy has joined #commonlisp
nederhrj has joined #commonlisp
inline has joined #commonlisp
inline is now known as Guest8997
Guest8997 has quit [Remote host closed the connection]
Inline has joined #commonlisp
Inline is now known as Guest9047
nederhrj has quit [Changing host]
nederhrj has joined #commonlisp
Guest9047 has quit [Remote host closed the connection]
<ixelp>
Brain dump â Reduce vs fold in Common Lisp
donleo has joined #commonlisp
<dbotton>
Question 1 yes rainthree
rainthree_ has joined #commonlisp
<dbotton>
2 also yes
rainthree_ has quit [Client Quit]
<beach>
I think I know the reason why something "as fundamental as fold was not included...". Because if every function that some person thinks is fundamental were included, then the standard would be many times its current size, and the current size is already considered too big by some.
rainthree has quit [Ping timeout: 240 seconds]
fe[nl]ix has quit [Server closed connection]
fe[nl]ix has joined #commonlisp
jonatack has joined #commonlisp
nederhrj has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
danse-nr3 has quit [Ping timeout: 264 seconds]
danse-nr3 has joined #commonlisp
AetherWind has joined #commonlisp
awlygj has quit [Ping timeout: 260 seconds]
awlygj has joined #commonlisp
yitzi has joined #commonlisp
skempf has quit [Server closed connection]
awlygj has quit [Quit: Lost terminal]
skempf has joined #commonlisp
seanw has joined #commonlisp
msv has quit [Remote host closed the connection]
nederhrj has joined #commonlisp
flip214 has quit [Server closed connection]
flip214 has joined #commonlisp
King_julian has quit [Ping timeout: 268 seconds]
zetef has joined #commonlisp
zetef has quit [Client Quit]
nederhrj has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
mwnaylor has quit [Ping timeout: 272 seconds]
nederhrj has joined #commonlisp
White_Flame has quit [Read error: Connection reset by peer]
czy has quit [Ping timeout: 246 seconds]
synchrom1 has quit [Read error: Connection reset by peer]
synchromesh has joined #commonlisp
czy has joined #commonlisp
rainthree has joined #commonlisp
Inline has quit [Quit: Leaving]
synchrom1 has joined #commonlisp
amb007 has quit [Ping timeout: 252 seconds]
synchromesh has quit [Ping timeout: 268 seconds]
synchromesh has joined #commonlisp
amb007 has joined #commonlisp
White_Flame has joined #commonlisp
random-nick has joined #commonlisp
synchrom1 has quit [Ping timeout: 256 seconds]
amb007 has quit [Read error: Connection reset by peer]
amb007 has joined #commonlisp
synchrom1 has joined #commonlisp
King_julian has joined #commonlisp
synchromesh has quit [Ping timeout: 256 seconds]
White_Flame has quit [Read error: Connection reset by peer]
Inline has joined #commonlisp
xaos has quit [Server closed connection]
xaos has joined #commonlisp
White_Flame has joined #commonlisp
seanw has quit [Remote host closed the connection]
czy has quit [Ping timeout: 252 seconds]
sailorCat has quit [Server closed connection]
sailorCat has joined #commonlisp
seanw has joined #commonlisp
White_Flame has quit [Ping timeout: 256 seconds]
nederhrj has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
oneeyedalien has joined #commonlisp
X-Scale has joined #commonlisp
nederhrj has joined #commonlisp
X-Scale has quit [Ping timeout: 250 seconds]
X-Scale has joined #commonlisp
nederhrj has quit [Changing host]
nederhrj has joined #commonlisp
oneeyedalien has quit [Quit: Leaving]
attila_lendvai has joined #commonlisp
<rainthree>
bravo: my guess is that reduce is more fundamental in CL than fold
<rainthree>
*beach:
mgl_ has joined #commonlisp
pillton has quit [Remote host closed the connection]
<bike>
this blog post seems a little incorrect. reduce never calls the function with one argument. and, if you provide an :initial-value, it never calls the function with zero arguments either, and it pretty much behaves like foldl or foldr depending on whether you put from-end.
<yitzi>
Which post?
<bike>
the one rainthree linked a few hours ago.
nederhrj has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
pranav has quit [Remote host closed the connection]
<yitzi>
Yes, I suggested corrections at the time. I don't remember where I did it though.
jonatack has joined #commonlisp
nederhrj has joined #commonlisp
<rainthree>
bike: good to know
<rainthree>
rbotton: nice
danse-nr3 has quit [Ping timeout: 252 seconds]
cmack has quit [Remote host closed the connection]
cmack has joined #commonlisp
<yitzi>
bike: yes, I made those points via email, including the fact that foldl/list is trivial with :initial-value and REDUCE makes FOLD kind of redundant.
<bike>
you could still argue that the 0-ary thing is pretty weird and initial-value should be a required argument instead of optional.
<yitzi>
Yeah, the specs do explain it, but I had to play around with it to really grasp it.
<_death>
bike: why would the nullary case be weird?.. also, the paragraph talking about (reduce #'+ floats) where floats is simply the empty list blames reduce for behavior of + and has unreasonable expectations (should've passed an empty list of unicorns!)
vms14_ is now known as vms14
Noisytoot has quit [Ping timeout: 252 seconds]
anticomputer has joined #commonlisp
anticomputer_ has quit [Ping timeout: 260 seconds]
jonatack has quit [Ping timeout: 272 seconds]
Noisytoot has joined #commonlisp
White_Flame has joined #commonlisp
<_death>
also, it claims fold has no special case.. the empty list is a special case. reduce simply adds another special case when no initial value is supplied
danse-nr3 has joined #commonlisp
danse-nr3 has quit [Remote host closed the connection]
danse-nr3 has joined #commonlisp
lucasta has joined #commonlisp
nederhrj has quit [Quit: My Unrecognized Mac has gone to sleep. ZZZzzz…]
White_Flame has quit [Remote host closed the connection]
jonatack has joined #commonlisp
White_Flame has joined #commonlisp
<_death>
genius comment in clhs entry though, one to keep in mind for code obfuscation day.. (reduce #'- '(1 2 3 4) :from-end t) ;Alternating sum.
jonatack has quit [Ping timeout: 256 seconds]
jonatack has joined #commonlisp
danse-nr3 has quit [Read error: Connection reset by peer]
jonatack has quit [Ping timeout: 252 seconds]
danse-nr3 has joined #commonlisp
amb007 has quit [Ping timeout: 246 seconds]
nederhrj has joined #commonlisp
<bike>
_death: it's weird in that it's a very particular case that complicates e.g. the type signature. you can't require that the argument to reduce is a (function (t t)), that sorta thing.
<_death>
I agree that it's more complicated, and maybe initial-value should've been required to simplify matters
<_death>
when I use reduce I am conditioned to automatically provide an initial-value ;)
<bike>
it's not a big deal or anything, of course
amb007 has joined #commonlisp
jonatack has joined #commonlisp
hexology has quit [Quit: hex on you ...]
Th30n has quit [Quit: going off]
hexology has joined #commonlisp
hexology has quit [Remote host closed the connection]
hexology has joined #commonlisp
reb has joined #commonlisp
hexology has quit [Remote host closed the connection]