| 00:04:36 | * | nchambers quit (Remote host closed the connection) |
| 00:10:31 | * | derka_ joined #nim |
| 00:12:20 | * | derka quit (Ping timeout: 260 seconds) |
| 00:12:20 | * | derka_ is now known as derka |
| 00:16:20 | * | desophos joined #nim |
| 00:27:01 | * | zepolen quit (Remote host closed the connection) |
| 00:31:23 | * | Varriount-Laptop quit (Ping timeout: 264 seconds) |
| 00:32:05 | * | Varriount-Laptop joined #nim |
| 00:37:57 | * | arnetheduck joined #nim |
| 00:43:04 | * | yglukhov quit (Remote host closed the connection) |
| 00:48:35 | * | jaco60 quit (Ping timeout: 240 seconds) |
| 00:49:15 | * | zepolen joined #nim |
| 00:50:10 | * | derka quit (Quit: derka) |
| 00:56:20 | * | derka joined #nim |
| 01:04:06 | * | derka quit (Ping timeout: 256 seconds) |
| 01:22:45 | * | pregressive joined #nim |
| 01:37:37 | * | dashed joined #nim |
| 01:42:21 | * | junw quit (Read error: Connection reset by peer) |
| 01:42:39 | * | junw joined #nim |
| 01:48:35 | * | brson quit (Ping timeout: 260 seconds) |
| 02:09:47 | bozaloshtsh | Araq_: about the problem from yesterday- I can remove most of the webserver's logic to make the issue go away but I cannot create a separate file that uses asynchttpserver that replicates the issue. |
| 02:15:52 | * | nchambers joined #nim |
| 02:24:42 | ldlework | I cannot seem to create a sequence of typedesc |
| 02:25:58 | ldlework | internal error: metatype not eliminated |
| 02:26:00 | ldlework | neat |
| 02:44:39 | * | junw quit (Read error: Connection reset by peer) |
| 02:52:23 | * | pregressive quit (Ping timeout: 264 seconds) |
| 03:06:38 | * | arnetheduck quit (Ping timeout: 265 seconds) |
| 03:21:27 | * | ffffff_ joined #nim |
| 03:26:26 | ffffff_ | Sorry for bothering. How does nre work? I copied the example from here: https://github.com/flaviut/nre#type-regexmatch--object and I'm getting "Error: undeclared field: 'get'" |
| 03:26:52 | * | saml_ joined #nim |
| 03:31:25 | lompik | ffffff_: are you using 'import nre, options' ? |
| 03:32:03 | ffffff_ | No. My mistake. I just had "import nre." I was completely missing options. |
| 03:43:19 | * | xtagon quit (Quit: Connection closed for inactivity) |
| 03:47:35 | * | nchambers quit (Ping timeout: 240 seconds) |
| 04:31:51 | * | ffffff_ quit (Quit: Page closed) |
| 04:42:18 | * | nchambers joined #nim |
| 05:26:29 | * | xtagon joined #nim |
| 05:27:36 | * | gunn quit (Read error: No route to host) |
| 05:30:21 | * | gunn joined #nim |
| 05:36:21 | * | lompik quit (Ping timeout: 245 seconds) |
| 05:39:12 | * | darkf joined #nim |
| 05:55:51 | * | enamex joined #nim |
| 06:52:53 | * | Demon_Fox quit (Quit: Leaving) |
| 07:03:29 | * | saml_ quit (Remote host closed the connection) |
| 07:30:03 | * | enamex quit (Quit: Leaving) |
| 07:51:29 | * | BitPuffin|osx joined #nim |
| 08:05:18 | * | shevy joined #nim |
| 08:24:29 | * | Arrrr joined #nim |
| 08:24:29 | * | desophos quit (Read error: Connection reset by peer) |
| 08:24:48 | * | junw joined #nim |
| 08:27:40 | * | junw quit (Read error: Connection reset by peer) |
| 08:29:59 | * | yglukhov joined #nim |
| 08:33:19 | * | xtagon quit (Quit: Connection closed for inactivity) |
| 08:54:09 | * | arnetheduck joined #nim |
| 09:04:50 | * | yglukhov quit (Remote host closed the connection) |
| 09:37:16 | * | ephja joined #nim |
| 09:37:18 | * | yglukhov joined #nim |
| 09:42:23 | * | yglukhov quit (Remote host closed the connection) |
| 09:42:37 | * | kniteli quit (Ping timeout: 250 seconds) |
| 09:43:30 | * | yglukhov joined #nim |
| 09:48:11 | * | yglukhov quit (Ping timeout: 264 seconds) |
| 10:03:27 | * | jaco60 joined #nim |
| 10:10:30 | * | BitPuffin|osx quit (Remote host closed the connection) |
| 10:10:47 | * | BitPuffin|osx joined #nim |
| 10:42:54 | * | apotheon quit (Ping timeout: 265 seconds) |
| 10:52:59 | * | apotheon joined #nim |
| 11:02:57 | * | nonsince joined #nim |
| 11:05:04 | * | yglukhov joined #nim |
| 11:11:22 | * | yglukhov quit (Ping timeout: 276 seconds) |
| 11:26:09 | * | zepolen quit (Remote host closed the connection) |
| 11:30:12 | * | Trustable joined #nim |
| 11:31:02 | * | zepolen joined #nim |
| 11:31:35 | * | Matthias247 joined #nim |
| 11:33:48 | * | derka joined #nim |
| 11:43:42 | * | yglukhov joined #nim |
| 11:57:59 | * | vendethiel joined #nim |
| 12:10:06 | * | zepolen quit (Remote host closed the connection) |
| 12:19:02 | * | vqrs quit (Ping timeout: 250 seconds) |
| 12:19:45 | * | vqrs joined #nim |
| 12:25:33 | * | Salewski joined #nim |
| 12:28:49 | Salewski | Yesterday I found proc reset(), which I may use for example to clear int array to zero again when already populated. http://nim-lang.org/docs/system.html#reset,T but I have no idea about this comment, should I worry about this: |
| 12:28:56 | Salewski | This needs to be called before any possible object branch transition. |
| 12:33:40 | * | zepolen joined #nim |
| 12:34:55 | * | zepolen quit (Remote host closed the connection) |
| 12:38:02 | Salewski | And, while I am still logged in: For sequences we have seq.setLen() but not seq.len= . I first tried the later and got the wrong impression that we can not shrink sequences (but have to create new ones again and again...) |
| 12:41:11 | * | Salewski quit () |
| 12:43:26 | * | Varriount-Laptop quit (Ping timeout: 240 seconds) |
| 13:00:39 | Araq_ | you can shrink seqs with setLen. |
| 13:00:53 | Araq_ | don't use 'reset' if you don't know what it does. |
| 13:01:04 | Araq_ | wow that was easy. |
| 13:01:25 | Araq_ | more difficult questions for me? |
| 13:04:26 | * | Salewski joined #nim |
| 13:05:13 | Salewski | Araq: In know that setLen() works, I was only wondering why there is no len= alias. |
| 13:06:11 | Salewski | So I should not use reset() for reinitializing an array of ints? I was glad that I found it! |
| 13:06:40 | ephja | array or sequence? |
| 13:06:50 | Salewski | Array! |
| 13:07:03 | ephja | um ok |
| 13:07:32 | * | aziz joined #nim |
| 13:11:10 | * | nonsince quit (Quit: leaving) |
| 13:14:48 | * | derka quit (Quit: derka) |
| 13:17:23 | Arrrr | In my opinion reset should stay out of system, i once got confused .. |
| 13:24:19 | Salewski | Have to go, bye. (Will read the logs...) |
| 13:24:23 | * | Salewski quit () |
| 13:35:21 | * | zepolen joined #nim |
| 13:36:32 | * | Sembei joined #nim |
| 13:39:40 | * | zepolen quit (Ping timeout: 245 seconds) |
| 13:59:02 | * | zepolen joined #nim |
| 14:01:35 | * | zepolen quit (Remote host closed the connection) |
| 14:02:39 | * | zepolen joined #nim |
| 14:04:03 | * | zepolen quit (Remote host closed the connection) |
| 14:04:48 | * | zepolen joined #nim |
| 14:06:17 | * | zepolen quit (Remote host closed the connection) |
| 14:07:47 | * | saml_ joined #nim |
| 14:09:35 | * | zepolen joined #nim |
| 14:09:36 | * | zepolen quit (Remote host closed the connection) |
| 14:09:48 | * | zepolen joined #nim |
| 14:11:13 | * | zepolen quit (Client Quit) |
| 14:20:40 | * | Heartmender quit (K-Lined) |
| 14:26:56 | * | lompik joined #nim |
| 15:19:56 | * | Arrrrr joined #nim |
| 15:22:22 | * | Arrrr quit (Ping timeout: 272 seconds) |
| 15:24:06 | * | Heartmender joined #nim |
| 15:24:25 | * | Heartmender is now known as Guest78691 |
| 16:04:53 | wuehlmaus | anyone here experienced with nre and musl? i love very small static executables but i did not successfully execute my little example program |
| 16:06:06 | wuehlmaus | could not load: libpcre.so(.3|.1|) |
| 16:07:01 | wuehlmaus | nim -d:release --opt:size --passL:-static --gcc.exe:/usr/bin/musl-gcc --gcc.linkerexe:/usr/bin/musl-gcc c /tmp/a.nim |
| 16:09:03 | * | derka joined #nim |
| 16:10:11 | wuehlmaus | /usr/lib/libpcre.so.1.2.6 |
| 16:10:25 | wuehlmaus | that one i have |
| 16:12:08 | Araq_ | create a symlink |
| 16:12:21 | Araq_ | to libprce.so.1 |
| 16:13:50 | * | lompik quit (Quit: WeeChat 1.3) |
| 16:15:19 | * | xet7 quit (Quit: Leaving) |
| 16:16:24 | * | arnetheduck quit (Ping timeout: 264 seconds) |
| 16:17:29 | wuehlmaus | it's already created by my archlinux distribution annd in /usr/lib |
| 16:18:51 | wuehlmaus | nim c /tmp/a.nim works |
| 16:24:39 | * | derka quit (Quit: derka) |
| 16:34:00 | * | nchambers quit (Ping timeout: 256 seconds) |
| 16:34:26 | * | someplac- is now known as someplace |
| 16:46:38 | * | askatasuna joined #nim |
| 16:58:26 | * | malo joined #nim |
| 16:58:49 | * | malo quit (Client Quit) |
| 17:04:31 | * | shevy left #nim ("I'll be back ... maybe") |
| 17:05:40 | * | nchambers joined #nim |
| 17:05:59 | * | krub joined #nim |
| 17:07:11 | krub | is it possible to use system.cmp in a generic proc? As in: system.cmp[T] |
| 17:09:39 | krub | when I try it errors with: Error: cannot instantiate: 'Idx' ... so apparently it thinks I'm trying to index |
| 17:12:45 | Araq_ | no, 'instantiation' is not indexing |
| 17:12:55 | Araq_ | it fails for some other reason |
| 17:19:45 | krub | hm, yeah... a more minimal version works. |
| 17:36:30 | krub | this: A.sorted((i, j) => system.cmp[S](a(i), a(j))) |
| 17:37:16 | krub | where a = proc(x): S |
| 17:39:07 | krub | gives this error: cannot instantiate 'Idx' at line 3177 col 12 in Nim/lib/system.nim |
| 17:42:05 | krub | I got around it via defining a proc inside the proc instead. Am I missing something, or should I file an issue on github? |
| 17:45:06 | * | biscarch joined #nim |
| 17:49:47 | Arrrrr | i wouldn't use the future module. |
| 17:50:30 | * | askatasuna quit (Ping timeout: 260 seconds) |
| 17:51:43 | krub | no? Not ready yet? Well, the name does imply it, but I really like the sugar :P |
| 17:52:34 | Arrrrr | too experimental http://ideone.com/105SA2 |
| 17:55:00 | krub | oh, you can use cmp like that? |
| 17:55:52 | Arrrrr | However it works with future for me http://ideone.com/AnXnVC |
| 18:02:02 | krub | yeah, but that's not exacty what I was doing... just a sec |
| 18:04:13 | dom96 | => in future should work well nowadays |
| 18:04:45 | dom96 | krub: what does your code look like? |
| 18:09:02 | krub | hm... the online compiler seems to throw a different error... but this is the minimized code: http://ideone.com/ObNUrL |
| 18:15:29 | Arrrrr | Yep, i got the same rrror |
| 18:17:20 | Arrrrr | but 'sorted list, cmp' still stands |
| 18:17:52 | Arrrrr | and also 'list.sorted(proc(a, b: int): int = cmp(a, b))' |
| 18:18:14 | Arrrrr | So it is likely some dark future sorcery |
| 18:19:57 | Arrrrr | However krub, if you drop the [T] in line 7 it works 'list.sorted((a, b) => system.cmp(a, b))' |
| 18:21:25 | krub | seems like it's some dark magic, yeah. I guess the [] operator resolves to the index operator or something... I don't know |
| 18:22:07 | krub | But yeah, if you drop the T there it works, however I need the T there in a slightly different function :) |
| 18:22:21 | krub | but using the proc syntax isn't really a problem |
| 18:25:10 | krub | something like this: http://ideone.com/t1red0 |
| 18:29:46 | Arrrrr | How do you compare two bools |
| 18:31:57 | krub | apparently false < true |
| 18:33:15 | Arrrrr | You could change your proc to look like this 'proc(i:int): int = int(i mod 2 == 0)' |
| 18:33:41 | Arrrrr | and drop the generic S |
| 18:33:50 | * | yglukhov quit (Remote host closed the connection) |
| 18:35:37 | * | yglukhov joined #nim |
| 18:40:05 | * | yglukhov quit (Ping timeout: 245 seconds) |
| 18:40:39 | krub | Yeah, that's a solution too, you're right. I'm mostly just playing around with generics at the moment... for learning purposes, so it's nothing urgent :) |
| 18:49:13 | * | nchambers quit (Quit: Leaving) |
| 18:49:44 | * | nchambers joined #nim |
| 18:50:06 | * | nchambers quit (Remote host closed the connection) |
| 18:51:30 | * | krub quit (Quit: Page closed) |
| 19:03:15 | * | nchambers joined #nim |
| 19:09:36 | * | aziz quit (Remote host closed the connection) |
| 19:10:25 | * | yglukhov joined #nim |
| 19:22:40 | * | nchambers quit (Ping timeout: 260 seconds) |
| 19:32:48 | * | darkf quit (Ping timeout: 250 seconds) |
| 19:42:34 | * | lompik joined #nim |
| 19:51:57 | * | Arrrrr quit (Quit: WeeChat 1.2) |
| 20:07:16 | * | nchambers joined #nim |
| 20:34:08 | * | wuehlmaus quit (Quit: Lost terminal) |
| 20:43:21 | * | wuehlmaus joined #nim |
| 20:44:37 | * | yglukhov_ joined #nim |
| 20:44:38 | * | yglukhov quit (Read error: Connection reset by peer) |
| 20:50:16 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 20:51:41 | * | yglukhov joined #nim |
| 20:51:41 | * | yglukhov_ quit (Read error: Connection reset by peer) |
| 20:51:51 | * | Matthias247 joined #nim |
| 21:02:00 | * | yglukhov quit (Read error: Connection reset by peer) |
| 21:06:00 | * | yglukhov joined #nim |
| 21:15:47 | * | Demon_Fox joined #nim |
| 21:24:59 | * | def- quit (Ping timeout: 276 seconds) |
| 21:28:47 | * | def- joined #nim |
| 21:44:29 | * | vqrs quit (Ping timeout: 276 seconds) |
| 21:45:30 | * | vqrs joined #nim |
| 22:04:41 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 22:06:11 | * | Matthias247 joined #nim |
| 22:06:39 | * | desophos joined #nim |
| 22:33:10 | * | Matthias247 quit (Read error: Connection reset by peer) |
| 22:34:45 | * | Matthias247 joined #nim |
| 23:01:50 | * | yglukhov_ joined #nim |
| 23:01:51 | * | yglukhov quit (Read error: Connection reset by peer) |
| 23:05:04 | * | yglukhov_ quit (Read error: Connection reset by peer) |
| 23:07:00 | * | yglukhov joined #nim |
| 23:47:53 | * | tato joined #nim |
| 23:47:58 | * | tato left #nim (#nim) |
| 23:48:40 | * | yglukhov quit (Remote host closed the connection) |