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 woot, closures in C 01:12:08 -!- pikhq has joined. 01:15:04 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 I've done it! 01:32:10 bsmntbombdood.mooo.com/testclosure.c 01:32:51 or even http://bsmntbombdood.mooo.com/testclosure.c 01:34:03 It even compiles without any warnings 01:35:11 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 bsmntbombdood, what platform did you use? linux? 10:40:40 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 hi 14:04:44 hello 14:10:47 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 ooh, he is evil: 16:28:25 http://www.superdickery.com/dick/17.html 16:31:24 -!- woggle has quit (Connection timed out). 16:36:06 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 Yay! 20:39:14 http://www.bbc.co.uk/radio4/comedy/nowshow.shtml 20:39:20 (try it) 20:44:46 tokigun: yes, I tested it on linux 20:45:05 Shouldn't be platform specific though 20:46:46 * bsmntbombdood though it was interesting 20:48:36 yay for c! 20:51:57 bsmntbombdood, i'm not sure, but i think your code may be not portable 20:52:27 Why not? 20:52:29 (at first i expected your code will not work in win32, but it works ;) 20:53:32 there could be an architecture that doesn't allow to execute instructions in malloc'd memory 20:53:55 mmm 20:54:02 OpenBSD W ^ X 20:55:33 Think there's a way to undo that 20:57:22 mprotect 20:57:35 PROT_EXEC | PROT_READ 20:58:23 -!- CakeProphet has joined. 20:59:04 I think 21:13:47 * SimonRC swears at bsmntbombdood's ugly hack for a bit. 21:14:01 hehe 21:14:22 I thought it was pretty cool 21:15:53 First-clas functions, more literally than usually meant. 21:17:03 :) 21:18:20 My friends elsenet hate it. 21:19:11 elsenet? 21:19:14 Maybe you should try writing some of the common HoF, then write an IOCCC entrant in a functional style. 21:19:32 bsmntbombdood: yeah, meaning "somewhere else on the net". 21:19:42 What is HoF? 21:19:50 higher-order functions 21:20:09 oh 21:20:48 There should be some better way to find the offset of a variable inside a function without using a sentinal 21:21:02 you could say that 21:21:22 how about implementing standard combinators? :) 21:21:50 And "int closure" isn't a closure. It's kinda a captured variable. 21:22:36 That code segfaults on openbsd 21:23:13 no shit 21:25:59 gdb segfaults when trying to debug it O.o 21:26:57 heh 21:29:51 Well, my hackery is cool 21:31:48 It seems several pograms disagree. ^^^ 21:32:46 pogram? 21:32:58 program? 21:33:14 OTOH, it works on my machine. 21:41:30 segfaultage removed 21:41:40 mprotect(newfunc, size, PROT_WRITE | PROT_READ | PROT_EXEC); 21:41:42 how? 21:41:50 heh 21:43:36 So it is portable 21:43:55 heh 21:46:30 take that, doubters 21:49:20 heh 22:00:00 :-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 'Lo. 23:47:27 Hi