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:35 | Varriount | Araq: I wonder if the new Nimscript feature is hacker news worthy |
07:44:16 | * | Matthias247 joined #nim |
08:03:41 | NimBot | nim-lang/Nim devel 49869a2 Yuriy Glukhov [+0 ±6 -0]: when nimvm stmt proof of concept |
08:03:41 | NimBot | nim-lang/Nim devel 790ef23 Yuriy Glukhov [+0 ±3 -0]: nimvm is magic |
08:03:41 | NimBot | nim-lang/Nim devel c0fa4b7 Yuriy Glukhov [+0 ±1 -0]: Added documentation for when nimvm statement. |
08:03:41 | NimBot | nim-lang/Nim devel 63a6bfc Andreas Rumpf [+0 ±10 -0]: Merge pull request #3286 from yglukhov/when-nimvm... 2 more lines |
08:04:59 | yglukhov | Araq, I've been thinking about this nimvm... Take for example its semantic limitation. Doesn't it look exactly like if node? =) |
08:06:01 | yglukhov | E.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:49 | Araq | yglukhov: but I like the 'when' much better |
09:48:04 | Araq | it's not a runtime decision, so 'when' is better |
10:00:45 | gokr | Hey |
10:01:37 | gokr | Last 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:16 | Araq | yeah, this needs a nim script :-) |
10:04:13 | * | ^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
10:05:36 | gokr | hehe |
10:06:07 | NimBot | nim-lang/Nim devel 0f2a37c Araq [+0 ±1 -0]: fixes #3282 |
10:06:07 | NimBot | nim-lang/Nim devel 49d810f Araq [+1 ±3 -0]: Nimble is officially a part of Nim now |
10:06:07 | NimBot | nim-lang/Nim devel 0320c0c Araq [+0 ±5 -0]: fixes DLL hell on Windows |
10:06:31 | gokr | Sooo... 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:36 | yglukhov | Wow, DLL hell is finally fixed! ;) |
10:06:45 | gokr | That kinda tips it over to wx for me personally, for desktop platforms. |
10:07:05 | Araq | warning: commit messages might not reflect reality. |
10:07:11 | * | tankfeeder joined #nim |
10:07:22 | gokr | But... for mobile, its still kinda bleak. I was hoping Qt used native on mobile, but nope. In fact, |
10:07:50 | gokr | mobile is darn tricky - iOS needs Obj-C and Android needs Java. Technically messy. |
10:08:18 | Araq | mobile is as big of a fuckup as is web dev |
10:09:14 | gokr | Yeah. So... pure Urho based UI looks definitely like an option :) |
10:09:46 | Araq | I 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:43 | gokr | I 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:06 | Araq | so with install_nimble.nims it's official. I will never write any bat/sh scripts anymore :-) |
10:11:06 | gokr | He makes http://www.drgeo.eu |
10:11:41 | gokr | Actually 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:32 | NimBot | nim-lang/Nim devel 04a4f35 Yuriy Glukhov [+0 ±6 -0]: VM produces objects. |
11:32:32 | NimBot | nim-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:59 | OnO | Araq: 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:14 | filcuc | how 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:41 | Araq | filcuc: --cc=vcc |
13:15:57 | filcuc | Araq: thanks |
13:21:50 | * | NimBot joined #nim |
13:22:18 | * | Ven joined #nim |
13:22:24 | federico3 | Any docs on nimscript? |
13:22:44 | Araq | federico3: 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:58 | Varriount | gokr: 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:43 | gokr | Varriount: yes |
19:21:16 | gokr | Varriount: I will get them going. |
19:27:20 | gokr | Varriount: Now the 64 bit slave is running again |
19:28:14 | gokr | I 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:58 | perturbation | I'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:47 | perturbation | 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 |
19:54:32 | perturbation | I could use osproc.execProcess instead to get the output as a string, but I don't want to slurp the output |
19:55:36 | dom96 | what about startProcess? |
19:55:42 | * | yglukhov quit (Remote host closed the connection) |
19:56:46 | perturbation | I'm using startProcess to get a process object, and then trying to open the file pointed to by the process.outputHandle |
19:59:09 | perturbation | I 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:41 | Araq | "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:49 | perturbation | actually never mind... I was doing something somewhere else that was causing a null pointer reference |
20:07:59 | Araq | er ... I don't think this works the way you think it works |
20:08:02 | perturbation | open with a filehandle doesn't require you to new the var File before passing in |
20:08:13 | Araq | exactly |
20:08:18 | Araq | just use var f: File |
20:08:23 | Araq | and pass 'f' to open |
20:15:38 | NimBot | nim-lang/Nim devel da2d084 JamesP [+0 ±1 -0]: lib/impure/db_mysql add example code-block |
20:15:38 | NimBot | nim-lang/Nim devel 5b11ce2 JamesP [+0 ±1 -0]: fastRows iterator doco updated to clarify what happens... 1 more lines |
20:15:38 | NimBot | nim-lang/Nim devel d02d121 JamesP [+0 ±1 -0]: instantRows doco updated with "the" to improve readability |
20:15:38 | NimBot | nim-lang/Nim devel 22d56fc JamesP [+0 ±1 -0]: Cleanup of line endings |
20:15:38 | NimBot | 3 more commits. |
20:18:45 | OnO | Araq: hi, I was experimenting with replacing "not nil" with not "or nil", so types must be explicitly "or nil" to become nilable |
20:19:18 | OnO | but it seems: var x: Type <- should make this nilable too |
20:25:58 | * | kilon quit (Ping timeout: 268 seconds) |
20:26:26 | Araq | why? |
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:50 | reactormonk | OnO, 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:30 | OnO | Araq: because var: x Type is unintialized so holds nil so must be nillable |
20:52:52 | OnO | even my make everything else, proc arguments or return types non-nil by default |
20:53:01 | Araq | nah, we have control flow checking for these |
20:53:10 | Araq | every 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:49 | OnO | hmm... I was doing: var blah: ref Blah; new(blah); echo nonNil(blah) |
20:55:13 | OnO | where proc nonNil(a: ref Blah not nil) |
20:55:19 | OnO | and Nim says cannot prove 'blah' is not nil |
20:55:44 | OnO | isn't new(...) should guarantee that? |
20:56:28 | * | yglukhov joined #nim |
21:01:06 | * | yglukhov quit (Ping timeout: 260 seconds) |
21:01:14 | Araq | well if 'blah' is a global, things are more complex |
21:04:56 | OnO | is it? I moved the code into proc, blah is not global |
21:05:09 | OnO | new(blah) doesn't make Nim think it is not nil |
21:07:55 | * | umurgdk joined #nim |
21:12:24 | Araq | it should |
21:13:06 | * | umurgdk quit (Ping timeout: 272 seconds) |
21:14:00 | Araq | works for me |
21:14:06 | Araq | I get no warning |
21:14:32 | Araq | var x: ref Blah not nil |
21:14:33 | Araq | new(x) |
21:14:35 | Araq | echo notNil(x) |
21:16:01 | OnO | aha... you have declared it as ref Blah not nil |
21:16:10 | OnO | why var: ref Blah is not sufficient? |
21:17:08 | OnO | why it has to be var: ref Blah not nil? |
21:18:21 | Araq | cause the checker doesn't even track ordinary 'ref' |
21:19:24 | * | zahary quit (Quit: Leaving.) |
21:19:35 | OnO | okay, 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:47 | Araq | OnO: any idea of how much code this will break? I cannot imagine the compiler bootstraps without a huge amount of work |
22:09:09 | OnO | so far it breaks mostly on cstring handling |
22:10:13 | OnO | the problem is that somehow cstringArray is array[0...Dummy, cstring or nil] for example |
22:10:21 | OnO | but I cannot arr[i] != nil easily |
22:10:46 | OnO | some 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:15 | OnO | hmm... I think I found a but |
22:32:17 | OnO | bug |
22:33:05 | OnO | declaring 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:02 | OnO | okay, this is bug in typeToString not showing "not nil" for cstring not nil or PType not nil |
22:42:00 | Araq | ah yeah, quite possible |
22:43:03 | gmpreussner | i'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:36 | gmpreussner | i.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:00 | gmpreussner | my best guess would be to drop enums altogether and just make everything consts |
22:44:40 | gmpreussner | i hope my explanations make sense - and yes, i'm aware that the C API is questionable :) |
22:45:00 | Araq | sometimes you can do this: |
22:45:05 | Araq | type foo = enum |
22:45:06 | * | boopsies is now known as boopsiesisaway |
22:45:10 | Araq | a = 0, |
22:45:13 | Araq | b = 1, |
22:45:50 | Araq | er, a = 1, b = 2, ab = 3 # a|b |
22:45:51 | federico3 | c = 2, |
22:46:29 | Araq | usually you just map it to some consts though. |
22:46:54 | gmpreussner | how do i get the function parameters type safe though? |
22:47:18 | Araq | with a distinct int perhaps |
22:47:55 | gmpreussner | for example, i have: proc foo(e: EnumA); proc bar(e: EnumB); proc foobar(e: ???); foobar(EnumA.X or EnumB.Y) |
22:48:49 | gmpreussner | the C API just uses an int for foobar's parameter |
22:49:02 | gmpreussner | i want to turn this shitty C API into something more sane in Nim :) |
22:49:24 | Araq | just a single distinct int for the values and borrow the 'or' operator |
22:49:29 | Araq | *use a |
22:49:36 | * | ^aurora^ quit (Ping timeout: 264 seconds) |
22:49:50 | gmpreussner | but then i can't namespace the values, can i? |
22:50:31 | Araq | you can put them in their own module |
22:50:44 | gmpreussner | yikes... true |
22:51:21 | gmpreussner | maybe 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:52 | Araq | hrm "use {.anchor.} for base methods; anchorless methods are deprecated" |
23:06:04 | Araq | maybe Jehan_ is right and it should just be called .base then? |
23:06:39 | * | Ven joined #nim |
23:07:11 | Jehan_ | 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:21 | Araq | well .base is also shorter |
23:23:25 | Araq | hrm this also allows a new feature |
23:23:51 | Araq | method m(x: A) {.base.} |
23:24:24 | Araq | method m(x: B) {.base.} |
23:24:35 | Araq | method m(x: C) |
23:26:04 | Araq | nah |
23:26:16 | Araq | I thougt it can be used to cut off A's method m |
23:30:05 | Jehan_ | Araq: Is there a reason why GC_init() for the Boehm GC is only explicitly called for OS X? |
23:30:54 | Araq | who knows, iirc the docs said it's the only platform where it's required |
23:32:26 | Jehan_ | I was just wondering if it's intentional. It seems to cause a duplicate initialization bug on Linux. |
23:32:44 | Jehan_ | 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:38 | Jehan_ | 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:50 | Jehan_ | Submitted a PR to fix this. |
23:57:08 | Jehan_ | At the very least, it stops the crash on VirtualBox+Ubuntu. :) |
23:57:13 | Araq | thanks :-) |
23:57:35 | Araq | now if only you could tell me how to fix my threadpool ;-) |