< 1155859225 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :some Lisp and Smalltalk systems allowed that as I recall. Don't know about Python. < 1155859247 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :maybe there is a module you can use for it... < 1155859339 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :hmm... basically the only part of the parser that touches the main program is a single line... is it possible to put that single line into a try:except that somehow doesn't fuck the program over? < 1155859360 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :"blah = surrealocmds.SurrealoParse(cmd)" < 1155859469 0 :kipple!unknown@unknown.invalid QUIT :Read error: 110 (Connection timed out) < 1155859815 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :hmm... could you make the Parser an iterator? < 1155860037 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :*scratches head* < 1155860046 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Well... the parser parses via iteration.. < 1155860144 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :It runs through all the command functions with a for loop and sees if any of them are triggered, if one is triggered, it returns it. < 1155860186 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :But.. I think I got it now... I basically just enclosed stuff in functions, so in the except statement I can tell it to run the function again... < 1155860207 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Thus giving me something like resumable exceptions. < 1155860207 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :i am talking here about Python Iterators, btw. < 1155860226 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :ACTION nods, "Me too..." < 1155860289 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :hm... < 1155860419 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Python's iterators... are... while and for. < 1155860643 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :um, no. iterators are objects having __iter__ and next methods, and can be used in for ... in loops. < 1155860709 0 :CXI!unknown@unknown.invalid QUIT :Success < 1155860724 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :there is also something called generators... < 1155860751 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Oooh < 1155860791 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Python iterators then... are... pretty much any non-integer... strings, lists, arrays, dictionaries (associative arrays), etc... < 1155860801 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :tuples aren't iterators as well.. < 1155860885 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :No wait... strings don't have the __iter__ method. < 1155860946 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :so, if you made your parser an iterator, you could just do something like for token in parser: token.command() < 1155860974 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :(if I have the syntax right, i am looking things up as we speak) < 1155861120 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :and of course the token.command() could be wrapped in try: except, and maybe you could have one for the parser too. < 1155861137 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :or maybe that would ruin your tracebacks? < 1155861173 0 :oerjanj!unknown@unknown.invalid PRIVMSG #esoteric :anyhow, i should go to bed < 1155861189 0 :oerjanj!unknown@unknown.invalid QUIT :"CYL" < 1155861335 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Oh... I made a CommandList list item to use in the for loop... but... yeah.. he left. < 1155861586 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :ACTION bangs his head against the wall, "Ha! I'm such a shitty programmer it's not even funny." < 1155862708 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Argh... functions give me headaches... I always get a bunch of unexpected errors that I have no idea how to fix. < 1155862718 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :When I work imperitively everything is pretty straightforward to fix. < 1155863265 0 :Sgeo!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155864328 0 :Sgeo!unknown@unknown.invalid QUIT :Read error: 104 (Connection reset by peer) < 1155864527 0 :Sgeo!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155864676 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Hmmm... anyone know how to get Python to import modules twice? < 1155864693 0 :CakeProphet!unknown@unknown.invalid PRIVMSG #esoteric :Apparently it imports once... and then any other commands to import are ignored because it already has the file. < 1155871283 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :... Why would you need to import a module twice? < 1155871303 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :What's next? < 1155871311 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :#include < 1155871315 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :#include < 1155871316 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :? < 1155871832 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :#include < 1155871915 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :>:D < 1155871971 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :www.donotputthebaby.com < 1155871976 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :(Obligatory link) < 1155872022 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :Are there any RSI-avoiding tips other than rest? < 1155872034 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :Mind mf slow responses. < 1155872038 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :*my < 1155872050 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :Ergonomic keyboard, Dvorak, and there are specially designed not-quite-keyboard things that are better for you. < 1155872069 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :I have a Model M and already use Dvorak. < 1155872071 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :Wetware. < 1155872101 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :Don't use a keyboard :P < 1155872106 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :I must. < 1155872116 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :So much more vocabulary. So much more clicking. < 1155872125 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :Don't use a mouse. < 1155872126 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :Oh, wait. < 1155872127 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :Apple sez: "The keyboard is obsolete! Use teh mouse roflcopter" < 1155872133 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :Ratpoison user. :) < 1155872141 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :Th keyboard is easier on me than a mouse. < 1155872145 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :*The < 1155872174 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :As it should be. < 1155872243 0 :Razor-X!unknown@unknown.invalid PRIVMSG #esoteric :Even with a trackball. < 1155873388 0 :Sgeo!unknown@unknown.invalid QUIT :Remote closed the connection < 1155873522 0 :Sgeo!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155873729 0 :Sgeo!unknown@unknown.invalid QUIT :Remote closed the connection < 1155873823 0 :Sgeo!n=sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155874118 0 :CakeProphet!unknown@unknown.invalid QUIT :"haaaaaaaaaa" < 1155874222 0 :Sgeo_!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155875269 0 :Sgeo_!unknown@unknown.invalid QUIT :Remote closed the connection < 1155875271 0 :Sgeo!unknown@unknown.invalid QUIT :Read error: 104 (Connection reset by peer) < 1155875650 0 :Sgeo!n=sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155875662 0 :Sgeo!unknown@unknown.invalid QUIT :Read error: 104 (Connection reset by peer) < 1155878384 0 :Sgeo!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155879386 0 :Arrogant!n=scotty@157.orlando-04-05rs.fl.dial-access.att.net JOIN :#esoteric < 1155886759 0 :clog!unknown@unknown.invalid JOIN :#esoteric < 1155886759 0 :clog!n=nef@bespin.org JOIN :#esoteric < 1155887864 0 :nooga!i=nooga@ip-50.net-41.rev.inter-c.pl JOIN :#esoteric < 1155887870 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :aaa < 1155887873 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :http://www.clifford.at/bfcpu/bfcomp.html < 1155887999 0 :clog!unknown@unknown.invalid QUIT :ended < 1155888000 0 :clog!unknown@unknown.invalid JOIN :#esoteric < 1155888083 0 :GregorR-W!unknown@unknown.invalid QUIT :Remote closed the connection < 1155888133 0 :GregorR-W!n=chatzill@jffwprtest.jf.intel.com JOIN :#esoteric < 1155888258 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :nooga: ? < 1155888260 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :And? < 1155888381 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :well < 1155888396 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :it's almost like c2bf < 1155888440 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :Except it's not intended to be C. < 1155888443 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :Just a subset thereof. < 1155888465 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :And yes, I'm well aware of it. < 1155888611 0 :GregorR!unknown@unknown.invalid PRIVMSG #esoteric :And then, Gregor went to sleep. < 1155888778 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :bah < 1155891180 0 :Sgeo!unknown@unknown.invalid QUIT :"Ex-Chat" < 1155895796 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :mhh < 1155896487 0 :Paragon_!n=scotty@242.orlando-09-10rs.fl.dial-access.att.net JOIN :#esoteric < 1155896508 0 :Arrogant!unknown@unknown.invalid QUIT :Nick collision from services. < 1155896512 0 :Paragon_!unknown@unknown.invalid NICK :Arrogant < 1155896619 0 :anonfunc!unknown@unknown.invalid QUIT : < 1155898262 0 :jix!i=jix@L60b0.l.strato-dslnet.de JOIN :#esoteric < 1155900001 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :u < 1155901370 0 :Arrogant!unknown@unknown.invalid QUIT :Read error: 110 (Connection timed out) < 1155902889 0 :ivan`!unknown@unknown.invalid QUIT :" HydraIRC -> http://www.hydrairc.com <- IRC for those that like to be different" < 1155906256 0 :Arrogant!i=Scotty@109.orlando-09-10rs.fl.dial-access.att.net JOIN :#esoteric < 1155906836 0 :tgwizard!n=tgwizard@c-f33ee155.178-1-64736c10.cust.bredbandsbolaget.se JOIN :#esoteric < 1155909834 0 :Sph1nx!n=sphinx@89-178-39-20.broadband.corbina.ru JOIN :#esoteric < 1155909914 0 :RodgerTheGreat!n=RodgerTh@c-68-41-14-137.hsd1.mi.comcast.net JOIN :#esoteric < 1155909937 0 :RodgerTheGreat!unknown@unknown.invalid PRIVMSG #esoteric :'morning. < 1155910059 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :moin < 1155910062 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :g2g < 1155910063 0 :nooga!unknown@unknown.invalid PRIVMSG #esoteric :bye < 1155910066 0 :nooga!unknown@unknown.invalid QUIT : < 1155910066 0 :RodgerTheGreat!unknown@unknown.invalid PRIVMSG #esoteric :cya < 1155911790 0 :ihope!n=foo@c-71-205-100-59.hsd1.mi.comcast.net JOIN :#esoteric < 1155912685 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :"This channel requires that you have registered and identified yourself with the network's nickname registration services." < 1155912688 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Does it, now? < 1155912827 0 :RodgerTheGreat!unknown@unknown.invalid PRIVMSG #esoteric :hunh < 1155915133 0 :kipple!n=kipple@203.80-202-102.nextgentel.com JOIN :#esoteric < 1155918238 0 :sekhmet!unknown@unknown.invalid QUIT :"leaving" < 1155918273 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :ihope: Yeah, it says that but doesn't enforce it at all >_> < 1155918382 0 :RodgerTheGreat!unknown@unknown.invalid PRIVMSG #esoteric :ACTION stifles a laugh < 1155918392 0 :sekhmet!n=pez@ppp-70-226-129-243.dsl.mdsnwi.ameritech.net JOIN :#esoteric < 1155919258 0 :sekhmet!unknown@unknown.invalid QUIT :"down for a sec or two" < 1155919979 0 :sekhmet!n=pez@ppp-70-226-129-243.dsl.mdsnwi.ameritech.net JOIN :#esoteric < 1155922827 0 :Sgeo!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155923280 0 :Arrogant!unknown@unknown.invalid QUIT :"Leaving" < 1155925326 0 :smokecfh!n=user@53549344.cable.casema.nl JOIN :#esoteric < 1155925675 0 :_jol_!n=_@c5850-a3-2-62-147-21-186.dial.proxad.net JOIN :#esoteric < 1155927812 0 :smokecfh!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927812 0 :Sgeo!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927812 0 :tgwizard!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927813 0 :pgimeno!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927813 0 :GregorR!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927813 0 :bsmntbombdood!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927813 0 :_jol_!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927813 0 :kipple!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927814 0 :GregorR-W!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927814 0 :pikhq!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927823 0 :Sph1nx!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927823 0 :EgoBot!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155927823 0 :_jol_!n=_@62.147.21.186 JOIN :#esoteric < 1155927838 0 :bsmntbombdood!n=root@unaffiliated/bsmntbombdood JOIN :#esoteric < 1155927861 0 :pgimeno!n=pgimeno@80.59.211.124 JOIN :#esoteric < 1155927869 0 :RodgerTheGreat!unknown@unknown.invalid NICK :RodgerTheAFK < 1155927869 0 :Sph1nx!n=sphinx@89-178-39-20.broadband.corbina.ru JOIN :#esoteric < 1155927877 0 :smokecfh!n=user@83.84.147.68 JOIN :#esoteric < 1155927877 0 :Sgeo!n=Sgeo@24.191.97.247 JOIN :#esoteric < 1155927952 0 :_jol_!unknown@unknown.invalid QUIT :Client Quit < 1155928078 0 :sekhmet!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155928098 0 :EgoBot!n=EgoBot@c-24-21-138-66.hsd1.mn.comcast.net JOIN :#esoteric < 1155928103 0 :GregorR!n=gregor@c-24-21-138-66.hsd1.or.comcast.net JOIN :#esoteric < 1155928145 0 :pikhq!n=pikhq@67-21-19-37.clspco.adelphia.net JOIN :#esoteric < 1155928151 0 :kipple!n=kipple@203.80-202-102.nextgentel.com JOIN :#esoteric < 1155928332 0 :GregorR-W!n=chatzill@jffwprtest.jf.intel.com JOIN :#esoteric < 1155928834 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :Silence. . . < 1155929152 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :SILENCE! < 1155929377 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :Da. < 1155929423 0 :pikhq!unknown@unknown.invalid PRIVMSG #esoteric :0^+.^ < 1155930037 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Silence... < 1155930043 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :...is golden. < 1155930233 0 :GregorR-W!unknown@unknown.invalid QUIT :Remote closed the connection < 1155930282 0 :_jol_!n=_@c5850-a3-2-62-147-61-13.dial.proxad.net JOIN :#esoteric < 1155930743 0 :GregorR-W!n=chatzill@jffwprtest.jf.intel.com JOIN :#esoteric < 1155930926 0 :kipple!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155930928 0 :cmeme!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155930928 0 :lindi-!unknown@unknown.invalid QUIT :niven.freenode.net irc.freenode.net < 1155930928 0 :lindi-!n=lindi@kulho150.adsl.netsonic.fi JOIN :#esoteric < 1155930986 0 :kipple!n=kipple@203.80-202-102.nextgentel.com JOIN :#esoteric < 1155931021 0 :Sph1nx!unknown@unknown.invalid QUIT :Client Quit < 1155931062 0 :cmeme!n=cmeme@boa.b9.com JOIN :#esoteric < 1155931091 0 :Sph1nx!n=sphinx@89-178-39-20.broadband.corbina.ru JOIN :#esoteric < 1155931146 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Would that be the code problem causing the netsplits? < 1155931253 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :No, that's the code problem causing Freenode servers to come to life and kill people rampantly. < 1155931257 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :The netsplits are just a side effect. < 1155931494 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Oh. < 1155931513 0 :RodgerTheAFK!unknown@unknown.invalid PRIVMSG #esoteric :hm. < 1155931815 0 :sparr!unknown@unknown.invalid PRIVMSG #esoteric :Cause a netsplit, please. :) < 1155932152 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :[ERROR] Missing required parameter server1. < 1155932326 0 :RodgerTheAFK!unknown@unknown.invalid QUIT :Remote closed the connection < 1155932375 0 :Sph1nx!unknown@unknown.invalid QUIT :Remote closed the connection < 1155932389 0 :RodgerTheGreat!n=RodgerTh@c-68-41-14-137.hsd1.mi.comcast.net JOIN :#esoteric < 1155932415 0 :Sph1nx!n=sphinx@89-178-39-20.broadband.corbina.ru JOIN :#esoteric < 1155932431 0 :Sgeo!unknown@unknown.invalid QUIT :Client Quit < 1155932582 0 :Sgeo!n=Sgeo@ool-18bf61f7.dyn.optonline.net JOIN :#esoteric < 1155933036 0 :smokecfh!unknown@unknown.invalid QUIT :Remote closed the connection < 1155934225 0 :Sph1nx!unknown@unknown.invalid QUIT :Remote closed the connection < 1155934315 0 :Sph1nx!n=sphinx@89-178-39-20.broadband.corbina.ru JOIN :#esoteric < 1155934318 0 :CakeProphet!n=CakeProp@h98.227.213.151.ip.alltel.net JOIN :#esoteric < 1155934582 0 :Sph1nx!unknown@unknown.invalid QUIT :Client Quit < 1155934665 0 :sekhmet!n=pez@ppp-70-226-129-243.dsl.mdsnwi.ameritech.net JOIN :#esoteric < 1155935323 0 :_jol_!unknown@unknown.invalid QUIT :"leaving" < 1155935948 0 :tgwizard!n=tgwizard@c-f33ee155.178-1-64736c10.cust.bredbandsbolaget.se JOIN :#esoteric < 1155936234 0 :clog!unknown@unknown.invalid JOIN :#esoteric < 1155936234 0 :clog!n=nef@66.114.33.57 JOIN :#esoteric < 1155936236 0 :Anders!i=fn@217.211.68.33 JOIN :#esoteric < 1155936264 0 :pgimeno!n=pgimeno@80.59.211.124 JOIN :#esoteric < 1155936495 0 :Sph1nx!n=sphinx@89-178-39-20.broadband.corbina.ru JOIN :#esoteric < 1155937292 0 :Sph1nx!unknown@unknown.invalid QUIT :"До свидания всем!" < 1155939220 0 :preyalone!n=preyalon@c-68-54-29-58.hsd1.sc.comcast.net JOIN :#esoteric < 1155940196 0 :ivan`!i=ivan@wikipedia/ivan JOIN :#esoteric < 1155940672 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :main(){while 1{}} < 1155940676 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Is that a valid C program? < 1155940712 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :No. < 1155940729 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :main(){while(1);} < 1155940734 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :Is as close as you could get to that. < 1155940747 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :Just as short though :P < 1155940920 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :What's that in assembler? < 1155941064 0 :fizzie!unknown@unknown.invalid PRIVMSG #esoteric :main(){main();} is shorter, and might not even crash in some environments. < 1155941180 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :What about a label and a goto? < 1155941423 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :I think 'goto' would put you over. < 1155941594 0 :fizzie!unknown@unknown.invalid PRIVMSG #esoteric :main(){x:goto x;} has as many characters as the while(1); version. < 1155941612 0 :fizzie!unknown@unknown.invalid PRIVMSG #esoteric :main(){for(;;);} is one character shorter, actually. < 1155941861 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :If you use the compiler line: "gcc -Da=main(){while();}" then your program is really short: < 1155941863 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :a < 1155941946 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :You mean the machine code in ASCII is "a"? < 1155941953 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Or the C code is "a"? < 1155941960 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :The C code is "a" < 1155941963 0 :ihope!unknown@unknown.invalid PRIVMSG #esoteric :Oh... yeah. < 1155942298 0 :fizzie!unknown@unknown.invalid PRIVMSG #esoteric :GCC compiles "main(){while(1);}" to 0xeb 0xfe, which is a relative jump to itself. (0xfe there is -2.) < 1155942359 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :Hahah < 1155942361 0 :GregorR-W!unknown@unknown.invalid PRIVMSG #esoteric :Awesome < 1155942437 0 :fizzie!unknown@unknown.invalid PRIVMSG #esoteric :(When optimizing, that is; when not, it does "0x55 0x48 0x89 0xe5 0xeb 0xfe", or in other words "push %rbp; mov %rsp,%rbp; jmp ". And this all on x86_64; would be %ebp and %esp on i386, and something completely different on other archs.) < 1155945465 0 :ivan`!unknown@unknown.invalid QUIT :" HydraIRC -> http://www.hydrairc.com <- Leading Edge IRC"