<< 05-09-2015 >>

00:02:35*yglukhov quit (Ping timeout: 252 seconds)
00:06:24*strcmp1 quit (Ping timeout: 255 seconds)
00:06:54*strcmp1 joined #nim
00:14:34*jaco60 quit (Ping timeout: 246 seconds)
00:18:55*strcmp1 quit (Ping timeout: 244 seconds)
00:32:12*Trustable quit (Remote host closed the connection)
00:33:50*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
00:41:14*strcmp1 joined #nim
00:41:48*BitPuffin|osx quit (Remote host closed the connection)
00:42:06*BitPuffin|osx joined #nim
00:47:15*keyle joined #nim
00:52:04*johnsoft joined #nim
00:56:22*johnsoft quit (Ping timeout: 246 seconds)
01:20:11*strcmp1 quit (Ping timeout: 268 seconds)
01:33:15*johnsoft joined #nim
01:35:13*strcmp1 joined #nim
01:44:48*yglukhov joined #nim
01:49:23*yglukhov quit (Ping timeout: 264 seconds)
01:54:15*chemist69 joined #nim
01:54:19*X67r quit (Quit: leaving)
01:57:30*chemist69_ quit (Ping timeout: 250 seconds)
02:32:27*victor-rene quit (Ping timeout: 246 seconds)
02:44:36*rollo quit (Quit: Leaving)
03:07:35*darkf joined #nim
03:10:00*enquora quit (Quit: enquora)
03:17:07*strcmp1 quit (Ping timeout: 256 seconds)
03:19:44*strcmp1 joined #nim
03:23:51*pregressive quit (Remote host closed the connection)
03:29:03*strcmp1 quit (Ping timeout: 244 seconds)
03:29:31*strcmp1 joined #nim
03:31:08*nchambers quit (Ping timeout: 244 seconds)
03:32:51*nchambers joined #nim
05:21:08*yglukhov joined #nim
05:25:19*yglukhov quit (Ping timeout: 244 seconds)
05:52:57*keyle quit (Quit: http://twitter.com/keyle/)
05:54:05*strcmp1 quit (Ping timeout: 265 seconds)
05:54:32*strcmp1 joined #nim
06:02:30*strcmp1 quit (Ping timeout: 240 seconds)
06:03:00*strcmp1 joined #nim
06:14:27*strcmp1 quit (Quit: Leaving)
06:32:51*yglukhov joined #nim
06:34:55*Varriount quit (Read error: Connection reset by peer)
06:35:24*Varriount joined #nim
06:37:07*yglukhov quit (Ping timeout: 250 seconds)
06:49:11*NimBot joined #nim
06:49:13*tankfeeder joined #nim
07:20:06*jszymanski joined #nim
07:29:50*kilon joined #nim
07:35:44*yglukhov joined #nim
07:39:16*Kingsqueee joined #nim
07:40:20*^aurora^ joined #nim
07:41:12*Kingsquee quit (Ping timeout: 244 seconds)
07:42:35VarriountAraq: I wonder if the new Nimscript feature is hacker news worthy
07:44:16*Matthias247 joined #nim
08:03:41NimBotnim-lang/Nim devel 49869a2 Yuriy Glukhov [+0 ±6 -0]: when nimvm stmt proof of concept
08:03:41NimBotnim-lang/Nim devel 790ef23 Yuriy Glukhov [+0 ±3 -0]: nimvm is magic
08:03:41NimBotnim-lang/Nim devel c0fa4b7 Yuriy Glukhov [+0 ±1 -0]: Added documentation for when nimvm statement.
08:03:41NimBotnim-lang/Nim devel 63a6bfc Andreas Rumpf [+0 ±10 -0]: Merge pull request #3286 from yglukhov/when-nimvm... 2 more lines
08:04:59yglukhovAraq, I've been thinking about this nimvm... Take for example its semantic limitation. Doesn't it look exactly like if node? =)
08:06:01yglukhovE.g. if I did it with if, I would not need to write about semantics, because that's how ifs already work.
08:09:44*irrequietus joined #nim
08:14:35*tankfeeder quit (Ping timeout: 264 seconds)
08:27:24*yglukhov quit (Remote host closed the connection)
08:29:03*yglukhov joined #nim
08:33:21*zahary joined #nim
08:39:39*strcmp1 joined #nim
08:40:46*Demon_Fox quit (Quit: Leaving)
08:46:48*gmpreussner|work quit (Read error: Connection reset by peer)
08:47:36*gmpreussner|work joined #nim
08:52:49*BitPuffin|osx quit (Ping timeout: 268 seconds)
08:57:33*X67r joined #nim
09:07:04*Matthias247 quit (Read error: Connection reset by peer)
09:23:54*jszymanski quit (Ping timeout: 260 seconds)
09:24:38*jszymanski joined #nim
09:29:11*jszymanski quit (Ping timeout: 244 seconds)
09:35:01*yglukhov quit (Remote host closed the connection)
09:37:45*yglukhov joined #nim
09:42:59*jaco60 joined #nim
09:47:49Araqyglukhov: but I like the 'when' much better
09:48:04Araqit's not a runtime decision, so 'when' is better
10:00:45gokrHey
10:01:37gokrLast night I tried compiling your wxnim samples on OSX, but... got stuck somewhere with header files etc. It was talking about me having to run some config program to generate compiler options I think.
10:02:16Araqyeah, this needs a nim script :-)
10:04:13*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
10:05:36gokrhehe
10:06:07NimBotnim-lang/Nim devel 0f2a37c Araq [+0 ±1 -0]: fixes #3282
10:06:07NimBotnim-lang/Nim devel 49d810f Araq [+1 ±3 -0]: Nimble is officially a part of Nim now
10:06:07NimBotnim-lang/Nim devel 0320c0c Araq [+0 ±5 -0]: fixes DLL hell on Windows
10:06:31gokrSooo... was looking at wx vs Qt, and ... both use native stuff on OSX and Windows, but one major difference is that Qt renders its own on X11, while wx relies on GTK.
10:06:36yglukhovWow, DLL hell is finally fixed! ;)
10:06:45gokrThat kinda tips it over to wx for me personally, for desktop platforms.
10:07:05Araqwarning: commit messages might not reflect reality.
10:07:11*tankfeeder joined #nim
10:07:22gokrBut... for mobile, its still kinda bleak. I was hoping Qt used native on mobile, but nope. In fact,
10:07:50gokrmobile is darn tricky - iOS needs Obj-C and Android needs Java. Technically messy.
10:08:18Araqmobile is as big of a fuckup as is web dev
10:09:14gokrYeah. So... pure Urho based UI looks definitely like an option :)
10:09:46AraqI wonder whether i'm allowed to run our software on my iPad or only in the simulator until apple approved my signings and shit
10:10:43gokrI guess you can run it on the iPad ... somehow. But I know too little. I am actaully exchanging emails with Hilaire who makes Dr Geo, about his experience on that topic.
10:11:06Araqso with install_nimble.nims it's official. I will never write any bat/sh scripts anymore :-)
10:11:06gokrHe makes http://www.drgeo.eu
10:11:41gokrActually a damn cool piece of software.
10:27:40*silven joined #nim
10:28:00*vendethiel joined #nim
10:30:20*jszymanski joined #nim
10:35:13*yglukhov quit (Remote host closed the connection)
10:36:34*yglukhov joined #nim
10:49:33*NimBot joined #nim
10:51:13*xcombelle joined #nim
10:59:23*yglukhov quit (Remote host closed the connection)
11:04:04*^aurora^ joined #nim
11:05:42*yglukhov joined #nim
11:10:42*NimBot joined #nim
11:13:13*vegai quit (Ping timeout: 252 seconds)
11:14:29*vegai joined #nim
11:21:58*yglukhov quit (Remote host closed the connection)
11:26:14*irrequietus quit ()
11:30:19*NimBot joined #nim
11:32:32NimBotnim-lang/Nim devel 04a4f35 Yuriy Glukhov [+0 ±6 -0]: VM produces objects.
11:32:32NimBotnim-lang/Nim devel 30b1baf Andreas Rumpf [+0 ±6 -0]: Merge pull request #3283 from yglukhov/vm-fix... 2 more lines
11:41:58*yglukhov joined #nim
11:45:06*yglukhov quit (Remote host closed the connection)
11:45:21*yglukhov joined #nim
11:45:58*boopsiesisaway is now known as boopsies
11:55:11*irrequietus joined #nim
11:56:56*xcombelle quit (Ping timeout: 244 seconds)
12:17:01*X67r_ joined #nim
12:17:24*X67r quit (Ping timeout: 252 seconds)
12:41:31*darkf_ joined #nim
12:44:35*darkf quit (Ping timeout: 250 seconds)
12:44:44*darkf_ is now known as darkf
12:45:49*yglukhov quit (Remote host closed the connection)
12:47:12*yglukhov joined #nim
12:47:54*Ven joined #nim
12:47:56*Kingsqueee quit (Quit: http://i.imgur.com/EsXzoum.png)
12:53:15*Trustable joined #nim
12:56:52*yglukhov quit (Remote host closed the connection)
12:59:59OnOAraq: you may use Enterprise license and install it on any device
13:02:53*yglukhov joined #nim
13:03:54*filcuc joined #nim
13:04:14filcuchow can i force Nim to use VS compiler
13:10:23*Ven quit (Ping timeout: 264 seconds)
13:12:27*Ven joined #nim
13:12:38*Ven quit (Client Quit)
13:15:38*iNode000 left #nim (#nim)
13:15:41Araqfilcuc: --cc=vcc
13:15:57filcucAraq: thanks
13:21:50*NimBot joined #nim
13:22:18*Ven joined #nim
13:22:24federico3Any docs on nimscript?
13:22:44Araqfederico3: I'm writting them
13:27:20*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:43:44*yglukhov quit (Remote host closed the connection)
13:46:26*enquora joined #nim
13:54:34*golak joined #nim
13:54:59*yglukhov joined #nim
13:55:36*pregressive joined #nim
13:55:44*yglukhov quit (Remote host closed the connection)
13:58:46*yglukhov joined #nim
14:03:09*BitPuffin|osx joined #nim
14:17:41*NimBot joined #nim
14:19:49*yglukhov quit (Remote host closed the connection)
14:33:22*pregressive quit ()
14:36:14*Ven joined #nim
14:40:26*yglukhov joined #nim
14:41:09*yglukhov quit (Remote host closed the connection)
14:49:07*enamex joined #nim
14:52:36*leru joined #nim
15:01:37*yglukhov joined #nim
15:09:18*bogen quit (Quit: Leaving.)
15:17:52*yglukhov quit (Remote host closed the connection)
15:18:31*yglukhov joined #nim
15:23:04*yglukhov quit (Ping timeout: 250 seconds)
15:33:50*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:38:12*FedeOmoto joined #nim
15:54:56*Ven joined #nim
15:58:16*perturbation joined #nim
16:07:22*NimBot joined #nim
16:10:56*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
16:13:43*xet7 quit (Ping timeout: 265 seconds)
16:14:35*perturbation quit (Remote host closed the connection)
16:16:40*umurgdk joined #nim
16:17:50*perturbation joined #nim
16:19:23*UberLambda joined #nim
16:21:15*perturbation quit (Remote host closed the connection)
16:21:27*perturbation joined #nim
16:24:07*leru quit (Quit: Nettalk6 - www.ntalk.de)
16:25:25*UberLambda quit (Ping timeout: 240 seconds)
16:26:20*UberLambda joined #nim
16:31:21*_UberLambda_ joined #nim
16:32:08*xet7 joined #nim
16:33:06*darkf quit (Quit: Leaving)
16:34:22*yglukhov joined #nim
16:34:25*UberLambda quit (Ping timeout: 240 seconds)
16:36:58*Ven quit (Ping timeout: 244 seconds)
16:44:38*kilon quit (Read error: Connection reset by peer)
16:45:22*kilon joined #nim
16:48:06*mal`` quit (Ping timeout: 240 seconds)
16:48:06*xcombelle joined #nim
16:48:54*tankfeeder quit (Read error: Connection reset by peer)
16:49:14*tankfeeder joined #nim
16:51:52*mal`` joined #nim
16:55:09*yglukhov quit (Remote host closed the connection)
16:55:19*Ven joined #nim
16:59:07*Ven quit (Read error: Connection reset by peer)
17:01:47*NimBot joined #nim
17:09:00*xet7 quit (Ping timeout: 244 seconds)
17:22:16*allan0 quit (Quit: WeeChat 1.2)
17:25:26*xet7 joined #nim
17:25:35*perturbation quit (Remote host closed the connection)
17:25:58Varriountgokr: Um, you control the linux buildbots, right?
17:27:05*yglukhov joined #nim
17:27:29*perturbation joined #nim
17:31:53*perturbation quit (Ping timeout: 250 seconds)
17:37:17*yglukhov quit (Remote host closed the connection)
17:40:18*Ven joined #nim
17:42:10*zahary quit (Quit: Leaving.)
17:48:33*yglukhov joined #nim
18:01:22*perturbation joined #nim
18:01:51*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:12:54*enamex quit (Ping timeout: 246 seconds)
18:13:20*vendethiel- joined #nim
18:13:55*vendethiel quit (Ping timeout: 250 seconds)
18:14:26*filcuc quit (Remote host closed the connection)
18:20:54*wiffel joined #nim
18:22:24*wiffel left #nim (#nim)
18:23:28*tankfeeder quit (Quit: Leaving)
18:35:28*NimBot joined #nim
18:47:31*zahary joined #nim
18:49:22*^aurora^ joined #nim
18:52:58*yglukhov quit (Remote host closed the connection)
18:59:36*yglukhov joined #nim
19:02:31*enamex joined #nim
19:02:32*_UberLambda_ quit (Remote host closed the connection)
19:08:59*jaco60 quit (Remote host closed the connection)
19:12:02*jaco60 joined #nim
19:20:43gokrVarriount: yes
19:21:16gokrVarriount: I will get them going.
19:27:20gokrVarriount: Now the 64 bit slave is running again
19:28:14gokrI will get the 32 bit going tomorrow, need to unpack it from a bag first :)
19:51:47*yglukhov quit (Remote host closed the connection)
19:51:58perturbationI'm trying to create a system.File object manually, and I'm having the hardest time since it's not a traced reference type and it's a ptr to CFile, which is not exported
19:52:25*yglukhov joined #nim
19:52:47perturbationI was going to use proc open(f: var File; filehandle: FileHandle; mode: FileMode = fmRead): bool with a process's STDOUT filehandle, so I needed a T: var File object created from scratch
19:54:32perturbationI could use osproc.execProcess instead to get the output as a string, but I don't want to slurp the output
19:55:36dom96what about startProcess?
19:55:42*yglukhov quit (Remote host closed the connection)
19:56:46perturbationI'm using startProcess to get a process object, and then trying to open the file pointed to by the process.outputHandle
19:59:09perturbationI can make my own copy of system.CFile as a workaround, but that can break in future if system.CFile changes of course ;)
20:07:41Araq"I was going to use proc open(f: var File; filehandle: FileHandle; mode: FileMode = fmRead): bool with a process's STDOUT filehandle, so I needed a T: var File object created from scratch"
20:07:49perturbationactually never mind... I was doing something somewhere else that was causing a null pointer reference
20:07:59Araqer ... I don't think this works the way you think it works
20:08:02perturbationopen with a filehandle doesn't require you to new the var File before passing in
20:08:13Araqexactly
20:08:18Araqjust use var f: File
20:08:23Araqand pass 'f' to open
20:15:38NimBotnim-lang/Nim devel da2d084 JamesP [+0 ±1 -0]: lib/impure/db_mysql add example code-block
20:15:38NimBotnim-lang/Nim devel 5b11ce2 JamesP [+0 ±1 -0]: fastRows iterator doco updated to clarify what happens... 1 more lines
20:15:38NimBotnim-lang/Nim devel d02d121 JamesP [+0 ±1 -0]: instantRows doco updated with "the" to improve readability
20:15:38NimBotnim-lang/Nim devel 22d56fc JamesP [+0 ±1 -0]: Cleanup of line endings
20:15:38NimBot3 more commits.
20:18:45OnOAraq: hi, I was experimenting with replacing "not nil" with not "or nil", so types must be explicitly "or nil" to become nilable
20:19:18OnObut it seems: var x: Type <- should make this nilable too
20:25:58*kilon quit (Ping timeout: 268 seconds)
20:26:26Araqwhy?
20:28:47*NimBot joined #nim
20:29:52*umurgdk quit (Remote host closed the connection)
20:31:54*enamex quit (Quit: Page closed)
20:32:29*perturbation quit ()
20:42:45*jszymanski quit (Quit: computer sleeps...)
20:42:50reactormonkOnO, then you have an option.
20:43:02*jszymanski joined #nim
20:44:12*Varriount quit (Ping timeout: 264 seconds)
20:46:46*Varriount joined #nim
20:50:22*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
20:52:30OnOAraq: because var: x Type is unintialized so holds nil so must be nillable
20:52:52OnOeven my make everything else, proc arguments or return types non-nil by default
20:53:01Araqnah, we have control flow checking for these
20:53:10Araqevery path must initialize 'x' then
20:53:21*xcombelle quit (Remote host closed the connection)
20:53:38*jszymanski quit (Quit: computer sleeps...)
20:54:49OnOhmm... I was doing: var blah: ref Blah; new(blah); echo nonNil(blah)
20:55:13OnOwhere proc nonNil(a: ref Blah not nil)
20:55:19OnOand Nim says cannot prove 'blah' is not nil
20:55:44OnOisn't new(...) should guarantee that?
20:56:28*yglukhov joined #nim
21:01:06*yglukhov quit (Ping timeout: 260 seconds)
21:01:14Araqwell if 'blah' is a global, things are more complex
21:04:56OnOis it? I moved the code into proc, blah is not global
21:05:09OnOnew(blah) doesn't make Nim think it is not nil
21:07:55*umurgdk joined #nim
21:12:24Araqit should
21:13:06*umurgdk quit (Ping timeout: 272 seconds)
21:14:00Araqworks for me
21:14:06AraqI get no warning
21:14:32Araq var x: ref Blah not nil
21:14:33Araq new(x)
21:14:35Araq echo notNil(x)
21:16:01OnOaha... you have declared it as ref Blah not nil
21:16:10OnOwhy var: ref Blah is not sufficient?
21:17:08OnOwhy it has to be var: ref Blah not nil?
21:18:21Araqcause the checker doesn't even track ordinary 'ref'
21:19:24*zahary quit (Quit: Leaving.)
21:19:35OnOokay, makes sense to me
21:29:21*gokr quit (Ping timeout: 250 seconds)
21:40:49*Ven joined #nim
21:55:16*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:56:51*xificurC joined #nim
22:08:47AraqOnO: any idea of how much code this will break? I cannot imagine the compiler bootstraps without a huge amount of work
22:09:09OnOso far it breaks mostly on cstring handling
22:10:13OnOthe problem is that somehow cstringArray is array[0...Dummy, cstring or nil] for example
22:10:21OnObut I cannot arr[i] != nil easily
22:10:46OnOsome pbm with system.== on various
22:14:06*^aurora^ joined #nim
22:27:50*gmpreussner joined #nim
22:29:16*Jehan_ joined #nim
22:32:15OnOhmm... I think I found a but
22:32:17OnObug
22:33:05OnOdeclaring PType = ref Type and var a: array[1..2, PTest not nil] makes a[1] to be type PType, not PType not nil
22:38:30*NimBot joined #nim
22:41:02OnOokay, this is bug in typeToString not showing "not nil" for cstring not nil or PType not nil
22:42:00Araqah yeah, quite possible
22:43:03gmpreussneri'm converting some odd C code that declares various enums, but then also has some functions whose parameters accept a combination of values from different enum types, i.e. foo(EnumA_ValX | EnumB_ValY). is there any good way to model this in Nim other than making those parameters to integers and cast the enum values to integers before OR'ing them?
22:43:36gmpreussneri.e. is there some way to create compound enum types consisting of different enum types, or what would be the best way to model this?
22:44:00gmpreussnermy best guess would be to drop enums altogether and just make everything consts
22:44:40gmpreussneri hope my explanations make sense - and yes, i'm aware that the C API is questionable :)
22:45:00Araqsometimes you can do this:
22:45:05Araqtype foo = enum
22:45:06*boopsies is now known as boopsiesisaway
22:45:10Araq a = 0,
22:45:13Araq b = 1,
22:45:50Araqer, a = 1, b = 2, ab = 3 # a|b
22:45:51federico3c = 2,
22:46:29Araqusually you just map it to some consts though.
22:46:54gmpreussnerhow do i get the function parameters type safe though?
22:47:18Araqwith a distinct int perhaps
22:47:55gmpreussnerfor example, i have: proc foo(e: EnumA); proc bar(e: EnumB); proc foobar(e: ???); foobar(EnumA.X or EnumB.Y)
22:48:49gmpreussnerthe C API just uses an int for foobar's parameter
22:49:02gmpreussneri want to turn this shitty C API into something more sane in Nim :)
22:49:24Araqjust a single distinct int for the values and borrow the 'or' operator
22:49:29Araq*use a
22:49:36*^aurora^ quit (Ping timeout: 264 seconds)
22:49:50gmpreussnerbut then i can't namespace the values, can i?
22:50:31Araqyou can put them in their own module
22:50:44gmpreussneryikes... true
22:51:21gmpreussnermaybe i'll just stick with casting everything to integers then
22:52:04*Trustable quit (Remote host closed the connection)
22:54:09*xificurC quit (Ping timeout: 244 seconds)
22:56:51*umurgdk joined #nim
22:59:27*NimBot joined #nim
23:01:06*umurgdk quit (Ping timeout: 250 seconds)
23:05:52Araqhrm "use {.anchor.} for base methods; anchorless methods are deprecated"
23:06:04Araqmaybe Jehan_ is right and it should just be called .base then?
23:06:39*Ven joined #nim
23:07:11Jehan_Don't think it's right or wrong, it's more what people find intuitive or not, and I've learned that just because I personally find something intuitive, that doesn't hold for everybody else. :)
23:07:23*umurgdk joined #nim
23:12:09*NimBot joined #nim
23:12:21Araqwell .base is also shorter
23:23:25Araqhrm this also allows a new feature
23:23:51Araqmethod m(x: A) {.base.}
23:24:24Araqmethod m(x: B) {.base.}
23:24:35Araqmethod m(x: C)
23:26:04Araqnah
23:26:16AraqI thougt it can be used to cut off A's method m
23:30:05Jehan_Araq: Is there a reason why GC_init() for the Boehm GC is only explicitly called for OS X?
23:30:54Araqwho knows, iirc the docs said it's the only platform where it's required
23:32:26Jehan_I was just wondering if it's intentional. It seems to cause a duplicate initialization bug on Linux.
23:32:44Jehan_And there only with multiple threads.
23:35:49*gmpreussner quit (Quit: Konversation terminated!)
23:40:02*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:42:38*NimBot joined #nim
23:43:38Jehan_Hmm, looking at the documentation, I think it's just misleading. And it seems to be definitely unsafe to omit it in the multi-threaded case.
23:56:50Jehan_Submitted a PR to fix this.
23:57:08Jehan_At the very least, it stops the crash on VirtualBox+Ubuntu. :)
23:57:13Araqthanks :-)
23:57:35Araqnow if only you could tell me how to fix my threadpool ;-)