00:14:33 | * | cheatfate quit (Ping timeout: 240 seconds) |
00:22:37 | zodiak_ | another stupid question.. how do I turn a ref type into a non-ref so that I can then use it inside a spawn ? |
00:23:34 | zodiak_ | reason I ask i, I am spawning like 4 processes to hit a rethinkdb, however, the rethink query builder stores itself into a ref object, which when I call .run() inside the spawned function, means that at compile time I get a; Error: 'spawn' takes a GC safe call expression |
00:24:01 | zodiak_ | so, if I can turn a ref type into a non-ref type, then I could call run() safely. I think. |
00:31:59 | * | gokr quit (Ping timeout: 260 seconds) |
00:46:42 | bozaloshtsh | you can dereference the ref with [] |
00:46:53 | bozaloshtsh | just put an empty [] after the identifier |
00:47:09 | bozaloshtsh | zodiak_: ^ |
01:02:20 | zodiak_ | danke.. let me try that after dinner :) |
01:54:49 | zodiak_ | nvm.. apparently, there are WAY more bunnies down that rabbit hole |
01:54:58 | zodiak_ | liberal sprinkling of {.thread.} should help |
02:42:05 | * | jeffc joined #nim |
02:46:33 | bozaloshtsh | hmm, I thought it would be fine because let thingy = gcObject[] would just copy the object, making it safe to pass to a thread |
02:55:28 | zodiak_ | sadly.. it started complaining/kvetching about RqlQuery:ObjectType being passed in rather than RqlQuery .. honestly, I figured out that it was more the {.thread.} pragma's missing.. I fling in about 4 or 5 of those and.. looking good :) |
02:55:36 | zodiak_ | I need to make a PR against the rethinkdb driver I guess |
03:00:55 | zodiak_ | https://github.com/OpenSystemsLab/rethinkdb.nim/pull/7 |
03:01:09 | bozaloshtsh | Could you wrap the rethinkdb proc you're calling to put the object back in a reference? |
03:01:58 | bozaloshtsh | and spawn that instead? |
03:02:11 | zodiak_ | I could.. maybe. my Nim-fu is still weak (day 3) |
03:02:22 | zodiak_ | but I think the library has some.. quirks ?! |
03:03:32 | zodiak_ | you know.. one other thing that I am (idly) sitting here musing is.. |
03:04:21 | zodiak_ | When a new version bump in nim is released, maybe libraries could be 'auto-tested' against the new release ?! by CI or some such ? |
03:04:53 | zodiak_ | case in point, beanstalkd client - awesome. Except it doesn't work with 0.13 |
03:05:03 | zodiak_ | (small stupid fixes incoming) |
03:06:12 | * | brson quit (Quit: leaving) |
03:06:24 | zodiak_ | https://github.com/tormaroe/beanstalkd.nim/pull/2 |
03:14:43 | * | jeffc_ joined #nim |
03:14:44 | * | jeffc quit (Read error: Connection reset by peer) |
03:24:04 | * | NhanH quit (Ping timeout: 260 seconds) |
03:26:48 | * | NhanH joined #nim |
03:33:06 | * | der-landgraf quit (Quit: WeeChat 1.4) |
03:33:27 | * | der-landgraf joined #nim |
04:34:49 | * | jeffc joined #nim |
04:34:50 | * | jeffc_ quit (Read error: Connection reset by peer) |
05:30:44 | * | gokr joined #nim |
05:35:16 | * | gokr quit (Ping timeout: 252 seconds) |
05:52:02 | * | ephja joined #nim |
06:18:48 | * | n joined #nim |
06:19:02 | * | n is now known as Guest86024 |
06:19:50 | * | Guest86024 quit (Client Quit) |
06:43:51 | * | draynium quit (Max SendQ exceeded) |
07:11:34 | * | ephja quit (Ping timeout: 260 seconds) |
07:13:34 | * | gokr joined #nim |
07:13:45 | * | ephja joined #nim |
07:21:04 | * | tdc joined #nim |
08:00:33 | * | draynium joined #nim |
08:15:39 | * | cheatfate joined #nim |
08:23:33 | * | cheatfate quit (Ping timeout: 240 seconds) |
08:52:01 | * | Arrrr joined #nim |
08:52:01 | * | Arrrr quit (Changing host) |
08:52:01 | * | Arrrr joined #nim |
09:06:31 | * | Demon_Fox quit (Quit: Leaving) |
09:45:37 | * | elrood joined #nim |
09:59:14 | * | sarlalian quit (Ping timeout: 276 seconds) |
10:00:42 | * | endragor joined #nim |
10:02:44 | * | sarlalian joined #nim |
10:29:51 | * | wuehlmaus quit (Ping timeout: 276 seconds) |
10:29:58 | * | wuehlmaus joined #nim |
10:30:21 | * | wuehlmaus is now known as Guest97103 |
10:36:48 | * | askatasuna_ joined #nim |
10:37:21 | * | askatasuna quit (Ping timeout: 276 seconds) |
10:37:21 | * | StarBrilliant quit (Ping timeout: 276 seconds) |
10:51:42 | * | sarlalian quit (Ping timeout: 276 seconds) |
10:52:05 | * | StarBrilliant joined #nim |
11:01:53 | * | sarlalian joined #nim |
11:18:19 | * | sarlalian quit (Ping timeout: 260 seconds) |
11:29:11 | * | GangstaCat quit (Quit: Leaving) |
11:29:30 | * | GangstaCat joined #nim |
11:44:41 | * | deavmi joined #nim |
12:02:43 | * | yglukhov joined #nim |
12:33:07 | * | Parashurama joined #nim |
12:33:57 | * | Parashurama quit (Client Quit) |
12:47:35 | * | Guest97103 is now known as wuehlmaus |
13:22:55 | * | elrood quit (Quit: Leaving) |
13:41:18 | * | dmi0 joined #nim |
13:41:54 | * | dmi0 quit (Client Quit) |
13:42:13 | * | dmi0 joined #nim |
13:43:36 | * | tdc quit () |
13:47:04 | * | sarlalian joined #nim |
13:53:42 | * | gokr quit (Ping timeout: 246 seconds) |
13:55:17 | * | gokr joined #nim |
14:01:19 | * | yglukhov quit (Read error: Connection reset by peer) |
14:01:44 | * | yglukhov joined #nim |
14:02:44 | * | BitPuffin joined #nim |
14:04:35 | * | jeffc quit (Remote host closed the connection) |
14:04:41 | * | yglukhov quit (Read error: Connection reset by peer) |
14:04:49 | * | gokr quit (Ping timeout: 244 seconds) |
14:05:14 | * | yglukhov joined #nim |
14:08:12 | * | yglukhov quit (Read error: Connection reset by peer) |
14:08:33 | * | yglukhov joined #nim |
14:11:01 | * | yglukhov quit (Read error: Connection reset by peer) |
14:12:11 | * | libman joined #nim |
14:18:48 | * | yglukhov joined #nim |
14:25:55 | * | yglukhov quit (Remote host closed the connection) |
14:37:46 | * | yglukhov joined #nim |
14:42:27 | * | yglukhov quit (Ping timeout: 276 seconds) |
14:48:38 | * | seguleh joined #nim |
15:08:22 | * | Arrrr quit (Ping timeout: 252 seconds) |
15:11:55 | * | sarlalian_ joined #nim |
15:12:45 | * | devn_ joined #nim |
15:13:47 | * | yglukhov joined #nim |
15:13:48 | * | ldleworker joined #nim |
15:14:48 | * | AckZ_ joined #nim |
15:16:13 | * | Salewski joined #nim |
15:16:58 | * | draynium_ joined #nim |
15:17:58 | * | zielmicha_ joined #nim |
15:18:03 | * | yglukhov quit (Ping timeout: 246 seconds) |
15:18:25 | Salewski | For cleanup I have moved some templates from a temporary helper module to gobject.nim. No I get this strange compiler message, make really no sense for me: |
15:18:30 | Salewski | Error: type mismatch: got (proc (object: expr): expr | , GType, Gsize) but expected one of: gobject.addInstancePrivate(classType: GType, privateSize: Gsize) |
15:18:45 | * | ludocode quit (Disconnected by services) |
15:18:51 | * | ludocode_ joined #nim |
15:19:23 | Salewski | What may this got (proc (object: expr): expr | , GType, Gsize) but be |
15:19:51 | Salewski | proc with expression parameter? and this | |
15:21:31 | * | sarlalian quit (Ping timeout: 260 seconds) |
15:21:37 | * | ldlework quit (Ping timeout: 260 seconds) |
15:21:37 | * | AckZ quit (Ping timeout: 260 seconds) |
15:21:37 | * | devn quit (Ping timeout: 260 seconds) |
15:21:37 | * | draynium quit (Excess Flood) |
15:21:38 | * | zxtx quit (Ping timeout: 260 seconds) |
15:21:38 | * | vegansk quit (Ping timeout: 260 seconds) |
15:21:38 | * | zielmicha quit (Read error: Connection reset by peer) |
15:21:39 | * | GangstaCat quit (Ping timeout: 260 seconds) |
15:21:39 | * | zxtx joined #nim |
15:21:39 | * | arnetheduck quit (Ping timeout: 260 seconds) |
15:21:57 | * | zielmicha_ is now known as zielmicha |
15:22:21 | * | arnetheduck joined #nim |
15:22:53 | * | AckZ_ is now known as AckZ |
15:23:25 | * | vegansk joined #nim |
15:24:04 | * | GangstaCat joined #nim |
15:25:00 | * | Salewski quit () |
15:25:57 | * | Arrrr joined #nim |
15:29:42 | * | AckZ quit () |
15:39:45 | * | libman quit (Ping timeout: 246 seconds) |
15:39:50 | * | Arrrr quit (Ping timeout: 276 seconds) |
15:46:34 | * | Arrrr joined #nim |
15:49:20 | * | RushPL quit (Remote host closed the connection) |
15:54:53 | * | Salewski joined #nim |
15:55:32 | * | libman joined #nim |
15:56:06 | Salewski | https://developer.gnome.org/gobject/unstable/gobject-Type-Information.html#G-DEFINE-TYPE-EXTENDED:CAPS |
15:56:21 | Salewski | static volatile gsize g_define_type_id__volatile = 0; |
15:57:01 | Salewski | What is that line in Nim? I used global pragma, worked, but I think it is not really correct? |
15:58:14 | * | jeffc joined #nim |
16:01:11 | * | yglukhov joined #nim |
16:05:33 | * | yglukhov quit (Ping timeout: 240 seconds) |
16:15:30 | * | brson joined #nim |
16:17:11 | Salewski | http://nim-lang.org/docs/manual.html#pragmas-global-pragma http://stackoverflow.com/questions/5033627/static-variable-inside-of-a-function-in-c Is Nims global the same as C's static for procs/functions? I am not sure, may have to test. |
16:18:01 | Arrrr | Good idea https://glot.io/new/nim |
16:30:38 | * | Salewski quit () |
16:30:44 | * | GangstaCat quit (Quit: Leaving) |
16:36:33 | * | GangstaCat joined #nim |
16:39:57 | * | Arrrr quit (Quit: WeeChat 1.4) |
16:47:39 | * | space-wizard joined #nim |
16:48:14 | * | space-wizard quit (Max SendQ exceeded) |
16:48:53 | * | space-wizard joined #nim |
16:54:32 | * | libman quit (Ping timeout: 260 seconds) |
17:04:04 | * | GangstaCat quit (Quit: Leaving) |
17:08:34 | * | Salewski joined #nim |
17:10:36 | Salewski | OK, having in module gobject.nim a template gobject() and then calling a proc gobject.something() is not a good idea! No it compiles... |
17:11:21 | * | libman joined #nim |
17:20:02 | * | endragor_ joined #nim |
17:21:58 | Salewski | And yes, Nims global pagma seems to work identical to C's static for procs/functions. My fear was that global pragma makes variables in procs visible in the global scope/namespace. but that is not the case. |
17:22:08 | * | Salewski quit () |
17:23:12 | * | elrood joined #nim |
17:23:39 | * | endragor quit (Ping timeout: 276 seconds) |
17:24:29 | * | GangstaCat joined #nim |
17:24:52 | * | endragor_ quit (Ping timeout: 260 seconds) |
17:40:14 | * | AnonCat joined #nim |
17:40:47 | * | libman quit (Remote host closed the connection) |
17:40:59 | * | GangstaCat quit (Ping timeout: 260 seconds) |
17:41:09 | * | AnonCat is now known as GangstaCat |
17:48:44 | * | yglukhov joined #nim |
18:19:30 | * | gsingh93 joined #nim |
18:42:17 | * | BitPuffin quit (Read error: Connection reset by peer) |
18:42:44 | * | BitPuffin joined #nim |
18:52:13 | * | bozaloshtsh quit (Ping timeout: 252 seconds) |
18:57:33 | * | AnonCat joined #nim |
19:00:09 | * | AnonCat quit (Client Quit) |
19:00:54 | * | GangstaCat quit (Ping timeout: 260 seconds) |
19:02:23 | * | Ven joined #nim |
19:02:49 | * | GangstaCat joined #nim |
19:05:31 | * | yglukhov quit (Read error: Connection reset by peer) |
19:06:07 | * | yglukhov joined #nim |
19:12:18 | deavmi | ello |
19:12:58 | deavmi | gruik.io - just saying - like a really cool markdown pastebin thing but you can edit and save your posts so yeah |
19:18:35 | * | nchambers is now known as sillytime |
19:19:28 | * | deavmi quit (Ping timeout: 250 seconds) |
19:33:11 | * | Trustable joined #nim |
19:37:09 | * | BitPuffin quit (Read error: Connection reset by peer) |
20:01:42 | * | yglukhov quit (Read error: Connection reset by peer) |
20:06:22 | * | Trustable quit (Remote host closed the connection) |
20:06:50 | * | yglukhov joined #nim |
20:20:56 | * | gokr joined #nim |
20:23:08 | * | seguleh quit (Quit: Page closed) |
20:23:40 | * | seguleh joined #nim |
20:23:44 | * | GangstaCat quit (Ping timeout: 260 seconds) |
20:24:44 | * | jck_ joined #nim |
20:26:29 | * | sillytime is now known as nchambers |
20:28:04 | * | allan0_ joined #nim |
20:28:12 | * | pigmej_ joined #nim |
20:29:04 | * | darius93 quit (Ping timeout: 268 seconds) |
20:29:04 | * | \u quit (Ping timeout: 268 seconds) |
20:29:05 | * | boop quit (Ping timeout: 268 seconds) |
20:29:05 | * | Guest44724 quit (Ping timeout: 268 seconds) |
20:29:05 | * | allan0 quit (Ping timeout: 268 seconds) |
20:29:05 | * | saml quit (Ping timeout: 268 seconds) |
20:29:05 | * | pigmej quit (Ping timeout: 268 seconds) |
20:29:05 | * | jck quit (Ping timeout: 268 seconds) |
20:29:05 | * | pigmej_ is now known as pigmej |
20:29:08 | * | saml_ joined #nim |
20:29:12 | * | dariusc93 joined #nim |
20:30:41 | * | Heartmender joined #nim |
20:30:41 | * | ray- joined #nim |
20:30:52 | * | boop joined #nim |
20:31:03 | * | Heartmender is now known as Guest34015 |
20:36:05 | * | dedalo joined #nim |
20:36:43 | * | bozaloshtsh joined #nim |
20:40:33 | * | GangstaCat joined #nim |
20:42:24 | * | dedalo left #nim ("Leaving") |
20:52:02 | * | yglukhov quit (Remote host closed the connection) |
20:59:59 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:03:54 | * | yglukhov joined #nim |
21:08:44 | * | yglukhov quit (Ping timeout: 276 seconds) |
21:08:52 | * | brson quit (Ping timeout: 260 seconds) |
21:09:31 | * | fredrik92 joined #nim |
21:10:24 | * | fredrik92 quit (Client Quit) |
21:10:30 | * | allan0_ quit (Ping timeout: 246 seconds) |
21:11:06 | * | fredrik92 joined #nim |
21:11:33 | * | zaquest quit (Ping timeout: 246 seconds) |
21:12:31 | * | zaquest joined #nim |
21:15:35 | * | allan0 joined #nim |
21:42:03 | * | Demon_Fox joined #nim |
21:46:10 | bozaloshtsh | are there any caveats to using future's `=>`? |
21:57:23 | * | Matthias247 joined #nim |
22:11:56 | * | seguleh quit (Ping timeout: 250 seconds) |
22:15:50 | * | elrood quit (Quit: Leaving) |
22:27:33 | * | brson joined #nim |
22:40:45 | * | yglukhov joined #nim |
22:45:06 | * | yglukhov quit (Ping timeout: 244 seconds) |
22:46:17 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:48:45 | * | draynium_ quit (Max SendQ exceeded) |
22:50:15 | * | ephja quit (Ping timeout: 246 seconds) |
23:01:51 | * | brson quit (Quit: leaving) |
23:02:50 | * | brson joined #nim |
23:03:04 | * | brson quit (Client Quit) |
23:03:11 | * | brson joined #nim |
23:05:15 | * | yglukhov joined #nim |
23:09:37 | * | yglukhov quit (Ping timeout: 252 seconds) |
23:10:44 | dom96 | bozaloshtsh: it may fail to infer the types sometimes |
23:10:47 | dom96 | other than that no |
23:11:55 | bozaloshtsh | dom96: are there any plans for including it in the 1.0 release? |
23:11:59 | bozaloshtsh | or something like it |
23:12:41 | dom96 | in system.nim you mean? |
23:12:42 | dom96 | yes |
23:13:03 | bozaloshtsh | awesome |
23:17:58 | * | draynium joined #nim |
23:18:09 | * | brson_ joined #nim |
23:20:33 | * | brson quit (Ping timeout: 240 seconds) |
23:20:56 | * | Guest34015 is now known as Heartmender |
23:20:58 | * | Heartmender quit (Changing host) |
23:20:58 | * | Heartmender joined #nim |
23:20:58 | * | Heartmender quit (Changing host) |
23:20:58 | * | Heartmender joined #nim |
23:24:34 | * | brson_ quit (Quit: leaving) |
23:30:10 | * | brson joined #nim |
23:41:47 | * | yglukhov joined #nim |
23:46:22 | * | yglukhov quit (Ping timeout: 260 seconds) |
23:49:11 | * | brson quit (Quit: leaving) |
23:49:31 | * | brson joined #nim |
23:49:52 | * | bozaloshtsh quit (Ping timeout: 260 seconds) |