←2006-12-14 2006-12-15 2006-12-16→ ↑2006 ↑all
00:32:09 * SimonRC goes
00:35:13 -!- GregorR-L has quit (Read error: 110 (Connection timed out)).
00:41:31 -!- maverickbna has joined.
00:42:04 -!- GregorR-L has joined.
00:42:19 -!- ShadowHntr has quit (Nick collision from services.).
00:42:47 -!- maverickbna has changed nick to ShadowHntr.
01:02:30 <bsmntbombdood> woot, closures in C
01:12:08 -!- pikhq has joined.
01:15:04 <bsmntbombdood> one sec, and I'll have some code
01:26:38 -!- GregorR-L has quit ("HydraIRC -> http://www.hydrairc.w00t <- IRC for annoying quit-spamming bastards").
01:31:22 <bsmntbombdood> I've done it!
01:32:10 <bsmntbombdood> bsmntbombdood.mooo.com/testclosure.c
01:32:51 <bsmntbombdood> or even http://bsmntbombdood.mooo.com/testclosure.c
01:34:03 <bsmntbombdood> It even compiles without any warnings
01:35:11 <bsmntbombdood> I feel naughty
03:42:07 -!- calamari has joined.
04:51:01 -!- wooby has joined.
05:04:09 -!- calamari has quit ("Leaving").
05:17:28 -!- pikhq has quit (Read error: 110 (Connection timed out)).
05:37:11 -!- calamari has joined.
05:49:11 -!- calamari has quit ("Leaving").
05:49:47 -!- calamari has joined.
06:19:43 -!- GregorR-L has joined.
06:20:31 -!- calamari has quit ("Leaving").
06:32:52 -!- ShadowHntr has quit ("End of line.").
07:09:02 -!- tgwizard has joined.
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
08:03:00 -!- tgwizard has quit (Remote closed the connection).
08:04:15 -!- GregorR-L has quit ("HydraIRC -> http://www.hydrairc.w00t <- IRC for annoying quit-spamming bastards").
08:47:18 -!- anonfunc has joined.
09:59:07 <tokigun> bsmntbombdood, what platform did you use? linux?
10:40:40 <tokigun> what OS*
10:48:35 -!- ivan` has quit (" Want to be different? HydraIRC -> http://www.hydrairc.com <-").
11:27:59 -!- ivan` has joined.
11:39:43 -!- ivan` has left (?).
14:02:34 -!- calamari has joined.
14:04:34 <calamari> hi
14:04:44 <tokigun> hello
14:10:47 <okokoko> lo
14:45:37 -!- calamari has quit ("Leaving").
14:54:09 -!- DRMacIver has quit (Read error: 104 (Connection reset by peer)).
14:58:41 -!- DRMacIver has joined.
15:16:52 -!- woggle has joined.
15:45:53 -!- GregorR-L has joined.
16:21:06 -!- jix_ has joined.
16:26:25 * SimonRC finds superdickery.com. Slogan: "Superman is a dick".
16:28:24 <SimonRC> ooh, he is evil:
16:28:25 <SimonRC> http://www.superdickery.com/dick/17.html
16:31:24 -!- woggle has quit (Connection timed out).
16:36:06 <GregorR-L> Superdickery = fun :)
16:51:33 * SimonRC goes
17:19:03 -!- Darksun has joined.
17:19:46 -!- Darksun has quit (Client Quit).
18:59:43 -!- ShadowHntr has joined.
19:03:27 -!- GregorR-L has quit (Read error: 110 (Connection timed out)).
19:17:01 -!- GregorR-W has joined.
20:39:06 * SimonRC listens to _The Now Show_.
20:39:07 <SimonRC> Yay!
20:39:14 <SimonRC> http://www.bbc.co.uk/radio4/comedy/nowshow.shtml
20:39:20 <SimonRC> (try it)
20:44:46 <bsmntbombdood> tokigun: yes, I tested it on linux
20:45:05 <bsmntbombdood> Shouldn't be platform specific though
20:46:46 * bsmntbombdood though it was interesting
20:48:36 <bsmntbombdood> yay for c!
20:51:57 <tokigun> bsmntbombdood, i'm not sure, but i think your code may be not portable
20:52:27 <bsmntbombdood> Why not?
20:52:29 <tokigun> (at first i expected your code will not work in win32, but it works ;)
20:53:32 <tokigun> there could be an architecture that doesn't allow to execute instructions in malloc'd memory
20:53:55 <bsmntbombdood> mmm
20:54:02 <bsmntbombdood> OpenBSD W ^ X
20:55:33 <bsmntbombdood> Think there's a way to undo that
20:57:22 <bsmntbombdood> mprotect
20:57:35 <bsmntbombdood> PROT_EXEC | PROT_READ
20:58:23 -!- CakeProphet has joined.
20:59:04 <bsmntbombdood> I think
21:13:47 * SimonRC swears at bsmntbombdood's ugly hack for a bit.
21:14:01 <bsmntbombdood> hehe
21:14:22 <bsmntbombdood> I thought it was pretty cool
21:15:53 <SimonRC> First-clas functions, more literally than usually meant.
21:17:03 <bsmntbombdood> :)
21:18:20 <SimonRC> My friends elsenet hate it.
21:19:11 <bsmntbombdood> elsenet?
21:19:14 <SimonRC> Maybe you should try writing some of the common HoF, then write an IOCCC entrant in a functional style.
21:19:32 <SimonRC> bsmntbombdood: yeah, meaning "somewhere else on the net".
21:19:42 <bsmntbombdood> What is HoF?
21:19:50 <SimonRC> higher-order functions
21:20:09 <bsmntbombdood> oh
21:20:48 <bsmntbombdood> There should be some better way to find the offset of a variable inside a function without using a sentinal
21:21:02 <SimonRC> you could say that
21:21:22 <tokigun> how about implementing standard combinators? :)
21:21:50 <SimonRC> And "int closure" isn't a closure. It's kinda a captured variable.
21:22:36 <bsmntbombdood> That code segfaults on openbsd
21:23:13 <SimonRC> no shit
21:25:59 <bsmntbombdood> gdb segfaults when trying to debug it O.o
21:26:57 <SimonRC> heh
21:29:51 <bsmntbombdood> Well, my hackery is cool
21:31:48 <SimonRC> It seems several pograms disagree. ^^^
21:32:46 <bsmntbombdood> pogram?
21:32:58 <bsmntbombdood> program?
21:33:14 <SimonRC> OTOH, it works on my machine.
21:41:30 <bsmntbombdood> segfaultage removed
21:41:40 <bsmntbombdood> mprotect(newfunc, size, PROT_WRITE | PROT_READ | PROT_EXEC);
21:41:42 <SimonRC> how?
21:41:50 <SimonRC> heh
21:43:36 <bsmntbombdood> So it is portable
21:43:55 <tokigun> heh
21:46:30 <bsmntbombdood> take that, doubters
21:49:20 <SimonRC> heh
22:00:00 <SimonRC> :-S http://www.propeller-island.de/rooms_neu/room_detail/23/index.php
23:17:23 -!- Sgeo has joined.
23:35:29 * SimonRC goes to bed
23:41:21 -!- pikhq has joined.
23:45:08 <pikhq> 'Lo.
23:47:27 <bsmntbombdood> Hi
←2006-12-14 2006-12-15 2006-12-16→ ↑2006 ↑all