00:01:28 | * | pregressive quit (Remote host closed the connection) |
00:19:11 | * | yglukhov joined #nim |
00:23:45 | * | yglukhov quit (Ping timeout: 244 seconds) |
00:26:25 | * | jaco60 quit (Ping timeout: 240 seconds) |
00:26:33 | * | snsk quit (Quit: Page closed) |
00:35:13 | * | Demon_Fox joined #nim |
00:47:23 | * | lyro` joined #nim |
00:47:23 | * | lyro quit (Ping timeout: 240 seconds) |
00:49:09 | * | Trustable quit (Remote host closed the connection) |
00:58:01 | * | derka quit (Quit: derka) |
01:20:37 | * | yglukhov joined #nim |
01:23:39 | * | desophos quit () |
01:24:45 | * | yglukhov quit (Ping timeout: 244 seconds) |
01:46:30 | * | arnetheduck joined #nim |
01:52:58 | * | Matthias247 quit (Read error: Connection reset by peer) |
02:04:27 | * | PMunch quit (Quit: leaving) |
02:08:20 | * | desophos joined #nim |
02:09:17 | * | filwit quit (Quit: Leaving) |
02:23:31 | * | arnetheduck quit (Quit: Leaving) |
02:25:13 | * | arnetheduck joined #nim |
02:30:16 | * | mahasamoot quit (Remote host closed the connection) |
02:38:03 | * | pregressive joined #nim |
02:52:44 | * | toaoMgeorge quit (Quit: Bye) |
02:56:42 | * | vendethiel joined #nim |
03:20:30 | * | vendethiel quit (Ping timeout: 248 seconds) |
03:22:19 | * | yglukhov joined #nim |
03:27:04 | * | yglukhov quit (Ping timeout: 260 seconds) |
03:31:52 | * | kulelu88 left #nim ("Leaving") |
04:23:06 | * | yglukhov joined #nim |
04:23:43 | * | pregressive quit (Remote host closed the connection) |
04:27:57 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:41:02 | * | brson quit (Ping timeout: 248 seconds) |
05:44:43 | * | francisl joined #nim |
05:54:06 | * | brson joined #nim |
06:14:02 | * | francisl quit (Quit: francisl) |
06:24:36 | * | yglukhov joined #nim |
06:28:45 | * | yglukhov quit (Ping timeout: 250 seconds) |
06:44:27 | * | exebook quit (Ping timeout: 276 seconds) |
06:58:45 | * | exebook joined #nim |
07:25:17 | * | yglukhov joined #nim |
07:29:39 | * | yglukhov quit (Ping timeout: 248 seconds) |
07:33:08 | * | gour joined #nim |
07:33:17 | * | gokr joined #nim |
07:36:43 | * | desophos quit (Ping timeout: 244 seconds) |
07:47:28 | * | yglukhov joined #nim |
07:50:49 | * | yglukhov quit (Remote host closed the connection) |
07:58:28 | * | vendethiel joined #nim |
08:16:30 | * | gokr quit (Quit: Leaving.) |
08:24:22 | * | endragor joined #nim |
08:34:18 | * | Arrrr joined #nim |
08:34:18 | * | Arrrr quit (Changing host) |
08:34:18 | * | Arrrr joined #nim |
08:42:33 | * | vendethiel quit (Ping timeout: 240 seconds) |
08:47:06 | * | lyro` is now known as lyro |
09:01:39 | * | Kingsquee joined #nim |
09:02:04 | * | yglukhov joined #nim |
09:03:31 | * | endragor quit (Ping timeout: 248 seconds) |
09:09:19 | * | vonh joined #nim |
09:19:44 | * | derka joined #nim |
09:19:45 | * | derka quit (Remote host closed the connection) |
09:41:15 | * | brson quit (Quit: leaving) |
09:43:32 | * | xtagon quit (Quit: Connection closed for inactivity) |
10:08:56 | * | Kingsquee quit (Read error: Connection reset by peer) |
10:09:09 | * | Kingsquee joined #nim |
10:19:12 | * | lcm337 joined #nim |
10:29:10 | * | Matthias247 joined #nim |
10:41:06 | * | lcm337 quit (Ping timeout: 252 seconds) |
10:47:26 | * | gokr joined #nim |
10:57:20 | * | jaco60 joined #nim |
11:00:08 | * | xyproto joined #nim |
11:02:13 | * | ivan__ joined #nim |
11:11:35 | ivan__ | Hi, is it possible to import a nim module for just the types and proc singatures? I'm trying to create dynamic libraries with "nim c --app:lib" (for a JIT compiled plugin system) and I don't want import statements to actually compile and link the complete module inside the shared lib, because they are already compiled/linked in the main application. |
11:14:52 | Araq | ivan__: --deadCodeElim:on only exports what is marked as exportc, dynlib |
11:21:59 | * | Matthias247 quit (Read error: Connection reset by peer) |
11:23:58 | ivan__ | i'm not sure if that makes it work. For example, i have a nim module named ulib that exports this proc: proc fancyPrint*() = ... I am importing this module in the main app, and it gets compiled and linked. Then i want to jit compile some nim plugin. The plugin can also call fancyPrint(), that resides in the main app |
11:24:28 | ivan__ | i know this is possible in C, because i just #include a header file with the fancyPrint prototype |
11:25:15 | ivan__ | when loading the dynamic library, the fancyPrint is an unresolved symbol in the dynamic lib, and it should be resolved when loading, because the fancyPrint symbol exists in the main application |
11:26:15 | ivan__ | Im not sure how to do this in Nim, because when compiling the main app, the proc fancyPrint() in the nim file gets converted to fancyprint_94005() in the c file |
11:26:44 | ivan__ | the dynamic library doesn't know the symbol name was generated like that |
11:27:15 | * | yglukhov quit (Remote host closed the connection) |
11:32:56 | * | yglukhov joined #nim |
11:32:58 | ivan__ | hmm, do i have to use exportc, on the procs that i want to make available to the dynamic libs? |
11:33:17 | * | gokr quit (Quit: Leaving.) |
11:48:04 | Araq | ivan__: exactly. |
11:53:12 | * | darkf quit (Quit: Leaving) |
12:11:21 | ivan__ | hmm, exportc indeed works. But now when i do importc in my dynamic lib, it creates a forward declaration for fancyPrint() without the extern keyword, resulting in the compiler error: undefined reference to `fancyPrint' when creating the shared lib |
12:15:56 | ivan__ | oh, even if i manually add the extern keyword i get that error |
12:20:42 | Araq | ivan__: importc, dynlib |
12:22:15 | ivan__ | ya, that should do it, i was just trying to avoid making the lib linked with the main app dynamic too. According to this post on stackoverflow it should be possible: http://stackoverflow.com/a/17099137/3653108 |
12:23:26 | * | yglukhov quit (Remote host closed the connection) |
12:36:47 | * | Demon_Fox quit (Quit: Leaving) |
12:52:52 | cheatfate | Araq, how i must initialize var buffer: array[0..128, char] to avoid: "Warning 'buffer' might not have been initialized [Uninit]" warning? |
12:53:20 | cheatfate | This is nimsuggest's warning |
12:53:23 | cheatfate | not compiler |
12:54:00 | * | gour_ joined #nim |
12:54:37 | * | gour quit (Disconnected by services) |
12:54:41 | * | gour_ is now known as gour |
12:56:18 | Araq | cheatfate: that means nimsuggest has some other problems |
12:56:36 | Araq | usually warnings are disabled unless you use --debug iirc |
12:56:53 | Araq | gimme something that I can reproduce and I shall fix it |
12:57:34 | Araq | but it's not your code, it's perfectly fine to not initialize arrays and rely on them being binary zero |
13:04:23 | cheatfate | Araq, with this gist you can reproduce it https://gist.github.com/cheatfate/e330c56f52b8198dede9 |
13:04:53 | Araq | cheatfate: how to invoke nimsuggest ? |
13:05:15 | cheatfate | eeeehh i'm using it in Sublime Text2 |
13:06:18 | cheatfate | with NimLime by Varriount |
13:07:43 | cheatfate | looks like [nimsuggest stdin --interactive:false project_file.nim] |
13:07:57 | cheatfate | its how NimLime called nimsuggest |
13:11:55 | * | boopsiesisaway is now known as boopsies |
13:15:57 | Araq | command line(1, 2) Error: invalid command line option: '--interactive' |
13:17:20 | ivan__ | Okey, undefined references are not allowed by windows DLLs but in linux so's they are, that was my problem. Will convert to my other libs to DLLs aswell then. Thanks for the help Araq :) |
13:17:31 | Araq | > debug |
13:17:31 | Araq | > def arrwarning.nim:9:4 |
13:17:31 | Araq | Hint: arrwarning [Processing] |
13:17:33 | Araq | def skProc system.zeroMem proc (p: pointer, size: Natural){.gcsafe, locks: 0.} /Users/andreasrumpf-mac/projects/nim/lib/system.nim 1591 7 "overwrites the contents of the memory at ``p`` with the value 0.\x0A Exactly ``size`` bytes will be overwritten. Like any procedure\x0A dealing with raw memory this is *unsafe*." |
13:17:35 | Araq | arrwarning.nim(2, 6) Hint: 'arrwarning.testproc()' is declared but not used [XDeclaredButNotUsed] |
13:17:54 | Araq | cheatfate: works for me just fine, producing no wrong warning |
13:18:07 | Araq | but my nimsuggest doesn't know --interactive |
13:18:49 | Araq | ivan__: check out the docs, they tell you how to build a nimrtl.dll so that DLls can share memory using the same GC |
13:20:27 | ivan__ | yep, already read some of it, thank you! |
13:21:40 | cheatfate | maybe nimlime using modified nimsuggest, ok i will contact Varriount |
13:38:45 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
14:59:07 | * | Jesin quit (Quit: Leaving) |
15:11:31 | * | francisl joined #nim |
15:16:28 | * | desophos joined #nim |
15:29:26 | * | oceanpollen quit (Ping timeout: 252 seconds) |
15:29:42 | * | oceanpollen joined #nim |
15:30:05 | * | asdf quit (Ping timeout: 252 seconds) |
15:31:33 | * | asdf joined #nim |
15:31:57 | * | asdf is now known as Guest74448 |
15:33:07 | * | francisl quit (Quit: francisl) |
15:36:42 | * | francisl joined #nim |
15:40:08 | * | Guest74448 is now known as asdf |
15:42:16 | * | BitPuffin|osx joined #nim |
15:49:51 | * | francisl quit (Quit: francisl) |
15:50:00 | * | zama_ quit (Changing host) |
15:50:00 | * | zama_ joined #nim |
15:50:11 | * | zama_ is now known as zama |
15:50:38 | * | zama is now known as zama_ |
15:51:02 | Araq | https://blogs.msdn.microsoft.com/ericlippert/2010/02/04/how-many-passes/ |
15:51:33 | * | zama_ is now known as zama |
15:54:56 | * | arnetheduck quit (Ping timeout: 268 seconds) |
15:55:17 | * | PMunch joined #nim |
15:56:12 | * | arnetheduck joined #nim |
16:04:31 | Arrrr | That's a lot of passes, are you going to give up cyclic imports? |
16:11:35 | * | wuehlmau1 joined #nim |
16:11:45 | * | pan joined #nim |
16:12:09 | * | pan is now known as Guest71084 |
16:12:11 | * | francisl joined #nim |
16:12:18 | * | alexsystemf_ quit (Ping timeout: 246 seconds) |
16:12:19 | * | xyproto quit (Ping timeout: 246 seconds) |
16:12:19 | * | wuehlmaus quit (Ping timeout: 246 seconds) |
16:12:19 | * | pandada8 quit (Ping timeout: 246 seconds) |
16:12:20 | * | vegansk quit (Ping timeout: 246 seconds) |
16:12:21 | * | vegansk joined #nim |
16:12:24 | * | mtj_ quit (Ping timeout: 246 seconds) |
16:12:38 | * | alexsystemf_ joined #nim |
16:12:52 | * | arnetheduck quit (Ping timeout: 244 seconds) |
16:13:22 | * | xyproto joined #nim |
16:13:24 | Araq | Arrrr: I'm figuring out all the details |
16:13:45 | * | mtj_ joined #nim |
16:23:50 | Arrrr | goodspeed you |
16:29:30 | * | Matthias247 joined #nim |
16:39:07 | * | francisl quit (Quit: francisl) |
16:47:13 | * | wuehlmau1 is now known as wuehlmaus |
16:59:49 | * | rok joined #nim |
17:08:59 | * | aziz joined #nim |
17:19:19 | * | Matthias247 quit (Read error: Connection reset by peer) |
17:20:39 | * | Matthias247 joined #nim |
17:32:36 | * | Jesin joined #nim |
17:34:30 | * | exebook quit (Ping timeout: 244 seconds) |
17:35:01 | * | yglukhov joined #nim |
17:43:33 | * | PMunch quit (Ping timeout: 276 seconds) |
18:05:15 | rok | Hey guys, how is nimsuggest supposed to work? I'm trying to pass a file and stuff but nothing happens. |
18:05:37 | rok | Oh and yeah, im totally new to nim. Installed it like a hour ago. |
18:08:36 | Arrrr | Hello my friend, have you read this http://nim-lang.org/docs/nimsuggest.html ? |
18:10:44 | federico3 | uhm, sounds like nimsuggest should be built and installed in the packaged compiler |
18:12:10 | rok | Arrrr: Ty |
18:14:18 | rok | Oh I've installed it via nimble, maybe thats why it does not work x_x |
18:22:31 | federico3 | meh |
18:28:14 | * | vonh quit (Ping timeout: 248 seconds) |
18:29:08 | * | vonh joined #nim |
18:33:16 | * | PMunch joined #nim |
18:37:35 | rok | waa >_< It doesn't like me |
18:39:06 | Arrrr | If i were you, i would forget it, there are stuff more interesting in nim that nimsuggest from the standpoint of a newcomer |
18:43:23 | rok | I'm using Textadept (editor) and I saw that some guy made a module for it, and I had to try it out (I like when my editors have autocomplete ._.) |
18:45:10 | Arrrr | That's fair x_. |
18:53:12 | rok | hmm, it actually isn't like inteligent autocomplete? Only from the current file? |
18:53:14 | rok | ._. |
18:54:44 | Araq | rok: no, you give it the project file |
18:55:03 | Araq | but you can query any file that's part of it, and actually also files that don't belong to the project |
18:58:09 | federico3 | It suggests stuff from imported modules? |
19:01:09 | Araq | yes. |
19:07:46 | federico3 | That could be very useful for newcomers. It could be included in the released tarball |
19:10:26 | rok | Hmm, could I make it autocomplete words like 'readLine', 'write' ... ? |
19:17:24 | * | ivan__ quit (Quit: Page closed) |
19:20:10 | Araq | rok: that's not its purpose. it does autocompletion after 'foo.' |
19:20:47 | Araq | it's type based, not prefix based. for prefix based stuff ordinary editor support suffices |
19:23:26 | rok | Araq: Oh k |
19:26:17 | Araq | federico3: it's only a nimble install away ... if nimble works, that is ... |
19:27:47 | rok | The one from nimble doesn't work or something? It says like that on the page of nimsuggest. |
19:29:18 | rok | And its being reworked (in the branch major-restructure) |
19:29:22 | Araq | dunno, I do what I wrote on nimsuggest's website and have no issues |
19:30:18 | rok | Oh I see, you're one of the contributors >_< Didn't know |
19:37:17 | * | miko_ joined #nim |
19:42:10 | * | darkf joined #nim |
19:53:49 | ldlework | Any go players in here? |
20:02:43 | * | yglukhov quit (Read error: Connection reset by peer) |
20:02:59 | * | yglukhov joined #nim |
20:04:38 | * | brson joined #nim |
20:09:46 | Arrrr | Is it normal to produce so many Sym "[]=" inside a macro? http://pastebin.com/TQwRvgNq |
20:12:25 | Arrrr | It happens with 'isNil' too. Also, i was able to define two times the same proc with no crash/error. |
20:14:36 | Arrrr | Ok, it is normal http://forum.nim-lang.org/t/1361#8499 |
20:21:10 | miko_ | I wanted to give the emacs and nim-mode a try. I installed everything and my source code looks pretty. But how to i compile it, or use nimsuggest? |
20:23:00 | miko_ | Am i supposed to use the normal emacs compile command? Because the format of nim (file.nim(2,3)) is not automaticllay recoginised |
20:42:45 | * | Arrrr quit (Quit: WeeChat 1.4) |
20:50:59 | PMunch | Hmm, what does this mean: Error: internal error: genAssignment: tyNil |
20:52:05 | * | gour left #nim ("WeeChat 1.4") |
21:05:01 | PMunch | I get this error no matter what I do to the file.. |
21:05:28 | PMunch | Also tried to delete the nimcache directory to no avail |
21:12:00 | PMunch | Hmm, I think I found a bug |
21:12:08 | PMunch | With the JSON module |
21:12:40 | PMunch | According to the spec: proc `[]` [...] Gets a field from a JObject, which must not be nil. If the value at name does not exist, returns nil |
21:13:00 | PMunch | It doesn't return nil, I get SIGSEGV: Illegal storage access. (Attempt to read from nil?) |
21:13:34 | PMunch | Oh wait |
21:13:43 | PMunch | I had it in an echo statement |
21:14:38 | PMunch | Should echo have a nil check |
21:14:40 | PMunch | ? |
21:15:56 | Araq | echo uses $ |
21:16:13 | Araq | whether the $ performs a nil check is up to the particular implementation |
21:16:50 | Araq | miko_: sorry, I don't use emacs. |
21:18:24 | PMunch | But this is a function that returns nil, and wrapped in an echo that gives a SIGSEGV |
21:20:03 | Araq | so? |
21:20:12 | Araq | maybe don't return nil? |
21:21:32 | PMunch | Well, that would have to be fixed in the JSON module.. |
21:21:39 | PMunch | As it is the one returning nil in this case |
21:22:10 | PMunch | I agree that the method is expected not to work, but maybe echo should throw an error instead of crashing the compiler? |
21:22:56 | PMunch | Oh sorry, it doesn't crash the compiler but rather the program |
21:22:57 | PMunch | My bad |
21:27:30 | federico3 | ldlework: me |
21:41:50 | Araq | ldlework: I wait for the AI experts to beat human players on Starcraft :D |
21:47:27 | * | PMunch quit (Ping timeout: 260 seconds) |
21:48:44 | * | francisl joined #nim |
21:51:48 | * | desophos quit (Ping timeout: 244 seconds) |
22:14:06 | * | aziz quit (Remote host closed the connection) |
22:22:07 | * | rok quit (Quit: rok) |
22:32:00 | * | yglukhov quit (Remote host closed the connection) |
22:38:07 | * | desophos joined #nim |
22:51:32 | * | boopsies is now known as boopsiesisaway |
23:26:39 | * | cheatfate_ joined #nim |
23:28:42 | * | yglukhov joined #nim |
23:28:59 | * | cheatfate quit (Ping timeout: 244 seconds) |
23:32:51 | * | yglukhov quit (Ping timeout: 248 seconds) |