< 1358812807 526582 :ion!ion@heh.fi PRIVMSG #esoteric :`run printf '%s\n' '#!/bin/sh' "find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r | xargs -d'\n' -r tac -- | grep \"^..:..:..: <"'$1'">\" | head -n 1" >bin/seen; chmod 755 bin/seen; cat bin/seen < 1358812810 566590 :HackEgo!codu@codu.org PRIVMSG #esoteric :​#!/bin/sh \ find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r | xargs -d'\n' -r tac -- | grep "^..:..:..: <$1>" | head -n 1 < 1358812815 730206 :ion!ion@heh.fi PRIVMSG #esoteric :`seen elliott < 1358812818 98827 :HackEgo!codu@codu.org PRIVMSG #esoteric :23:54:46: oerjan: ok you make it search in reverse order then \ xargs: tac: terminated by signal 13 < 1358812828 62301 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :hm we definitely want it to be case insensitive < 1358812852 218011 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :HackEgo: how tacky < 1358812895 380310 :ion!ion@heh.fi PRIVMSG #esoteric :Someone else figure the SIGPIPE thing out. :-P < 1358812909 99944 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`cat bin/log < 1358812909 859806 :HackEgo!codu@codu.org PRIVMSG #esoteric :​#!/bin/sh \ cd /var/irclogs/_esoteric \ if [ "$1" ]; then \ grep -P -i -- "$1" ????-??-??.txt | shuf -n 1 \ else \ file=$(shuf -en 1 ????-??-??.txt) \ echo "$file:$(shuf -n 1 $file)" \ fi < 1358812921 271965 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run sed -is 's/grep/grep -P -i/' bin/seen < 1358812924 22420 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358812929 233274 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`cat bin/seen < 1358812930 106561 :HackEgo!codu@codu.org PRIVMSG #esoteric :​#!/bin/sh \ find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r | xargs -d'\n' -r tac -- | grep -P -i "^..:..:..: <$1>" | head -n 1 < 1358812972 333546 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :ion: that is probably not really any faster btw < 1358812976 951748 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :since it has to list all the kajillion files < 1358812985 699710 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :which takes a noticeable amount of time locally < 1358813005 971253 :ion!ion@heh.fi PRIVMSG #esoteric :`run time find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r >/dev/null < 1358813007 976634 :HackEgo!codu@codu.org PRIVMSG #esoteric :​ \ real 0m1.196s \ user 0m0.560s \ sys 0m1.080s < 1358813042 628907 :ion!ion@heh.fi PRIVMSG #esoteric :`run time sh -c 'find /var/irclogs/_esoteric -mindepth 1 -maxdepth 1 -type f -name '????-??-??.txt' | sort -r >/dev/null' < 1358813044 381405 :HackEgo!codu@codu.org PRIVMSG #esoteric :​ \ real 0m0.930s \ user 0m0.620s \ sys 0m0.650s < 1358813073 186266 :ion!ion@heh.fi PRIVMSG #esoteric :'''' error, but i think time might not work here. < 1358813075 154596 :ion!ion@heh.fi PRIVMSG #esoteric :`run time true < 1358813076 149777 :HackEgo!codu@codu.org PRIVMSG #esoteric :​ \ real 0m0.001s \ user 0m0.000s \ sys 0m0.000s < 1358813084 486619 :ion!ion@heh.fi PRIVMSG #esoteric :`run bash -c 'time true' < 1358813085 457989 :HackEgo!codu@codu.org PRIVMSG #esoteric :​ \ real 0m0.001s \ user 0m0.000s \ sys 0m0.000s < 1358813090 636170 :ion!ion@heh.fi PRIVMSG #esoteric :`run sh -c 'time true' < 1358813091 598848 :HackEgo!codu@codu.org PRIVMSG #esoteric :sh: time: not found < 1358813095 670573 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :`run cd /var/irclogs/_esoteric; ls ????-??-??.txt < 1358813097 699310 :HackEgo!codu@codu.org PRIVMSG #esoteric :2003-01-18.txt \ 2003-01-19.txt \ 2003-01-20.txt \ 2003-01-21.txt \ 2003-01-22.txt \ 2003-01-23.txt \ 2003-01-24.txt \ 2003-01-25.txt \ 2003-01-26.txt \ 2003-01-27.txt \ 2003-01-28.txt \ 2003-01-29.txt \ 2003-01-30.txt \ 2003-01-31.txt \ 2003-02-01.txt \ 2003-02-02.txt \ 2003-02-03.txt \ 2003-02-04.txt \ 2003-02-05.txt \ 2003-02-06.txt \ 2003-02-07 < 1358813112 404164 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :`run cd /var/irclogs/_esoteric; ls ????-??-??.txt | tac < 1358813114 608259 :HackEgo!codu@codu.org PRIVMSG #esoteric :2013-01-22.txt \ 2013-01-21.txt \ 2013-01-20.txt \ 2013-01-19.txt \ 2013-01-18.txt \ 2013-01-17.txt \ 2013-01-16.txt \ 2013-01-15.txt \ 2013-01-14.txt \ 2013-01-13.txt \ 2013-01-12.txt \ 2013-01-11.txt \ 2013-01-10.txt \ 2013-01-09.txt \ 2013-01-08.txt \ 2013-01-07.txt \ 2013-01-06.txt \ 2013-01-05.txt \ 2013-01-04.txt \ 2013-01-03.txt \ 2013-01-02 < 1358813133 573082 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :you can make ls sort reversed < 1358813139 857015 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :oh < 1358813168 609120 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run cd /var/irclogs/_esoteric; ls -r < 1358813169 918437 :HackEgo!codu@codu.org PRIVMSG #esoteric :stalker.php \ latest.txt \ index.php \ 2013-01-22.txt \ 2013-01-22-raw.txt \ 2013-01-21.txt \ 2013-01-21-raw.txt \ 2013-01-20.txt \ 2013-01-20-raw.txt \ 2013-01-19.txt \ 2013-01-19-raw.txt \ 2013-01-18.txt \ 2013-01-18-raw.txt \ 2013-01-17.txt \ 2013-01-17-raw.txt \ 2013-01-16.txt \ 2013-01-16-raw.txt \ 2013-01-15.txt \ 2013-01-15-raw.txt \ 2013-01 < 1358813179 978055 :ion!ion@heh.fi PRIVMSG #esoteric :stalker.php? < 1358813181 476646 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run cd /var/irclogs/_esoteric; ls -r | grep '????-??-??\.txt' < 1358813183 207270 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358813190 6896 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :ion: probably what runs stalker mode? < 1358813194 745107 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run cd /var/irclogs/_esoteric; ls -r | grep '....-..-..\.txt' | head -n 1 < 1358813196 590087 :HackEgo!codu@codu.org PRIVMSG #esoteric :2013-01-22.txt < 1358813259 951478 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run echo "#!/bin/sh" >bin/seen; echo 'cd /var/irclogs/_esoteric' >>bin/seen; echo 'for file in $(ls -r | grep "....-..-..\.txt"); do grep -P -i "^..:..:..: <$1>" $file; done | tail -n 1' >>bin/seen; chmod +x bin/seen < 1358813262 620632 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :`run cd /var/irclogs/_esoteric; ls -r ????-??-??.txt < 1358813263 103164 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358813264 826829 :HackEgo!codu@codu.org PRIVMSG #esoteric :2013-01-22.txt \ 2013-01-21.txt \ 2013-01-20.txt \ 2013-01-19.txt \ 2013-01-18.txt \ 2013-01-17.txt \ 2013-01-16.txt \ 2013-01-15.txt \ 2013-01-14.txt \ 2013-01-13.txt \ 2013-01-12.txt \ 2013-01-11.txt \ 2013-01-10.txt \ 2013-01-09.txt \ 2013-01-08.txt \ 2013-01-07.txt \ 2013-01-06.txt \ 2013-01-05.txt \ 2013-01-04.txt \ 2013-01-03.txt \ 2013-01-02 < 1358813265 609115 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`seen elliott < 1358813273 129313 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :oerjan: that does the ls in the shell, though < 1358813277 305034 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :so you're not saving anything < 1358813285 237191 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :er < 1358813290 217212 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run echo "#!/bin/sh" >bin/seen; echo 'cd /var/irclogs/_esoteric' >>bin/seen; echo 'for file in $(ls -r | grep "....-..-..\.txt"); do grep -P -i "^..:..:..: <$1>" $file; done | head -n 1' >>bin/seen; chmod +x bin/seen < 1358813307 186320 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :hm... < 1358813328 18757 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358813329 953379 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358813346 820883 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :`seen bike < 1358813377 774036 :HackEgo!codu@codu.org PRIVMSG #esoteric :00:06:30: ion: probably what runs stalker mode? < 1358813384 862095 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`seen elliott < 1358813386 130194 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :ouch < 1358813392 918394 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :why is this slower. < 1358813398 921784 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :oh hm < 1358813415 82383 :HackEgo!codu@codu.org PRIVMSG #esoteric :00:01:49: `cat bin/log < 1358813429 841071 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :what. < 1358813434 905181 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :gee < 1358813446 271907 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :presumably for `seen me it ought to return `seen me < 1358813447 721097 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :elliott: you're not doing each file backwards < 1358813454 875211 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`run echo "#!/bin/sh" >bin/seen; echo 'cd /var/irclogs/_esoteric' >>bin/seen; echo 'ls -r | grep "....-..-..\.txt" | while read file; do grep -P -i "^..:..:..: <$1>" $file | tail -n 1; done | head -n 1' >>bin/seen; chmod +x bin/seen < 1358813455 837775 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :oooooh < 1358813458 21569 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358813458 777146 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :oerjan: right. < 1358813461 37254 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :`seen elliott < 1358813477 257073 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :well this isn't very good < 1358813487 797877 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :grep -P is apparently PCRE mode, i'm lost < 1358813491 777958 :HackEgo!codu@codu.org PRIVMSG #esoteric :00:11:01: `seen elliott < 1358813500 224347 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :"success!" < 1358813508 365963 :myndzi!myndzi@2600:3c01::f03c:91ff:fedf:3d4e PRIVMSG #esoteric :i can write regex but i can never seem to use regex grep < 1358813513 194289 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :what is going on here ? < 1358813513 674647 :myndzi!myndzi@2600:3c01::f03c:91ff:fedf:3d4e PRIVMSG #esoteric :it's kind of annoying < 1358813519 418071 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :c00kiemon5ter: "engineering" < 1358813560 978181 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :does anyone wnat to optimise this code < 1358813583 781259 :epicmonkey!~epicmonke@188.134.41.175 QUIT :Ping timeout: 245 seconds < 1358813635 654950 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :`run sed -i 's/-P/-H -P/' bin/seen < 1358813638 547864 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358813643 292010 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :`seen elliott < 1358813656 44759 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :"perl" "compatible" "regular" expressions < 1358813659 919031 :myndzi!myndzi@2600:3c01::f03c:91ff:fedf:3d4e PRIVMSG #esoteric :speaking of "engineering", any of you play spacechem? < 1358813665 322162 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :kmc: not very expressive either < 1358813668 84928 :oerjan!oerjan@sprocket.nvg.ntnu.no PRIVMSG #esoteric :that's quite awful... < 1358813674 385592 :HackEgo!codu@codu.org PRIVMSG #esoteric :2013-01-22.txt:00:12:40: does anyone wnat to optimise this code < 1358813676 306245 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :i feel likei should complain about grep's regex implementation too < 1358813678 177915 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :"oh well" < 1358813678 419420 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :oerjan: I like how the original version was by far the fastest < 1358813686 637833 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :Bike: please go ahead < 1358813696 413193 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :no we already covered that, pike bla bla bla < 1358813705 549790 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :bla < 1358813726 123671 :olsner!~salparot@c83-252-194-156.bredband.comhem.se PRIVMSG #esoteric :pike? < 1358813731 527749 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :is there a good way to profile shell scripts < 1358813746 515058 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :I hope not < 1358813746 733903 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :olsner: rob, rc2 and shit < 1358813759 81242 :olsner!~salparot@c83-252-194-156.bredband.comhem.se PRIVMSG #esoteric :ah, not pike the programming language then < 1358813770 796175 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :or whatever that implementation is called < 1358813816 340420 :augur!~augur@208.58.5.87 JOIN :#esoteric < 1358813828 902946 :olsner!~salparot@c83-252-194-156.bredband.comhem.se PRIVMSG #esoteric :(http://pike.lysator.liu.se/) < 1358813894 527451 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :http://swtch.com/~rsc/regexp/regexp1.html this maybe? < 1358813908 747213 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :well that's the paper < 1358813929 181429 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :but last time it was mentioned somebody (probably elliott, why must you mock me) mentioned a regex implementation based on it < 1358813935 744812 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :google's RE2? < 1358813939 688993 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :yeah that one. < 1358813946 323227 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :yeah it's pretty good < 1358813950 675808 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :i wrote incomplete Haskell bindings < 1358813958 182055 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :a friend used RE2 to make http://livegrep.com < 1358814462 922646 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do grep -i "^..:..:..: " "$file" | tail -n 1; done | head -n 1 < 1358814493 770947 :HackEgo!codu@codu.org PRIVMSG #esoteric :00:27:42: `run ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do grep -i "^..:..:..: " "$file" | tail -n 1; done | head -n 1 < 1358815052 628045 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :I can imagine some ways to write really horrific Smalltalk code < 1358815064 813385 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :smalltalk golf < 1358815070 175755 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :you could enter it into my devious code contest < 1358815072 346505 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :if i ever run that < 1358815080 817592 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :you can write bytecode, ,put it in a byte array, and evaluate it < 1358815097 915559 :olsner!~salparot@c83-252-194-156.bredband.comhem.se PRIVMSG #esoteric :that's not devious, that's obvious < 1358815098 422935 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :There are objects that respond to value to mean something other than execution or cached or whatever: < 1358815101 352419 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :calling out to assembly is so boring though! < 1358815108 440333 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :i did that in haskell once < 1358815121 659541 :kmc!~keegan@ec2-50-17-26-83.compute-1.amazonaws.com PRIVMSG #esoteric :with native machine code < 1358815123 845299 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :now, if you could treat an object as a byte array and evaluate it < 1358815127 229829 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :then we're talkin < 1358815134 263172 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :(2 > 1) ifTrue: 'a' -> 'b' ifFalse: 'b' -> 'a' < 1358815155 767300 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :Bike at the metaprogramming level, you can do lots of oddities. < 1358815156 732494 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :The result of that is 'b' < 1358815157 455995 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :what's -> do < 1358815164 136124 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Makes an association < 1358815174 195354 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :its the association operator < 1358815175 162613 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :'a' -> 'b' is an Association with key 'a' and value 'b' < 1358815181 436334 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :oh < 1358815188 637596 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :so why doesn't it return however you notate {a,b} < 1358815189 194753 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :is it just a tuple < 1358815192 346878 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :a := 'a' -> 'b'. creates an association < 1358815205 9378 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :sounds like a tuple < 1358815207 84383 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :if it's just an operator precedence thing than that's also boring < 1358815215 887779 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :it is an object of class Association < 1358815218 755208 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :elliott, well, it's Smalltalk, don't expect plain tuples < 1358815231 115214 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :sounds like a plain tuple with the name Association < 1358815231 603065 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :In particular, its parts are accessed with key and ... value < 1358815232 915500 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :why couldn't you have plain tuples in smalltalk < 1358815242 532541 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :Bike everythign is an object < 1358815245 416852 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :right < 1358815254 552753 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :so you have a Tuple object that responds to member0: or w/e < 1358815265 95755 :oerjan!oerjan@sprocket.nvg.ntnu.no QUIT :Quit: Good night < 1358815267 574430 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :or well how you already do arrays probably < 1358815268 296890 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :There are arrays < 1358815268 626435 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :so you COULD create a method #asTuple for association < 1358815281 459841 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :{'a'. 'b'} at: 1 < 1358815282 663106 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Is 'a' < 1358815298 519872 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :But it's nice to store and document the meaning of the container < 1358815301 11438 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :anyway, explain your "deviousness", sgeo. < 1358815308 990081 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :Bike: are you as bored as me < 1358815319 149966 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :yes, yes i am. < 1358815320 153415 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :'a' -> 'b' is an object, that responds to the value message < 1358815329 816062 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :smalltalk is way more interesting than... some tv show i'm not really paying attention to < 1358815341 790574 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :ifTrue:ifFalse: sends value to whichever argument is the correct one < 1358815348 311758 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :saijanai_: metaprogramming reminds me, what kind of messages do blocks respond to? < 1358815353 47708 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Normally, the value message is sent to a block to execute it < 1358815374 627318 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :But in this case, the value message is being sent to an Association < 1358815379 49526 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :Bike: what's the tv show < 1358815384 890632 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :#value, #value:, #value:value: etc < 1358815405 213583 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :elliott: something about squids that doesn't have nearly enough biology < 1358815428 847146 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :crocasquiduana? < 1358815438 411310 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :Bike: biology just gets in the way of squids really < 1358815445 95976 :copumpkin!~copumpkin@unaffiliated/copumpkin QUIT :Ping timeout: 248 seconds < 1358815448 538213 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :a new scyfy horror movie < 1358815465 603061 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :nope squid biology is awesome sorry < 1358815477 17602 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :i would watch a textbook on cephalopodology in tv show form < 1358815481 400983 :copumpkin!~copumpkin@unaffiliated/copumpkin JOIN :#esoteric < 1358815502 417273 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :ok but only if it's not a documentary < 1358815508 910654 :elliott!elliott@unaffiliated/elliott PRIVMSG #esoteric :romantic comedy series about squid biology < 1358815509 684134 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :pitch it to the History or Discovery channels but you need to have aliens < 1358815514 214137 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :yeah, that'd be good. < 1358815515 177023 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :| assoc | < 1358815515 418644 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :assoc := Association new. < 1358815515 680787 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :assoc ifNotNilDo: assoc. < 1358815533 48715 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :what, smalltalk has nil? < 1358815533 531605 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :What does assoc look like now? < 1358815554 322200 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :nil is one of the 6 predefined words of Smalltalk < 1358815582 537331 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :what's it for? doesn't really seem like a language that needs a null pointer < 1358815585 661798 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: " '$0 ~ s{x=$0} END{if(!x) exit 1; print x}' "$file" && break; done < 1358815587 951219 :HackEgo!codu@codu.org PRIVMSG #esoteric :00:46:25: `run ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: " '$0 ~ s{x=$0} END{if(!x) exit 1; print x}' "$file" && break; done < 1358815605 688936 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :I'd blame this on the use of the same selector (method name) to mean different things to different classes < 1358815612 742840 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :its the recipient of #ifTrue: < 1358815629 555085 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :oh, so just the false value? < 1358815634 712315 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Where with generic methods, each method presumably has one intended meaning, with this style of OO, the same method name can be used to mean utterly different things in different contexts < 1358815642 581929 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :excuxe, the #ifNil: message < 1358815644 512259 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Bike, false is the false value < 1358815651 884002 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :so... what's nil for < 1358815659 119655 :monqy!~help@pool-98-108-214-230.snloca.dsl-w.verizon.net PRIVMSG #esoteric :nil value < 1358815660 703282 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :it is the default object type for any undefined variable name < 1358815675 130247 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :blurgh. < 1358815675 613434 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :so you automatically catch undefined variables < 1358815678 47801 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run printf '%s\n' '#!/bin/sh' 'ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: <$1>" '$0 ~ s{x=$0} END{if(!x) exit 1; print x}' "$file" && break; done' >bin/seen < 1358815679 253766 :HackEgo!codu@codu.org PRIVMSG #esoteric :bash: -c: line 0: syntax error near unexpected token `(' \ bash: -c: line 0: `printf '%s\n' '#!/bin/sh' 'ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: <$1>" '$0 ~ s{x=$0} END{if(!x) exit 1; print x}' "$file" && break; done' >bin/seen' < 1358815698 253231 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :<.< < 1358815723 817305 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run echo '#!/bin/sh' >bin/seen; echo 'ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: <$1>" '$0 ~ s{x=$0} END{if(!x) exit 1; print x}' "$file" && break; done' >>bin/seen < 1358815724 811527 :HackEgo!codu@codu.org PRIVMSG #esoteric :bash: -c: line 0: syntax error near unexpected token `(' \ bash: -c: line 0: `echo '#!/bin/sh' >bin/seen; echo 'ls -r /var/irclogs/_esoteric/????-??-??.txt | while read -r file; do awk -vs="^..:..:..: <$1>" '$0 ~ s{x=$0} END{if(!x) exit 1; print x}' "$file" && break; done' >>bin/seen' < 1358815732 195355 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :I think this is an argument for having first class methods < 1358815741 859898 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Something more like CLOS than like Smalltalk < 1358815749 508501 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :ah :P < 1358815773 372451 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :sgeo I'm not familiar with how CLOS does things < 1358815777 458520 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :i think i asked this before, but, i thought you didn't have to have a notion of methods, just objects responding however they want to messages. which would be methods in most situations but not necessarily. < 1358815809 473131 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :I'm not sure what CLOS has to do with anything. < 1358815822 889000 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :saijanai_, you create generic functions, and then can separately define implementations if, say, argument 1 is some class or a subclass < 1358815833 6638 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :a message in smalltalk is a bunch of variables on the stack followed by the method name < 1358815847 593779 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Bike, just noting a different between CLOS and Smalltalk < 1358815850 357313 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Besides the obvious < 1358815859 91504 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :"a difference"? they're totally different < 1358815893 785374 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run curl -s http://sprunge.us/bCUe >bin/seen < 1358815898 265619 :HackEgo!codu@codu.org PRIVMSG #esoteric :No output. < 1358815908 371100 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`cat bin/seen < 1358815909 339467 :HackEgo!codu@codu.org PRIVMSG #esoteric :cat: bin/seen : No such file or directory < 1358815911 631549 :saijanai_!~lawsoneng@ip70-190-21-22.ph.ph.cox.net PRIVMSG #esoteric :Sgeo I imagine StrongTalk allows something like that, but StrongTalk never became real popular, even by Smalltalk standards < 1358815967 328067 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`ls bin < 1358815968 459577 :HackEgo!codu@codu.org PRIVMSG #esoteric :​? \ @ \ WELCOME \ addquote \ allquotes \ anonlog \ botsnack \ calc \ define \ delquote \ emoclew \ etymology \ forget \ fortune \ frink \ google \ hatesgeo \ interp \ joustreport \ jousturl \ json \ karma \ karma- \ karma+ \ learn \ list \ lists \ log \ logurl \ lua \ luac \ luarocks \ luarocks-admin \ macro \ makelist \ maketext \ < 1358815969 468368 :augur_!~augur@208.58.5.87 JOIN :#esoteric < 1358815971 281258 :augur!~augur@208.58.5.87 QUIT :Ping timeout: 244 seconds < 1358816003 255176 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`ls bin | tac < 1358816004 497086 :HackEgo!codu@codu.org PRIVMSG #esoteric :ls: cannot access bin | tac: No such file or directory < 1358816005 738384 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :I thought strongtalk was a smalltalk with strong typing? CLOS isn't really an efficiency thing, it's just a way of object-system-ing that's different from smalltalk < 1358816022 5963 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :Bike, here's what I'm getting at. < 1358816033 552851 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run ls bin | tac < 1358816034 765194 :HackEgo!codu@codu.org PRIVMSG #esoteric :zalgoerjan \ zalgo \ wtf \ words \ word \ wl \ WELCOME \ WeLcOmE \ welcome \ url \ units \ translatetoerjan \ translateto \ translatefromto \ translate \ toutf8 \ tell \ tclkit \ show \ seens \ seen \ searchlog \ runce \ runc \ run \ rot13 \ roll \ rng \ relcome \ randomanonlog \ quotes \ quote \ quørjan \ quoerjan \ quachaf \ qc \ prefixes \ ping < 1358816039 804109 :Sgeo!~Sgeo@ool-ad034ea6.dyn.optonline.net PRIVMSG #esoteric :With CLOS, each generic function is a concrete value, a thing, that's intended to have one sort of functionality. < 1358816050 199385 :Bike!~Glossina@63-229-134-7.ptld.qwest.net PRIVMSG #esoteric :sure. < 1358816050 724549 :c00kiemon5ter!~c00kiemon@foss-aueb/coder/c00kiemon5ter PRIVMSG #esoteric :`run cat bin/seen < 1358816051 538949 :HackEgo!codu@codu.org PRIVMSG #esoteric :​ ERROR: The requested URL could not be retrieved