<< 11-07-2013 >>

00:10:39*ponce is now known as p0nce
00:34:12*zahary quit (Quit: Leaving.)
01:01:01*DAddYE quit (Remote host closed the connection)
01:09:13*q66 quit (Quit: Leaving)
02:43:46*JStoker quit (*.net *.split)
02:43:46*Araq quit (*.net *.split)
03:09:26*JStoker joined #nimrod
03:09:26*Araq joined #nimrod
03:14:23*DAddYE joined #nimrod
03:35:34*DAddYE quit (Read error: No route to host)
03:35:48*DAddYE joined #nimrod
04:29:50*OrionPK quit (Read error: Connection reset by peer)
04:40:21*Trixar_za is now known as Trix[a]r_za
05:19:03*EXetoC joined #nimrod
06:59:54*Araq_ joined #nimrod
07:12:43*Araq_ quit (Quit: ChatZilla 0.9.90 [Firefox 22.0/20130618035212])
07:17:55*Associat0r joined #nimrod
07:36:22*DAddYE quit (Remote host closed the connection)
07:43:20EXetoCsup guys
08:08:10*EXetoC quit (Quit: WeeChat 0.4.1)
10:23:24*q66 joined #nimrod
12:57:21*EXetoC joined #nimrod
13:15:17*racho joined #nimrod
13:16:54rachohello, am i missing some dep or what? tried building latest nimrod from github yield this -> http://pastebin.com/YvrnJViK. ubuntu 13.04
13:42:32*racho quit (Quit: Leaving)
13:45:26*Associ8or joined #nimrod
13:45:26*Associ8or quit (Changing host)
13:45:26*Associ8or joined #nimrod
13:47:23*Associat0r quit (Ping timeout: 240 seconds)
14:48:18*Raynes quit (Ping timeout: 246 seconds)
14:51:30*Raynes joined #nimrod
17:10:38*DAddYE joined #nimrod
17:21:03*Sergio965 joined #nimrod
17:38:15*DAddYE quit (Remote host closed the connection)
17:41:42*DAddYE joined #nimrod
17:43:06*DAddYE quit (Remote host closed the connection)
17:43:42dom96I guess we need a warning on Nimrod's download page about that Ubuntu error
17:44:07*DAddYE joined #nimrod
17:52:31*Associ8or quit (Quit: Associ8or)
18:27:00*DAddYE quit (Remote host closed the connection)
18:27:53*DAddYE joined #nimrod
18:53:19*gradha joined #nimrod
19:05:48EXetoCgradha: morning
19:09:17gradhaEXetoC: morning
19:09:49dom96afternoon
19:13:38EXetoCgradha: really? ok
19:16:50gradhaNimBot: high five!
19:21:57*apotheon_ joined #nimrod
19:22:17dom96well guys, where are all these nimrod projects!?
19:22:43gradhabuy these, you mean...?
19:22:50dom96where are the blog posts encouraging people to use Nimrod?
19:24:02gradhaI was going to start writing posts about nimrod but I've changed my mind and will do posts on kpop
19:25:29gradhaactually, I have four ideas for nimrod posts, and two for kpop, but the kpop ones seem more interesting
19:26:22gradhahmm... wait, actually those 4 aren't directly about nimrod, though I plan to mention it
19:27:41*gradha facepalms
19:28:09gradhaof course, I forgot to write down one post idea about idetools, but that's kind of obvious once the hyperlinker reaches a nice state
19:28:27dom96well I just found a Hatsune Miku game demo on PSN
19:29:03gradhaamazing, do they have a demo of girls und panzer?
19:31:02*apotheon quit (*.net *.split)
19:31:02*fowl- quit (*.net *.split)
19:32:23dom96omg, how am I losing on Easy.
19:32:29dom96This game is strangely fun though.
19:32:41*dom96 realises how sad his life is
19:36:21*fowl joined #nimrod
19:40:24gradhatry to write a blog post about nimrod and that Hatsune Miku game
19:44:48*mal`` quit (Ping timeout: 246 seconds)
19:57:22*NimBot joined #nimrod
20:00:34dom96but yeah, we need to get to work. We need to make gradha's prophecy, "this year is the year of Nimrod", come true.
20:02:09gradhawell, 2014 could be the year of "more nimrod", so no worries
20:19:19Araqyay .. bad internet connection again ...
20:19:35gradhais it rainy?
20:19:47Araqit's like I'm in the 3rd world here ...
20:20:27gradhatomorrow some people are coming home to exchange one of my kidneys for FTTH
20:20:36gradhaI bet it will still suck the same
20:20:39Araqno it's not rainy
20:21:36Araqthat sounds bad ... what if you need your kidney again later?
20:21:59gradhamaybe I can sell the FTTH for one
20:24:08Araqsounds like a sound plan
20:25:05gradhamaybe I can later get an extra kidney back to sell on ebay and get some profit too
20:26:32Araqgetting an extra melt should be way easier as nobody knows what a melt is good for
20:27:48gradhadon't even know what a melt is
20:30:14Araqa milt
20:31:15DAddYEhi there
20:31:22DAddYEback to my c2nim problems
20:31:23DAddYE:D
20:31:34gradhasounds fun
20:31:43DAddYEany know how workaround on this: https://gist.github.com/DAddYE/f19b7de1b9c8083f8593 ?
20:32:34AraqDAddYE: replace #define by #def
20:33:10Araqbut I may not have implemented the ## preprocessor concatenation operator
20:33:36DAddYEno luck same error
20:34:04Araqwell you need to #def UV_ERRNO_MAP too etc.
20:35:46DAddYEAraq: haha
20:35:49DAddYEa bit more
20:35:57DAddYEError: '}' expected
20:35:59DAddYEline 5
20:36:59Araq#def UV_MAX_ERRORS ?
20:37:27DAddYEI'm retarded today :D
20:38:09DAddYEbut there isn't on the header any define UV_MAX_ERRORS
20:38:13DAddYEin any header
20:38:15DAddYEstrange
20:39:02Araqoh
20:39:03gradhayou could try using the cpp preprocessor command to figure out what it eventually gets replaced by
20:39:25Araqwell UV_MAX_ERRORS is an enum value then
20:39:30Araqthe last one ...
20:39:37Araqhence the MAX in its name
20:46:11AraqDAddYE: you need to expand the enum for yourself I'm afraid
20:46:55Araqgradha's idea of running the C prepocessor looks like a good one
20:51:02EXetoCboop
20:51:47DAddYEAraq: yep
20:51:54DAddYEAraq: thanks
20:52:07Araqhi EXetoC in case you wonder about the slow progress ... you're wrong, it's just that I don't push what I have ;-)
20:52:42EXetoCI guess you implied that before c(:)-<
20:53:05Araqdid I? bah ...
20:53:19dom96EXetoC: Keep Calm and Carry On Coding.
20:54:15dom96I should just add 'Coding' to the poster here: http://en.wikipedia.org/wiki/Keep_Calm_and_Carry_On
20:55:06dom96And put it on my wall.
20:55:50Araqthere are much better things you could put onto your wall
20:56:22dom96You're right, I should get a porn star with a tattoo of that poster with 'Coding' added on!
20:57:03EXetoCpaper?
20:57:03gradhathe absolute nerd porn star
20:58:08gradhaporn starts coding in nimrod, hmm... yep, package the idea and sell it for zillions
21:01:57dom96"Are you a young teenager who wants to see some sexy ladies /and/ learn a sexy programming language? Now you can be productive and filled with pleasure with the new Nimrod Porn Star tutorial!"
21:04:34dom96yep. I need to patent that idea.
21:14:23EXetoCI wonder if anyone has patented bread
21:16:57Araqsliced bread is patented, EXetoC
21:24:56DAddYEAraq: last one: https://gist.github.com/DAddYE/00e2394642b2907f98a1
21:26:10gradhaoh, union fun times
21:29:43DAddYEgradha: https://gist.github.com/DAddYE/00e2394642b2907f98a1#file-c2nim-h-L13
21:30:20DAddYEor is better struct tree_entry_s { ... }; and then tree_entry_s tree_entry; ?
21:30:35AraqDAddYE: uv_stream_t* stream; instead of the union
21:30:39Araqthe latter
21:30:45*Sergio965 quit (Ping timeout: 264 seconds)
21:30:54DAddYEAraq: thx
21:32:41EXetoCAraq: I don't want to be a part of society if that is true
21:35:27reactormonkEXetoC, https://www.google.com/?tbm=pts#safe=off&output=search&tbm=pts&sclient=psy-ab&q=sliced+bread&oq=sliced+bread nah
21:36:50reactormonkEXetoC, https://www.google.com/patents/WO1994019956A1 err wait.
21:36:54DAddYEAraq: can't be better transform it to: union data_u { uv_stream_t* stream; int fd; };
21:37:03reactormonkEXetoC, but it's only an application, I don't see a patent number
21:37:11DAddYEand thus in my struct { ...; data_u data; } ?
21:37:17EXetoCxd
21:38:13AraqDAddYE: c2nim converts the union to what I wrote anyway once you get it to parse the union
21:38:32DAddYEAraq: ok
21:38:54Araqyou can easily do proc fd(x: whatever): cint = cast[cint](x.stream)
21:39:19Araqbut chances are not bad nobody needs it anyway
21:42:27DAddYEAraq: ok, makes totally sense
21:42:33DAddYEAraq: void uv_once(uv_once_t* guard, void (*callback)(void)); ?
21:42:42gradhalet's say I implement a macro for db_sqlite which indents code into a begin/end transaction, which can be done with finally: anyway
21:43:07gradhathe thing is, would it be possible to not execute the end transaction if something else brakes inside? how to detect it?
21:44:02gradhaI'm not talking about nimrod exception level, but somehow detecting that a previous sql statement failed and thus the end transaction is useless
21:44:06AraqDAddYE: proc uv_once(guard: ptr TUvOnce, callback: proc () {.cdecl.})
21:44:47DAddYEAraq: how I can rewrite it in c so c2nim will be able to parse it?
21:45:31Araqtypedef void (*callback_t)(void); void uv_once(uv_once_t* guard, callback_t callback);
21:45:34Araqperhaps ...
21:46:03Araqperhaps it's typedef void callback_t(void);
21:46:20Araqor typedef void (callback_t)(void);
21:46:53Araq(all the same in C btw ... the * has no meaning here afaik)
21:47:38Araq(which makes me wonder if typedef void (**callback_t)(void) IS a pointer to a function pointer or not)
21:49:18DAddYEtypedef void callback_t(void);
21:49:34DAddYEand thus , callback_t *callback); ?
21:50:02Araqno
21:50:08Araqcallback_t callback
21:50:15DAddYEok
21:51:19*EXetoC quit (Quit: WeeChat 0.4.1)
21:53:47*OrionPK joined #nimrod
21:58:31DAddYEAraq: ok, parsed
21:58:45DAddYEjust a quick recap because I'm not a C expert
21:59:24DAddYEstruct { struct { ... } foo; } => struct foo_t { ... }; struct { foo_t foo };
21:59:27DAddYEcorrect?
21:59:28DAddYEor
21:59:36DAddYEstruct { struct foo_t foo };
21:59:38DAddYE?
22:00:30Araqit doesn't really matter
22:00:31Araqthe first version is preferable
22:02:22DAddYEAraq: thanks a lot
22:03:57DAddYEAraq: here the result: https://gist.github.com/DAddYE/960a2a1a16c3c3ab3239
22:09:35reactormonkDAddYE, looks good, slightly messy :-)
22:10:06AraqDAddYE: looks horrible ;-)
22:10:26Araquse #typeprefixes
22:10:38reactormonkAraq, hashtags?
22:12:11Araq#suffix _t
22:12:40OrionPKwell, he's got a t prefix on his ree_entry type ;)
22:13:08Araq#suffix _s
22:13:27Araq#mangle type theType
22:14:10Araq#suffix _cb
22:14:48Araqand somebody should fix c2nim to not generate pure, final anymore; it's the default now since 2 versions I think
22:16:40Araqtimespec_t and stat_t are already in posix.nim
22:19:56reactormonkAraq, you don't like inheritance?
22:20:26Araqsurprise surprise: I don't
22:21:00DAddYEAraq: hahaha
22:22:51gradhathe next hyperlinker version will have a --full-retard switch, hopefully the zero users I have won't get offended
22:23:05reactormonkgradha, doing?
22:23:21gradhayes
22:29:36reactormonkgradha, ... what does the -fr switch do?
22:30:20gradhathere's no -fr switch yet
22:30:54gradhabut there's -f alone: -f, --fake Doesn't really call idetools, mostly for debugging of html output to generate it quickly.
22:31:23gradhathe --full-retard will be like the current --brute switch
22:31:46gradhanow --brute will be slightly less bruter, and no switch should be pretty fast
22:32:10gradhato avoid collisions I'll name it -F in the single letter version
22:34:17Araqdon't make single letter versions instead
22:35:04Araqthese things always end up in a script or are produced by arrow up so their typing speed is irrelevant
22:38:06gradhaI love confusing users with single letter switches
22:39:00reactormonkAraq, and after one usage, you usually draw up the shell history
22:41:04gradhafor a sample file normal takes 8s, brute 40s and full retard 52s
22:41:16Araqreactormonk: that's what meant with "arrow up"
22:41:18Araqgradha: you must love unix then ... "man" for "help" is an awesome idea
22:43:14gradhait was an awesome idea for its time
22:43:30*Trix[a]r_za is now known as Trixar_za
22:50:30gradhaI still need to figure out a valid use for --kpop
22:51:08gradhamaybe it should play a random youtube video
22:52:58Araqit should replace the module's name by a pink unicorn
22:53:08*p0nce left #nimrod (#nimrod)
22:58:06*apotheon_ is now known as apotheon
22:58:06*apotheon quit (Changing host)
22:58:06*apotheon joined #nimrod
23:00:05*gradha quit (Quit: bbl, need to watch https://www.youtube.com/watch?v=1ZZC82dgJr8 again)
23:16:06DAddYEAraq: with peg how I convert the result of a capture to uppercase?
23:45:56dom96DAddYE: result.toUpper()?
23:46:24DAddYEdom96: yep but I need that in #mangle
23:46:39dom96oh that's for wrapping
23:46:46dom96hrm, dunno.
23:48:28dom96what are you trying to do exactly, why do you need to make it uppercase?
23:55:32*Trixar_za is now known as Trix[a]r_za