00:00:06 | Araq | the error message used to be decent for this case. |
00:00:15 | Araq | and then we made Nim more expressive :P |
00:01:04 | PMunch | Well, that's a good thing :) |
00:02:04 | * | gunn joined #nim |
00:05:04 | krux02 | Araq, I can't use nimedit on arch: cannot load font: dejavu/DejaVuSansMono, it exists in the folder /usr/share/fonts/TTF/DejaVuSansMono.ttf |
00:07:38 | Araq | krux02: change the config then |
00:08:01 | Araq | cheatfate: omg, that bug was so weird :-) |
00:08:16 | Araq | generateHeaders(m) |
00:08:17 | Araq | generateThreadLocalStorage(m) |
00:08:22 | Araq | spot the error. |
00:10:17 | krux02 | ok didn't see there was a config file |
00:10:25 | krux02 | to what folder is the font relative to? |
00:12:14 | Araq | relative to the exe iirc, so give it an absolute path |
00:14:31 | cheatfate | Araq, looks good :) |
00:15:38 | * | gokr quit (Quit: Leaving.) |
00:17:45 | cheatfate | interesting i think json module is most popular :) |
00:18:13 | cheatfate | 17 contributors |
00:21:26 | krux02 | Araq: doesn't work with absolute path |
00:21:31 | krux02 | ~/Downloads/nimedit-0.94/ ./nimedit |
00:21:31 | krux02 | cannot load font: /usr/share/fonts/TTF/DejaVuSansMono.ttf |
00:21:31 | krux02 | █▓▒░arne@arne-thinkpad░▒▓██▓▒░ Do Mär 31 02:19:52 |
00:21:31 | krux02 | ~/Downloads/nimedit-0.94/ test -f /usr/share/fonts/TTF/DejaVuSansMono.ttf && echo 'file exits' || echo 'file does not exist' |
00:21:31 | krux02 | file exits |
00:21:33 | krux02 | █▓▒░arne@arne-thinkpad░▒▓██▓▒░ Do Mär 31 02:20:58 |
00:21:35 | krux02 | ~/Downloads/nimedit-0.94/ |
00:22:33 | Araq | maybe it can find the file but not read it? |
00:23:25 | * | BitPuffin|osx quit (Ping timeout: 268 seconds) |
00:24:45 | Araq | krux02: sorry I need to sleep now. I can build you a Linux version tomorrow. |
00:25:18 | krux02 | thanks a lot, I need to sleep, too |
00:25:47 | PMunch | Ugh, same here |
00:25:58 | PMunch | Night |
00:26:01 | * | PMunch quit (Quit: leaving) |
00:32:33 | * | GangstaCat quit (Quit: Leaving) |
00:34:58 | * | desophos quit (Remote host closed the connection) |
00:39:18 | * | enthus1ast1 joined #nim |
00:39:20 | * | enthus1ast quit (Read error: Connection reset by peer) |
00:50:04 | * | GangstaCat joined #nim |
01:05:40 | * | desophos joined #nim |
01:05:56 | reactormonk | Araq, time for some GNU/Windows - pretty sure Stallman is pissed. |
01:06:46 | reactormonk | On another note, you can now debug linux issues with nim on windows (at least if they're not GUI apps) |
01:07:32 | * | rgv151 joined #nim |
01:17:41 | * | fredrik92 quit (Ping timeout: 268 seconds) |
01:22:39 | * | brson quit (Ping timeout: 264 seconds) |
02:04:42 | * | Varriount joined #nim |
02:45:09 | * | nsf quit (Quit: WeeChat 1.4) |
02:46:52 | * | desophos_ joined #nim |
02:51:26 | * | desophos_ quit (Ping timeout: 250 seconds) |
03:28:55 | * | NimBot joined #nim |
03:29:08 | * | bup is now known as Guest59926 |
03:29:55 | * | gsingh93- joined #nim |
03:32:32 | * | jackkv joined #nim |
03:32:48 | * | darkf quit (Ping timeout: 246 seconds) |
03:32:48 | * | mnemonikk quit (Ping timeout: 246 seconds) |
03:32:48 | * | SianaGearz quit (Ping timeout: 246 seconds) |
03:32:49 | * | tymat quit (Ping timeout: 246 seconds) |
03:32:49 | * | gsingh93 quit (Ping timeout: 246 seconds) |
03:32:50 | * | boopsies quit (Ping timeout: 246 seconds) |
03:32:50 | * | gsingh93- is now known as gsingh93 |
03:32:56 | * | vqrs quit (Ping timeout: 246 seconds) |
03:32:56 | * | mal`` quit (Ping timeout: 246 seconds) |
03:33:26 | * | jackv quit (Ping timeout: 246 seconds) |
03:33:26 | * | huonw quit (Ping timeout: 246 seconds) |
03:33:35 | * | mal`` joined #nim |
03:33:36 | * | huonw joined #nim |
03:33:51 | * | mnemonikk joined #nim |
03:33:51 | * | mnemonikk quit (Changing host) |
03:33:51 | * | mnemonikk joined #nim |
03:35:03 | * | vqrs joined #nim |
03:37:50 | * | tymat joined #nim |
03:42:39 | * | pregressive joined #nim |
03:48:45 | * | arne joined #nim |
03:52:04 | * | krux02 quit (Ping timeout: 244 seconds) |
03:54:58 | * | arne quit (Remote host closed the connection) |
04:13:42 | * | endragor joined #nim |
04:17:25 | * | Jesin quit (Quit: Leaving) |
04:18:17 | * | darkf_ is now known as darkf |
04:21:18 | * | Jesin joined #nim |
04:34:34 | * | MyMind quit (Ping timeout: 240 seconds) |
04:49:30 | * | desophos quit (Read error: Connection reset by peer) |
04:50:58 | * | Sembei quit (Ping timeout: 244 seconds) |
04:59:10 | * | pregressive quit () |
05:20:45 | * | brson joined #nim |
05:34:24 | * | Sembei joined #nim |
05:34:48 | * | gokr joined #nim |
05:48:22 | * | Sembei quit (Ping timeout: 244 seconds) |
06:11:39 | * | gokr quit (Ping timeout: 260 seconds) |
06:12:02 | * | brson quit (Quit: leaving) |
06:15:14 | * | yglukhov joined #nim |
06:20:38 | * | endragor_ joined #nim |
06:23:58 | * | endragor quit (Ping timeout: 244 seconds) |
06:29:22 | * | MyMind joined #nim |
06:34:52 | * | Sembei joined #nim |
06:35:14 | * | kulelu88 joined #nim |
06:35:14 | * | kulelu88 quit (Changing host) |
06:35:14 | * | kulelu88 joined #nim |
06:39:26 | * | Sembei quit (Quit: WeeChat 1.5-dev) |
06:39:45 | * | gokr joined #nim |
06:42:36 | * | endragor_ quit (Remote host closed the connection) |
06:43:14 | * | endragor joined #nim |
06:53:45 | * | Demon_Fox quit (Quit: Leaving) |
06:59:52 | * | MyMind quit (Ping timeout: 252 seconds) |
07:20:05 | * | gokr quit (Quit: Leaving.) |
07:21:08 | * | fredrik92 joined #nim |
07:52:00 | * | dorei joined #nim |
07:56:31 | * | autumnl quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
08:20:01 | * | veganskaway is now known as vegansk |
08:33:36 | * | kulelu88 quit (Quit: Leaving) |
08:33:45 | * | Sembei joined #nim |
09:15:02 | * | enthus1ast1 quit (Ping timeout: 260 seconds) |
09:34:07 | * | Arrrr joined #nim |
09:43:07 | * | Senketsu quit (Ping timeout: 250 seconds) |
09:48:45 | * | nsf joined #nim |
10:40:50 | * | desophos joined #nim |
10:46:03 | * | desophos quit (Ping timeout: 276 seconds) |
11:07:07 | * | MyMind joined #nim |
11:08:46 | * | elrood joined #nim |
11:20:50 | * | gorgonzola74574 joined #nim |
11:20:50 | * | vqrs_ joined #nim |
11:22:16 | * | krux02 joined #nim |
11:22:39 | * | vqrs quit (Ping timeout: 244 seconds) |
11:22:40 | * | gorgonzolapasta quit (Ping timeout: 244 seconds) |
11:22:40 | * | mlitwiniuk quit (Ping timeout: 244 seconds) |
11:22:40 | * | gorgonzola74574 is now known as gorgonzolapasta |
11:22:45 | * | wuehlmau1 joined #nim |
11:22:50 | * | rgv151 quit (Ping timeout: 244 seconds) |
11:22:51 | * | wuehlmaus quit (Ping timeout: 244 seconds) |
11:23:27 | * | mlitwiniuk joined #nim |
11:31:52 | * | arnetheduck joined #nim |
11:34:26 | * | gokr joined #nim |
11:38:48 | * | krux02 quit (Quit: Verlassend) |
11:45:28 | * | gokr1 joined #nim |
11:45:28 | * | gokr quit (Write error: Connection reset by peer) |
11:55:57 | vegansk | yglukhov, hi! Are you online? |
12:01:13 | * | BitPuffin joined #nim |
12:02:22 | * | vegansk is now known as veganskaway |
12:47:59 | * | BitPuffin quit (Disconnected by services) |
12:48:01 | * | itPuffinB joined #nim |
12:49:19 | * | itPuffinB is now known as BitPuffin |
12:50:52 | * | BitPuffin quit (Disconnected by services) |
12:50:57 | * | itPuffinB joined #nim |
12:52:15 | * | itPuffinB is now known as BitPuffin |
12:53:26 | * | BitPuffin quit (Disconnected by services) |
12:53:29 | * | itPuffinB joined #nim |
12:54:48 | * | itPuffinB is now known as BitPuffin |
12:59:40 | * | BitPuffin quit (Disconnected by services) |
12:59:43 | * | itPuffinB joined #nim |
13:01:01 | * | itPuffinB is now known as BitPuffin |
13:05:25 | * | BitPuffin quit (Ping timeout: 244 seconds) |
13:11:58 | * | kier_ quit (Quit: Reconnecting) |
13:12:05 | * | kier joined #nim |
13:20:32 | * | BitPuffin joined #nim |
13:22:14 | * | darkf quit (Quit: Leaving) |
13:33:14 | yglukhov | vegansk, hey, i am now |
13:36:41 | * | GangstaCat quit (Quit: Leaving) |
13:38:28 | * | nsf quit (Quit: WeeChat 1.4) |
13:39:05 | * | nsf joined #nim |
13:46:11 | * | PMunch joined #nim |
13:46:22 | * | veganskaway is now known as vegansk |
13:47:52 | vegansk | yglukhov, PR allready merged, thank you :-) |
13:49:40 | yglukhov | yeah and thank you too =) |
13:52:11 | vegansk | btw, why jnim is versionless? |
13:54:30 | * | BitPuffin quit (Ping timeout: 244 seconds) |
13:54:44 | * | wuehlmau1 is now known as wuehlmaus |
13:57:23 | * | chrisheller quit (Remote host closed the connection) |
13:58:58 | * | maxcroud joined #nim |
14:05:10 | maxcroud | Hey, guys! I created chat in Telegram. So if you have an Telegram account you can join it. I don't know will this idea be popular, but I hope this can improve environment to solve problems. Here the link to join: https://telegram.me/joinchat/ACtV1AjQcNXlQ-99PxkBsw |
14:06:08 | * | BitPuffin joined #nim |
14:10:09 | Araq | hi maxcroud. |
14:10:22 | Araq | are you a bot? |
14:10:26 | maxcroud | no:D |
14:10:52 | PMunch | Poor spelling for a bot.. |
14:11:01 | Araq | what's the color of grass? |
14:11:19 | Arrrr | In winter |
14:11:21 | maxcroud | green, but in autumn maybe yellow, red |
14:11:33 | Araq | precise like a bot, hu? |
14:11:39 | Arrrr | lol |
14:11:40 | maxcroud | I'm from Russia. Sorry for my bad English |
14:11:49 | Araq | oh well, I will click on the link then. |
14:12:56 | Araq | "join group" doesn't work. do I need to 'get' it first? |
14:13:25 | maxcroud | Sure, you should have telegram account |
14:14:46 | vegansk | Araq, hi! i created the project for stdlib enhancements. and uint's parses is already there, so if it is undesired changes for stdlib, i can close PR 4013 :-) |
14:15:39 | Araq | I cannot follow. your PR is mostly fine. why would it be undesired? |
14:15:48 | vegansk | maxcroud, hi. where are you from? i'm from Novosibirsk |
14:16:18 | vegansk | Araq, ok :-) |
14:16:33 | maxcroud | Wow, nice to see russian guy) I'm from Staryy Oskol (Belgorodskaya oblast') |
14:18:35 | federico3 | why telegram? |
14:18:41 | Araq | vegansk: https://www.youtube.com/watch?v=lPV7ov6q-cM&feature=youtu.be&t=134 |
14:19:13 | Araq | ... not sure you understand the reference ... |
14:19:20 | maxcroud | federico3: do you have any other good options? |
14:19:51 | federico3 | maxcroud: IRC, email, anything widely supported (and possibly usable by Nim) |
14:22:21 | maxcroud | email is not comfortable for chatting, I think. IRC is already here and have small disadvantages such as attachments. I decided that telegram is better and created chat |
14:24:32 | PMunch | Just upload "attachments" elsewhere and send a link |
14:26:57 | maxcroud | it's not comfortably. that chat has history (I know about irc logs) and you can search through it |
14:31:14 | * | BitPuffin quit (Ping timeout: 244 seconds) |
14:31:24 | cheatfate | maxcroud, its your subjective opinion |
14:32:00 | EastByte | well, unfortunatly telegram channels often end up being used for shitchat |
14:32:52 | maxcroud | cheatfate: I said that it is my opinion |
14:34:51 | maxcroud | EastByte: channels and chats are different things. Anyhow even IRC can end up without appropriate control |
14:35:26 | maxcroud | can end up being used for shitchat* |
14:36:45 | EastByte | okay I agree, it's just that the chats I'm part of are being spamed with media and 'stickers' |
14:37:35 | Araq | anybody interested in getting --gc:stack into production quality? |
14:38:17 | Arrrr | I'm interested to know what it is about? |
14:38:30 | Araq | it's a nice rewarding project, very useful and not too hard at the same time. |
14:40:06 | Araq | Arrrr: it replace the GC with a bump pointer allocator that can be used as a stack. |
14:41:12 | Arrrr | That sound's strange. Do you need some testers? |
14:41:22 | Arrrr | *sounds |
14:41:38 | Araq | I need somebody to work on it. I have plenty of other Nim-related enhancements in the pipeline. |
14:41:52 | Araq | the idea is something like: |
14:42:09 | Araq | let oldTop = gcstackTop() |
14:42:10 | * | BitPuffin joined #nim |
14:42:29 | Araq | foo("bar" & "baz") |
14:42:40 | Araq | # perform lots of temporary allocations |
14:43:17 | Araq | gcstackSet(oldTop) # free temporary allocations in O(1) |
14:43:54 | Arrrr | humm |
14:44:16 | Arrrr | Has it been done before? |
14:44:38 | Araq | yeah. it's called "obstacks" in GCC land. |
14:45:18 | Araq | there are large overlappings with "region based memory management" |
14:46:03 | vegansk | Araq, this is Novosibirsk. The guitar player is me :-) https://youtu.be/Dnv_QQNlLSs?list=PL84DbFk97pGGfg90QrkWk19VgT9KFZbSk |
14:46:12 | * | mog left #nim ("Leaving") |
14:46:30 | Araq | really? |
14:47:12 | * | BitPuffin quit (Disconnected by services) |
14:47:17 | * | itPuffinB joined #nim |
14:48:20 | vegansk | yes :-) |
14:48:26 | Araq | Arrrr: it's unsafe if the temporary allocation escapes the lifetime that you explicitly assigned to it via gcstackSet, but we have a workable escape tracking solution too. |
14:48:35 | * | itPuffinB is now known as BitPuffin |
14:49:18 | Arrrr | Sounds like the kind of mechanics rustacians would love |
14:49:28 | * | ozra joined #nim |
14:49:35 | * | ozra left #nim (#nim) |
14:49:38 | Arrrr | cool gibson |
14:50:00 | vegansk | Arrrr, thanks :-) |
14:51:18 | Araq | Arrrr: have a look at lib/system/gc_stack.nim |
14:55:56 | * | BitPuffin quit (Disconnected by services) |
14:55:58 | * | itPuffinB joined #nim |
14:57:16 | * | itPuffinB is now known as BitPuffin |
15:00:42 | * | pregressive joined #nim |
15:01:10 | Arrrr | And how much work does it need to finish it? I wish i knew how to do it, looks short |
15:06:50 | * | maxcroud quit (Quit: Page closed) |
15:09:50 | * | chrisheller joined #nim |
15:12:17 | * | dorei left #nim (#nim) |
15:16:33 | * | pregressive quit (Read error: Connection reset by peer) |
15:16:40 | * | pregress_ joined #nim |
15:18:05 | * | Sembei quit (Ping timeout: 250 seconds) |
15:19:15 | * | anoisz joined #nim |
15:20:35 | * | Sembei joined #nim |
15:21:21 | * | pregressive joined #nim |
15:21:35 | * | pregress_ quit (Read error: Connection reset by peer) |
15:22:56 | * | BitPuffin quit (Remote host closed the connection) |
15:23:15 | * | BitPuffin joined #nim |
15:25:02 | * | vegansk is now known as veganskaway |
15:33:50 | * | enthus1ast joined #nim |
15:33:58 | * | Sembei quit (Max SendQ exceeded) |
15:36:43 | * | Sembei joined #nim |
15:37:55 | * | GangstaCat joined #nim |
15:38:41 | * | desophos joined #nim |
15:41:45 | * | raimo joined #nim |
15:42:01 | * | raimo quit (Client Quit) |
15:51:02 | Araq | Arrrr: disable the deepCopy stuff for now |
15:51:21 | Araq | - implement newObj, growObj etc properly. |
15:51:58 | * | Sembei quit (Ping timeout: 248 seconds) |
15:53:39 | yglukhov | Araq: can i weaklink to an extern proc somehow? To check proc existance in runtime? |
15:54:37 | * | arnetheduck quit (Ping timeout: 260 seconds) |
15:58:54 | * | anoisz quit (Read error: Connection reset by peer) |
15:59:19 | * | anoisz joined #nim |
16:02:48 | * | Trustable joined #nim |
16:20:29 | * | PMunch quit (Ping timeout: 268 seconds) |
16:20:36 | * | Demon_Fox joined #nim |
16:21:02 | * | yglukhov quit (Remote host closed the connection) |
16:26:11 | * | anoisz quit (Ping timeout: 248 seconds) |
16:26:40 | * | Jesin quit (Quit: Leaving) |
16:29:20 | * | BitPuffin quit (Remote host closed the connection) |
16:29:39 | * | BitPuffin joined #nim |
16:31:36 | * | Sembei joined #nim |
16:32:38 | * | anoisz joined #nim |
16:32:38 | * | anoisz quit (Read error: Connection reset by peer) |
16:35:15 | * | anoisz joined #nim |
16:35:15 | * | anoisz quit (Read error: Connection reset by peer) |
16:38:02 | * | anoisz joined #nim |
16:39:52 | cheatfate | do we have something like stdout.flush() |
16:49:05 | * | desophos quit (Remote host closed the connection) |
16:52:52 | * | desophos joined #nim |
16:56:26 | * | brson joined #nim |
16:57:50 | Arrrr | There is a "flusFile" in system |
17:00:44 | * | autumnl joined #nim |
17:08:15 | * | BitPuffin quit (Ping timeout: 244 seconds) |
17:10:04 | * | Sembei quit (Ping timeout: 264 seconds) |
17:12:00 | * | Trustable quit (Remote host closed the connection) |
17:12:53 | * | Trustable joined #nim |
17:13:02 | * | lqdc quit (Ping timeout: 248 seconds) |
17:30:10 | cheatfate | Arrrr, "flushFile" but thank you anyway |
17:32:20 | * | BitPuffin joined #nim |
17:34:46 | * | filcuc joined #nim |
17:35:34 | filcuc | hi all, how dynlib works on windows? cause i put the .dll in the same forlder of the executable and i still get could not load myDllName.dll |
17:35:36 | filcuc | :( |
17:36:23 | cheatfate | filcuc, what version of compiler u use? |
17:36:48 | filcuc | 0.13.0 |
17:37:15 | filcuc | cheatfate: 0.13.0 |
17:38:48 | cheatfate | ok, is it possible to dump export table of your dll and also your full pragma for imported function |
17:38:55 | cheatfate | needed |
17:40:26 | filcuc | cheatfate: ok solved, i think that it caused by the missing dependencies of my dll (that links other dlls) |
17:44:09 | filcuc | however i see that using something like (mylib.dll|libmylib.dll) as string for the dynlib macro doesn't work on windows |
17:44:24 | filcuc | if i use only mylib.dll or libmylib.dll it works :| |
17:45:35 | * | yglukhov joined #nim |
17:46:24 | Araq | yglukhov: via the dynlib module, but I wouldn't use it unless there is absolutely no other way. |
17:46:42 | Araq | nothing is more annoying than deps that are loaded "on demand" |
17:47:13 | * | pafmaf joined #nim |
17:47:14 | Araq | filcuc: the | implementation is not tied to Posix so it should work. |
17:47:26 | filcuc | :| |
17:48:31 | filcuc | i get could not load: libDOtherSide.dll|DOtherSide.dll |
17:49:35 | * | yglukhov quit (Ping timeout: 244 seconds) |
17:52:58 | filcuc | Araq: i trust you but that's what i'm seeing right now |
17:53:19 | Araq | don't forget the () around the | expression |
18:02:58 | * | desophos quit (Remote host closed the connection) |
18:05:53 | * | pafmaf quit (Quit: Verlassend) |
18:06:17 | * | Sembei joined #nim |
18:07:06 | * | yglukhov joined #nim |
18:10:04 | * | desophos joined #nim |
18:12:53 | * | Demon_Fox quit (Quit: Leaving) |
18:14:17 | * | krux02 joined #nim |
18:15:59 | * | pregressive quit (Read error: Connection reset by peer) |
18:16:04 | * | pregress_ joined #nim |
18:18:44 | * | Matthias247 joined #nim |
18:22:21 | * | enthus1ast quit (Ping timeout: 276 seconds) |
18:25:17 | * | Sembei quit (Ping timeout: 244 seconds) |
18:31:42 | * | elrood quit (Quit: Leaving) |
18:34:35 | * | endragor quit (Ping timeout: 244 seconds) |
18:43:05 | * | Ven joined #nim |
18:48:20 | filcuc | ok i've a "complex" currently i'm getting "The application has requested the Runtime to terminate in an unusual way." |
18:48:53 | filcuc | the thing doesn't happen if i don't include my module |
18:49:27 | filcuc | so this is caused by the load library caused by dynlib |
18:50:01 | filcuc | (however in my main.nim i don't call any functions of my module) |
18:50:34 | filcuc | so i've a complete empty main function except that i import my module that has some importc, dynlib functions |
18:51:12 | filcuc | the weird thing it's that i don't get this error if i compile with "nim cpp"instead of "nim c" |
18:53:48 | filcuc | the library i load dynamically export its function with __declspec(dllexport) |
18:53:56 | filcuc | should i also add __cdecl ? |
18:54:30 | cheatfate | filcuc, could you dump export table of your dll? |
18:54:51 | filcuc | i'll try never done that |
18:56:36 | cheatfate | filcuc, the problem is not in nim's code, because nim is just using loadlibrary getprocaddress... |
18:57:03 | cheatfate | so if you want to test it write c program and make LoadLibrary and GetProcAddress... |
18:57:38 | filcuc | cheatfate: sure i'm not arguing that is a nim's fault |
18:58:31 | cheatfate | ok try to "DUMPBIN.EXE /EXPORTS <yourdll.dll>" |
18:58:50 | cheatfate | then gist result please |
18:58:52 | filcuc | but i know that here there're really people who know low level stuff more than me :) |
18:59:35 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
19:00:24 | filcuc | cheatfate: ok |
19:03:50 | filcuc | cheatfate: is it a problem if i use objdump since i'm compiling with mingw32 and i don't have vs installed |
19:03:50 | filcuc | ? |
19:04:30 | * | BitPuffin quit (Ping timeout: 244 seconds) |
19:04:38 | * | desophos quit (Remote host closed the connection) |
19:04:44 | cheatfate | i dont know how to use objdump if you can dump exports table with it than ok |
19:05:28 | filcuc | cheatfate: otherwise i can use dependency walker |
19:07:16 | * | anoisz quit (Read error: Connection reset by peer) |
19:08:48 | filcuc | cheatfate: https://gist.githubusercontent.com/filcuc/d3bfe467d15c4056b05adaf3d18efdd8/raw/9df9b5729c5eb9dffb50c14ee6010da04652976f/gistfile1.txt |
19:09:38 | cheatfate | so what module? |
19:09:50 | filcuc | LIBDOTHERSIDE.dll |
19:09:57 | filcuc | (the first one) |
19:10:39 | * | Ven joined #nim |
19:10:40 | cheatfate | looks like all good in exports |
19:11:22 | cheatfate | try to add __cdecl |
19:11:27 | cheatfate | or __stdcall |
19:11:35 | filcuc | cheatfate: well actually i've a simple .h file with export "C" and __decltype(dllexport) |
19:12:12 | cheatfate | filcuc, now u must be sure that calling convention in C file are equal with nim's proc declaration |
19:13:01 | filcuc | cheatfate: on the nim side i'm just using {.importc, dynlib.} nothing more |
19:13:40 | cheatfate | filcuc, its bad you need to declare calling convention |
19:14:09 | * | Ven quit (Client Quit) |
19:14:24 | filcuc | cheatfate: ok i'm try forcing cdecl calling convention |
19:14:35 | filcuc | *i'll* |
19:15:01 | cheatfate | stdcall would be better |
19:16:45 | * | Jesin joined #nim |
19:19:45 | filcuc | cheatfate: mind to share why? :) |
19:20:45 | cheatfate | filcuc, use google |
19:25:25 | filcuc | cheatfate: in reality i was wrong: my function are already {.cdecl, importc, dynlib.} |
19:25:56 | filcuc | cheatfate: so i was already specifing the cdecl calling convention |
19:26:04 | cheatfate | and in c too? |
19:27:23 | cheatfate | you need to be sure that your exported function uses same calling convention as imported function |
19:28:20 | filcuc | cheatfate: omg on the nim side i've {.cdecl, importc, dynlib} and on the dll side __decltype(exportdll) void __cdecl myFunction(...) |
19:29:36 | filcuc | i'll try to remove leave only one importc just to be sure |
19:29:42 | cheatfate | then you need to do some google/stackoverflow investigation |
19:29:50 | cheatfate | about your error |
19:30:29 | filcuc | cheatfate: thank you anyway ;) |
19:33:21 | filcuc | cheatfate: given that maybe some goes wrong due the fact that my .dll export some function with the c calling convenction but itself links some C++ functions |
19:33:24 | * | yglukhov quit (Remote host closed the connection) |
19:34:39 | filcuc | since by compiling with nim cpp i don't get any error |
19:38:12 | Araq | filcuc: sounds more like a name mangling issue |
19:38:31 | Araq | you need extern "C" in addition to __decltype(exportdll) |
19:38:48 | krux02 | anyone here uning emacs for nim editing? |
19:39:15 | * | Ven joined #nim |
19:39:32 | filcuc | Araq: i do that :( https://github.com/filcuc/DOtherSide/blob/NoPtrPtr/lib/include/DOtherSide/DOtherSide.h |
19:40:13 | filcuc | Araq: and here you can read the export functions https://gist.githubusercontent.com/filcuc/d3bfe467d15c4056b05adaf3d18efdd8/raw/9df9b5729c5eb9dffb50c14ee6010da04652976f/gistfile1.txt |
19:40:37 | krux02 | I just enable nim-mode, and company-mode, and as soon as I get in a situation where autocompletion could be nice, emacs freezes for a few seconds instead of giving me autocompletion |
19:42:24 | * | Arrrr quit (Quit: WeeChat 1.4) |
19:44:48 | Araq | Error: At least one required implicit or forwarded dependency was not found. |
19:44:48 | Araq | Error: Modules with different CPU types were found. |
19:44:48 | Araq | Warning: At least one delay-load dependency module was not found. |
19:44:54 | Araq | filcuc ^ |
19:46:04 | filcuc | Araq: it's not that problem, because i've that stuff in my path on my command line |
19:46:27 | filcuc | Araq: it's just that i don't have the Qt stuff on my globa PATH variable |
19:46:50 | Araq | well if you compile via C++ it loads some C++ dependency. |
19:46:57 | filcuc | Araq: i'm launching my executable by first setting the PATH=%PATH%;%QTDIR% |
19:46:59 | Araq | if you compile via C it doesn't do that. |
19:47:22 | Araq | your DLL depends on some C++ DLL that is loaded when compiling to C++. |
19:47:43 | Araq | hence 'nim cpp' works and 'nim c' fails. |
19:47:49 | Araq | just a theory of course. |
19:48:34 | filcuc | Araq: :| i thought that by using LoadLibrary from my C executable also the dependent dll gets loaded |
19:49:23 | * | ics joined #nim |
19:50:05 | filcuc | Araq: i mean..my library has is written in C++ but has a C interface. My nim executable is in C and dynamically call the exported C functions... i don't get (because of my lack of knowledge) what it's wrong |
19:50:23 | filcuc | Araq: maybe some global initialization/deinitialization in the main function |
19:50:29 | Araq | do you compile with Visual Studio? |
19:50:37 | filcuc | mingw32 |
19:50:47 | filcuc | the same that compiled the Qt libraries |
19:50:55 | filcuc | for not causing mismatch |
19:52:13 | filcuc | btw the error i get from microsoft is shown only on exit |
19:52:20 | filcuc | so when i close the UI |
19:52:34 | filcuc | and not on start of while using the UI |
19:52:56 | * | brson_ joined #nim |
19:54:38 | filcuc | Araq: i don't get any error if i "nim c main.nim" and i change {.importc} to {.importcpp.} :| |
19:55:40 | * | brson quit (Ping timeout: 244 seconds) |
19:58:10 | Araq | that's not surprising, importcpp triggers compilation to C++ for the files that require it |
20:02:14 | * | GangstaCat quit (Quit: Leaving) |
20:02:30 | * | chrisheller quit (Remote host closed the connection) |
20:03:34 | * | chrisheller joined #nim |
20:15:43 | * | yglukhov joined #nim |
20:16:33 | * | desophos joined #nim |
20:21:25 | * | irrequietus joined #nim |
20:27:55 | * | desophos quit (Remote host closed the connection) |
20:28:14 | * | desophos joined #nim |
20:37:56 | * | Jesin quit (Quit: Leaving) |
20:46:43 | * | GangstaCat joined #nim |
20:49:52 | * | enthus1ast joined #nim |
20:57:10 | filcuc | Araq: maybe this is similar to my issue http://stackoverflow.com/questions/28810454/mingw-application-terminates-in-unusual-way-after-finishing-once-a-dll-was |
21:00:01 | filcuc | Araq: is there a way to see the actual command that nim use for invoking the C compiler? |
21:01:40 | gokr1 | --verbosity:3 does it for me, on Linux at least. |
21:06:42 | filcuc | gokr1: thanks |
21:08:07 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:28:31 | * | chrisheller quit (Remote host closed the connection) |
21:32:21 | * | desophos_ joined #nim |
21:33:02 | * | desophos_ quit (Remote host closed the connection) |
21:35:18 | * | desophos quit (Ping timeout: 246 seconds) |
21:35:18 | * | Demon_Fox joined #nim |
21:41:29 | * | JStoker quit (Ping timeout: 260 seconds) |
21:42:22 | * | Jesin joined #nim |
21:43:51 | * | filcuc quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) |
21:48:46 | * | darkf joined #nim |
21:48:53 | * | JStoker joined #nim |
21:51:00 | * | PMunch joined #nim |
21:54:59 | * | desophos joined #nim |
22:00:44 | * | Trustable quit (Remote host closed the connection) |
22:03:28 | * | pregress_ quit (Ping timeout: 264 seconds) |
22:10:26 | * | Varriount_ joined #nim |
22:10:26 | * | Varriount quit (Disconnected by services) |
22:10:41 | federico3 | Any msgpack user? |
22:24:50 | cheatfate | Araq, if you add design like sublime text to your nim-editor, i will buy it :) |
22:25:06 | federico3 | which module should be used, parseopt or parseopt2? |
22:41:48 | federico3 | parseopt |
22:42:59 | * | irrequietus quit () |
22:57:31 | * | chrisheller joined #nim |
23:04:12 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:11:41 | * | yglukhov quit (Remote host closed the connection) |
23:16:07 | * | fredrik92 quit (Ping timeout: 252 seconds) |
23:21:22 | * | vendethiel- joined #nim |
23:22:17 | * | PMunch quit (Quit: leaving) |
23:23:16 | * | vendethiel quit (Ping timeout: 264 seconds) |
23:25:01 | cheatfate | is it possible to pass nil value to parameter a2 of function posix.sigprocmask*(a1: cint, a2, a3: var Sigset): cint ? |
23:30:26 | * | mal`` quit (K-Lined) |
23:31:35 | * | mal`` joined #nim |
23:32:50 | federico3 | how to receive and handle SIGTERM? |
23:33:43 | def- | cheatfate: for that the typo would probably have to be ptr Sigset |
23:34:58 | cheatfate | def-, or maybe add support nil value for "var Type" |
23:37:01 | def- | cheatfate: sounds strange, var should always have a value |
23:37:11 | def- | federico3: signal proc in posix module, like in C |
23:39:11 | federico3 | http://nim-lang.org/docs/posix.html#signal,cint,proc%28cint%29 this one? |
23:40:13 | federico3 | there's no documentation there. Other signals, like SIGINT are handled by default: https://github.com/nim-lang/Nim/blob/devel/lib/system/excpt.nim#L321 |
23:41:37 | cheatfate | federico3, sigaction, sigwait sigtimedwait |
23:42:07 | krux02 | def-: which editor do you use to write nim code? |
23:42:22 | federico3 | cheatfate: what about them? |
23:42:33 | def- | krux02: vim |
23:42:50 | cheatfate | federico3, you can use them to get SIGTERM signal, different approaches :) |
23:42:56 | def- | federico3: well, it's just a posix wrapper, you can read the posix or gnu documentation |
23:43:42 | federico3 | def-: I know how posix signal works but I was expecting SIGTERM to be handled by default like SIGINT or at least be documented as a typical use case |
23:44:06 | krux02 | ok thanks, is it good? Currently I try to use the emacs-mode for nim, because it has the most commits, much more as aporia or the vim plugin |
23:44:14 | * | ics quit (Quit: Connection closed for inactivity) |
23:44:48 | def- | krux02: no idea, haven't used another editor for a long time |
23:45:59 | krux02 | I mean do you have on the fly error highlighting, code completion and and a debugger frontend, where you can set breakpoints? |
23:47:11 | krux02 | I used vim for half a year everyday and my conclusion is, I don't like it. |
23:49:29 | * | fredrik92 joined #nim |
23:49:49 | * | Jesin quit (Ping timeout: 260 seconds) |
23:50:09 | * | ics joined #nim |
23:50:34 | * | fredrik92 quit (Read error: Connection reset by peer) |
23:51:19 | federico3 | any way we can raise an exception on SIGTERM, e.g. around here? https://github.com/nim-lang/Nim/blob/devel/lib/system/excpt.nim#L318 |