00:11:16 | * | dmi00 quit (Ping timeout: 256 seconds) |
00:12:31 | * | brson joined #nim |
00:14:41 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:32:56 | * | bjz joined #nim |
00:43:39 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
00:43:45 | * | yglukhov joined #nim |
00:49:08 | * | yglukhov quit (Ping timeout: 250 seconds) |
00:58:04 | * | aedigix- quit (Ping timeout: 250 seconds) |
01:00:33 | * | aedigix joined #nim |
01:05:32 | * | bjz joined #nim |
01:31:23 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
01:49:05 | * | couven92 quit (Read error: Connection reset by peer) |
02:00:12 | * | bjz joined #nim |
02:09:10 | * | kulelu88 joined #nim |
02:37:44 | * | chemist69 quit (Ping timeout: 250 seconds) |
02:46:49 | * | yglukhov joined #nim |
02:50:54 | * | chemist69 joined #nim |
02:52:02 | * | yglukhov quit (Ping timeout: 250 seconds) |
03:07:55 | * | bjz_ joined #nim |
03:08:52 | * | bjz quit (Ping timeout: 260 seconds) |
03:17:01 | * | desophos quit (Read error: Connection reset by peer) |
04:00:12 | * | ARCADIVS joined #nim |
04:26:28 | * | kulelu88 quit (Quit: Leaving) |
04:49:54 | * | yglukhov joined #nim |
04:54:09 | * | yglukhov quit (Ping timeout: 252 seconds) |
05:07:54 | * | byte512 quit (Ping timeout: 268 seconds) |
06:51:51 | * | yglukhov joined #nim |
06:56:26 | * | yglukhov quit (Ping timeout: 250 seconds) |
06:58:15 | FromGitter | <Araq> @corecore you mean "subexes"? :P |
07:02:49 | * | nsf joined #nim |
07:08:12 | * | yglukhov joined #nim |
07:33:34 | * | brson quit (Quit: leaving) |
08:19:35 | * | yglukhov quit (Remote host closed the connection) |
08:19:59 | Araq | cheatfate: nimsuggest tester doesn't work on Windows :-( |
08:20:20 | Araq | something with input/output redirections. |
08:38:09 | * | gangstacat quit (Ping timeout: 260 seconds) |
08:55:47 | * | yglukhov joined #nim |
08:58:36 | * | arnetheduck joined #nim |
09:36:37 | * | Matthias247 joined #nim |
09:46:46 | * | yglukhov quit (Remote host closed the connection) |
09:54:03 | * | yglukhov joined #nim |
10:07:44 | cheatfate | Araq, so you already resolved it? |
10:12:51 | * | yglukhov quit (Remote host closed the connection) |
10:22:57 | * | Trustable joined #nim |
10:23:22 | * | Gonzih quit (Ping timeout: 244 seconds) |
10:54:52 | * | vlad1777d joined #nim |
11:07:58 | * | dmi00 joined #nim |
11:26:40 | Araq | cheatfate: nope, still an issue, I switched to osx for this feature :-) |
11:27:05 | cheatfate | so what the problem? |
11:27:20 | Araq | on windows the captured output of nimsuggest is "" |
11:27:37 | Araq | bbl |
11:28:11 | * | yglukhov joined #nim |
11:28:56 | cheatfate | i need some kind of command line for nimsuggest to check it |
11:30:20 | Araq | koch tools |
11:30:29 | cheatfate | nimsuggest koch tools |
11:30:30 | cheatfate | ? |
11:30:37 | Araq | git checkout new-dependency-tracking |
11:30:51 | Araq | koch tool # fails with nimble, but nimsuggest builds fine |
11:30:58 | Araq | koch tools # fails with nimble, but nimsuggest builds fine |
11:31:09 | Araq | nim c -r tools/nimsuggest/tester |
11:40:22 | * | yglukhov quit (Remote host closed the connection) |
11:40:47 | * | yglukhov joined #nim |
11:45:00 | * | elrood joined #nim |
11:55:30 | * | ARCADIVS quit (Quit: ARCADIVS) |
12:08:48 | * | pafmaf joined #nim |
12:18:34 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:21:35 | * | bjz joined #nim |
12:24:29 | * | pafmaf quit (Ping timeout: 260 seconds) |
12:41:08 | arnetheduck | Araq, so what do you want instead of typecache to prevent same type from being checked twice? |
12:55:01 | * | yglukhov quit (Remote host closed the connection) |
13:38:23 | * | yglukhov joined #nim |
13:53:44 | Araq | arnetheduck: I dunno, but this typecache mechanism is way too subtle |
13:58:01 | * | libman joined #nim |
14:00:39 | * | yglukhov quit (Remote host closed the connection) |
14:01:33 | * | byte512 joined #nim |
14:11:42 | * | dddddd joined #nim |
14:11:43 | * | yglukhov joined #nim |
14:37:34 | * | elrood quit (Remote host closed the connection) |
14:54:17 | * | bjz quit (Ping timeout: 265 seconds) |
14:54:52 | * | bjz joined #nim |
15:01:59 | * | yglukhov quit (Remote host closed the connection) |
15:13:37 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
15:17:05 | * | bjz joined #nim |
15:24:29 | * | nsf quit (Quit: WeeChat 1.6) |
15:29:09 | * | xet7 quit (Quit: Leaving) |
15:29:54 | * | xet7 joined #nim |
15:34:08 | arnetheduck | it's what drives deduplication of any other type.. |
15:34:40 | arnetheduck | Araq, so would..er.. another cache there be acceptable? |
15:35:18 | * | dmi00 quit (Ping timeout: 250 seconds) |
15:41:55 | Araq | arnetheduck: meh, I will review it thoroughly instead soon. |
15:45:01 | * | UNIcodeX_Work joined #nim |
15:45:21 | * | UNIcodeX quit (Quit: Leaving) |
15:48:12 | * | GustavoLapasta joined #nim |
15:49:43 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
16:09:11 | * | pie__ joined #nim |
16:26:59 | * | elrood joined #nim |
16:31:49 | * | arnetheduck quit (Ping timeout: 260 seconds) |
16:33:41 | * | pie__ quit (Ping timeout: 260 seconds) |
16:36:40 | * | yglukhov joined #nim |
16:37:28 | * | pie__ joined #nim |
16:38:06 | * | pie__ quit (Read error: Connection reset by peer) |
16:54:54 | * | nsf joined #nim |
17:04:39 | * | kulelu88 joined #nim |
17:08:27 | * | GustavoLapasta quit (Quit: Leaving) |
17:35:12 | * | gangstacat joined #nim |
17:41:42 | * | dmi00 joined #nim |
17:55:31 | * | nsf quit (Quit: WeeChat 1.6) |
18:05:56 | * | gangstacat quit (Ping timeout: 250 seconds) |
18:08:53 | * | gangstacat joined #nim |
18:11:00 | * | dddddd quit (Remote host closed the connection) |
18:17:15 | * | dmi00 quit (Quit: ~) |
18:18:20 | tstm | Are there any good examples on how to write eg. a python interface to something written in nim? |
18:19:40 | * | desophos joined #nim |
18:24:15 | * | dmi0 joined #nim |
18:33:40 | Araq | tstm: there are some nimble packages to deal with python<->nim interop at various levels. |
18:34:03 | Araq | but I think calling Python from Nim is easier than the other way round, so keep your main in Nim :-) |
18:40:06 | * | PMunch joined #nim |
18:41:33 | * | Gonzih joined #nim |
18:47:11 | tstm | Araq: ;) |
18:59:34 | * | bjz joined #nim |
19:04:18 | tstm | Nice, this one seems to do the job! https://github.com/jboy/nim-pymod |
19:28:56 | * | stefantalpalaru joined #nim |
19:30:17 | stefantalpalaru | what are we supposed to use instead of emit()? |
19:30:37 | * | dmi0 quit (Ping timeout: 268 seconds) |
19:31:41 | dom96 | stefantalpalaru: why can't we use emit? |
19:32:05 | stefantalpalaru | Warning: emit is deprecated [Deprecated] |
19:32:43 | stefantalpalaru | in 0.15.2 |
19:33:52 | * | couven92 joined #nim |
19:34:25 | Araq | stefantalpalaru: what do you use it for? I never used it anywhere |
19:35:28 | stefantalpalaru | in a template, to do this: emit(gomain_proc & "()\n") |
19:35:53 | stefantalpalaru | the gomain_proc var holds a function name determined at compile time |
19:37:06 | Araq | macro m(): untyped = newCall(ident(gomain_proc)); m() |
19:38:13 | stefantalpalaru | yeah, but I'd have to convert the rest of a template to AST generation if I make it a macro |
19:38:24 | stefantalpalaru | doable, but uglier to read |
19:39:33 | Araq | constructing ASTs by string munging is uglier and more error prone |
19:40:02 | stefantalpalaru | https://github.com/stefantalpalaru/golib-nim/blob/master/src/golib.nim#L159 |
19:40:23 | stefantalpalaru | (ignore the missing typed/untyped) |
19:42:27 | Araq | nice code, but I see nothing that invalidates my claims |
19:43:43 | stefantalpalaru | well, imagine reading the programmatic AST generation variant after converting that short and readable template into a macro |
19:44:50 | Araq | template+getAst then? |
19:45:06 | Araq | templates are nice, but 'emit' is not |
19:45:53 | * | kulelu88 quit (Ping timeout: 252 seconds) |
19:48:33 | Araq | but anyway, feel free to copy the 3 lines from macros.nim into your codebase and keep having 'emit' forever |
19:50:02 | stefantalpalaru | a one line new macro, as you suggested initially, would be the less intrusive modification |
19:50:33 | stefantalpalaru | and I'm keeping the rest of the template |
20:09:12 | Xe | i'm getting this when i build devel: compiler/idents.nim(76, 7) Error: invalid pragma: this: self |
20:12:32 | Araq | update your nim version, 0.15 is required to build devel |
20:13:00 | Xe | i'm using csources |
20:13:11 | Xe | from the git csources |
20:15:11 | Araq | that's what travis does too. works for travis. |
20:15:51 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
20:39:44 | * | nsf joined #nim |
20:48:44 | * | enthus1ast joined #nim |
20:50:21 | * | Dankrad joined #nim |
20:55:39 | * | libman quit (Remote host closed the connection) |
21:26:41 | * | bjz joined #nim |
21:31:32 | * | stefantalpalaru quit (Quit: Leaving) |
21:35:26 | federico3 | odd... nim c -p:. -r tests/stdlib/tos.nim is using os.nim from the stdil instead of the local ./lib/pure/os.nim |
21:35:52 | * | yglukhov quit (Remote host closed the connection) |
21:37:39 | * | yglukhov joined #nim |
21:46:07 | * | couven92 quit (Quit: Switching to VPN network) |
21:47:05 | * | couven92 joined #nim |
21:53:04 | * | Trustable_2 joined #nim |
21:54:36 | * | Trustable quit (Ping timeout: 256 seconds) |
21:59:41 | Araq | but tos.nim doesn't import lib/pure/os.nim, it imports os.nim |
22:00:20 | Araq | and -p:. adds the current working directory which is not ./lib/pure/ |
22:00:53 | Araq | that's my guess anyway, just use the patchFile mechanism |
22:01:22 | federico3 | yep, that's what I saw doing some stracing |
22:02:31 | federico3 | passing lib/pure to -p did not help and putting ".." into it seems to get ignored |
22:03:29 | Araq | I can never remember whether -p prepends or appends to the path |
22:04:11 | Araq | there are good reasons for both behaviours and config files affect it too. |
22:04:48 | Araq | the compiler processes the command line args, then the config files and then the command line again so that it takes precedence. Crazy. |
22:06:20 | Araq | emulating some fixpoint iteration process in 3 steps |
22:06:29 | Araq | I wonder how other tools handle this. |
22:07:42 | federico3 | aha: nim c -p:XYZ -r ./tests/stdlib/ttime.nim will search under ./tests/stdlib/XYZ/ |
22:08:43 | federico3 | -p:./XYZ will not search for times.nim under ./XYZ tho |
22:09:18 | federico3 | same for .-p:/full_path_here |
22:14:31 | Araq | iirc the spec says the compiler might even error for ambiguous imports |
22:23:41 | * | yglukhov quit (Remote host closed the connection) |
22:29:53 | * | dddddd joined #nim |
22:29:55 | * | yglukhov joined #nim |
22:32:58 | * | enthus1ast quit (Ping timeout: 265 seconds) |
22:38:56 | * | chemist69 quit (Ping timeout: 250 seconds) |
22:41:24 | * | chemist69 joined #nim |
22:46:45 | * | yglukhov quit (Remote host closed the connection) |
22:56:32 | * | Trustable_2 quit (Remote host closed the connection) |
23:02:59 | * | elrood quit (Quit: Leaving) |
23:15:42 | * | dmi0 joined #nim |
23:23:39 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:23:58 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:27:04 | * | nsf quit (Quit: WeeChat 1.6) |
23:33:19 | PMunch | Hmm, is it intentional that the {.this: self.} pragma only works if self is the first argument? |
23:38:27 | * | PMunch quit (Quit: leaving) |