00:14:57 | * | Kingsquee joined #nim |
00:16:51 | * | bjz joined #nim |
00:28:25 | * | zidane_g_ quit (Quit: Connection closed for inactivity) |
00:49:07 | * | PMunch joined #nim |
01:01:02 | * | desophos joined #nim |
01:02:50 | * | Trioxin quit (Read error: Connection reset by peer) |
01:03:15 | * | Trioxin joined #nim |
01:26:43 | * | chemist69 quit (Ping timeout: 245 seconds) |
01:32:36 | * | Kingsquee quit (Ping timeout: 256 seconds) |
01:39:27 | * | arnetheduck quit (Remote host closed the connection) |
01:40:09 | * | chemist69 joined #nim |
01:50:14 | * | tinAndi quit (Quit: ChatZilla 0.9.92 [Firefox 49.0.1/20160922113459]) |
02:03:18 | * | starbux joined #nim |
02:04:36 | * | Trioxin quit (Ping timeout: 260 seconds) |
02:11:25 | * | dddddd quit (Ping timeout: 260 seconds) |
02:20:21 | * | Kingsquee joined #nim |
02:24:19 | * | dddddd joined #nim |
03:02:10 | * | PMunch quit (Quit: leaving) |
03:03:21 | * | Trioxin joined #nim |
03:03:30 | * | Trioxin quit (Client Quit) |
03:04:24 | * | starbux quit (Ping timeout: 250 seconds) |
03:09:49 | * | leovoel joined #nim |
03:10:06 | * | leovoel quit (Client Quit) |
03:28:15 | * | chemist69 quit (Ping timeout: 250 seconds) |
03:30:37 | * | chemist69 joined #nim |
03:31:20 | * | dddddd quit (Quit: Hasta otra..) |
03:49:10 | * | Kingsquee quit (Ping timeout: 256 seconds) |
03:54:28 | * | mitai___ quit (Quit: Konversation terminated!) |
04:05:11 | * | Demon_Fox quit (Quit: Leaving) |
04:19:01 | * | kulelu88 quit (Quit: Leaving) |
04:22:23 | jivank[m] | I am trying to using osproc.startProcess to control an external program. But when I run my project in a docker container it can't successfully terminate the process it starts. When I kill the process manually it becomes defunct. So I need implement a way to reap child processes in my nim app? |
04:28:58 | * | HakanD__ joined #nim |
04:36:43 | cheatfate | jivank[m], this is Unix specific stuff, you need to waitForExit() process which calls waitpid() underneath, otherwise you will get your zombies |
04:37:38 | cheatfate | hmm |
04:37:57 | cheatfate | wait i'm bad in reading your question |
04:38:20 | cheatfate | do you know why it can't terminate process? |
04:39:03 | cheatfate | do you have send kill() and/or terminate() to child process? |
04:40:52 | * | Kingsquee joined #nim |
05:09:20 | * | Kingsquee quit (Ping timeout: 260 seconds) |
05:14:21 | * | Kingsquee joined #nim |
05:54:42 | * | HakanD__ quit (Quit: Be back later ...) |
05:55:15 | * | HakanD__ joined #nim |
05:59:50 | * | HakanD__ quit (Ping timeout: 244 seconds) |
06:36:26 | jivank[m] | cheatfate: yes I do, and I follow with waitForExit |
06:37:21 | cheatfate | jivank[m], have you tried terminate? |
06:38:12 | cheatfate | and better kill i think |
06:38:37 | cheatfate | i'm always confuse about them |
06:39:08 | cheatfate | i think terminate() which uses SIGTERM can be catched by child process, but kill() which uses SIGKILL must work |
06:39:42 | cheatfate | because SIGTERM can be ignored by child process, but SIGKILL cannot be ignored |
06:39:59 | ftsf | shouldn't use SIGKILL unless something is very wrong |
06:41:56 | cheatfate | ftsf, if child process handle SIGTERM and got neverending story inside, then you can't kill him in other way |
06:42:39 | ftsf | sure use SIGKILL if there's a problem, but shouldn't be used under normal circumstances. if your application relies on using SIGKILL, should really fix that. |
06:46:39 | cheatfate | ftsf, i think jivank[m]'s child process has ``unknown nature``. |
06:54:54 | jivank[m] | https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/ |
06:55:01 | jivank[m] | perhaps it might be related to that? |
06:57:19 | jivank[m] | i tried that image and it made no difference though |
07:01:43 | jivank[m] | ill give it a shot on a real system |
07:03:10 | * | nsf joined #nim |
07:54:50 | * | vqrs quit (Ping timeout: 268 seconds) |
07:57:18 | * | gokr joined #nim |
07:57:30 | * | vqrs joined #nim |
08:00:42 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
08:06:23 | * | bjz joined #nim |
08:35:21 | * | gokr quit (Ping timeout: 244 seconds) |
08:36:47 | * | Matthias247 joined #nim |
08:47:27 | * | nsf quit (Quit: WeeChat 1.5) |
08:48:35 | * | yglukhov joined #nim |
08:49:34 | * | themagician joined #nim |
08:53:13 | * | fredrik92 joined #nim |
08:56:19 | * | planhths joined #nim |
09:17:47 | * | HakanD__ joined #nim |
09:18:58 | * | HakanD___ joined #nim |
09:22:16 | * | HakanD__ quit (Ping timeout: 250 seconds) |
09:30:52 | * | enthus1ast joined #nim |
09:36:35 | * | EastByte_ is now known as EastByte |
09:38:33 | * | yglukhov quit (Remote host closed the connection) |
09:46:03 | * | yglukhov joined #nim |
09:52:39 | * | pafmaf joined #nim |
09:54:33 | * | yglukhov quit (Remote host closed the connection) |
09:56:42 | * | planhths quit (Quit: Konversation terminated!) |
10:06:18 | * | ARCADIVS quit (Quit: ARCADIVS) |
10:11:14 | * | HakanD___ quit (Quit: Be back later ...) |
10:11:41 | * | HakanD___ joined #nim |
10:13:20 | * | HakanD____ joined #nim |
10:13:30 | * | HakanD___ quit (Read error: Connection reset by peer) |
10:59:03 | * | irrequietus joined #nim |
11:06:52 | * | enthus1ast quit (Ping timeout: 260 seconds) |
11:07:01 | * | enthus1ast joined #nim |
11:48:06 | * | elrood joined #nim |
11:49:42 | * | planhths joined #nim |
11:56:16 | * | couven92 joined #nim |
11:56:41 | * | fredrik92 quit (Disconnected by services) |
11:57:08 | * | couven92 is now known as fredrik92 |
12:01:30 | * | irrequietus quit (Ping timeout: 244 seconds) |
12:22:54 | * | HakanD____ quit (Quit: Be back later ...) |
12:23:22 | * | HakanD____ joined #nim |
12:25:05 | * | Calinou_ is now known as Calinou |
12:27:01 | * | Ven joined #nim |
12:27:24 | * | dddddd joined #nim |
12:27:40 | * | enthus1ast quit (Ping timeout: 256 seconds) |
12:53:05 | * | bjz_ joined #nim |
12:54:46 | * | bjz quit (Ping timeout: 250 seconds) |
12:57:58 | * | desophos quit (Read error: Connection reset by peer) |
13:02:08 | * | Ven quit (Ping timeout: 250 seconds) |
13:03:34 | * | Ven joined #nim |
13:06:36 | * | Ven quit (Read error: Connection reset by peer) |
13:06:46 | * | Ven joined #nim |
13:17:27 | * | Ven quit (Ping timeout: 244 seconds) |
13:20:25 | * | Ven joined #nim |
13:21:16 | * | GustavoLapasta joined #nim |
13:31:28 | cheatfate | dom96, it will be hard to make 100% test unit |
13:31:59 | cheatfate | i've got it while debugging my asynchornous pipes |
13:35:35 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
13:37:55 | * | irrequietus joined #nim |
13:42:34 | * | zaquest quit (Read error: Connection reset by peer) |
13:42:56 | * | kunev quit (Quit: е те!) |
13:45:01 | * | zaquest joined #nim |
13:45:04 | dom96 | cheatfate: can we get at least a partial unit test? |
13:45:34 | cheatfate | dom96, but this test will be useless :) |
13:47:58 | dom96 | meh, alright. I'll merge it after 0.15.2 is released. |
13:51:35 | cheatfate | then my asyncproc.nim dependency will be 0.15.2... |
13:58:50 | cheatfate | dom96, why only after 0.15.2? |
13:58:58 | * | Sentreen joined #nim |
13:59:36 | dom96 | Because I don't want to introduce accidental regressions |
14:01:15 | * | HakanD____ quit (Quit: Be back later ...) |
14:01:16 | cheatfate | this patch remove accidental very old regression |
14:01:38 | dom96 | okay, i'll merge it |
14:07:52 | * | Matthias247 quit (Read error: Connection reset by peer) |
14:08:23 | dom96 | Araq's code baffles me sometimes |
14:09:17 | dom96 | Araq: Do you really dislike typing this much that you must redefine parameters? https://github.com/nim-lang/Nim/blob/devel/tools/niminst/niminst.nim#L625 |
14:28:53 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:30:14 | * | Ven quit (Read error: Connection reset by peer) |
14:30:27 | * | Ven joined #nim |
14:40:43 | * | PMunch joined #nim |
14:45:17 | * | Ven quit (Read error: Connection reset by peer) |
14:45:36 | * | Ven joined #nim |
14:50:04 | Araq | dom96: hmm? why redefined parameters? it's dest vs destFile |
14:50:32 | Araq | and it's not about typing, it's common subexpression elimination afaict |
14:50:55 | dom96 | no, I just changed it, sec |
14:51:13 | dom96 | https://github.com/nim-lang/Nim/blob/00b749c41810efe8169e5eeaea932ee63024738d/tools/niminst/niminst.nim#L625 |
14:52:03 | Araq | that's because I know template parameters are replaced inline and can cause multiple evaluations |
14:52:50 | dom96 | then why not just use a proc? |
14:53:27 | dom96 | Anyway, hopefully CI should be fixed soon |
14:54:35 | Araq | hmm too difficult to explain, iirc i wanted to write it dfifferently |
14:54:41 | Araq | where only a template would have worked |
14:57:47 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:59:43 | cheatfate | Araq, please tell me honestly is it hard to implement openarrays for closures? or its impossible? |
15:02:12 | Araq | the compiler could copy it into sequence and capture that |
15:02:39 | Araq | it needs to be on the heap and openArray is not necessarily on the heap |
15:02:45 | Araq | so what else should it do? |
15:07:02 | cheatfate | Araq, so make openarrays with same semantic as for procedures is not possible for closures? |
15:07:53 | Araq | yes, it is not possible. |
15:11:03 | cheatfate | thanks |
15:11:29 | * | HakanD____ joined #nim |
15:12:12 | cheatfate | Araq, and asyncproc was made :) but now i will try to make a project based on it, so maybe i will change some api and behavior :) |
15:12:44 | * | Sembei joined #nim |
15:13:14 | Xe | #?braces looks really interesting |
15:13:52 | Xe | and tbh i am kind of amazed by how simple a lot of the compiler changes are |
15:14:42 | * | kunev joined #nim |
15:15:04 | Araq | Xe the blog post about this patch is still not done -.- |
15:15:32 | Xe | granted |
15:15:51 | dom96 | Araq: About that survey, are you going to make a Google Survey for it? |
15:18:15 | Araq | dom96: I'm leaving this up to you :-) |
15:18:43 | Xe | i've noticed several references to a profiler in the compiler source code, how do I activate it? |
15:19:13 | dom96 | Araq: lol, ok. But you know, it really isn't that difficult. |
15:27:52 | * | HakanD____ quit (Ping timeout: 256 seconds) |
15:32:27 | * | HakanD____ joined #nim |
15:35:31 | * | Trustable joined #nim |
15:55:03 | * | PMunch quit (Quit: leaving) |
15:57:47 | dom96 | Araq: GitLab CI deployments are now fixed |
15:58:42 | * | HakanD____ quit (Quit: Be back later ...) |
15:59:09 | Araq | wow, what was the problem? |
15:59:19 | * | HakanD____ joined #nim |
16:01:06 | dom96 | csources weren't built prior to ./koch zip execution |
16:03:29 | * | HakanD____ quit (Ping timeout: 252 seconds) |
16:05:06 | Araq | why would they? the zip doesn't contain the C sources |
16:07:04 | dom96 | No? https://github.com/nim-lang/Nim/blob/devel/tools/niminst/niminst.nim#L637 |
16:16:08 | * | irrequietus quit () |
16:16:20 | * | irrequietus joined #nim |
16:20:23 | Araq | I suppose these .bat files should not be in the .zip then |
16:23:41 | * | Demos joined #nim |
16:36:09 | * | chemist69 quit (Ping timeout: 260 seconds) |
16:36:31 | * | chemist69 joined #nim |
16:45:59 | * | Salewski joined #nim |
16:48:10 | Salewski | Araq, will it be possible to mix braces and indent syntax for blocks, or can one module use only braces or only indent style? |
16:49:13 | * | confundus joined #nim |
16:49:44 | Salewski | I think mixing would be nice -- indent users may use braces for very long blocks, and {} users will learn that indent is nice. |
16:56:35 | Salewski | Is there a sqr() or pow() function available for integers? I have to square a large integer expression... |
17:04:56 | * | Matthias247 joined #nim |
17:17:38 | * | libman joined #nim |
17:21:51 | * | confundus quit (Quit: leaving) |
17:34:07 | * | nsf joined #nim |
17:43:02 | FromGitter | <BontaVlad> Hello everybody, quick question: can I check if my variable supports iteration? |
17:45:16 | dom96 | BontaVlad: What's your use case? |
17:45:33 | FromGitter | <BontaVlad> I have a Pixel variant object |
17:45:59 | FromGitter | <BontaVlad> one kind is val: int, others are tuple[r, g, b] |
17:46:09 | FromGitter | <BontaVlad> and tuple[r,g,b,a] |
17:46:55 | FromGitter | <BontaVlad> When its time to dump it to a file if it's just an int write it, else for e in iterator: write(e) |
17:53:46 | dom96 | why not just check the kind? |
17:54:21 | FromGitter | <BontaVlad> I could but I also wanted to find out more stuff about nim :) |
17:59:39 | * | yglukhov joined #nim |
18:03:53 | Demos | you could use concepts for this, but I don't know how stable they are |
18:04:19 | Demos | they are exactly what you're asking for though, you define a type and a value is of that type if some code you write compiles |
18:05:36 | FromGitter | <BontaVlad> Great, ty @Demos, @dom96 |
18:17:58 | Araq | Salewski: mixing is not allowed and for long blocks '#end if' comments are perfectly fine |
18:20:35 | Salewski | Yes, but mixing would provide a soft path from {} to indent mode. I think that is what we want? Is support of mixing difficult? |
18:21:35 | * | HC2 joined #nim |
18:21:42 | Araq | the standard syntax doesn't allow {} without minor hacks |
18:21:45 | * | HC2 left #nim (#nim) |
18:21:51 | * | yglukhov quit (Remote host closed the connection) |
18:21:59 | Araq | the curly syntax uses [. .] where the standard syntax uses {} |
18:22:32 | Araq | allowing for {} in the standard syntax might mean we need to introduce new AST node kinds |
18:22:58 | Araq | it's much more messy than an alternative parsing mode |
18:29:36 | Salewski | OK, we will see soon if curly mode will give us new Nim developers... |
18:33:50 | * | kulelu88 joined #nim |
18:34:02 | * | Jesin quit (Quit: Leaving) |
18:34:53 | Salewski | Bye. |
18:34:58 | * | Salewski left #nim (#nim) |
18:37:10 | * | Jesin joined #nim |
18:41:53 | * | brechtm joined #nim |
19:00:21 | * | HakanD____ joined #nim |
19:04:40 | * | HakanD____ quit (Ping timeout: 250 seconds) |
19:07:40 | planhths | Hello all!, why CountTable doesn't have an equals operator? |
19:10:19 | * | dmi0 joined #nim |
19:11:36 | * | gokr joined #nim |
19:16:38 | * | yglukhov joined #nim |
19:19:04 | dom96 | planhths: probably an oversight, create an issue on github please |
19:19:18 | planhths | ok |
19:21:55 | * | GustavoLapasta quit (Quit: Leaving) |
19:22:41 | * | yglukhov quit (Remote host closed the connection) |
19:54:11 | Demos | how does nim decide what to set $lib to? |
19:54:37 | * | HakanD____ joined #nim |
19:55:42 | planhths | looks like CountTable needs a different equal impl, bc when val is zero, the key is "hidden" but the length of the data doesn't change... |
19:57:08 | * | gokr quit (Ping timeout: 245 seconds) |
20:18:17 | * | brechtm quit (Ping timeout: 260 seconds) |
20:18:23 | * | yglukhov joined #nim |
20:18:34 | * | yglukhov quit (Remote host closed the connection) |
20:18:51 | * | Trustable quit (Remote host closed the connection) |
20:22:30 | * | pregressive joined #nim |
20:22:55 | * | nsf quit (Quit: WeeChat 1.5) |
20:23:27 | * | bjz joined #nim |
20:31:50 | * | dddddd quit (Quit: Hasta otra..) |
20:37:06 | * | dddddd joined #nim |
20:42:45 | * | planhths quit (Quit: Konversation terminated!) |
20:43:45 | * | bjz_ joined #nim |
20:44:08 | * | bjz quit (Ping timeout: 260 seconds) |
20:53:41 | * | libman left #nim (#nim) |
20:56:14 | * | gokr joined #nim |
21:14:40 | * | pafmaf quit (Ping timeout: 250 seconds) |
21:26:01 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:47:46 | * | elrood quit (Remote host closed the connection) |
21:58:15 | * | dmi0 quit (Ping timeout: 244 seconds) |
21:58:22 | Araq | Demos: it's set in its config |
22:00:33 | * | HakanD____ quit (Quit: Be back later ...) |
22:01:06 | * | HakanD____ joined #nim |
22:03:06 | * | bjz joined #nim |
22:04:59 | * | nsf joined #nim |
22:05:32 | * | HakanD____ quit (Ping timeout: 250 seconds) |
22:16:22 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:31:12 | * | dddddd quit (Remote host closed the connection) |
22:55:59 | * | irrequietus quit () |
23:09:31 | * | themagician quit () |
23:13:26 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:28:17 | * | nsf quit (Quit: WeeChat 1.5) |
23:31:30 | * | HakanD____ joined #nim |
23:33:50 | * | Jesin quit (Quit: Leaving) |
23:35:13 | * | ftsf_ joined #nim |
23:36:20 | * | HakanD____ quit (Ping timeout: 256 seconds) |
23:53:25 | * | gokr quit (Ping timeout: 260 seconds) |