←2007-05-13 2007-05-14 2007-05-15→ ↑2007 ↑all
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:08 <bsmntbombdood> THat's not good
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:12:05 <bsmntbombdood> segfaults for me without -O
04:12:46 <bsmntbombdood> line 12
04:13:12 <Pikhq> The hell is wrong with that assignment?
04:14:46 <bsmntbombdood> wtf?
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:02 <Pikhq> 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 <bsmntbombdood> yes, found the problem i think
04:18:25 <bsmntbombdood> char *b = b...
04:20:10 <bsmntbombdood> wtf?
04:20:28 <Pikhq> Yeah.
04:20:36 <bsmntbombdood> after line 6, current != b
04:20:46 <Pikhq> That's an issue in *my* compiler. ;)
04:21:36 <bsmntbombdood> how can this be?
04:21:44 <Pikhq> My BFM compiler.
04:22:21 <bsmntbombdood> I mean the results
04:22:32 <bsmntbombdood> current = b; yet current != b
04:23:20 <Pikhq> Yeah. . . That's an issue in my output.
04:23:58 <bsmntbombdood> huh?
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:26:20 <bsmntbombdood> better name mangling, then
04:31:41 <Pikhq> Yeah.
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:10 <bsmntbombdood> s/_/__/g; s/\*/_asterisk_/g # yay, no collisions
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:52:22 <bsmntbombdood> lambda x: "".join(["a"*ord(i)+"b" for i in x]))
04:52:36 <bsmntbombdood> name mangling should be as esoteric as possible
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
04:59:50 <bsmntbombdood> every character
05:00:04 <Pikhq> Holy. . .
05:00:14 <Pikhq> While it'd *work*, I must ask. . . WHY?!?
05:00:25 <bsmntbombdood> for esotericness
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:07 <Pikhq> *a = *b - 1;
05:01:25 <bsmntbombdood> It's never enough
05:01:34 <Pikhq> *a = !*a;
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:50:44 <Feuermonster> o_O
16:51:22 <Feuermonster> Which language is that written in?
16:51:36 <ehird`> that's just the interpreter source coe
16:51:38 <ehird`> *code
16:51:38 <ehird`> well
16:51:41 <ehird`> the decryption part
16:52:03 <Feuermonster> I mean, in which language do you write the source-code?
16:52:09 <ehird`> what?
16:52:20 <Feuermonster> Php,Python,Ruby,BASIC whatever?
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:53:54 <Feuermonster> I guess index : 50 means index / 50?
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:46 <ehird`> hmm
18:19:48 <ehird`> pastie messed it up
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."
21:40:26 <ehird`> close, close..
23:43:38 <SimonRC> '(enemy lasanga robust below wax)
23:43:39 <SimonRC> '(semiautomtic aqua accompany slacks)
23:43:41 <SimonRC> :-P
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:45:46 <SimonRC> ah, another fan
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:09 <SimonRC> (See also: X-men movies)
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:47:33 <SimonRC> ?
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:39 <SimonRC> :-P
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:12 <SimonRC> indeed
23:49:31 <SimonRC> though it is a spectrum
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:51:38 <SimonRC> *buying
23:51:45 <bsmntbombdood> SimonRC: good essay
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:09 <bsmntbombdood> recall
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:53:57 <bsmntbombdood> School is prison
23:54:04 <SimonRC> less so in the UK, afaict
23:54:10 <ehird`> people would have you believe that prison is school
23:54:12 <ehird`> :P
23:54:25 <SimonRC> in secondary chool, I got on well with most teachers, and learnt loads of stuff
23:54:56 <bsmntbombdood> I learn nothing in secondary school
23:55:10 <SimonRC> how about algebra?
23:55:24 <SimonRC> or the joy of conversing with fellow geeks?
23:55:28 <SimonRC> or music?
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:07 <bsmntbombdood> algebra, hah
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:17 * ehird` is in .uk
23:57:29 * ehird` mixes .uk-isms and .us-isms after a while by mistake
23:57:56 <bsmntbombdood> 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)).
←2007-05-13 2007-05-14 2007-05-15→ ↑2007 ↑all