00:55:26 -!- Figs has joined. 00:55:46 -!- Figs has left (?). 04:04:51 -!- CakeProphet has quit (Read error: 113 (No route to host)). 04:07:45 I seem to have discovered that GCC's optimization can break pointer arithmetic. 04:08:08 THat's not good 04:08:15 http://pikhq.nonlogic.org/test.2.c See anything wrong with that? 04:08:31 Because gcc doesn't unless you add -O. 04:08:41 Soon as you do, it segfaults. 04:12:05 segfaults for me without -O 04:12:46 line 12 04:13:12 The hell is wrong with that assignment? 04:14:46 wtf? 04:14:51 I'd think *b=*a; is a fairly innocent assignment. 04:15:55 the local of the same name as the global clouds the issue 04:16:02 Ah. 04:16:58 * Pikhq will have to add that to his "map" function (which *attempts* to make valid BFM variables fit within the context of C correctly (*this*is*a*variable is valid in BFM)). 04:18:15 yes, found the problem i think 04:18:25 char *b = b... 04:20:10 wtf? 04:20:28 Yeah. 04:20:36 after line 6, current != b 04:20:46 That's an issue in *my* compiler. ;) 04:21:36 how can this be? 04:21:44 My BFM compiler. 04:22:21 I mean the results 04:22:32 current = b; yet current != b 04:23:20 Yeah. . . That's an issue in my output. 04:23:58 huh? 04:25:10 I suppose you can't have a global var and a local var and access the global var in the scope of the local var even before it's declared 04:26:20 better name mangling, then 04:31:41 Yeah. 04:31:49 My issue was in name mangling, that's all. 04:32:06 Fine, so now names look even more mangled if you try to look at the C source. . . One will just have to live. 04:33:17 If you have non-legal C chars in names, I would use some sort of symbol based thing 04:34:13 I've just got a large amount of substitutions. 04:37:10 s/_/__/g; s/\*/_asterisk_/g # yay, no collisions 04:37:39 Okay, that's not *quite* what I'm doing, but pretty close. 04:37:57 What mine looks like is more s/_/__/g;s/\*/_/g 04:38:15 Confusing? Yeah. Does it work? Well. . . Yeah. 04:40:21 * Pikhq also has name mangling for Brainfuck variables (in case someone decides to use -g on BFM) 04:45:56 Just as soon as I care enough to, I'll be writing some language-specific stdlib macros. . . 04:46:11 Should, at the very least, make the interpreter run a hell of a lot faster. 04:47:23 * Pikhq should also update the documentation a bit before releasing 04:52:22 lambda x: "".join(["a"*ord(i)+"b" for i in x])) 04:52:36 name mangling should be as esoteric as possible 04:53:54 I don't do Python. 04:59:04 puts n "a"s where n is the ascii value of the character, deliminated by "b" 04:59:39 And mangle "a" and "b" appropriately? :p 04:59:50 every character 05:00:04 Holy. . . 05:00:14 While it'd *work*, I must ask. . . WHY?!? 05:00:25 for esotericness 05:00:42 Just because BFM is an esolang doesn't mean the *compiler* must be esoteric. 05:00:51 "a" gets mangled to "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab" 05:00:53 Isn't it enough that you get code like: 05:01:07 *a = *b - 1; 05:01:25 It's never enough 05:01:34 *a = !*a; 05:01:41 if(*a)putchar(*b); 05:02:18 From now on you will be called aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaa 05:02:25 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab 05:04:19 the inverse happens to be lambda x: "".join([chr(len(i)) for i in x.split("b") if i]) 07:35:17 That's not guaranteed to work anyway: only "-- at least -- 63 significant initial characters in an internal identifier or a macro name --" are guaranteed. 07:42:02 But in the interests of equal time -- here are the same (anonymous) functions in Perl: (everyone always seems to do only Python :( :( ) 07:42:05 sub { join("", map { "a"x ord($_)."b" } split //, shift) } 07:42:07 sub { join("", map { length($_)?chr(length($_)):"" } split "b", shift) } 07:45:07 (Not related, but how does doing "s/_/__/g;s/\*/_/g" prevent a conflict of "foo_bar" and "foo**bar"?) 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 13:10:12 -!- Pikhq has quit (Read error: 110 (Connection timed out)). 13:31:31 -!- Pikhq has joined. 13:59:58 -!- Pikh1 has joined. 14:00:48 -!- Pikhq has quit (Read error: 110 (Connection timed out)). 14:45:26 -!- jix has joined. 15:28:11 -!- crathman has joined. 15:34:31 -!- Feuermonster has joined. 16:48:38 -!- ehird` has joined. 16:48:51 -!- sebbu has joined. 16:49:00 i honestly think my language may be worse than malbolge 16:49:05 ((len*(index>1?index*index:50))+chr) % 50 <-- this is just insane 16:49:43 oh yes, and the fact that the middle opcode is evaluated first, then the last, then the rest 16:50:44 o_O 16:51:22 Which language is that written in? 16:51:36 that's just the interpreter source coe 16:51:38 *code 16:51:38 well 16:51:41 the decryption part 16:52:03 I mean, in which language do you write the source-code? 16:52:09 what? 16:52:20 Php,Python,Ruby,BASIC whatever? 16:52:33 that code is valid in many languages 16:53:06 (((len * (index > 1 ? index * index : 50)) + chr) % 50 16:53:10 not that hard to decipher 16:53:54 I guess index : 50 means index / 50? 16:54:05 .... ternary operator.... 16:54:20 it's (if index > 1 then index * index else 50) 16:58:52 * ehird` pasted http://pastie.textmate.org/61475 16:58:58 this program should print "a" and a newline 17:42:56 okay, my interpreter is broken 17:43:14 "Invalid decoded opcode 54 at 1 (SyntaxError)", yet my smash-bricks-at-decoder-to-get-program program says its ok 18:19:36 * ehird` pasted http://pastie.textmate.org/61490 18:19:42 even I can't figure out how that works 18:19:46 hmm 18:19:48 pastie messed it up 18:19:53 it's bigger than that in actuality 19:45:01 -!- Feuermonster has quit (Read error: 110 (Connection timed out)). 20:00:05 -!- sp3tt has quit ("leaving"). 20:02:02 -!- sp3tt has joined. 20:43:37 -!- crathman has quit ("ChatZilla 0.9.78.1 [Firefox 2.0.0.3/2007030919]"). 20:50:48 -!- Pikh1 has quit (Read error: 110 (Connection timed out)). 21:12:30 -!- puzzlet_ has joined. 21:21:20 -!- Pikhq has joined. 21:30:35 -!- puzzlet has quit (Read error: 110 (Connection timed out)). 21:34:12 -!- jix has quit ("Bitte waehlen Sie eine Beerdigungnachricht"). 21:40:24 "this language should be called eyefuck if it is supposed to actually look like that." 21:40:26 close, close.. 23:43:38 '(enemy lasanga robust below wax) 23:43:39 '(semiautomtic aqua accompany slacks) 23:43:41 :-P 23:43:43 http://lemondemon.com/skippy/17.html 23:45:20 you don't have to link to a lyrics page 23:45:35 * ehird` would recognize those anywhere 23:45:46 ah, another fan 23:46:08 * SimonRC particularly likes _Geeks In Love_ 23:46:56 It agrees with my not-terribly-serious geeks-as-next-evolution-of-humanity idea 23:47:09 (See also: X-men movies) 23:47:17 with your powers combined, i am captain ge...ahem 23:47:29 If they aren;t, then why are asperger's rates rising so sharply. 23:47:33 ? 23:48:02 For almost all of human history, the most complex thing that ones has had to deal with as a human is other humans. 23:48:16 That is changing. Humainty will have to change with it. 23:48:38 etc, until I start advocating euthanasia 23:48:39 :-P 23:48:59 To be honest, a lot of people holding the "asperger's" badge do it because they "dont fit in lol" and are self-diagnosed 23:49:12 indeed 23:49:31 though it is a spectrum 23:49:41 i'm aware, having being diagnosed myself years ago :) 23:49:57 * SimonRC point out Paul Graham's excellent "Why Nerds Are Unpopular" essay. 23:50:37 rather mild for me, AFAICT, though I was the weirdest people out of several hundred in primary and secondary school 23:51:24 ehird`: more constructively, could you recommend other bands to me? I feel I need to actually acuire some music. 23:51:34 I procrastinate any kind of buy stuff 23:51:38 *buying 23:51:45 SimonRC: good essay 23:52:01 bsmntbombdood: from recall or from very fast reading? 23:52:04 *cough* bittorr COUGH ugh COUGH aaa COUGH COUGH CHOKE 23:52:09 recall 23:52:54 BTW, I meant "good" in the sense that it makes me feel good. My instincts tell me that the whole school-as-prison thesis might be utter BS, or might not. 23:53:25 this stems from reading the anti-PG essay "Dabblers and blowhards"./ 23:53:57 School is prison 23:54:04 less so in the UK, afaict 23:54:10 people would have you believe that prison is school 23:54:12 :P 23:54:25 in secondary chool, I got on well with most teachers, and learnt loads of stuff 23:54:56 I learn nothing in secondary school 23:55:10 how about algebra? 23:55:24 or the joy of conversing with fellow geeks? 23:55:28 or music? 23:55:33 fellow geeks? in a public school? 23:55:42 you must be kidding me 23:55:46 ehird`: that means something different here... 23:56:07 algebra, hah 23:56:20 I went to a "grammar school" (deprecated), which took the top 40% of students. 23:56:32 i know what a grammar school is, SimonRC ;) 23:56:46 in .uk, public school = private school = school that you pay for. 23:56:59 in .uk state school = gov-funded school 23:57:17 * ehird` is in .uk 23:57:29 * ehird` mixes .uk-isms and .us-isms after a while by mistake 23:57:56 I don't know many geeks 23:59:25 -!- sebbu has quit ("@+"). 23:59:39 -!- Pikhq has quit (Read error: 113 (No route to host)).