00:00:57 Slereah: Anyway. 00:01:03 (read) only reads an s-expr. 00:01:06 Hello world <-- won't work 00:01:08 (a b c) <-- works 00:01:16 Slereah: Basically, (read) reads some Scheme code. 00:01:54 But, display (read) works as a one time occurence :o 00:02:14 Slereah: Shut up. (read) reads a peice of scheme code. 00:02:21 That's all you need to know. 00:02:24 Try it. 00:02:26 In the REPL. 00:02:29 Oh, wait. 00:02:36 Slereah: What are you using instead of the run button 00:02:51 I was using the command line of Dr Scheme 00:03:14 Slereah: You are running the graphical IDE. Yes? 00:03:35 Yes. 00:05:41 http://farm4.static.flickr.com/3169/2554098095_a9cd81f67b_o.jpg 00:05:41 What unholy magic is this :o 00:05:48 Slereah: So, you are typing in the window. 00:05:50 Then, PRESS RUN. 00:05:55 A screen will appear at the bottom. 00:06:01 Where you can type scheme code and have it show the result. 00:06:05 And it'll run your program in it. 00:06:05 DO IT 00:06:08 Already did, as soon as you mentioned it! 00:06:20 Slereah: Hokay. :P 00:06:25 Well 'butt' displays because it's parsed as a symbol. 00:06:29 Slereah: Try this. 00:06:34 #$"£()*(SAD 00:06:34 How peculiar. 00:06:40 It'll error out. 00:06:46 Because read READS A SCHEME EXPRESSION. 00:06:47 Ah yes. 00:06:58 Well, what is the input-as-string? 00:07:07 Slereah: Well, (read-line) will do 00:07:10 Something like this: 00:07:17 -!- revcompgeek has left (?). 00:07:31 (define (cat) (display (read-line)) (cat)) 00:07:33 Doesn't do EOF, but who cares. 00:07:37 -!- oerjan has joined. 00:07:39 Use as (cat) in the REPL after running 00:07:40 I tried read line. 00:07:48 "reference to undefined identifier: read-line" 00:08:32 Slereah: Hokay, let me figure out what mzscheme calls it 00:08:33 :P 00:08:59 I set the language to R5RS, is it the awesome one 00:09:07 -!- timotiis has quit (Remote closed the connection). 00:09:07 Slereah: No. 00:09:12 Set it to Standard. 00:09:18 What is? 00:09:18 It is standard. 00:09:22 Slereah: No. 00:09:24 "Standard (R5RS)" 00:09:24 It's set at "R5RS". 00:09:26 Oh. 00:09:29 Slereah: Wait. 00:10:32 Slereah: K wait. 00:10:54 * Slereah waits some more 00:10:58 * Slereah nops 00:11:02 o.o 00:11:04 Slereah: PLT->Textual. 00:11:09 what on earth are you kids doing 00:11:17 R5RS is the scheme standard specification, but it's what's referred to as "HILARIOUSLY MINIMAL" 00:11:23 Oh. 00:11:28 No liberries? 00:11:31 PLT->Textual is pretty much like R5RS except it has like 453507349853457934859385 more function. 00:11:33 *functions 00:11:34 and libraries 00:11:34 and shizz 00:11:43 It's the 'MzScheme language', basically. 00:11:51 (MzScheme is PLT's scheme implementation, that the DrScheme IDE uses) 00:12:17 Slereah: Then click Run again. 00:12:24 The read-line stuff should work. 00:12:35 Well, yours work 00:12:39 My lambda thing doesn't. 00:12:50 Slereah: Who cares, that code was frankly messed up. 00:12:56 By the by, are you putting yer newlines in the right place? 00:13:00 [[(define (cat) 00:13:00 (display (read-line)) 00:13:00 (cat))] 00:13:05 err 00:13:05 [[ 00:13:06 (define (cat) 00:13:06 (display (read-line)) 00:13:06 (cat)) 00:13:07 ]] 00:13:14 Slereah: You should put all the ending parens on the same line ye see. 00:13:20 None of this c-style: 00:13:21 (foo 00:13:22 bar 00:13:23 ) 00:13:32 Messed up maybe. 00:13:38 But why does it no work! 00:13:53 Slereah: Shush you. 00:13:56 Or work only once, that is 00:13:58 Read sick pea. 00:14:26 Slereah: Either read sicp if you want to know or just do what I say. :P 00:14:34 Ill urine won't help me much. 00:14:44 I doubt I'll be able to read it all before going to bed! 00:14:50 Or find the related part 00:15:05 Or possibly understand it. You never know with those computer fellows. 00:15:12 watch SICP :o 00:15:28 Why, is there a feature movie now? 00:15:35 Sans Nom 00:15:40 no you can watch the original lectures 00:15:46 Or find the related part 00:15:46 http://swiss.csail.mit.edu/classes/6.001/abelson-sussman-lectures/ 00:15:47 DON'T. 00:15:52 What is so hard about reading it in order? 00:15:56 that would be such a cool name if it wasn't the exact opposite of a name. 00:15:57 Jeez. It's a book, not a reference. 00:15:59 you can also watch berkeley's more confusing version with brian harvey 00:16:03 http://webcast.berkeley.edu/course_details.php?seriesid=1906978502 00:16:10 tusho : Length and the fact that it goes through a lot of already known stuff 00:16:11 You're meant to read it from start to end, in order, and read all of it. 00:16:24 i agree with tusho 00:16:27 whole thing man 00:16:29 Slereah: Well I'm not gonna help you until you do, because you're making it hard for yourself and asking us questions it can answer. 00:16:30 done use it as a ref 00:16:36 augur: *don't 00:16:38 augur : I read sexuality into that 00:16:55 Slereah: You read sexuality into everything, especially SICP, which you use as an excuse to ignore it's content. 00:16:55 ::sexualities you:: 00:16:58 hey oklofok 00:16:58 -!- timotiis has joined. 00:17:01 do you oklofuck? 00:17:06 yes he does 00:17:10 awesome 00:17:14 Nah, I only read D&D in SICP 00:17:41 http://swiss.csail.mit.edu/classes/6.001/abelson-sussman-lectures/wizard.jpg 00:17:42 See? 00:17:48 That's what I'm talking about. 00:17:52 dude 00:17:54 watch SICP 00:17:57 and you'll be a wizard 00:17:58 :o 00:18:26 augur: I think Slereah has severe ADHD and also a joy of giving people questions that he has the materials with which to answer himself but which he ignores so he can 'read D&D into them' 00:18:30 it's happened before.. 00:18:49 when sussman does over the metacircular evaluator 00:19:00 he dones a fez and a nice jacket 00:19:15 and they play also sprach zarathustra 00:19:24 Indiana Jones would kick his ass in a second. 00:21:11 Reading online books is not a lot of fun, tusho 00:21:39 Slereah: Get a hard copy. 00:21:50 http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/index.htm 00:21:52 From ze MIT press! 00:21:58 mit open course ware on EE and CS 00:22:11 Well, it would take a week to arrive. 00:22:26 you can masturbate in the mean time. 00:22:44 Although maybe they got it in town. 00:22:44 But... 00:22:44 FULL OF FRENCH 00:23:10 Slereah: don't read SICP, it'll prolly kill you, just use it as a ref, and ask questions here whenever you're not sure if it might answer them 00:23:22 don't read sicp, you're too stupid for it! 00:23:33 yes, you suck haha lol 00:23:52 I see what you did there --_-- 00:25:49 well probably with THOSE MASSIVE EYES 00:26:22 i don't really have an opinion about whether sicp should be read, although it is a nice book 00:26:56 oklofok: it should certainly be read if you're writing terrible scheme and expecting us to help 00:27:07 especially if you're writing A COMPILER. 00:27:12 which is, uh, kind of SICP's forte 00:28:54 -!- cherez has quit (Connection timed out). 00:30:34 -!- cherez has joined. 00:34:09 -!- Slereah5 has joined. 00:34:43 -!- Slereah has quit (Read error: 104 (Connection reset by peer)). 00:34:55 -!- Corun has quit (Read error: 110 (Connection timed out)). 00:35:53 cool compiler 00:35:58 i don't have a single opinion atm. 00:41:04 so hows the c-to-lisp compiler coming 00:41:25 you should do a lisp-to-brainfuck compiler. 00:41:57 lisp not fucked up enough already? 00:42:46 don't look at me i didn't do it 00:44:17 lisp-to-brainfuck ain't that hard 00:44:22 lisp->c then use c->bf 00:52:16 c->lisp->bf->haskell 00:53:49 I want the c->befunge compiler to be completed 00:53:57 I know it will never happen, but I can hope :) 00:54:50 -!- revcompgeek has joined. 00:55:21 augur: c->haskell isn't that hard 00:55:26 you can even do pureness analysis 00:55:29 -!- revcompgeek has quit ("http://www.mibbit.com ajax IRC Client"). 00:55:35 by storing extra type information 00:55:54 yes but is c->lisp->bf->haskell hard? i suspect so! :o 00:56:03 augur: no 00:56:07 c->lisp not hard, the lisp machines did it 00:56:07 ok. 00:56:14 lisp->bf a bit hard, yeah, but not infeasable 00:56:24 bf->haskell trivial 00:56:26 how did the lisp machines work, do you know? 00:56:31 augur: yes 00:56:34 the cpu executed lisp code. 00:56:40 right. :P 00:56:45 -!- revcompgeek has joined. 00:56:49 can you explain the large scale structure of the cpu? 00:56:56 -!- revcompgeek has left (?). 00:56:58 augur: it ran lisp 00:57:11 ok, now a slightly smaller scale structure? :P 00:58:38 i mean 00:59:03 i get how c can run on a modern cpu, because modern cpus are imperative and such 00:59:23 and c is hardly an abstraction from machine code, in the grand scheme of things 00:59:34 but lisp is so far from modern cpus that i cant imagine how the cpu looked 01:06:21 anyone know what a thunk is? 01:10:06 in lisp, a function with no arguments 01:11:01 cool thunk 01:11:10 (i can't stop) 01:11:47 augur: well, it isn't like c running on a cpu 01:11:52 it's like a cpu that at its most native level, runs c 01:34:40 Bye for today :) 01:35:33 -!- tusho has quit (Remote closed the connection). 01:53:21 -!- oerjan has quit ("leaving"). 02:00:43 -!- Corun has joined. 02:47:22 -!- olsner has joined. 02:50:59 oklofok! 02:56:02 -!- Nocta^ has joined. 03:07:02 -!- Nocta has quit (Read error: 110 (Connection timed out)). 03:20:34 -!- Corun has quit ("This computer has gone to sleep"). 06:03:14 -!- GreaseMonkey has joined. 06:03:52 lalala 06:35:42 lala 06:37:03 -!- augur has changed nick to psygnisfive. 06:37:21 hey 06:50:07 wenas 06:51:59 -!- Judofyr has joined. 06:53:50 wassup lament 06:54:22 nomucho 07:13:35 im bored and i have nothing to do :( 07:31:58 write a good music notation program for os x and release it as open source. 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 08:03:36 -!- oklofok has quit (Read error: 104 (Connection reset by peer)). 08:03:53 -!- oklopol has joined. 08:25:39 i dont understand music notation :( 08:47:04 oh 08:47:13 then, first, learn music notation 08:47:24 learn to play some instrument so you can apply that knowledge 09:41:08 -!- GreaseMonkey has quit ("Read error: -128 (overflow)"). 09:41:19 -!- GreaseMonkey has joined. 10:30:28 -!- GreaseMonkey has quit ("Saliendo"). 10:35:29 write a good music notation program for os x and release it as open source. 10:35:39 doesn't rosegarden work on OS X? 10:35:45 it's just QT/KDE 10:35:49 should be portable? 10:55:47 -!- Hiato has joined. 11:03:50 -!- Deformati has joined. 11:04:05 -!- Deformative has quit (leguin.freenode.net irc.freenode.net). 11:04:05 -!- Phenax has quit (leguin.freenode.net irc.freenode.net). 11:04:06 -!- psygnisfive has quit (leguin.freenode.net irc.freenode.net). 11:04:06 -!- bsmntbombdood has quit (leguin.freenode.net irc.freenode.net). 11:09:08 -!- Corun has joined. 11:11:07 -!- Polar has quit (leguin.freenode.net irc.freenode.net). 11:11:30 -!- Polar has joined. 11:13:20 -!- augur has joined. 11:14:00 -!- Hiato1 has joined. 11:20:51 -!- bsmntbombdood has joined. 11:31:32 -!- Hiato has quit (Read error: 110 (Connection timed out)). 11:40:43 -!- Corun has quit ("This computer has gone to sleep"). 13:28:41 boo 13:33:16 o¨ 13:41:59 Well, seems like ill urine isn't at the local bookstores. 13:43:08 US UROPHILES HAVE A RIGHT TO PROGRAM TOO 13:43:11 WHO DO THEY THINK THEY ARE 13:43:52 Scheme is made of gold! 13:43:52 GOLDEN SHOWERS, THAT IS 13:46:43 Scheme is my mother tongue! 13:46:55 KINDA LIKE I PEED IN YOUR MOTHER'S MOUTH LAST NIGHT 13:47:03 Oh snap! 13:47:10 I just was served! 13:47:11 i think i've won here. 13:47:34 IHTKUIL, PPL 13:47:39 *ITHKUIL, actually 13:48:03 Is that the terrible conlang that nobody speaks? 13:48:29 http://upload.wikimedia.org/wikipedia/en/e/e5/Ithkuil_sentence.ogg < that scares me 13:48:52 Slereah5: yes 13:49:08 there's nothing terrible about it, except for the great amount of phonemes. 13:49:34 i'm contemplating hiring a teacher or smth 13:49:35 And the fact that everyone of them means something 13:49:51 I read about the formal script for Ilaksh yesterday, that was just weird 13:49:52 ithkuil root words are of the form C1..C2 13:49:59 two consonants 13:50:29 you can have a, e or i in between, for 3 modifications of the concept 13:50:34 and then... 13:50:42 MILLIONS OF WAYS TO MODIFY IT! 13:50:52 What happens if you have a cold? 13:50:58 Are you unable to communicate? 13:50:58 :) 13:51:13 doubt that 13:51:30 Yeah, since no one talk that language 13:52:25 i doubt many have tried. 13:52:36 it really doesn't seem that hard. 13:52:48 the problem is the lexicon, as with all languages. 13:52:57 There's a LJ communauty of it 13:53:00 But it's in Russian 13:55:17 LJ? 13:56:12 LiveJournal 13:58:09 nh 13:59:00 -!- Hiato1 has quit ("Leaving."). 14:25:52 -!- jix has joined. 14:36:46 -!- Slereah has joined. 14:36:46 -!- Slereah5 has quit (Read error: 104 (Connection reset by peer)). 14:43:26 -!- jix has quit ("CommandQ"). 15:34:45 -!- pikhq has joined. 15:35:12 Hot shit on a stick, Batman! 15:35:16 Reprap replicates! 15:44:21 http://craphound.com/overclocked/Cory_Doctorow_-_Overclocked_-_Printcrime.html, BTW, is a damned good story. 15:45:37 You know what else is a damn good story? 15:45:37 Watership Down. 15:47:57 wuzzat i dunnothat 15:49:11 It's a damn good story. 15:49:29 http://www.amazon.fr/Watership-Down-Richard-Adams/dp/038039586X/ref=sr_1_2?ie=UTF8&s=books&qid=1212763757&sr=8-2 15:50:17 Still, come on. . . 15:50:22 Reprap repraps! 15:52:57 pikhq: true, that was pretty great 15:53:10 that story 15:55:03 -!- pikhq has quit (Remote closed the connection). 15:55:24 -!- pikhq has joined. 16:06:48 ithkuil does relative clauses just like lalna! 16:07:02 except my system is much more complex. 16:07:11 Here, have a cookie. 16:07:12 well more extensive 16:08:17 ithkuil does everything with -fixes and infliction, which i think is the reason for it seeming so complicated 16:08:44 I'm used to that. 16:08:56 you are? 16:09:35 well, sort of. I'm learning hungarian - not quite *so* suffix-obsessed, but has a lot 16:09:39 and that is because you're from ...x? 16:09:44 ah. 16:09:55 they say hungarian is similar to finnish 16:10:12 hal (hung.) = kala (finn.) is all i know though. 16:10:39 (fish (engl.)) 16:10:49 they are related, but I think they probably split quite a while ago 16:11:17 since they're apparently unintelligible to each other 16:11:19 i dunno, i don't really believe in history 16:11:23 yes 16:11:45 there aren't really any noticable similarities 16:11:57 whereas I can read Dutch and recognise a lot of it :) 16:12:06 -!- ais523 has joined. 16:12:26 víz = vesi = water 16:12:32 kéz = käsi = hand 16:12:39 vér = veri = blood 16:12:47 I remembeer szív is shared too 16:12:50 heart 16:12:50 i have no idea, there was a hungarian here... nick was something starting with n* 16:12:58 sydän 16:13:21 Deewiant: know hungarian or googled? 16:13:29 wikipedia'd 16:13:30 * ais523 knows a few words of Hungarian 16:13:51 I lived in hungary when I was 3-4 years old but that's not very helpful I'm afraid :-P 16:14:08 I went there for a conference for a week once 16:14:16 but everyone spoke in English 16:14:23 evidently it also always stresses the first syllable 16:14:30 yes. 16:14:47 here's a short table: http://en.wikipedia.org/wiki/Finno-Ugric_languages#Common_vocabulary 16:14:56 and here's some more: http://en.wikipedia.org/wiki/Regular_sound_correspondences_between_Hungarian_and_other_Uralic_languages 16:15:21 but I'm going to eat now -> 16:15:45 I like english's method... the stress patterns can be weird and even native speakers get it wrong :) 16:18:13 The stress patterns are quite variable in English, for the sake of emphasis. Whee. 16:18:51 stress patterns *within words* aren't, pikhq 16:19:04 Not usually. 16:19:11 But it's been done. 16:19:12 ;) 16:19:12 you're an IMportant man. 16:19:24 like lexicographical: it seems the stress pattern is made so that the stressed syllables are evenly spaced 16:19:36 IPA uses different sorts of apostrophes to mark stresses 16:19:44 that must be how we guess the stress pattern by intuition 16:19:59 imo ithkuil went over the line a bit by making stress actually change the meaning of a word 16:20:17 (otherwise it's great sofar) 16:20:34 it can do in english too, though it's rare (reCORD, REcord) 16:22:23 well, that's a different length of e 16:22:35 -!- pikhq has quit (Remote closed the connection). 16:22:53 -!- pikhq has joined. 16:49:55 -!- tusho has joined. 16:49:58 hello ais523 16:50:01 I don't dare to boot up X, yet. 16:50:04 hi ehird 16:50:12 I trust you haven't messed up the eso-std server yet? :-P 16:50:19 I'm planning on getting apache working today 16:50:44 no, I haven't screwed up the server 16:50:46 or even logged in 16:50:54 I'd like to get the darcs stuff back up soon, though 16:51:04 ais523: yes, i'll do that ASAP after I get apache working 16:51:34 ais523: i'll also put darcsweb on there, because it's nice to be able to browse the code online & view diffs between revisions etc 16:51:45 yes 16:52:34 i'll start x now, but a bit of snake(1) before that to make sure it won't die 16:54:02 ais523: gnome's starting... 16:54:11 what part do you think it'll crash at? 16:54:19 also, should I open epiphany, xchat or other first? 16:54:29 no idea 16:54:34 -!- Hiato has joined. 16:54:38 you have a better idea of your computer's idiosyncracies than I do 16:54:51 ais523: you'd think so... 16:54:59 and I'd wish so. 16:55:11 it defies all laws of logic, I think it might be one of thems 4-dimensional aliens 16:55:28 Well, I chose epiphany. 16:55:44 ais523: intersetingly, even if the gui is doing stuff it never crashes in console mode 16:55:48 i really do think it's the gfx card like you said 16:56:54 ais523: WOW! The back button didn't crash it. 16:56:57 It must like me today 16:58:53 ais523: xchat time 16:59:07 connect lil' guy! connect! 16:59:11 i wanna see you from irssi 16:59:13 -!- tusho_ has joined. 16:59:15 :D 16:59:19 hi 16:59:29 ais523: he can't talk right now, he's busy in console mode 16:59:52 I JUST RESIZED MY XCHAT WINDOW :D 16:59:56 good for you 16:59:59 -!- tusho has quit ("leaving"). 17:00:09 -!- tusho_ has changed nick to tusho. 17:00:20 ais523: #ESO? 17:07:00 -!- pikhq has quit (Remote closed the connection). 17:07:12 -!- Judofyr has quit. 17:07:18 -!- pikhq has joined. 17:09:50 -!- tusho_ has joined. 17:09:51 -!- tusho has quit (Read error: 113 (No route to host)). 17:09:55 un fucking believable 17:10:03 X crashed? 17:10:11 ais523: no, the computer crashed 17:10:18 even though it was working for 10 minutes 17:10:19 oh dear 17:10:25 well, that was a fast restart, then 17:10:46 pretty fast yeah 17:20:53 Alrighty, I conceded, this python has beaten me. Calling reinforcements... 17:21:28 mmyes? 17:21:58 http://rafb.net/p/wj80Yx47.html 17:22:09 that's where it sits currently 17:22:59 http://rafb.net/p/SCYYhi81.html 17:23:14 that's what it should be doing (rough description) 17:23:40 Hiato: 4 space indentations plz 17:23:54 come again? 17:25:44 Hiato: everyne who uses python uses 4-space indentation, it's hard to read python with other indentations 17:25:51 tusho_: what? 17:26:26 ais523: what? 17:26:39 'hard to read python with other indentations'? 17:26:55 ais523: it is. 17:26:58 changing indentation amount doesn't make langs harder to read if the screen's wide enough to fit the indentation on 17:27:01 4-space indentation is universal 17:27:06 right, I'll learn of this so called "4 space indentation" hopefully, but, how do I fix what's broken :P 17:27:15 Hiato: i'd tell you if I could read it 17:27:27 ais523: With a whitespace-sensitive language like p ython it really does make things hard 17:27:30 that 8-space looks perfectly readable to me 17:27:31 (hah, how ironic) 17:27:39 indentation makes something hard to read only if it's 1 space or over 10 spaces 17:27:51 that was automatic by IDLE by the way :P 17:27:59 Hiato: did you save it as .py? 17:28:03 yep 17:28:04 if not it won't highlight or indent properly 17:28:09 Hiato: _before_ typing it? 17:28:12 Deewiant: almost agreed, my version of that statement is "indentation makes something hard to read only if it's 1 space in a language not designed for it, or so wide the lines wrap" 17:28:13 yep 17:28:33 ais523: yeah, that's more accurate 17:28:51 BF and Lisp are both readable at 1-space indentation 17:29:01 well, tusho_ the problem is more or less with this guy: 17:29:02 if ord(n[k]) in range(ord('a'),ord('z')): 17:29:02 which simply doesn't work... 17:29:07 or doesn't seem to for that matter 17:29:10 I don't call anything in BF 'indentation' ;-) 17:29:24 Deewiant: I have a BF mode for Emacs which does auto-indentation 17:29:41 :-D 17:30:25 -!- kar8nga has joined. 17:32:55 aha 17:32:58 fixed it :) 17:33:05 if ord(n[k]) in xrange(ord('a'),ord('z'),1): 17:33:16 maybe something there is still redundant, but whatever 17:34:34 now something is wrong with the logic... 17:36:08 -!- pikhq has quit (Remote closed the connection). 17:36:58 -!- pikhq has joined. 17:38:42 I cannot understand this at all, I have clearly written if blah blah: t-= 1, but everytime it gets there and blah is true, it increases t. What is going on? 17:39:35 Hiato: are you sure that that's the bit of code that's running? 17:39:43 * Hiato wonders if everyone decided to leave the noob to he's own devices 17:39:48 yep 17:39:50 try putting a print statement there to make sure that it's that bit that's running but not a different bit 17:39:52 so says the debugger 17:40:03 got that set up :P 17:40:26 ah, whatever. 17:40:33 is the code immediately after adding 2 to t and canceling out the effect? 17:40:39 * Hiato will now stare at the code until it behaves and writes itself 17:41:21 Nope, here it is in context 17:41:22 ... 17:41:22 r = n[k] 17:41:22 if ord(n[k]) in xrange(ord('a'),ord('z'),1): t -= 1 17:41:22 k += 2 17:41:22 ... 17:41:47 yes, look at the next 3 lines 17:41:58 they certainly look like they could have the effect of adding 2 to t 17:42:04 under certain circumstances 17:42:13 nada, sorry ais523. Thanks though :) 17:42:32 I watch it in the debugger, and as it gets past that if, it adds 1... 17:42:54 what happens if you change t-=1 to t+=1? 17:42:56 it's like it took it upon itself to execute an else, deemed to be the opposite of the true clause... 17:43:01 lets see 17:43:13 it's like it took it upon itself to execute an else, deemed to be the opposite of the true clause... 17:43:18 now that's a great idea for an esolang 17:43:48 heh, lol... yeah, you might actually have something there :P 17:44:05 (PS: t +=1 does exactly what it's supposed to... unlike t -= 1 17:44:07 ) 17:44:43 WTF?!?!?!?! 17:44:56 if ord(n[k]) in xrange(ord('a'),ord('z'),1): t = t - 1 17:44:57 makes it 2 when t=1???? 17:45:12 anyway, supper 17:45:13 are you sure you're looking at the right symbol? 17:45:18 yep :P 17:45:30 there's not a single t += anything in that entire section 17:45:38 supper, bbiab 17:51:21 -!- Phenax has joined. 18:05:36 back, and... oh, wait... nevermind, it didn't write itself... 18:11:16 -!- pikhq has quit (Remote closed the connection). 18:11:36 -!- pikhq has joined. 18:12:01 -!- Corun has joined. 18:16:53 -!- kar8nga has quit ("Leaving."). 19:34:26 -!- cherez has quit (Connection timed out). 19:36:17 -!- cherez has joined. 19:37:39 if ord(n[k]) in range(ord('a'),ord('z')): <<< still doesn't include 'z' 19:38:07 oklopol, that's not really the problem though 19:38:15 the fact that it increases z is 19:38:19 but thanks :) 19:38:48 also, ...ord('z'),1) is equal to just ...ord('z')) 19:39:02 ok, thanks 19:39:37 well yes i know it's not the problem 19:39:50 but i can't fix your problem because i'm not sure how the thingie works 19:40:05 (well i guess i could, but i'm not gonna read it unless i know what it should do) 19:40:19 would you like me to explain? 19:41:06 sure 19:41:19 http://www.rafb.net/p/SCYYhi81.html 19:41:23 a2z = range(ord('a'),ord('z')+1) 19:41:23 there's the vague one 19:41:31 oh i raed that 19:41:34 *read 19:41:38 doesn't help :) 19:41:41 well, that's what it should do 19:41:44 oh, lol, ok 19:41:48 i'll retry 19:41:54 no 19:41:56 it's ok 19:41:59 I'll type 19:42:00 retry understanding 19:42:04 k 19:43:10 well, essentially there are 26 variables, each represented by a lower case alphabet letter. There is an IP with a possible range of 1..4 (inclusive) for the four commands: Inc, Dec, Begin if >0 loop, End if >0 loop. Essentially, the syntax consists of only varibales 19:43:37 i understood that much 19:43:56 ah 19:44:01 ip grows by one every step 19:44:09 and wraps? 19:44:12 you type two characters for each instruction. The first is the origin data, the second the storage place. Say, the IP is on 1 (Inc) and I go "ab" it effectively means that b = a +1 19:44:17 yeah, that's right 19:44:33 okay, i get it completely now 19:44:33 any non-variable merely advances the ip 19:44:37 cool :) 19:44:40 very very simple 19:44:43 do you know what's wrong? 19:44:51 with the impl 19:44:56 yeah, I do 19:45:44 where it should be terminating the loop skipping back through the code searching for the last valid ip=3 (begin if>0 loop) it just continues forever 19:46:06 random thing: you always do k+=2 after each oper, so you could just have that once in the code 19:46:14 hmm 19:46:22 http://rafb.net/p/oWtcmH82.html 19:46:25 yeah, I could 19:46:30 heh, well spotted :) 19:46:42 actually i'm not sure what these iteration constructs should do :) 19:46:48 but, nonetheless, the skipping back part no worky 19:46:49 can you explain them once more? 19:46:53 which? 19:46:58 the if >0 loop? 19:47:11 yes 19:47:36 it's a while(var!=0) 19:47:53 well 19:47:55 right, well essentially they operate much like a bf [ and ] would. If the ip is 3 (begin) and the code is valid, it continues onwards, storing a 1 in the second var 19:48:02 while(var>0) according to the impl 19:48:07 if it's 0, then it skips to end, if it's no-op, it ignores 19:48:13 yeah 19:48:16 that's right 19:48:32 it nests? 19:48:53 when it finds a valid ip=4(end>0) it checks if the var specified>0 if so, searches back for matching ip=3 and stores a one in second var 19:49:02 yeah, it can 19:49:07 rather, it should be able to 19:49:18 okay i get it 19:49:25 *otherwise just continues 19:49:28 cool :) 19:49:34 -!- kar8nga has joined. 19:49:53 basically, there's a [ if in a place of code the ip is 3 and there's a variable at that specific place 19:49:56 and same for ] 19:50:08 yeah, basicly 19:50:21 and the ip's traversal through 1..4 happens at parsing stage 19:50:36 and it dumps 1/0 (T/f) appropriately 19:50:37 yep 19:50:40 meaning it increments and decrements normally when you do the jumping that is looping 19:50:50 well, yeah 19:50:58 okay, i think i can fix it now 19:51:01 * oklopol looks 19:51:15 essentially, if you're looping back, there's no need to worry, because the ip will have to be 3 when you find it next 19:51:31 and same applies for jumping forwards (except ip=4) 19:51:33 thanks :) 19:52:00 (The sample code should increase a twice, then decrease through looping to 0 ) 19:54:14 k -= 8 19:54:16 why eight? 19:54:18 why not 6? 19:54:22 ah 19:54:25 ip range = 4 19:54:28 r's aren't used 19:54:31 *2 for every valid instructions :) 19:54:39 *-s 19:54:42 you set it, but calculate again for actual use 19:54:59 okay 19:55:01 i think i know 19:55:04 I'm not exactly a seasoned programmer :) 19:55:11 in python that is 19:55:20 if you're at ip=2, and there's a var 19:55:23 meaning you should reduce t by 1 19:55:27 you first do if ord(n[k]) in range(ord('a'),ord('z')): t -= 1 19:55:29 but 19:55:34 oh wait... 19:55:36 :) 19:55:43 no wait 19:55:52 i think i found the problem, but i'm explaining a different problem you don't have. 19:55:54 one of those t -=1 should be a plus 19:56:05 yes, definitely 19:56:11 the first I think 19:56:14 yeah 19:56:26 (PS: are is for debugging :) ) 19:56:29 *r 19:56:33 41-43 should be removed completely, i think 19:56:45 excet you need to change k changes ofc 19:56:50 *except 19:56:55 but then, surely, if you pass a nested begin, you'll stop looping 19:57:24 no 19:57:47 err... ok 19:57:51 there's just t-=1 19:57:54 but 19:58:17 waitwait... it's a while since i did this kind of imperative quibbling 19:58:28 imagine this 19:58:28 B B E E<-- 19:58:28 We are at the last end, and we loop back, find the second b and continue 19:58:30 which is wrong 19:58:32 but this *should* be a piece of cake 19:58:38 hmm 19:58:52 no, because the first E increased T 19:58:54 *t 19:59:02 I know, it's actually cruel how this eludes my best efforts 19:59:19 yeah, so we need the dec t part for the second b then, surely 19:59:23 btw, remember also to set p after your whiles 19:59:34 that may be your problem, even 19:59:35 dunno 19:59:43 well, I'm not that far 19:59:47 but, good point 20:00:00 the problem occurs earlier in stopping at the right point 20:00:05 you need and inc and a dec for t for both the [ and the ] loop. 20:00:12 yeah 20:00:19 39 should b += 20:00:24 your problem here is really that you're not abstracting enough, but i guess you know that 20:00:31 but, that still isn't the problem 20:00:34 (and naturally it's cooler to do this way) 20:00:40 heh, true :) 20:01:30 anyway, did you remove 41-43? 20:01:40 39 does the decrement of t 20:01:40 nope 20:01:47 but it shouldn't 20:01:50 you're doing the next round there, already 20:01:57 something needs to count the Begins too 20:02:05 39 should increase 20:02:07 that's 39 20:02:10 hmm 20:02:13 oh, wait 20:02:15 hrmm 20:02:25 no, something still needs to increase somewhere 20:02:26 err yes, indeed 20:02:35 and it should be 39 20:02:36 if t counts begins 20:02:39 to count the nested ones 20:02:43 then 39 should inc 20:02:49 yep :) 20:02:59 but, that doesn't effect the sample prog 20:03:01 but you should only have one decrement in the if clause 20:03:02 not being nested 20:03:07 yeah 20:03:22 then fix the amounts of k's change 20:03:27 44-46 can go I think 20:03:43 I'm not sure what it's doing 20:03:53 k -= 8 on line 41 20:03:56 into k-=6 20:04:04 and remove those, yes 20:04:09 yeah 20:04:14 lets see this 20:04:18 and 43 should have a - 20:04:33 yep 20:05:05 darn 20:05:14 6 is the wrong interval 20:05:22 optionally, the + and - should swap 20:05:28 2 - 1 - 0 - 3 20:05:39 that's 6, right? 20:05:43 yeah, it should be 20:05:50 but 22-2-6 != 12 20:06:05 huh? 20:06:21 what are these numbers? 20:06:30 heh, from the sample prog 20:06:40 it appears swapping the + and - did the trick 20:06:46 ah. 20:06:50 show the new one 20:06:53 but, now we're back to a t increase when the code says - 20:07:18 might help to paste the new one 20:07:21 http://rafb.net/p/3dzInC94.html 20:07:23 there we are 20:07:45 but 40 is still increasing t for some inexplicable reason 20:07:59 do you have IDLE on hand? Or Eclipse or something 20:08:37 p = 1 on line 47, shouldn't that be 3? 20:09:10 i mean, you're jumping into a code cell right after a [-cells, which is a 2-cell 20:09:14 nope, because we went back to begin, which is instruction 2 (counting from 0 in the impl) 20:09:15 meaning p should be 3 20:09:24 and p gets increased after every itwer 20:09:25 yes, and then one after that 20:09:26 *iter 20:09:46 I don't follow 20:09:47 yes, so it gets to 2, and then increases by one 20:09:54 no, it gets 1 20:10:01 -!- cherez has left (?). 20:10:10 p=1 then p += 1 makes it p = 2 20:10:12 :P 20:10:20 which is right for the looped back begin 20:10:33 oh wait 20:10:39 I see what you're saying 20:10:59 what I'm doing is checking at the ] if >0 and then at the [ if >0 20:11:10 similarly, on line 26, p = 3 should be p=0 afaik 20:11:19 hmm 20:11:22 but, you need to, because they don't necessarily imply the same variable 20:11:34 or 3 if you don't increase k. 20:11:48 hmm 20:11:50 well, either way - it's still not the problem :P 20:11:54 indeed, you're right 20:12:00 because 40 is still messing up 20:13:03 if ord(n[k]) in xrange(ord('a'),ord('z')+1): t -= 1 20:13:03 with t = 1, n[k]='a' produces t = 2!?!?!?! 20:14:14 i'm fairly sure that backjump works now except for p=1 20:14:23 which still should be 3 :| 20:14:26 thing is it doesn't :P 20:14:27 i'll check your code 20:14:29 i mean 20:14:32 that aabababa code 20:14:34 hmph 20:14:36 cool 20:14:38 i don't get why 20:14:42 let's say 20:14:45 [abcd] 20:14:48 where abcd are some random shit 20:14:50 yeah, I will shoot myself if the problem lies there 20:14:51 hmm 20:15:06 if you jump back at ] 20:15:12 then t will be set to 1 20:15:23 it then goes to d, and checks if that's a var 20:15:35 my "d" means an empty cell called "d" 20:15:44 so it doesn't do anything to t 20:15:58 it then reduces k by 6 and gets to "a" 20:16:05 which is empty, so it doesn't increase t 20:16:15 it then decreases k by 2 20:16:18 getting to [ 20:16:24 so t gets reduced by one 20:16:26 so far so good 20:16:35 the if is skipped 20:16:41 and while is breaked 20:16:48 a variable is set 20:16:53 k is increased 20:16:58 and we get to "a" 20:16:58 ps: I think you're right about the p = 1 thing ;) 20:17:01 now 20:17:06 i am? 20:17:10 I think so 20:17:10 well that's what i thought 20:17:18 I need one more test though :) 20:17:19 @ a, ip should always be 3 20:17:27 true, I think 20:17:32 because @ [, ip is necessarily 2 20:18:02 but it should be correct otherwise, the problem lies elsewhere provided you've corrected p=1 20:19:13 yeah 20:19:15 p = 2 20:19:17 not 1 20:19:20 meh 20:19:22 well done :) 20:19:25 nah, p=3 20:19:32 3? 20:19:34 lets see 20:19:42 oh, wait, yes 20:19:43 k+=2 20:19:47 nicely done! :) 20:20:26 (PS: removing k += 2 so p = 2 so we can test [ 's variables) 20:21:08 nope, still needs to be 3 20:21:09 a+=1 20:21:10 XD 20:21:12 a+=1 20:21:17 while a: 20:21:19 ___a=a-1 20:21:21 ___a-loop 20:21:24 a+=1 20:21:26 is this it? 20:21:35 yep 20:21:39 that's what it should do 20:21:40 a-loop is loop-back conditional on a 20:21:43 producing 1 20:21:48 yeah 20:21:56 doesn't work? 20:22:44 i can whip you up an interp that parses that into something more intelligible, if you wanna 20:22:46 testing 20:22:50 okay 20:22:51 please :) 20:22:55 i'll do it now, actually 20:22:56 if you would 20:22:58 yarrrr 20:23:03 a quick met lang :) 20:23:07 thanks :) 20:23:10 *meta 20:28:13 sorry, my python has 20:28:18 issues 20:28:29 but i can show you my first parsing phase in a sec 20:28:35 *sex 20:28:37 w00t 20:28:39 problem solved 20:28:43 and cool, if you can 20:29:01 heh 20:29:05 "hey honey, you wanna inspect my parsing phases?" 20:29:30 "You know the way to man's heart sweety" 20:30:05 http://www.vjn.fi/pb/p366524266.txt 20:30:25 i'll do the next step now 20:30:26 and it's basically ready 20:30:36 wow, impressive and compact :) 20:31:07 http://rafb.net/p/R4CsXt99.html 20:31:16 here we are, a working model too I believe 20:31:27 PS: it was p=1 :D 20:33:54 waiting on your prog to test nesting oklopol :P 20:35:55 yeah, the jumps work forwards and backwards :) 20:37:17 okay, ready 20:37:21 better version: http://rafb.net/p/P26Uvz17.html 20:37:29 so am I - I hope :) 20:37:35 sorry, for some raeson your k+=2 made me add two to my iterator too 20:37:37 :) 20:37:40 *reason 20:37:48 (PS: I was right about both 3 and 1) 20:37:54 heh, no worries :) 20:41:11 you were? 20:41:14 want to explain? 20:41:20 sure :) 20:42:00 hmm 20:42:02 actually 20:42:05 you've removed k+=2 20:42:14 and you have an unconditional p+=1 in the end 20:42:17 so yeah, 1 20:42:38 essentially, in [abcd] where a,b,c,d are blanks, we hit the [. Here the ip = 2 and we check the vars, then we move through a,b,c,d and at the ] the ip = 3. Then, if we jump back, and it gets increase by one, it has to be 1 to be at 2 at the [ 20:42:41 (got it, i guess i was technically wrong) 20:42:46 I'll tell you why though, not to make me right 20:43:37 it's because you can make an if statement by going BEGIN [a>0] {blah} [END B>0] where b = 0 and a is unknown 20:43:39 yeppity got it, i didn't know about line 47 (never read that long tbh :P), and you've removed k+=2, for obvious reasons 20:43:44 this way you won't loop 20:45:12 righty o, so is the meta-lang ready? 20:45:37 well it parses the thingie already, i'll quickly whip up an interp too 20:45:44 lol, cool 20:45:47 hmm 20:45:48 can you paste it? 20:45:57 wanna check nested loops 20:46:02 i need the you to re-explain the semantics of [] again 20:46:03 or is it a one-way parsers? 20:46:07 *parser 20:46:10 sure 20:46:16 the exact semantics regarding the two vars 20:46:36 [ skip loop if a = 0, and do X to b 20:46:53 essentially, at ip=2, the interp is given two variables (arbitrarily a & b). If a>0 then loop and make b=1, if a<=0 then skip and make b=0 20:47:03 pretty much 20:47:04 yeah 20:50:27 implemented your k += 2 global idea: http://rafb.net/p/Lunwl621.html 20:50:33 now to make a parser :) 20:50:36 hmm 20:50:42 hmmhmmhmm 20:50:58 ]'s second var 20:50:58 ? 20:51:05 it's set to 0 if it loops back 20:51:10 nope 20:51:12 1 20:51:17 okay 20:51:20 otherwise 0? 20:51:26 because 1st var>0 == true 20:51:29 yep 20:52:13 hmm, this actually isn't all that trivial, because python doesn't have a goto 20:52:27 oklopol: you don't need it 20:52:28 hehe, nor a case 20:52:28 I bet 20:52:32 structure it properly 20:52:36 e.g. add another function 20:52:39 i don't need it 20:52:41 and 'return' in the right place 20:52:43 but it helps 20:52:44 no, you don't proven by my interpreter:P 20:52:48 which works now :) 20:52:55 tusho_: duh. 20:53:06 Hiato: you're not parsing 20:53:23 come again? 20:53:26 you're not using python's constructs, but your own traversal through raw code 20:53:32 oh, yeah 20:53:34 true true 20:53:41 easier for me :P 20:53:43 oklopol: by the way 20:54:01 you'd like perl, I think 20:54:08 it lets you write code like okopython, but crazier 20:54:15 and it does actually have goto :P 20:54:17 and also tail calls 20:54:20 you do 'goto *proc' 20:54:21 okopython? 20:54:21 yeah 20:54:30 ais523: okopython is oklopol's unique style of python 20:54:30 i think i would like it 20:54:34 tusho_: goto &proc, surely? 20:54:35 :) 20:54:38 ais523: er, yes 20:54:41 goto a typeglob makes no sense at all 20:54:52 in fact, I can't even imagine a lang in which that would begin to make sense 20:54:53 anyway, okopython somehow implements every programming language in a tiny amount of space 20:54:59 maybe I'll have to create one... 20:55:09 but I have no idea how that would work 20:55:11 for example, if oklopol wrote a C compiler in okopython 20:55:15 it'd be 70 lines, in total 20:55:25 it would rm -rf / if you fed it a wrong program, so don't do that. 20:55:47 tusho_: incidentally, if you try that when you aren't root, does it delete everything you can delete or does it just do nothing? 20:55:58 ais523: why not try it? 20:56:11 tusho_: no, that's the sort of command that shouldn't be tried 20:56:18 ais523: i'll try it on rutian 20:56:24 rm: cannot remove root directory `/' 20:56:29 I knew that would happen, obviously. 20:56:32 It's hardcoded into rm. 20:56:46 you can override it with --no-preserve-root 20:56:58 ais523: 'sudo nobody rm -rf --no-preserve-root /' 20:57:01 not sure why you'd want to, though 20:57:04 that'll test with no worries, right? 20:57:13 tusho_: you forgot an arg to sudo 20:57:14 er 20:57:16 -u nobody 20:57:24 and I'm sure nobody owns /something/ 20:57:36 ais523: hokay, it juts goes through every file and complains about perms 20:57:43 so I assume yeah, everything you can 20:58:13 tusho_: if you own a file but not the dir it's in, can you delete it? 20:58:26 presumably not 20:58:31 ais523: nope 20:58:35 you'd have to modify the dir structure 20:58:35 if you don't have write access to the dir 20:58:37 it seems i actually failed @ making this without thinking, so... http://www.vjn.fi/pb/p651243214.txt, amirite?= 20:58:39 *? 20:58:43 Hiato: that 20:58:53 whoops 20:58:54 wait 20:59:13 -!- pikhq has left (?). 20:59:23 http://www.vjn.fi/pb/p513651233.txt 20:59:43 so basically, [ab body cd], a and b are the begin-vars, c and d the end-vars 20:59:52 are these the exact semantics with goto? 21:01:38 err 21:01:41 let me think quick 21:02:01 by begin vars you mean a is the condition and b is the dump? 21:02:49 oklopol? 21:03:18 yeah 21:03:21 hmm 21:03:23 yes 21:03:23 that text looks good 21:03:28 then yes 21:03:53 yeah, that's spot on :) 21:04:12 how does one perform the abs ( | | ) function in python? 21:04:42 Hiato: abs(thenumbertotakeabsof) 21:04:47 lallal 21:04:49 yeah, thanks :P 21:04:54 what should b be after that code, Hiato? 21:05:01 it's 1 in mine after running the code 21:05:02 I was thinking along the lines of import * from c_types or soemthing 21:05:17 let me see 21:05:21 nope 21:05:22 0 21:05:24 Hiato: now, if you'd asked "how does one perform the abs ( | | ) function in INTERCAL", I'd have been able to refer you to the original docs 21:05:27 because you broke the loops 21:05:30 where that was used as an example 21:05:36 ais523: touché :) 21:07:01 okay, should work now 21:07:08 nice :) 21:07:25 it's not actually much shorter 21:07:30 heh 21:07:31 just *conceptually* more beautiful. 21:07:41 unfortunately pretty ugly in practise. 21:07:41 nicely done nonetheless :) 21:07:44 lol 21:08:02 http://www.vjn.fi/pb/p561224165.txt 21:08:35 a lot of details i didn't feel like abstracting away / explaining 21:08:35 wow, impressive :) 21:08:45 but who cares, i'll fix if something doesn't work 21:09:00 lol, just finishing off the metalang 21:09:05 with human readable syntax 21:09:10 metalang? 21:09:12 then we can start to break things :) 21:09:13 yeah 21:09:15 i can convert to that 21:09:17 you'll see 21:09:23 no, visa evrsa 21:09:28 from it to this lang 21:09:35 show me when you're ready 21:09:36 which I now deem: "RFL" 21:09:39 both ways, sure 21:09:42 repeating four language 21:12:31 finished are you are you now are you? 21:12:49 well, there's some weird error I don't really get 21:12:52 but yeah, I should be 21:13:00 error? 21:13:05 UnboundLocalError: local variable 'result' referenced before assignment 21:13:11 i thought you were just defining a syntax 21:13:17 sounds trivial 21:13:18 heh 21:13:23 it is 21:13:26 or it should be 21:13:31 meh, what the heck 21:13:34 here's the code thus far 21:14:09 http://rafb.net/p/sK6LBK90.html 21:14:13 blarg 21:14:35 lessee 21:14:38 it takes an easier to read input and yields output 21:15:53 my bad 21:16:06 the last res += should be an r+= 21:16:09 err 21:16:10 but, it still moans 21:16:12 that's trivial 21:16:13 yeah 21:16:15 ? 21:16:17 about what? 21:16:26 Traceback (most recent call last): 21:16:26 File "", line 1, in 21:16:26 Thingy() 21:16:26 File "C:/Documents and Settings/Administrator/My Documents/Python Projects/LangParser.py", line 23, in Thingy 21:16:26 r = r + n[k+1] + n[k+2] 21:16:27 UnboundLocalError: local variable 'res' referenced before assignment 21:16:27 i just meant that error was a trivial naming error 21:16:33 as was expected 21:16:40 oh 21:16:43 try restarting 21:16:46 idle 21:17:02 never mind 21:17:04 yep :P 21:17:09 ok, it works 21:17:13 hey oklopol. 21:17:16 but there is a bug type thing 21:17:20 hey augie 21:17:50 ok, closer 21:17:54 one bug away :P 21:17:55 augur, not augie. :P 21:17:59 i knew a guy named augie. 21:18:48 augur: i was trying to be informal an breezy 21:18:52 *and 21:19:03 still, just augur. :P 21:20:59 cool stuff 21:21:29 anyway, Hiato: the way i'd do that is keep track of where in code i am atm 21:21:31 as in 21:21:47 if r is 6 long, i'm at 3 21:21:55 (initially @ 0) 21:22:02 then, when you need to put in, say - 21:22:08 you take it's "offset" 21:22:12 which is 1 21:22:19 FIXED! 21:22:23 +:0, -:1, [:2, ]:3 21:22:23 ah 21:22:28 okay. 21:22:38 a different way completely, but your way sounds good too :) 21:23:01 anyway, this way you could calculate the relative offset instead of keeping track of "last put thingie" 21:23:01 http://rafb.net/p/wrGdXm27.html 21:23:06 what's the result? 21:23:10 good :) 21:24:24 Go(Thingy()) works like a charm! :) 21:24:44 yap 21:25:06 ok, gonna try fibonnacci quick :) 21:27:12 -!- ihope has joined. 21:27:18 11, 12, 122, 12211, 1221121, 1221121221, 122112122122112, 12211212212211211221211 21:27:42 ? 21:28:26 A sequence! 21:28:27 look and say! 21:28:31 Close. 21:28:34 hm 21:28:37 ihope: reverse look and say? 21:28:42 12 - 'two ones' 21:28:49 Nope. 21:28:55 what then? 21:29:21 What is 12? 21:29:27 one two 21:29:39 For the purposes of look and say? 21:29:51 +ll+ll+ll+ll+ll+ll+aa[lx+ac-cc+bd-dd[bx-bb+cc]bx+ca-aa[dx-cc-dd]dx+cb-bb]lx 21:29:52 is this right? 21:30:05 fib... 21:30:28 oklopol? :P 21:30:32 it's a monster... 21:30:50 im using a = a + b; b = a - b 21:31:18 12211 means one of the first thing, two of the second thing, two of the first thing, one of the second thing, one of the first thing. 21:31:36 In this case, the first thing and the second thing are 1 and 2. 21:32:48 expand1 ('1':xs) = '1' : expand2 xs; expand1 ('2':xs) = '1' : '1' : expand2 xs; expand1 [] = []; expand2 is the same thing except with 1 and 2 swapped on the RHS. 21:33:05 Hiato: dunno, making my own too 21:33:16 cool 21:33:21 lets see what happens :) 21:35:38 -!- kar8ng1 has joined. 21:36:05 oklopol, please link to your tokenizer :) 21:37:42 wait, my connection is extremely slow 21:37:48 sure :) 21:37:55 think I found my problem though :) 21:37:57 -!- M4rk__ has joined. 21:38:31 -!- M4rk__ has left (?). 21:38:34 http://www.vjn.fi/pb/p452542222.txt 21:38:43 thanks :) 21:41:46 oh 21:41:54 Thingy fails 21:41:56 not me 21:42:00 yeah, I noticed 21:42:17 but it happens with repeating - 21:42:22 checking it out now though 21:42:25 will you fix? 21:42:25 yes 21:42:28 yep 21:42:37 for both our benefits:P 21:42:43 well i'm using it 21:42:49 btw. make it ignore whitespace 21:42:51 yeah, me too 21:42:57 ok, sure 21:45:43 fixored soon? 21:45:56 hopefully 21:45:58 :) 21:47:16 fixed! 21:47:21 now for the whitespace.... 21:47:24 -!- kar8nga has quit (Connection timed out). 21:47:39 Hello people. 21:47:45 sup 21:48:19 blarg 21:48:33 BLURG 21:48:55 how do you define a set? 21:49:07 as in if bleh is in ['a'..'z'] 21:49:07 Hiato: in what sense? 21:49:08 ? 21:49:12 set() 21:49:16 thanks :) 21:49:38 Hiato: um 21:49:45 if bleh in ['a'..'z'] 21:49:58 heh, it was an example :P 21:50:42 Hiato: ready soon??? YOU'RE IN A HURRY! 21:50:46 oklopol 21:50:47 :) 21:50:47 or not. 21:50:52 set doesn't work like you said 21:50:54 Hiato 21:50:59 like what? 21:51:00 that's the bane of my existence right now 21:51:03 the bug is fixed 21:51:10 but the stupid whitespace.... 21:51:16 while n[k] not in set('+','-','[',']'): k+= 1 21:51:18 fix it! 21:51:18 did i say something about set's behavior? 21:51:23 ... 21:51:26 [set(]) 21:51:28 set([]) 21:51:32 arggg.... 21:51:55 -!- Slereah5 has joined. 21:52:10 -!- Slereah has quit (Read error: 104 (Connection reset by peer)). 21:52:33 and now? 21:52:33 while n[k] not in set(['+','-','[',']']): k+= 1 21:52:45 you don't need set 21:52:47 but yeah 21:52:57 it seems to loop forever... 21:53:26 well it shouldn't 21:53:37 tralalala 21:53:39 nvm 21:53:44 but 21:53:50 do check bounds 21:53:55 yep :) 21:53:56 you might have whitespace in the end or smth 21:54:09 ah, okay 21:55:06 while (n[k] not in set(['+','-','[',']'])) and (k blarg? 21:55:19 -1 21:55:22 why's that 21:55:25 nvm 21:55:31 either way it doesn't work 21:55:33 ... 21:56:21 well it should 21:56:31 hit your python with a stick 21:56:36 heh 21:56:38 anyway 21:56:41 I'll give you the code 21:56:42 you might have it in the wrong place or something similar 21:56:45 that otherwise works 21:57:12 http://rafb.net/p/1AiAKp78.html 21:58:12 and? 21:58:27 hmmhmm 21:59:03 btw. n=filter(lambda a:not a.isspace(),n) 21:59:13 oh, and oklopol, you're interpreter dies on ll ll ll ll ll ll aa lx accc bdddbx ccbb bxcaaadx cc dd dxcbbb lx 21:59:21 correction "ll ll ll ll ll ll aa lx accc bdddbx ccbb bxcaaadx cc dd dxcbbb lx" 21:59:41 i see multiple adjacent spaces as one 21:59:42 well, I'll use that, thanks :) 21:59:50 Hiato: it's good that you're getting away from delphi - we can actually try your stuff :P 21:59:54 so paste on a bin 22:00:00 or s/ /_ 22:00:05 heh, thanks tusho_ if that's a compliment 22:00:11 it is :P 22:00:14 oklopol: wha? 22:00:18 tusho_: thanks :) 22:00:24 Hiato: he means 22:00:26 replace your spaces with _ 22:00:30 so 22:00:31 Hiato: i see a__b as a_b, where _ = space 22:00:33 yes 22:00:35 your interp dies on ll_____________ll_________ll 22:00:36 etc 22:00:37 so he can see it 22:01:10 aha, well, there's your problem 22:01:20 -!- Corun has quit ("This computer has gone to sleep"). 22:01:25 Hiato: ... just repeat what you said 22:01:27 correction "ll ll ll ll ll ll aa lx accc bdddbx ccbb bxcaaadx cc dd dxcbbb lx" 22:01:28 but replace spaces 22:01:29 with _ 22:01:29 oklopol, whitespace here is as much a part of the programme as the varibales 22:01:33 yes he knows 22:01:35 it's just his irc client 22:01:40 right 22:01:42 my bad 22:01:42 :P 22:01:45 Hiato: asdfkjasodjfasiodjf 22:01:45 yes 22:01:48 tusho_ can speak on my behalf. 22:01:52 from now on 22:01:54 lol, nice 22:02:31 oklopol: i've always tried to understand what people say and restate when I see confusion 22:02:37 most people respond with 'are you SURE that's what he meant??!!!' 22:02:43 http://rafb.net/p/GZBVQk93.html 22:02:45 yes I'm sure damnit, I can actually comprehend english unlike you! 22:02:47 :P 22:02:52 tusho_: me too, but after doing it a million times, i just don't feel like it :) 22:02:53 oklopol, if you run it, it yields the output :) 22:03:16 which should be the fib sequence, but isn't 22:04:25 Go(Thingy('+aa+aa[ax+bb-aa]ax')) 22:04:28 performs as expected 22:05:22 mine works 22:05:42 [34, 21, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 22:06:08 with my input? 22:06:18 +aa+bb+cc+cc+cc+cc+cc+cc+cc[cd+ea-ee[ad+bb-aa]ad+ab-aa+be-bb-cc]cd 22:06:20 with this 22:06:23 my fib 22:06:27 similar then 22:06:31 didn't try yours 22:06:33 prolly 22:06:34 I think my interps wrong though 22:06:47 lets see 22:07:03 yeah 22:07:11 my interpreter is befuged ;) 22:07:20 please test my input :P 22:07:26 -!- ais523 has quit ("rebooting my Internet connection"). 22:07:31 umm okay 22:07:33 that fib of yours? 22:08:03 yep 22:08:07 that came with thingy 22:08:07 i think it infloops 22:08:12 meh 22:08:15 :( 22:08:16 [-57, -60, -56, -62, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 22:08:18 [-58, -60, -56, -62, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 22:08:18 [-58, -60, -56, -62, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] 22:08:18 etc 22:08:20 blarg 22:08:21 i can debug 22:08:31 if you have the patience... 22:08:38 -!- ais523 has joined. 22:08:42 +ac 22:08:44 +ca? 22:08:59 +bd-dd -> +db-dd? 22:09:14 er? 22:09:24 the +ca after the loop -> +ac 22:09:33 i'll just fix as i think it should be and try 22:09:39 and tell you if it works 22:09:40 wait 22:09:42 ok, cool, thanks :) 22:11:11 -!- oerjan has joined. 22:12:01 * Slereah5 reads the goddamn ill urine 22:12:24 It better have all the solutions of life! 22:12:38 +ll+ll+ll+ll+ll+ll+aa[lx+ca-cc+db-dd[bx+cc-bb]bx+ac-aa[dx-cc-dd]dx+bc-bb-ll]lx 22:12:41 sorry it took so long 22:12:50 thought you were using c for looping 22:12:53 but that was my code 22:13:08 heh 22:13:10 no worries 22:13:11 :) 22:13:15 thanks for that :D 22:13:23 my interp is still messed though 22:13:47 well you have fun with that, i feel i've done my share for the day now :P 22:14:05 oh yes 22:14:08 most certainly 22:14:16 thank you for all your help :D 22:14:18 EAT MY FINGER OKLOPOL 22:14:29 would be nowhere now, without you :) 22:15:00 tusho_: yes i eat now nom nom 22:15:12 -!- ais523 has quit ("(1) DO COME FROM ".2~.2"~#1 WHILE :1 <- "'?.1$.2'~'"':1/.1$.2'~#0"$#65535'"$"'"'&.1$.2'~'#0$#65535'"$#0'~#32767$#1""). 22:15:24 -!- ais523 has joined. 22:15:25 oklopol: NOW MY OTHER FINGER 22:15:28 ais523: what the- 22:15:38 nom cool now to be eating nomnomnom 22:15:49 sorry 22:17:44 meh closer, but still just not quite :P 22:23:47 well, I now bid you adieu gentlemen. Thank you for all your assistance, it has been a most interesting evening, and I have learnt much in the ways of python. Goodnight and goodbye 22:24:45 nighty nighters 22:24:51 -!- Hiato has quit ("Leaving."). 22:25:53 -!- Phenax has quit (Remote closed the connection). 22:26:19 -!- Phenax has joined. 22:39:01 Are there solutions to the exercizes in ill urine? 22:39:27 no. 22:54:46 AAAAAH 22:54:53 So much metaphores. 22:54:59 Damn you urine! 22:55:23 You'll never make me think that you have a poetic soul! 22:56:52 so 22:56:56 im planting a garden 22:56:57 :T 22:57:04 vegetables 22:58:10 u r in a lot of trouble 22:58:18 oerjan: why? 22:58:38 Remember SchiavoN 22:58:51 You don't just toy around with vegetables in America. 22:58:56 ais523: hint: what's the most likely reason for me to speak on this forum? 22:59:14 oerjan: not entirely sure 22:59:23 normally when someone has a maths problem and asks you for help 22:59:36 it begins with p, ends with n and has a u in the middle 22:59:48 oerjan: ah, I never noticed 23:00:31 Punch? :o 23:01:01 Slereah5: that u isn't in the middle 23:01:16 Define "middle". 23:01:27 But the most important part is, the n isn't in the end 23:01:47 Pnu. 23:01:56 Pneu 23:03:14 Pnumatic. 23:03:21 Wonderfully pnumatic. 23:03:41 * oerjan huffs and pnuffs 23:04:37 * olsner is out of fermented milk products with which to scare oerjan away 23:04:42 Was the answer unp? 23:05:02 olsner: i'm sure something fishy will work just as well 23:05:08 oerjan: what was the pun? 23:05:09 I DON'T GET IT TELL ME 23:05:20 oklopol: u r in - urine 23:05:37 asdf. 23:05:41 that was so obvious 23:06:03 Is urine deep trouble? 23:06:12 i thought it was @ augur though, i guess that was largely the reason 23:06:49 * oerjan generally stays away from garden work 23:07:19 o.o 23:09:15 -!- ais523 has quit ("(1) DO COME FROM ".2~.2"~#1 WHILE :1 <- "'?.1$.2'~'"':1/.1$.2'~#0"$#65535'"$"'"'&.1$.2'~'#0$#65535'"$#0'~#32767$#1""). 23:12:24 -!- kar8ng1 has left (?). 23:18:35 whee. 23:18:38 The eso-std.org forum is up. 23:18:46 as well as the repository viewer 23:19:03 I'll go get my desu spammer. 23:19:55 Slereah5: Heh, it's actually running on kareha 23:22:00 Slereah5: If you can find it, YOU WIN 23:23:03 Slereah5: MONEY 23:23:24 esoteric sexually transmitted diseases? 23:23:38 lament: you've made that joke before, I believe 23:23:52 I believe everyone has. 23:24:02 * oerjan hasn't 23:24:06 DO IT 23:24:16 NEV#R 23:25:01 DO IT 23:25:04 YOU MUST 23:27:36 Slereah5: The first post on the eso-std forum is copypasta. I bet you'll look now. :P 23:30:23 * tusho_ reloads eso-std forum tomorrow and comments: "Oh look, someone is very interested in 'DESU', it seems." 23:32:01 Slereah5: Jeez, it takes like 3 seconds to find it. :P 23:32:21 So WHERE IS IT 23:33:15 Slereah5: SOMEWHERE ON ESO-STD.ORG 23:33:19 EITHER A SUBDOMAIN OR A DIRECTORY 23:33:54 Not /forum, apparently! 23:34:18 Slereah5: Or a subdomain 23:34:31 Ah, http://forum.eso-std.org/ 23:34:48 But why did you pick the ugly same thing as the old eso forum? 23:35:36 Slereah5: Because it's anonymous forum software. 23:35:40 Besides. 23:35:46 Click one of the 'Board look:' links. 23:35:48 Dey are prettier. 23:37:26 Slereah5: well that was an interesting 3GET 23:37:37 Well, Futaba reminds me of home. 23:37:53 * tusho_ sheds a tera 23:37:55 and a tear 23:39:06 ... 23:39:07 :o 23:39:07 * oerjan recommends against shedding teratears 23:39:13 tusho_ is a tripfag D: 23:39:19 Slereah5: no am not 23:39:19 TRIPFAAAAG 23:39:21 just for 1get 23:39:27 because gets are all about ego anyway! 23:39:48 IF YOU WILL, notice that all my other posts are anonymous 23:40:01 All 2 of them 23:40:47 Use the power of the real Futaba! 23:40:57 So that you can post the Lazy Bird logo. 23:41:03 Or something. 23:41:14 ... 23:41:16 Hey 23:41:21 It's Caturday here! 23:41:21 The power of the real he futed? 23:41:46 Slereah5: I can enable image posting. 23:41:51 But I doubt that would further eso discussions. 23:41:58 Also, if I used the real Futaba, that'd be in japanese. 23:42:02 I also doubt that there will be actual discussion. 23:42:33 Slereah5: Suprisingly, anonymous text boards don't instantly imply spam unless you're trying to make them. 23:42:54 Well you started! 23:42:57 For one, me and ais523 will definately be using it, and I imagine other people finding the site will leave something too if neccessary. 23:43:10 Slereah5: I'd love to hear an idea for a lovely and productive first post :P 23:43:14 Using it for what? 23:43:17 Seems forums should be based on a transparent, anonymous reputation system. 23:43:24 There's already an identical board 23:43:27 Using it for discussion about ESO standards, Slereah5 23:43:29 No, there isn't 23:43:41 ESO standards and projects (e.g. pastebin and code runner etc) != esolangs.org 23:43:51 It's the same group of people. 23:43:52 ihope: That's placing the emphasis back on the people, not the content. 23:43:55 Except, you know 23:43:58 Smaller. 23:44:22 Slereah5: So, uh, what, just because the membership is a subset that means we should spam the esolangs.org board with our crap? I think not. 23:44:35 'The online esolang runner fails with INTERCAL on this program:' is not exactly a useful post on esolangs.org 23:44:54 No one would notice 23:44:54 ! 23:45:07 tusho_: well, it's easier to ask whether what a person has posted in the past was well-received than to ask whether a certain post was well-received in the past, no? 23:45:26 ihope: Well, yes, but people can be unknowledgable on one subject and knowledgable about another. 23:45:33 If there's incorrect information, someone will point it out. 23:45:48 If there's someone trolling in a very similar way, the admins and mods will be able to ban them. 23:45:52 True. 23:47:17 But then they'll be banned only from that site, and will be able to go on to spam other things. 23:47:35 ihope: Well there's not one unified cabal of the www. 23:47:43 Or at least, that's what they want you to think. 23:47:46 :-P 23:47:47 Everything is on a per-site basis, of coruse. 23:47:49 and of course. 23:48:12 Some way to tell that a person's behaved badly on other web sites might be nice. 23:48:32 YOU ARE BANNED FROM THE INTERNET 23:48:33 ihope: Not really. 23:48:38 You can just blab crap about them. 23:48:44 Besides, what if they behaved badly, but then improved? 23:48:47 Content, not people, etc. 23:49:03 Also some people just troll in certain areas 23:49:09 (blab crap about them = you can say 'THIS PERSON TROLLED!!!' when it's not true) 23:49:10 But r srs in others. 23:49:15 Well, we can ignore the sites that tend to blab crap. 23:49:17 (and nobody can prove you wrong, of course, since it's anonymous) 23:49:23 ihope: What if it's just one person? 23:49:29 Anyway, if they blab crap on the new site, then it's dealt with. 23:49:31 If not, no worries. 23:49:42 So you don't need to notify. 23:49:49 If a site blabs crap only once? Either it rarely blabs crap or it rarely blabs. 23:50:47 ihope: Meh. 23:54:48 -!- GreaseMonkey has joined. 23:55:41 oh no 23:57:36 tusho_: I apologize for tusho_'s unusual greeting. 23:57:38 :-P 23:57:52 ihope: no, that was serious 23:58:29 -!- tusho_ has changed nick to tusho. 23:58:38 it's GreaseMonkey, run away! 23:58:54 Wild GREASEMONKEY appears!!