<<03-12-2012>>

00:01:45*q66 quit (Quit: Quit)
00:33:05*zahary quit (Read error: No route to host)
00:33:19*zahary joined #nimrod
01:17:46*JStoker quit (Excess Flood)
01:33:34*JStoker joined #nimrod
03:59:43*zahary quit (Ping timeout: 245 seconds)
04:04:38*zahary joined #nimrod
04:12:04*zahary quit (Ping timeout: 265 seconds)
05:25:29*JStoker quit (Excess Flood)
05:39:25*rking quit (Quit: BBIAB)
05:45:32*JStoker joined #nimrod
06:19:50*rking joined #nimrod
07:39:00*Zor quit (Remote host closed the connection)
07:42:39*zahary joined #nimrod
08:00:54*Araq_ joined #nimrod
08:01:54*Araq_ quit (Client Quit)
10:28:11*Trix[a]r_za is now known as Trixar_za
11:57:58*apriori_ joined #nimrod
12:11:49*apriori_ quit (Ping timeout: 260 seconds)
12:14:04*Boscop quit (Read error: Connection reset by peer)
12:15:47*apriori_ joined #nimrod
12:22:53*Trixar_za is now known as Trix[a]r_za
13:08:05apriori_what would be the proper signature for the assignment proc in the given code?: http://pastebin.com/0Tbg5fYv
13:08:11apriori_is that even possible right now?
13:18:45apriori_one could use a converter, but that one is not able to reuse storage
13:19:14apriori_so either operator = needs to support that use case or we need an extended converter, e.g. one that gets a storage parameter
13:20:26apriori_and converters also lack generic params
13:26:02fowl i dont think there is an = operator
14:03:57apriori_fowl: for a given type T, how would I transform T.new into a call which creates a new ref and calls new on it?
14:04:07apriori_or more precise.. how can I match typedesc[T] ?
14:04:15apriori_and extract T from it?
14:04:34apriori_proc someNew[T](somT: typedesc[T]): T = ... doesn't seem to work
14:06:00apriori_question is.. can a proc actually work at all for that case (or a template).. or do I even need a macro?
14:25:00*alexrp joined #nimrod
15:48:36*apriori_ quit (Quit: Konversation terminated!)
16:46:08*alexrp_ joined #nimrod
16:50:55*alexrp quit (*.net *.split)
16:50:56*a_peach quit (*.net *.split)
16:53:00*zahary1 joined #nimrod
16:54:41*zahary quit (Write error: Connection reset by peer)
17:01:14*alexrp_ is now known as Zor
17:16:56*q66 joined #nimrod
17:57:06Araqdom96: case protVersion
17:57:08Araq of protSSLv23:
17:57:10Araq newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
17:57:29Araqyou call this method so how can deadCodeElim eliminate it?
17:58:14dom96Well, it's actually SSLv2_method that is causing the issue
17:59:21Araqtrue, misremembered
17:59:43dom96I guess it gets called anyway though
17:59:51dom96Well, it gets put into the code
17:59:55dom96because it /may/ be called
18:00:20Araqlol
18:00:24Araqwell guess what
18:00:38Araqthe compiler isn't allowed to change the semantics :P
18:02:09dom96I know.
18:02:15dom96I didn't realise it was in a case statement.
18:06:06dom96Well, we could either remove SSLv2_method
18:06:18dom96or somehow check for its existence?
18:06:53Araqyeah we could check for its existance
18:07:06Araqbut if ubuntu removed it, maybe it's not important? ;-)
18:07:25dom96Yeah, well Ubuntu removed it because using it is a security risk :P
18:11:19Araqusing ubuntu itself is a security risk ...
18:11:30Araqusing a computer is a security risk ...
18:11:53dom96living is a security risk :P
18:39:56*Vladar joined #nimrod
19:11:21*FreeArtMan joined #nimrod
19:19:07*JStoker quit (Excess Flood)
19:36:02*JStoker joined #nimrod
19:39:21*shevy2 joined #nimrod
19:40:52Araqping zahary1
19:41:34*shevy quit (Read error: Operation timed out)
19:55:58*FreeArtMan quit (Ping timeout: 252 seconds)
21:16:41*Trix[a]r_za is now known as Trixar_za
21:35:18AraqVladar: why do you even cast a float32 to a pointer and back? o.O
21:36:58VladarAraq, there is that function from libtcod, it returns element of list as `void*` and it might be bool, int, float, etc.
21:37:59Araqreally? not a pointer to bool, int, float etc?
21:39:31reactormonkVladar, they really like dynamic typing, do they
21:39:47Trixar_zaOo
21:39:55VladarAraq, no, I successfully did cast to bool, char, int32, cstring, and tuple(r, g, b: uint8)
21:40:00Trixar_zaLibtcod? You're porting it?
21:40:03Trixar_zaAwesome
21:41:59Araqcasting void* to float32 and back is no valid C :P
21:42:12VladarI think I must completely rewrite parser module, also because of union-type values, which I can't cast to nimrod's values.
21:43:51VladarTrixar_za, actually it's almost done, except for parser module (and maybe some bugs)
21:44:16Trixar_zaSweet, I'd love to play with that
21:44:47Trixar_zaAlways wanted to make a roguelike
21:44:50VladarTrixar_za, here it is https://github.com/Vladar4/libtcod-nim
21:45:12reactormonkAraq, already start missing dynamic scope in scala :-)
21:45:22reactormonkAraq, have to say, I like the idea of Option and Either
21:45:48Araqa union is only a couple of 'emit' pragmas away .., Vladar
21:46:00Araqbut I didn't suggest this ;-)
21:46:22reactormonkever considered them?
21:46:51Araqyeah and recently I also got them :P
21:47:06reactormonkwhen?
21:47:25Araqwhen dom96 showed off some monads to deal with them ;-)
21:47:28reactormonkor rather, what's your definition of when
21:47:32reactormonkoh
21:47:37reactormonks/when/got/
21:47:39VladarAraq, actually I already tried this, but got linker cast error. Mayby I'm did something wrong though
21:49:31Araqreactormonk: nimrod has sum types, so they are easy to do in nimrod
21:49:50Araqthe stdlib doesn't though and I'm not keen on changing that
21:51:24Araqalso you should feel really bad for missing dynamic scoping
21:55:08reactormonkAraq, why? it makes parameter handling painless
21:55:26reactormonkyou just have to keep your checking in one place
21:56:37Araqyeah, in fact I never used them in Lisp and yet do miss them when hacking the compiler ;-)
21:57:02Araqthese recursive helper functions that always end up growing more and more parameters ...
21:58:06reactormonkuse more parametricide
22:35:00Vladarbye
22:35:11*Vladar quit (Quit: Leaving)
23:05:25*Zor quit (Read error: Connection reset by peer)
23:24:39*Trixar_za is now known as Trix[a]r_za
23:27:47*alexrp joined #nimrod
23:29:45*alexrp is now known as Zor