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 <Pikhq> I seem to have discovered that GCC's optimization can break pointer arithmetic.
04:08:15 <Pikhq> http://pikhq.nonlogic.org/test.2.c See anything wrong with that?
04:08:31 <Pikhq> Because gcc doesn't unless you add -O.
04:08:41 <Pikhq> Soon as you do, it segfaults.
04:13:12 <Pikhq> The hell is wrong with that assignment?
04:14:51 <Pikhq> I'd think *b=*a; is a fairly innocent assignment.
04:15:55 <bsmntbombdood> the local of the same name as the global clouds the issue
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:20:46 <Pikhq> That's an issue in *my* compiler. ;)
04:23:20 <Pikhq> Yeah. . . That's an issue in my output.
04:25:10 <bsmntbombdood> 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:31:49 <Pikhq> My issue was in name mangling, that's all.
04:32:06 <Pikhq> 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 <bsmntbombdood> If you have non-legal C chars in names, I would use some sort of symbol based thing
04:34:13 <Pikhq> I've just got a large amount of substitutions.
04:37:39 <Pikhq> Okay, that's not *quite* what I'm doing, but pretty close.
04:37:57 <Pikhq> What mine looks like is more s/_/__/g;s/\*/_/g
04:38:15 <Pikhq> 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 <Pikhq> Just as soon as I care enough to, I'll be writing some language-specific stdlib macros. . .
04:46:11 <Pikhq> 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:53:54 <Pikhq> I don't do Python.
04:59:04 <bsmntbombdood> puts n "a"s where n is the ascii value of the character, deliminated by "b"
04:59:39 <Pikhq> And mangle "a" and "b" appropriately? :p
05:00:14 <Pikhq> While it'd *work*, I must ask. . . WHY?!?
05:00:42 <Pikhq> Just because BFM is an esolang doesn't mean the *compiler* must be esoteric.
05:00:51 <bsmntbombdood> "a" gets mangled to "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
05:00:53 <Pikhq> Isn't it enough that you get code like:
05:01:41 <Pikhq> if(*a)putchar(*b);
05:02:18 <bsmntbombdood> From now on you will be called aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaa
05:02:25 <bsmntbombdood> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab
05:04:19 <bsmntbombdood> the inverse happens to be lambda x: "".join([chr(len(i)) for i in x.split("b") if i])
07:35:17 <fizzie> 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 <fizzie> 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 <fizzie> sub { join("", map { "a"x ord($_)."b" } split //, shift) }
07:42:07 <fizzie> sub { join("", map { length($_)?chr(length($_)):"" } split "b", shift) }
07:45:07 <fizzie> (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 <ehird`> i honestly think my language may be worse than malbolge
16:49:05 <ehird`> ((len*(index>1?index*index:50))+chr) % 50 <-- this is just insane
16:49:43 <ehird`> oh yes, and the fact that the middle opcode is evaluated first, then the last, then the rest
16:51:36 <ehird`> that's just the interpreter source coe
16:52:03 <Feuermonster> I mean, in which language do you write the source-code?
16:52:33 <ehird`> that code is valid in many languages
16:53:06 <ehird`> (((len * (index > 1 ? index * index : 50)) + chr) % 50
16:53:10 <ehird`> not that hard to decipher
16:54:05 <ehird`> .... ternary operator....
16:54:20 <ehird`> it's (if index > 1 then index * index else 50)
16:58:52 * ehird` pasted http://pastie.textmate.org/61475
16:58:58 <ehird`> this program should print "a" and a newline
17:42:56 <ehird`> okay, my interpreter is broken
17:43:14 <ehird`> "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 <ehird`> even I can't figure out how that works
18:19:53 <ehird`> 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 <ehird`> "this language should be called eyefuck if it is supposed to actually look like that."
23:43:38 <SimonRC> '(enemy lasanga robust below wax)
23:43:39 <SimonRC> '(semiautomtic aqua accompany slacks)
23:43:43 <SimonRC> http://lemondemon.com/skippy/17.html
23:45:20 <ehird`> you don't have to link to a lyrics page
23:45:35 * ehird` would recognize those anywhere
23:46:08 * SimonRC particularly likes _Geeks In Love_
23:46:56 <SimonRC> It agrees with my not-terribly-serious geeks-as-next-evolution-of-humanity idea
23:47:17 <ehird`> with your powers combined, i am captain ge...ahem
23:47:29 <SimonRC> If they aren;t, then why are asperger's rates rising so sharply.
23:48:02 <SimonRC> 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 <SimonRC> That is changing. Humainty will have to change with it.
23:48:38 <SimonRC> etc, until I start advocating euthanasia
23:48:59 <ehird`> 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:41 <ehird`> 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 <SimonRC> rather mild for me, AFAICT, though I was the weirdest people out of several hundred in primary and secondary school
23:51:24 <SimonRC> ehird`: more constructively, could you recommend other bands to me? I feel I need to actually acuire some music.
23:51:34 <SimonRC> I procrastinate any kind of buy stuff
23:52:01 <SimonRC> bsmntbombdood: from recall or from very fast reading?
23:52:04 <ehird`> *cough* bittorr COUGH ugh COUGH aaa COUGH COUGH CHOKE
23:52:54 <SimonRC> 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 <SimonRC> this stems from reading the anti-PG essay "Dabblers and blowhards"./
23:54:10 <ehird`> people would have you believe that prison is school
23:54:25 <SimonRC> in secondary chool, I got on well with most teachers, and learnt loads of stuff
23:55:24 <SimonRC> or the joy of conversing with fellow geeks?
23:55:33 <ehird`> fellow geeks? in a public school?
23:55:42 <ehird`> you must be kidding me
23:55:46 <SimonRC> ehird`: that means something different here...
23:56:20 <SimonRC> I went to a "grammar school" (deprecated), which took the top 40% of students.
23:56:32 <ehird`> i know what a grammar school is, SimonRC ;)
23:56:46 <SimonRC> in .uk, public school = private school = school that you pay for.
23:56:59 <SimonRC> in .uk state school = gov-funded school
23:57:29 * ehird` mixes .uk-isms and .us-isms after a while by mistake
23:59:25 -!- sebbu has quit ("@+").
23:59:39 -!- Pikhq has quit (Read error: 113 (No route to host)).