<< 28-07-2015 >>

00:12:09filwit+1 for removing/forgetting 'high' in favor of ..< and len
00:19:17*no_name_ joined #nim
00:20:33no_name_so I'm porting a c lib with c2nim and I have a bunch consts that are essentially flags that are passed as a cuint, but if I try to or them together, the compiler says or isn't implemented for cuint, what is the idiomatic way for remediating this problem?
00:33:00Araqno_name_: import unsigned or use nim devel
00:38:59Araqfederico3: #2874 is closed, nobody said we parse -d foo as -d:foo
00:39:36Araqin fact, it's a deliberate design decision to depart from posix so that command line parsing can be done context insensitively
00:40:33federico3thanks. That was unexpected, I'd suggest putting a clear warning on parseopt.html
00:45:22Araqfowl: indeed high doesn't work for NimNode
00:45:30AraqI'm removing it
00:51:06Araqping dom96
00:51:31Araqoh hrm ... it's late for him ... stupid time zones
00:55:14saml_is async io multi thread?
00:55:25Araqno.
01:02:12VarriountMeep
01:02:45filwithey Araq, remember how I said the 'object' definition syntax annoys me cause it doesn't really feel like the var/proc one? well I realized that if Nim handled call syntax parameters it would fit perfectly.. eg:
01:02:47filwitfoo.bar
01:02:50filwit blah
01:02:55filwit thing
01:03:14filwit(where 'bar' is a call and 'blah' & 'thing' are parameters)
01:03:38Araqyeah, unfortunately I do remember :P
01:03:46filwitthat perfectly matches object definition syntax if you think of 'object' as a 'call'
01:04:10Araqyeah or you accept that 'object' is a special case
01:04:28Araqit's not like a block of Nim syntax follows it anyway
01:04:43Araqinstead field descriptors follow
01:05:05AraqI mean it IS also a keyword in the language, you know ... ;-)
01:05:16filwitdon't get me wrong, I'm not saying this is an "issue" just a pet-peeve of mine that I realized would not be so if the call syntax could work without params
01:05:31*Kingsquee quit (Ping timeout: 246 seconds)
01:06:30filwitalso, i wasn't thinking about object syntax when I was thinking about this.. it was mostly I think Nim's call syntax would be nice if we could call procs like that (since it's annoying to have to intermix indentation style with multi-line calls)
01:07:36filwiti'm perfectly fine living with everything as-is.. and I'm not saying we need this or anything.. just random thoughts about things we talked about recently
01:08:03Araqok
01:11:44*Cryptotoad quit (Quit: Leaving)
01:15:42Araqfilwit: well I think we have enough syntaxes for "function call"
01:16:23filwitactually I think having multi-line parameterless calls is a natural extension of other syntax we have and is more confusing without it...
01:16:29filwitfoo bar, 1
01:16:34filwitfoo bar,
01:16:36filwit 1
01:16:48filwitbut can't do..
01:16:49filwitfoo
01:16:50filwit bar,
01:16:52filwit 1
01:17:56filwitso we have to use param brackets.. which doesn't fit with the rest of the indentation syntax.. yet there are places that simply *need* this
01:20:33filwitbut again, I'm not actually suggesting anything changes here right now.. I was just commenting on how I think this syntax (if it existed) would feel very similar to how 'object' is... 'object' would be seen (by humans) as a "parameterless call which consumes A:B nodes"
01:22:54filwiti mean just think, if the syntax did exist you could make a `macro defType(...)` which returns a typedesc and use it like this:
01:23:03filwittype Foo = defType
01:23:06filwit x: int
01:23:11filwit ...
01:27:22*bjz joined #nim
01:30:37*vendethiel quit (Ping timeout: 244 seconds)
01:44:38*jaco60 quit (Ping timeout: 246 seconds)
01:51:16*yglukhov joined #nim
01:53:12*strcmp2 joined #nim
01:55:25*yglukhov quit (Ping timeout: 240 seconds)
01:56:18*strcmp1 quit (Ping timeout: 260 seconds)
01:59:46*gmpreussner|work joined #nim
02:05:38*solidsnack joined #nim
02:06:36*pregressive quit (Remote host closed the connection)
02:09:44*brson quit (Remote host closed the connection)
02:23:15*vendethiel joined #nim
02:26:54*solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…)
02:27:29*solidsnack joined #nim
02:42:14*solidsnack quit (Read error: Connection reset by peer)
03:09:27*darkf joined #nim
03:09:33*saml_ quit (Quit: Leaving)
03:13:37*vendethiel quit (Ping timeout: 246 seconds)
03:14:03*BitPuffin|osx joined #nim
03:58:45*vegansk joined #nim
04:05:42*bogen1 joined #nim
04:07:06*bogen-work quit (Quit: leaving)
04:14:29*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
04:34:53*bjz joined #nim
04:42:34*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
04:44:58*bjz joined #nim
04:51:34*jszymanski joined #nim
05:11:25*filwit quit (Quit: Leaving)
05:48:26*BitPuffin|osx quit (Ping timeout: 244 seconds)
06:37:42*Demon_Fox quit (Quit: Leaving)
06:47:06*yglukhov joined #nim
06:51:10*yglukhov quit (Ping timeout: 240 seconds)
07:00:50*xcombelle joined #nim
07:04:35*Ven joined #nim
07:05:51*woadwarrior joined #nim
07:09:16*yglukhov joined #nim
07:13:55*yglukhov quit (Ping timeout: 256 seconds)
07:23:21*Ven quit (Ping timeout: 255 seconds)
07:29:22*gokr joined #nim
07:29:32*gokr quit (Read error: Connection reset by peer)
07:35:49*xet7 quit (Quit: AndroIRC - Android IRC Client ( http://www.androirc.com ))
07:36:11*xet7 joined #nim
07:40:58*Trustable joined #nim
07:49:36*xcombelle quit (Ping timeout: 264 seconds)
08:00:50*dtscode quit (Quit: ZNC - 1.6.0 - http://znc.in)
08:04:59*coffeepot joined #nim
08:25:23*yglukhov joined #nim
08:26:23*Ven joined #nim
08:29:45*jaco60 joined #nim
08:31:46*yglukhov quit (Remote host closed the connection)
08:33:24*yglukhov joined #nim
08:33:51*Demon_Fox joined #nim
08:38:03*yglukhov quit (Remote host closed the connection)
08:40:06*vendethiel joined #nim
08:49:06*woadwarrior quit (Ping timeout: 265 seconds)
08:52:39*woadwarrior joined #nim
08:54:57*xcombelle joined #nim
09:08:48*yglukhov joined #nim
09:10:06*vendethiel quit (Ping timeout: 240 seconds)
09:18:48*vendethiel joined #nim
09:18:54*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:24:07*xcombelle quit (Read error: Connection reset by peer)
09:25:57*xcombelle joined #nim
09:28:42*Demon_Fox is now known as igli2
09:29:07*igli2 is now known as Demon_Fox
09:34:01*yglukhov quit (Remote host closed the connection)
09:34:17*yglukhov joined #nim
09:41:58*vendethiel quit (Ping timeout: 244 seconds)
09:48:35*Arrrr joined #nim
09:50:45*Ven joined #nim
09:51:37ArrrrHello, nim displays weird errors when processing a macro, even though the resulting ast can be compiled http://pastebin.com/Gce66Xn3
09:53:43ArrrrI know it works because i display the result with echo before it goes mad
09:56:42r-kuArrrr "internal error" means compiler bug. make a bug report on github
09:57:15*woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…)
10:05:31ArrrrI thought it was just the way errors are displayed when using macros, because i have seen a lot of them. For example with http://pastebin.com/nNqWd3iW
10:07:26*BitPuffin|osx joined #nim
10:32:08*yglukhov quit (Remote host closed the connection)
10:39:21*rkj-b joined #nim
10:43:11r-kuArrrr you should never ever see internal errors
10:43:56*rkj-b quit (Client Quit)
10:46:10*yglukhov joined #nim
10:47:17*yglukhov quit (Remote host closed the connection)
10:54:09*xificurC_ joined #nim
10:55:24*xificurC quit (Ping timeout: 272 seconds)
10:59:48*yglukhov joined #nim
11:03:13*jaco60 quit (Quit: Leaving)
11:14:56*woadwarrior joined #nim
11:17:57*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:18:13*Ven joined #nim
11:18:45*Ven quit (Client Quit)
11:29:56*jh32 quit (Remote host closed the connection)
11:39:03*Ven joined #nim
11:40:31*yglukhov quit (Remote host closed the connection)
11:41:14*yglukhov joined #nim
11:48:22*coffeepot quit (Quit: Page closed)
11:48:51*coffeepot joined #nim
12:04:25*yglukhov quit (Ping timeout: 252 seconds)
12:05:08*yglukhov joined #nim
12:06:52*woadwarr_ joined #nim
12:07:35*Kingsquee joined #nim
12:09:33*woadwarrior quit (Ping timeout: 255 seconds)
12:19:29*xcombelle quit (Remote host closed the connection)
12:27:02reactormonkAraq, whe had a discussion about commit messages a while back... http://chris.beams.io/posts/git-commit/ sounds good to me.
12:27:57*woadwarr_ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
12:29:08*woadwarrior joined #nim
12:29:26*woadwarrior quit (Client Quit)
12:40:12*yglukhov quit (Remote host closed the connection)
12:42:35*BitPuffin|osx quit (Ping timeout: 256 seconds)
12:44:31*woadwarrior joined #nim
12:47:04*Arrrr quit (Quit: WeeChat 1.2)
12:50:06*yglukhov joined #nim
12:52:36*yglukhov_ joined #nim
12:52:36*yglukhov quit (Read error: Connection reset by peer)
12:52:50*yglukhov_ quit (Remote host closed the connection)
13:02:59*BitPuffin|osx joined #nim
13:13:38*woadwarrior quit (Quit: My Mac has gone to sleep. ZZZzzz…)
13:29:11*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:33:08*Kingsquee quit (Quit: Konversation terminated!)
13:33:15*Ven joined #nim
13:44:05*yglukhov joined #nim
13:46:44*woadwarrior joined #nim
13:48:48*yglukhov quit (Remote host closed the connection)
13:50:00*woadwarr_ joined #nim
13:51:00*woadwarrior quit (Ping timeout: 244 seconds)
13:55:17Araqreactormonk: meh, that's just more of the same bullshit
13:57:04Araqif commit messages are longer than 60 chars, why not use a UI to read them properly? why make everybody adhere to rules that are once more caused by your inabiliy to use any other tools than 2.3 baud 80x20 terminals where by default the "up" key doesn't work?
13:58:50*Demos joined #nim
13:59:58*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
14:09:24*yglukhov joined #nim
14:09:43*pregressive joined #nim
14:13:45*yglukhov quit (Ping timeout: 255 seconds)
14:14:51*Ven joined #nim
14:18:50*boopsiesisaway is now known as boopsies
14:20:31*yglukhov joined #nim
14:31:45*boopsies quit (Ping timeout: 255 seconds)
14:33:13*key_ quit (Read error: Connection reset by peer)
14:35:33*boop joined #nim
14:46:09*FedeOmoto joined #nim
14:55:47*yglukhov quit (Remote host closed the connection)
14:59:37*woadwarr_ quit (Quit: Textual IRC Client: www.textualapp.com)
15:16:22*yglukhov joined #nim
15:20:50*yglukhov quit (Ping timeout: 244 seconds)
15:29:15*xificurC_ quit (Quit: WeeChat 1.2)
15:29:34*xificurC joined #nim
15:34:51*jszymanski quit (Ping timeout: 244 seconds)
15:36:19*jszymanski joined #nim
15:40:29*Demos quit (Remote host closed the connection)
15:44:08*yglukhov joined #nim
15:55:29*pregressive quit (Remote host closed the connection)
15:56:08*pregressive joined #nim
16:06:49*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:20:08*Demos joined #nim
16:33:23*filwit joined #nim
16:37:45*Ven quit (Disconnected by services)
16:40:05*yglukhov quit (Ping timeout: 240 seconds)
16:47:01*Ven_ joined #nim
17:02:29*xcombelle joined #nim
17:06:24Araqr-ku: how about a PR with your co-routine stuff?
17:08:37*bogen joined #nim
17:08:52*bogen1 quit (Ping timeout: 265 seconds)
17:10:29r-kuAraq didnt have a chance to clean it up. other stuff found me so was occupied
17:11:12*Arrrr joined #nim
17:14:22Araqok, guys here is a challenge
17:14:24Araqhttps://github.com/nim-lang/Nim/issues/672
17:14:42Araqfixing it should only take touching compiler/lambdalifting.nim
17:15:43Araqand in my wisdom I already wrote how to fix it: https://gist.github.com/Araq/7f1eaacb68a5c49f73bc#dont-map-psym-to-penv-but-tlineinfo-to-penv
17:16:51Araqhrm maybe I should say it's a Linux specific bug, but it isn't. so let's see if it works out as well as the last challenge. :-)
17:20:12*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:20:55*drewsrem joined #nim
17:24:50*drewsrem quit (*.net *.split)
17:24:54*brson joined #nim
17:34:35*yglukhov joined #nim
17:38:10*Ven_ joined #nim
17:46:20*yglukhov quit (Remote host closed the connection)
17:53:53*darkf quit (Quit: Leaving)
17:54:25*yglukhov joined #nim
17:57:37*Ven_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:13:21*filcuc joined #nim
18:18:06*BitPuffin|osx quit (Ping timeout: 272 seconds)
18:44:41*yglukhov quit (Remote host closed the connection)
18:49:31*yglukhov joined #nim
19:00:36*MatrixBridge quit (Ping timeout: 250 seconds)
19:02:24*MatrixBridge joined #nim
19:08:30*Demos quit (Ping timeout: 255 seconds)
19:08:34*Demos_ joined #nim
19:19:58*Arrrr quit (Quit: WeeChat 1.2)
19:21:46*meldron quit (Quit: Lost terminal)
19:26:15BitRAraq: Changing the types around won't be enough (or I've done it incorrectly)
19:26:42BitRWhen the procs are converted to C code, not all of em are converted to closures
19:30:27BitRIt sorta stands out when compiling https://github.com/nim-lang/Nim/issues/1911
19:31:34BitRIn 1911, bar becomes a closure because it's the first in the line of procs that references helper that in turn references x
19:33:45BitRThe x variable seems to be the one causing bar to turn into a closure, and once bar the chain from x -> foo (via bar) has then handled the 'interesting var', baz doesn't run through the same hoops and stays a proc without any Envs attached as there are no vars to be captured
19:41:21BitRAs for changing the types around for issue 672, I end up with a rather long stack trace ending with ccgtypes.nim that can't handle tyStmt in getTypeDescAux
19:41:33BitRsorry about the spam :)
19:45:17*Demos_ quit (Remote host closed the connection)
19:47:07*Demos joined #nim
19:49:30*key_ joined #nim
19:51:45*yglukhov quit ()
19:52:50*yglukhov joined #nim
19:53:10*Demos quit (Remote host closed the connection)
19:53:33*Demos joined #nim
20:00:11*Demos quit (Remote host closed the connection)
20:00:29*yglukhov quit (Remote host closed the connection)
20:00:56*yglukhov joined #nim
20:02:18*skyfex joined #nim
20:05:26*boop is now known as boopisaway
20:11:00*unclechu joined #nim
20:20:23*filwit quit (Quit: Leaving)
20:20:57*Demos joined #nim
20:22:22*Demos quit (Remote host closed the connection)
20:24:38*federico3 quit (Ping timeout: 246 seconds)
20:25:07*Demos joined #nim
20:25:53*Demos quit (Remote host closed the connection)
20:28:16*Demos joined #nim
20:28:34*Demos quit (Remote host closed the connection)
20:29:10*Demos joined #nim
20:31:13*filcuc quit (Ping timeout: 256 seconds)
20:37:49*federico3 joined #nim
20:47:35*Matthias247 joined #nim
20:49:39*yglukhov quit (Remote host closed the connection)
20:50:08*boopisaway is now known as boop
20:50:22*yglukhov joined #nim
20:50:35*xcombelle quit (Quit: Leaving)
20:55:10*yglukhov quit (Remote host closed the connection)
21:26:37*jszymanski quit (Quit: computer sleeps...)
21:38:13*yglukhov joined #nim
21:42:34*yglukhov quit (Ping timeout: 260 seconds)
21:45:06*yglukhov joined #nim
21:46:32*mal``` quit (Ping timeout: 264 seconds)
21:47:13*yglukhov quit (Remote host closed the connection)
21:50:43*mal`` joined #nim
21:58:32*Demos_ joined #nim
21:58:58*unclechu quit (Remote host closed the connection)
21:59:17*BitPuffin|osx joined #nim
22:01:21*Demos quit (Ping timeout: 252 seconds)
22:02:52*Demos_ quit (Ping timeout: 244 seconds)
22:46:07*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:48:53*Trustable quit (Remote host closed the connection)
22:51:56*boop is now known as boopisaway
22:54:24*gunn quit (Quit: My Mac has gone to sleep. ZZZzzz…)
23:04:09*def- quit (Quit: -)
23:04:38*def- joined #nim
23:08:02*Matthias247 quit (Read error: Connection reset by peer)
23:35:10*saml_ joined #nim
23:46:28*pregressive quit ()
23:59:01*yglukhov joined #nim