00:00:35 | Trixar_za | Normally I'd just CC0 or Public Domain it, but it won't work here. So been thinking of the MIT or Apache licenses since GPL3 is a bit too restrictive for my tastes. |
00:02:46 | libman | It's time to update http://libman.org/img/bak/20160430-nimble-percent-copyfree.png image. |
00:03:10 | libman | Note that I'm promoting Nim as the most copyfree language. :D |
00:06:39 | Trixar_za | I'm still surprised WTFPL is actually an GPL compatible license :P |
00:06:51 | * | Trioxin quit (Read error: No route to host) |
00:06:52 | libman | Not all licenses referred to as "BSD" are copyfree, and that is the problem. I don't see a specific license text in https://github.com/yglukhov/nimx. |
00:07:52 | libman | Maybe nimble should generate an MIT "LICENSE" file. 3:) |
00:11:02 | * | Trioxin joined #nim |
00:13:09 | libman | Out of 370 packages in nimble... # `nimble update; jq '. | length' ~/.nimble/packages_official.json` |
00:15:45 | libman | ... 291 are "MIT", 14 "BSD", 11 "CC0", 11 "Apache License 2.0", 6 "BSD3", 5 "LGPLv3", 4 "zlib", 4 "LGPL", 24 various others. |
00:21:20 | Trixar_za | Oh right - now I remember. |
00:22:50 | * | Trixar_za looks up a midi c library to convert |
00:48:07 | * | endragor joined #nim |
00:50:33 | * | themagician quit () |
00:52:04 | * | ftsf joined #nim |
00:52:10 | * | vendethiel quit (Ping timeout: 265 seconds) |
00:52:52 | * | endragor quit (Ping timeout: 252 seconds) |
00:52:59 | * | xet7_ joined #nim |
00:57:32 | * | libman quit (Remote host closed the connection) |
01:05:59 | * | Trioxin quit (Read error: Connection reset by peer) |
01:11:02 | * | Trioxin joined #nim |
01:21:03 | * | endragor joined #nim |
01:23:56 | * | chrisheller joined #nim |
01:25:39 | * | endragor quit (Ping timeout: 244 seconds) |
01:28:29 | * | apollo joined #nim |
01:28:32 | * | Trioxin quit (Ping timeout: 240 seconds) |
01:50:04 | * | chemist69 quit (Ping timeout: 260 seconds) |
02:00:01 | * | onionhammer quit (Quit: WeeChat 1.0.1) |
02:00:33 | * | onionhammer joined #nim |
02:02:59 | * | chemist69 joined #nim |
02:06:50 | * | apollo quit (Read error: Connection reset by peer) |
02:11:21 | * | apollo joined #nim |
02:15:46 | * | brson quit (Quit: leaving) |
02:43:18 | * | sarlalian quit (Ping timeout: 250 seconds) |
02:43:34 | * | Senketsu quit (Quit: Leaving) |
02:46:03 | * | sarlalian joined #nim |
03:01:51 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
03:06:53 | * | apollo quit (Read error: Connection reset by peer) |
03:11:02 | * | apollo joined #nim |
03:12:16 | * | kulelu88 quit (Quit: Leaving) |
03:27:48 | * | brson joined #nim |
03:46:10 | * | der-landgraf quit (Ping timeout: 265 seconds) |
03:58:22 | * | endragor joined #nim |
04:00:20 | * | der-landgraf joined #nim |
04:05:53 | * | brson quit (Quit: leaving) |
04:06:01 | * | apollo quit (Read error: Connection reset by peer) |
04:06:41 | * | endragor quit (Remote host closed the connection) |
04:11:07 | * | apollo joined #nim |
04:16:21 | * | space-wizard joined #nim |
04:16:58 | * | space-wizard quit (Max SendQ exceeded) |
04:17:00 | * | Trioxin joined #nim |
04:17:01 | * | apollo quit (Read error: Connection reset by peer) |
04:17:36 | * | space-wizard joined #nim |
04:30:52 | * | der-landgraf quit (Ping timeout: 240 seconds) |
04:35:02 | * | endragor joined #nim |
04:45:38 | * | der-landgraf joined #nim |
05:07:59 | * | Trioxin quit (Read error: No route to host) |
05:26:33 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:26:54 | * | space-wizard joined #nim |
05:50:36 | * | fastrom joined #nim |
05:59:58 | * | endragor quit (Remote host closed the connection) |
06:06:07 | * | flyx quit (Quit: ZNC - http://znc.in) |
06:06:42 | * | flyx joined #nim |
06:14:41 | * | gokr joined #nim |
06:15:58 | * | endragor joined #nim |
06:20:40 | * | endragor quit (Ping timeout: 252 seconds) |
07:01:20 | * | Trustable joined #nim |
07:03:31 | * | endragor joined #nim |
07:09:59 | * | endragor quit (Remote host closed the connection) |
07:11:18 | * | brechtm joined #nim |
07:14:06 | * | endragor joined #nim |
07:21:08 | * | Arrrr joined #nim |
07:26:00 | * | yglukhov joined #nim |
07:33:02 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
07:38:20 | * | space-wizard joined #nim |
07:38:25 | * | bjz joined #nim |
08:04:34 | * | endragor quit (Remote host closed the connection) |
08:19:14 | * | ftsf quit (Quit: :q!) |
08:25:45 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
08:26:00 | * | fredrik92 joined #nim |
08:26:33 | * | endragor joined #nim |
08:34:08 | * | endragor quit (Remote host closed the connection) |
08:39:46 | * | endragor joined #nim |
08:43:03 | * | fastrom quit (Quit: Leaving.) |
08:49:35 | * | euantor joined #nim |
08:54:44 | * | brechtm quit (Remote host closed the connection) |
08:55:44 | * | brechtm joined #nim |
08:57:47 | * | desophos quit (Read error: Connection reset by peer) |
09:04:04 | * | chemist69 quit (Quit: WeeChat 1.5) |
09:07:00 | * | chemist69 joined #nim |
09:09:16 | * | chemist69 quit (Client Quit) |
09:10:32 | * | chemist69 joined #nim |
09:31:41 | * | der-landgraf quit (Quit: WeeChat 1.5) |
09:43:36 | * | themagician joined #nim |
09:43:57 | * | fastrom joined #nim |
09:53:22 | * | Senketsu joined #nim |
09:57:09 | * | arnetheduck joined #nim |
10:25:12 | * | Demon_Fox quit (Quit: Leaving) |
10:38:22 | * | elrood joined #nim |
10:54:20 | * | fredrik92 quit (Quit: Shutting down...) |
11:00:20 | * | Trioxin joined #nim |
11:04:22 | arnetheduck | Araq, proc quit(code: int) uses importc and calls exit directly, but there's an int size mismatch (exit takes a cint, not int).. better change quit or write an impl that calls exit and casts the int to cint? |
11:07:16 | arnetheduck | now, the c generator does the latter which works, but might be surprising |
11:07:40 | * | krux02 joined #nim |
11:09:30 | krux02 | arnetheduck, I am not Araq, but I would suggest to wrap it, so that the api does not expose cint. There are some reasonms from me: |
11:09:41 | krux02 | it is already an int, so nothing can break |
11:10:11 | krux02 | cint should not be exposed in an api when there is no good reason for it, eg it needs to be a thing wrapper. |
11:10:17 | krux02 | thin wripper |
11:12:30 | krux02 | and last but not least, system exit takes intergers in the range [0..255], so no need that anything needs to be a cint type |
11:14:18 | krux02 | If I think about it this might be a good use case for ranges. |
11:18:48 | * | michael_campbell joined #nim |
11:36:54 | * | pafmaf joined #nim |
11:40:31 | * | PMunch joined #nim |
11:41:35 | * | nairobi joined #nim |
11:51:04 | * | pie_ joined #nim |
11:59:47 | * | Arrrr quit (Read error: Connection reset by peer) |
12:06:08 | * | der-landgraf joined #nim |
12:08:24 | * | yglukhov quit (Ping timeout: 260 seconds) |
12:08:32 | * | brechtm quit (Remote host closed the connection) |
12:12:56 | arnetheduck | krux02, that's the shell bit of exit.. with wait you can get at the full int range |
12:31:54 | * | nairobi quit (Read error: Connection reset by peer) |
12:33:14 | * | der-landgraf quit (Quit: WeeChat 1.5) |
12:41:52 | krux02 | arnetheduck, my source is here http://tldp.org/LDP/abs/html/exitcodes.html |
12:42:33 | krux02 | there it says "exit takes only integer args in the range 0 - 255" |
12:42:44 | arnetheduck | that's the "advanced bash scripting guide" |
12:43:08 | krux02 | yes I know |
12:43:14 | krux02 | so i's not really suitable |
12:43:21 | krux02 | and you are right |
12:44:46 | krux02 | but according to cplusplus.com exit from cstdlib only takes EXIT_SUCCESS and EXIT_FAILURE |
12:45:22 | arnetheduck | actually, you're more right than me ;) http://linux.die.net/man/3/exit |
12:45:39 | arnetheduck | "The exit() function causes normal process termination and the value of status & 0377 is returned to the parent" |
12:46:35 | arnetheduck | I was looking at http://linux.die.net/man/2/exit first which is not quite the same |
12:47:34 | * | brechtm joined #nim |
12:48:11 | arnetheduck | same on windows, 0-255 |
12:51:10 | krux02 | I could also imagine an exit that only takes an enum with the allowed exit status. |
12:55:34 | krux02 | I have no idea how portable or widely accepted systexits.h, sicen I have never used it, but it appears to be a start. |
12:59:28 | arnetheduck | that's mostly beyond my interest, I'm just looking to make nim abi-compatible with c |
12:59:58 | arnetheduck | but I suspect windows will have its own standards |
12:59:58 | * | der-landgraf joined #nim |
13:00:19 | * | nsf quit (Quit: WeeChat 1.5) |
13:01:10 | krux02 | I also think tha interest in that is pretty low and whoever whan's sysexit.h compatibility can easiliy just do it on his own. |
13:04:45 | arnetheduck | well, that assumes quit gets a range and not an enum |
13:07:34 | krux02 | I would agree that's a good idea |
13:07:56 | * | yglukhov joined #nim |
13:14:06 | * | Mat4 joined #nim |
13:19:52 | * | nairobi joined #nim |
13:24:41 | * | bjz quit (Ping timeout: 244 seconds) |
13:25:15 | * | rusua joined #nim |
13:25:23 | * | bjz joined #nim |
13:26:36 | * | libman joined #nim |
13:29:14 | * | der-landgraf quit (Quit: WeeChat 1.5) |
13:29:32 | * | der-landgraf joined #nim |
13:29:41 | * | nairobi quit (Remote host closed the connection) |
13:31:22 | * | der-landgraf quit (Client Quit) |
13:32:23 | * | PMunch quit (Remote host closed the connection) |
13:33:09 | * | der-landgraf joined #nim |
14:17:12 | * | lyro quit (Ping timeout: 240 seconds) |
14:22:12 | * | lyro joined #nim |
14:37:42 | * | Vladar joined #nim |
14:40:20 | * | boop joined #nim |
14:47:57 | * | endragor quit (Remote host closed the connection) |
14:51:05 | * | Mat4 left #nim (#nim) |
14:53:04 | * | space-wizard joined #nim |
14:53:41 | * | space-wizard quit (Max SendQ exceeded) |
14:54:27 | * | space-wizard joined #nim |
15:04:03 | * | FreezerburnV joined #nim |
15:05:45 | * | euantor quit (Quit: Leaving) |
15:05:53 | * | euantor_ joined #nim |
15:06:07 | * | euantor_ is now known as euantor |
15:07:55 | * | pregressive joined #nim |
15:15:16 | * | arnetheduck quit (Ping timeout: 252 seconds) |
15:41:59 | FreezerburnV | Is there a way to "daemonize" a process in nim? (hoping to not use the unix library to manually manage some forks) I want to be able to start a process written in nim that controls a server process, and be able to write their PIDs out so that another process can stop them |
15:43:30 | * | nairobi joined #nim |
15:47:39 | * | brson joined #nim |
15:48:39 | * | nairobi quit (Ping timeout: 276 seconds) |
15:49:55 | * | nairobi joined #nim |
15:54:28 | * | nairobi quit (Ping timeout: 265 seconds) |
15:54:48 | * | nairobi joined #nim |
15:57:26 | federico3 | FreezerburnV: there's some code around to do the doublefork etc but nowadays most of the time it's better to let an external tool do the daemonization. What's your use case? |
15:58:39 | FreezerburnV | federico3, Pretty much exactly what I said: I want to start a server process (that I currently manually start/restart/stop) via a tool I'm writing in nim |
15:59:22 | FreezerburnV | And theoretically later on be able to do more advanced stuff than just start/stop (such as hotswapping Java class files into it when possible) |
16:00:01 | FreezerburnV | This is on Ubuntu 14.04, and possibly 16.06 going forward |
16:00:27 | * | libman quit (Remote host closed the connection) |
16:15:16 | * | fastrom quit (Quit: Leaving.) |
16:25:34 | * | nsf joined #nim |
16:28:42 | * | irrequietus joined #nim |
16:29:42 | * | rusua quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:44:20 | * | pie_ quit (Changing host) |
16:44:20 | * | pie_ joined #nim |
16:55:33 | * | yglukhov quit (Ping timeout: 258 seconds) |
17:27:18 | * | nairobi quit (Remote host closed the connection) |
17:28:03 | * | miere joined #nim |
17:29:27 | * | Trustable quit (Remote host closed the connection) |
17:42:03 | * | krux02 quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
17:56:07 | GaveUp | FreezerburnV: sounds like something cron would be suited for, though, understandable to code it for learnings sake |
17:58:55 | * | yglukhov joined #nim |
18:03:18 | * | yglukhov quit (Ping timeout: 250 seconds) |
18:04:04 | * | brechtm quit (Remote host closed the connection) |
18:10:44 | * | Matthias247 joined #nim |
18:10:51 | * | nairobi joined #nim |
18:14:18 | * | nairobi_ joined #nim |
18:15:33 | * | nairobi quit (Ping timeout: 276 seconds) |
18:19:49 | * | yglukhov joined #nim |
18:22:51 | FreezerburnV | GaveUp, cron can be used for starting/restarting something on demand? I thought it was used for periodic tasks |
18:23:27 | FreezerburnV | I was assuming federico3 was going to suggest using systemd or something for managing the process rather than manually via nim |
18:25:41 | gokr | One classic in this regard is https://cr.yp.to/daemontools.html |
18:25:44 | * | euantor_ joined #nim |
18:26:54 | gokr | Lots mentioned here: https://news.ycombinator.com/item?id=1368855 |
18:27:01 | federico3 | FreezerburnV: of course you can use start-stop-daemon, systemd, or one of many other tools |
18:27:08 | federico3 | FreezerburnV: otherwise nimble search daemon |
18:30:52 | * | nairobi_ quit (Read error: Connection timed out) |
18:31:58 | * | nairobi joined #nim |
18:32:07 | * | euantor_ quit (Remote host closed the connection) |
18:33:19 | * | euantor_ joined #nim |
18:43:59 | * | brson quit (Ping timeout: 244 seconds) |
18:44:25 | * | fastrom joined #nim |
18:48:13 | * | euantor_ quit (Remote host closed the connection) |
19:00:09 | * | brechtm joined #nim |
19:10:36 | * | euantor__ joined #nim |
19:11:28 | * | brechtm quit (Remote host closed the connection) |
19:16:51 | * | cheatfate quit (Read error: Connection reset by peer) |
19:17:39 | * | cheatfate joined #nim |
19:19:54 | * | euantor_ joined #nim |
19:22:10 | * | euantor__ quit (Ping timeout: 250 seconds) |
19:24:51 | * | euantor__ joined #nim |
19:27:25 | * | yglukhov quit (Remote host closed the connection) |
19:27:42 | * | euantor_ quit (Ping timeout: 276 seconds) |
19:29:05 | * | euantor__ quit (Ping timeout: 244 seconds) |
19:30:28 | * | miere quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) |
19:33:13 | * | cheatfate quit (Ping timeout: 252 seconds) |
19:34:32 | * | brson joined #nim |
19:34:43 | * | fastrom quit (Quit: Leaving.) |
19:52:10 | * | yglukhov joined #nim |
19:52:59 | * | yglukhov quit (Remote host closed the connection) |
19:53:12 | * | yglukhov joined #nim |
20:08:39 | * | SirCmpwn quit (Ping timeout: 276 seconds) |
20:09:42 | * | brechtm joined #nim |
20:23:35 | * | SirCmpwn joined #nim |
20:30:03 | * | irrequietus quit (Ping timeout: 265 seconds) |
20:30:51 | * | User_ joined #nim |
20:31:05 | * | User_ quit (Client Quit) |
20:31:23 | * | User_ joined #nim |
20:36:02 | * | brechtm quit (Read error: Connection reset by peer) |
20:36:36 | * | brechtm joined #nim |
20:39:20 | * | irrequietus joined #nim |
20:42:15 | * | miere joined #nim |
20:42:24 | * | brechtm quit (Remote host closed the connection) |
20:45:17 | * | miere quit (Client Quit) |
20:45:35 | * | miere joined #nim |
20:48:00 | * | miere left #nim (#nim) |
20:48:23 | * | miere joined #nim |
20:48:40 | * | gokr quit (Ping timeout: 244 seconds) |
20:53:10 | * | brechtm joined #nim |
20:54:33 | * | Trustable joined #nim |
20:55:06 | * | gokr joined #nim |
20:56:33 | * | Sentreen quit (Ping timeout: 265 seconds) |
21:00:56 | * | der-landgraf quit (Quit: WeeChat 1.5) |
21:02:27 | * | Sentreen joined #nim |
21:03:28 | * | der-landgraf joined #nim |
21:03:28 | * | der-landgraf quit (Changing host) |
21:03:28 | * | der-landgraf joined #nim |
21:04:11 | * | gmpreussner joined #nim |
21:09:53 | * | Vladar quit (Quit: Leaving) |
21:10:10 | * | pafmaf quit (Ping timeout: 265 seconds) |
21:10:49 | * | gmpreussner quit (Read error: Connection reset by peer) |
21:13:12 | * | gmpreussner joined #nim |
21:14:56 | * | der-landgraf quit (Quit: WeeChat 1.5) |
21:17:29 | * | der-landgraf joined #nim |
21:18:48 | * | cheatfate joined #nim |
21:21:44 | * | pregressive quit (Remote host closed the connection) |
21:22:19 | * | pregressive joined #nim |
21:27:18 | * | pregressive quit (Ping timeout: 276 seconds) |
21:34:14 | * | space-wizard quit (Ping timeout: 260 seconds) |
21:35:26 | * | space-wizard joined #nim |
21:46:49 | * | rusua joined #nim |
21:48:52 | * | libman joined #nim |
21:49:57 | * | georges_ joined #nim |
21:55:14 | * | georges_ quit (Read error: Connection reset by peer) |
22:07:41 | * | Trustable quit (Remote host closed the connection) |
22:22:16 | * | pregressive joined #nim |
22:23:16 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:23:44 | * | nairobi quit (Remote host closed the connection) |
22:31:29 | * | sixFingers joined #nim |
22:31:48 | * | sixFingers quit (Client Quit) |
22:37:35 | * | der-landgraf quit (Quit: WeeChat 1.5) |
22:38:06 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:38:11 | * | rusua quit (Quit: Textual IRC Client: www.textualapp.com) |
22:38:18 | * | rusua joined #nim |
22:38:19 | * | rusua quit (Client Quit) |
22:38:43 | * | rusua joined #nim |
22:49:20 | * | FlingItNow joined #nim |
23:06:23 | * | nairobi joined #nim |
23:10:58 | * | nairobi quit (Ping timeout: 250 seconds) |
23:11:57 | * | gokr quit (Ping timeout: 276 seconds) |
23:16:01 | * | bjz joined #nim |
23:16:12 | * | pregressive quit (Remote host closed the connection) |
23:16:46 | * | pregressive joined #nim |
23:19:38 | * | der-landgraf joined #nim |
23:19:38 | * | der-landgraf quit (Changing host) |
23:19:38 | * | der-landgraf joined #nim |
23:20:52 | * | pregressive quit (Ping timeout: 250 seconds) |
23:27:10 | * | brechtm quit (Remote host closed the connection) |
23:27:44 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:28:13 | * | bjz joined #nim |
23:30:16 | * | bjz quit (Client Quit) |
23:33:12 | * | themagician quit () |
23:43:21 | * | yglukhov quit (Remote host closed the connection) |
23:50:50 | * | endragor joined #nim |
23:52:53 | * | desophos joined #nim |
23:55:06 | * | endragor quit (Ping timeout: 250 seconds) |
23:55:16 | * | miere quit (Read error: Connection reset by peer) |