00:11:16 | * | perturbation quit (Quit: Leaving) |
00:28:39 | * | jakesyl quit (Ping timeout: 240 seconds) |
00:40:17 | * | pregressive joined #nim |
00:42:09 | * | jakesyl joined #nim |
00:51:11 | * | Varriount_ quit (Ping timeout: 256 seconds) |
01:00:16 | * | Varriount joined #nim |
01:09:23 | * | pregress_ joined #nim |
01:09:47 | * | pregressive quit (Ping timeout: 264 seconds) |
01:10:03 | * | chemist69_ joined #nim |
01:13:38 | * | chemist69 quit (Ping timeout: 268 seconds) |
01:16:26 | * | Epichero quit (Quit: WeeChat 1.3) |
01:26:40 | * | rollo quit (Quit: Leaving) |
01:27:22 | * | pregress_ quit (Remote host closed the connection) |
02:00:27 | * | joelmo quit (Quit: Connection closed for inactivity) |
02:04:23 | * | pregressive joined #nim |
02:21:14 | * | pregressive quit (Remote host closed the connection) |
02:32:59 | * | pregressive joined #nim |
03:01:57 | * | jakesyl quit (Ping timeout: 246 seconds) |
03:13:39 | * | jakesyl joined #nim |
03:34:05 | * | pregressive quit (Remote host closed the connection) |
03:34:22 | * | pregressive joined #nim |
03:41:35 | * | pregressive quit (Read error: Connection reset by peer) |
03:41:58 | * | pregressive joined #nim |
03:44:50 | * | pregressive quit (Client Quit) |
03:53:21 | * | darkf joined #nim |
03:53:27 | * | ozra quit (Ping timeout: 246 seconds) |
03:56:03 | * | vendethiel joined #nim |
05:05:26 | * | vendethiel quit (Ping timeout: 240 seconds) |
05:24:45 | * | jakesyl quit (Ping timeout: 246 seconds) |
05:37:41 | * | jakesyl joined #nim |
05:58:38 | * | bjz joined #nim |
06:09:47 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
06:29:18 | * | bjz joined #nim |
06:55:42 | * | Ven joined #nim |
07:16:46 | * | Ven quit (Ping timeout: 260 seconds) |
07:18:35 | * | Ven joined #nim |
07:25:09 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:32:49 | * | smodo joined #nim |
07:42:46 | * | Trustable joined #nim |
07:46:05 | * | smodo quit (Ping timeout: 250 seconds) |
08:00:16 | * | smodo joined #nim |
08:19:24 | * | nande quit (Read error: Connection reset by peer) |
08:22:09 | * | coffeepot joined #nim |
09:03:07 | * | infinity0_ joined #nim |
09:03:09 | * | infinity0_ quit (Changing host) |
09:03:09 | * | infinity0_ joined #nim |
09:03:10 | * | infinity0 quit (Ping timeout: 260 seconds) |
09:06:12 | * | Ven joined #nim |
09:07:17 | * | infinity0_ quit (Remote host closed the connection) |
09:09:36 | * | infinity0 joined #nim |
09:17:32 | * | infinity0 quit (Remote host closed the connection) |
09:19:48 | * | infinity0 joined #nim |
09:24:14 | * | bjz quit (Read error: Connection reset by peer) |
09:28:41 | * | bjz joined #nim |
09:34:17 | * | Kingsquee quit (Read error: Connection reset by peer) |
09:34:28 | * | Kingsquee joined #nim |
09:44:31 | * | bjz quit (Read error: Connection reset by peer) |
09:45:25 | * | bjz joined #nim |
09:58:25 | * | infinity0 quit (Ping timeout: 265 seconds) |
10:00:04 | * | infinity0 joined #nim |
10:02:20 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:08:02 | * | infinity0 quit (Remote host closed the connection) |
10:09:44 | * | Ven joined #nim |
10:10:25 | * | infinity0 joined #nim |
10:18:18 | * | infinity0 quit (Remote host closed the connection) |
10:20:35 | * | infinity0 joined #nim |
10:30:32 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:40:58 | * | boopsiesisaway is now known as boopsies |
10:44:35 | * | Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png) |
10:45:46 | * | boopsies is now known as boopsiesisaway |
11:32:36 | * | ChrisMAN quit (Remote host closed the connection) |
11:39:13 | * | ChrisMAN joined #nim |
11:47:46 | * | rollo joined #nim |
12:07:27 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:07:40 | * | strcmp1 joined #nim |
12:17:44 | * | bjz joined #nim |
12:28:42 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
12:41:27 | * | ozra joined #nim |
12:52:58 | * | ozra is now known as ozra_ |
12:54:07 | * | ozra_ is now known as ozra |
12:54:12 | * | BitPuffin joined #nim |
12:54:29 | * | ozra is now known as ozra_ |
12:54:44 | * | ozra_ is now known as ozra |
13:15:23 | * | Ven joined #nim |
13:18:13 | * | boopsiesisaway quit (Ping timeout: 252 seconds) |
13:29:10 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:48:13 | * | Ven joined #nim |
14:03:15 | * | Ven quit (Ping timeout: 268 seconds) |
14:14:46 | * | Ven joined #nim |
14:21:25 | * | Ven quit (Ping timeout: 240 seconds) |
14:24:39 | * | Ven joined #nim |
14:29:03 | * | strcmp1 quit () |
14:34:00 | * | strcmp1 joined #nim |
14:36:42 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:39:39 | * | cryzed quit (Ping timeout: 240 seconds) |
14:41:39 | * | Ven joined #nim |
14:42:51 | * | cryzed joined #nim |
14:45:08 | * | strcmp1 quit () |
14:52:40 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:55:19 | * | Ven joined #nim |
14:56:38 | * | Ven quit (Client Quit) |
14:57:10 | * | Ven joined #nim |
14:59:58 | * | Ven quit (Client Quit) |
15:18:33 | * | Ven joined #nim |
15:21:57 | * | Ven is now known as Guest87784 |
15:23:04 | NimBot | nim-lang/Nim devel 3e897a7 Araq [+0 ±1 -0]: added setResult that simply takes a node |
15:23:04 | NimBot | nim-lang/Nim devel 4705cf2 Araq [+0 ±2 -0]: cleaned up ospaths module |
15:23:04 | NimBot | nim-lang/Nim devel ca75985 Araq [+0 ±2 -0]: nimsuggest: added 'dus' command that combines 'def' and 'use' |
15:31:45 | * | pregressive joined #nim |
15:32:57 | * | devzerp quit (Remote host closed the connection) |
15:32:57 | * | no_name quit (Remote host closed the connection) |
15:34:35 | * | Guest87784 is now known as Ven_ |
15:34:41 | * | pregressive quit (Remote host closed the connection) |
15:36:40 | * | pregressive joined #nim |
15:38:39 | * | brson joined #nim |
15:40:43 | * | pregressive quit (Remote host closed the connection) |
15:41:34 | * | pregressive joined #nim |
15:43:52 | * | strcmp1 joined #nim |
15:45:48 | * | Ven joined #nim |
15:45:52 | * | Ven_ quit (Read error: Connection reset by peer) |
15:45:55 | * | Ven quit (Client Quit) |
15:48:06 | * | Ven joined #nim |
16:31:28 | * | strcmp2 joined #nim |
16:34:57 | * | strcmp1 quit (Ping timeout: 268 seconds) |
16:38:52 | * | tmm1 joined #nim |
16:40:00 | * | gmpreussner|work joined #nim |
16:40:15 | * | vendethiel joined #nim |
17:05:40 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
17:06:51 | * | jaco60 joined #nim |
17:19:35 | * | strcmp1 joined #nim |
17:23:12 | * | strcmp2 quit (Ping timeout: 264 seconds) |
17:29:17 | * | strcmp2 joined #nim |
17:29:17 | * | strcmp2 quit (Client Quit) |
17:32:49 | * | strcmp1 quit (Ping timeout: 250 seconds) |
17:36:02 | * | Matthias247 joined #nim |
17:38:57 | * | vendethiel quit (Ping timeout: 255 seconds) |
17:39:05 | * | strcmp1 joined #nim |
17:55:50 | * | smodo quit (Remote host closed the connection) |
17:55:53 | * | boopsiesisaway joined #nim |
17:56:31 | tmm1 | good morning |
17:57:51 | * | smodo joined #nim |
18:01:00 | * | brson quit (Ping timeout: 272 seconds) |
18:06:28 | * | vendethiel joined #nim |
18:13:50 | * | rollo quit (Ping timeout: 265 seconds) |
18:16:20 | NimBot | nim-lang/Nim devel 4baaea5 Reimer Behrends [+0 ±1 -0]: Properly initialize the Boehm GC on all platforms. |
18:16:20 | NimBot | nim-lang/Nim devel 639b5e0 Reimer Behrends [+0 ±3 -0]: Properly register threads with the Boehm GC.... 14 more lines |
18:16:20 | NimBot | nim-lang/Nim devel 9deab06 Reimer Behrends [+0 ±1 -0]: Include Boehm GC in garbage collection tests. |
18:16:20 | NimBot | nim-lang/Nim devel 250375b Reimer Behrends [+0 ±1 -0]: Remove spurious unsigned operations from system/threads.nim.... 4 more lines |
18:16:20 | NimBot | 3 more commits. |
18:21:26 | Araq | hi tmm1 |
18:21:37 | Araq | what's the status of our test suite? |
18:27:09 | * | pregressive quit (Remote host closed the connection) |
18:27:53 | * | pregressive joined #nim |
18:32:41 | * | pregressive quit (Remote host closed the connection) |
18:33:22 | * | pregressive joined #nim |
18:40:18 | * | brson joined #nim |
18:40:50 | * | pregressive quit (Remote host closed the connection) |
18:42:22 | NimBot | nim-lang/Nim devel 75097e2 Peter Mora [+2 ±9 -0]: sequtils related changes |
18:42:22 | NimBot | nim-lang/Nim devel 6318f77 Peter Mora [+0 ±1 -0]: restore {.immediate.} to toSeq |
18:42:22 | NimBot | nim-lang/Nim devel b284ace Peter Mora [+0 ±1 -0]: fixing unittest |
18:42:22 | NimBot | nim-lang/Nim devel e2468fe Peter Mora [+0 ±1 -0]: updated news.txt with backward compatibility breaks of sequtils |
18:42:22 | NimBot | 1 more commits. |
18:46:01 | * | pregressive joined #nim |
18:53:07 | * | darkf quit (Quit: Leaving) |
18:54:51 | tmm1 | Araq: still 9 failures on the windows build |
18:54:59 | tmm1 | and the --pedantic issue |
18:55:34 | Araq | does the --pendantic work on Unix? |
18:57:14 | * | brson quit (Ping timeout: 260 seconds) |
18:58:24 | NimBot | nim-lang/Nim devel 6823a60 Federico Ceratto [+0 ±1 -0]: Export substituteLog... 2 more lines |
18:58:24 | NimBot | nim-lang/Nim devel 08ec0ce Federico Ceratto [+0 ±1 -0]: Add substituteLog docs |
18:58:24 | NimBot | nim-lang/Nim devel f687003 Andreas Rumpf [+0 ±1 -0]: Merge pull request #3432 from FedericoCeratto/patch-4... 2 more lines |
19:08:35 | * | strcmp1 quit (Ping timeout: 264 seconds) |
19:14:18 | NimBot | nim-lang/Nim devel e0f8967 Araq [+1 ±2 -1]: docs now build again |
19:14:18 | NimBot | nim-lang/Nim devel c7a3079 Araq [+0 ±1 -0]: logging.nim: expose underlying 'file' object; errors and fatals flush the buffer; refs #3270 |
19:14:18 | NimBot | nim-lang/Nim devel 2c33ebe Araq [+0 ±2 -0]: improves new tests |
19:15:17 | * | BitPuffin quit (Ping timeout: 268 seconds) |
19:18:07 | NimBot | nim-lang/Nim devel e02e896 Rostyslav Dzinko [+0 ±1 -0]: Moved teardown call to try block for namespace access reasons |
19:18:07 | NimBot | nim-lang/Nim devel ee93ee5 Andreas Rumpf [+0 ±1 -0]: Merge pull request #3335 from SSPkrolik/teardown-move... 2 more lines |
19:38:12 | * | vendethiel quit (Ping timeout: 264 seconds) |
19:43:40 | * | vendethiel joined #nim |
19:46:24 | * | irrequietus joined #nim |
19:49:32 | OnO_ | hi Araq, did you see my remarks on using stderr for diagnostics #635 |
19:50:08 | * | OnO_ is now known as OnO |
19:51:36 | Araq | OnO: yeah, well. using stderr as an option already exists. maybe we should switch the defaults but I hate stderr. |
19:51:57 | * | flyx|znc joined #nim |
19:52:19 | OnO | like I said in the remarks all other compilers use stderr for diagnostics, I don't see why Nim should be different |
19:52:22 | * | flyx|znc is now known as flyx |
19:53:13 | Araq | because it is different. :P |
19:53:51 | Araq | also gcc doesn't write the exe to stdout, so it makes no sense that it uses stderr. |
19:54:20 | OnO | erm? yes it does when you use -o - |
19:54:56 | reactormonk | Araq, I'm starting to see some valid points about stdout/stderr - but I don't think it's ever gonna change. |
19:55:51 | Araq | these 2 message streams are dumb. why 2? why not 5? as a user how do I tell the difference? so >foo.txt doesn't work, let's try 2>foo.txt |
19:56:05 | reactormonk | Pretty much. |
19:57:04 | OnO | huh, I find it very simple stdout is command output, stderr are diagnostics that are not output (result) of the program |
19:57:21 | Araq | this distinction doesn't work. |
19:57:27 | OnO | like grep "File cannot be open" goes to stderr, where matches go to stdout |
19:57:41 | Araq | 'nim check' |
19:57:55 | Araq | what's the output? and what are diagnostics? |
19:57:59 | * | Ven joined #nim |
19:58:21 | Araq | so 'nim check' uses stdout and 'nim c' stderr? oh my. |
19:59:53 | OnO | oh well... so take this for example, nim script running some script that generates compiler warning |
20:00:04 | OnO | this warning will clutter script stdout |
20:00:14 | OnO | altering the output of the script |
20:00:36 | OnO | possibly making output invalid |
20:00:42 | OnO | do we want that? |
20:00:49 | OnO | same applies to nim run |
20:01:34 | OnO | eg. nimscript or program that parses XML and output JSON, any warning will make script output to be incorrect JSON file |
20:05:01 | Araq | you're just describing why using untyped streams of data is inferior to exposing a (simple) API. |
20:06:54 | * | nande joined #nim |
20:08:19 | * | Ven quit (Read error: Connection reset by peer) |
20:08:34 | OnO | okay, so nimscript is no good for making utilities that can work via pipes, I switch back to Python/Ruby |
20:09:31 | OnO | or maybe the whole world is wrong, and let's make things incompatible as an act of protest |
20:11:29 | Araq | or maybe you use the --stdout switch which makes Nim use stderr. (bad naming choice.) |
20:12:39 | Araq | but at the very beginning I told you I'm open for changing the default behaviour. |
20:15:14 | tmm1 | Araq: yes --pedantic is working on linux and mac |
20:15:57 | * | Ven joined #nim |
20:17:26 | Araq | heck, I even suggested a unix mode where we use filename:line:col: so that you can continue to use your inflexible environments |
20:18:01 | Araq | that's wasn't meant ironic. |
20:18:07 | Araq | do it. |
20:18:46 | OnO | okay, sure, but please note that this isn't about being flexible, but making things work out of the box |
20:19:09 | OnO | the filename:line:col: was I guess about TextMate diagnostics file autolinking |
20:19:27 | OnO | you can make it work with other formats but it requires extra work |
20:20:12 | Araq | tmm1: ok, good to know, let me take a look then. |
20:20:32 | tmm1 | it might be an issue with koch |
20:20:42 | tmm1 | although that works on linux too |
20:21:13 | ldlework | Araq: basically the only thing powershell gets right (the streams) |
20:21:45 | ldlework | that said, we should probably support normal pipes... |
20:21:59 | OnO | Araq: another issue is about this fasm dependency and the ticked #3248 you closed, since GCC/Clang needs to be used for boot we can use GCC/Clang assembler at boot stage and use .o/.obj with any compiler on target platform, including VC++ |
20:22:57 | OnO | all of this is because I remind you fasm doesn't work for OS X, Free BSD and many x86 platforms supported by Nim not using ELF or PE |
20:23:36 | Araq | well you're focussed on fasm. I'm focussed on using an external assembler to get things consistent across platforms |
20:23:51 | Araq | I don't carea bout fasm, we can use 'yasm' or whatever. |
20:25:06 | * | rollo joined #nim |
20:25:29 | Araq | also you can bootstrap with Visual. at least it used to work. |
20:27:25 | Araq | ldlework: for me it's pretty much Lisp vs Unix. Lisp had the superior ideas but the hardware wasn't there back then. Now the hardware is here since decades but we're still stuck with Unix. |
20:28:34 | ldlework | Araq: I agree with the ideals at play. I just want Nim to be useful as possible. |
20:28:53 | ldlework | Too bad we don't have typed pipes in unix though :( |
20:30:25 | Araq | OnO: well as long as coroutines crash the bootstrapping it doesn't matter how to clean it up. do you agree? |
20:31:29 | * | brson joined #nim |
20:31:38 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:32:06 | OnO | Araq: oh they still do crash, r-ku get us some fix pls |
20:35:28 | OnO | btw. do you think you can drop a mail to GitHub support so they reload the damn cache for our build badge? I am not part of Nim project so me writing them won't be legitimate |
20:35:29 | * | Ven joined #nim |
20:36:39 | OnO | our OSX build server works well, so thanks to Varriount we are close to automated builds |
20:37:11 | reactormonk | OnO, perfect. |
20:38:42 | OnO | Varriount: wondering if we could possibly consider using Travis for multiplatform builds too, because now we need to somehow support two CIs at once |
20:40:01 | OnO | or maybe I am wrong and Travis cannot be really used on own servers |
20:48:59 | * | jakesyl quit (Ping timeout: 240 seconds) |
20:52:34 | Araq | OnO: sent you an invitation instead |
20:53:06 | Araq | I am not comfortable with writing emails about topics I have no clue about |
20:53:55 | OnO | okay, makes sense, I'll try to sort it our myself then |
20:54:20 | * | rollo quit (Quit: Leaving) |
20:55:24 | tmm1 | what build badge? |
20:57:38 | * | brson quit (Ping timeout: 260 seconds) |
20:58:31 | Araq | tmm1: koch uses os.execShellCmd which has some interesting code in it |
20:58:54 | Araq | it uses C's system call. but on linux does shr 8. |
20:59:39 | tmm1 | i think exec() was working, but tryExec() wasn't |
20:59:55 | tmm1 | maybe tryExec() just needs to say "> 0" |
21:01:01 | tmm1 | err, == 0 is right |
21:02:02 | * | jakesyl joined #nim |
21:02:32 | tmm1 | yea i'm not sure what's going on. i'm running koch test all --pedantic and it didn't fail on `tester all --pedantic` but does fail on `tester html` |
21:03:14 | tmm1 | once i disabled `tester html` on appveyor its not failing the build at all |
21:03:16 | * | smodo quit (Ping timeout: 244 seconds) |
21:08:07 | OnO | tmm1: on the bottom of Nim's GitHub page |
21:08:54 | OnO | Araq: and btw. thanks for invitation |
21:09:45 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:10:38 | Araq | you're welcome. |
21:12:40 | * | elrood joined #nim |
21:15:00 | tmm1 | OnO: those images are not cached, only proxied |
21:17:37 | OnO | tmm1: I don't think so, the http://buildbot.nim-lang.org/buildstatusimage?builder=mac-x64-builder is not returning the same thing as the https://camo.githubusercontent.com/6dda77e336602cbabc1015e2a66a15c00db2f3b9/687474703a2f2f6275696c64626f742e6e696d2d6c616e672e6f72672f6275696c64737461747573696d6167653f6275696c6465723d6d61632d7836342d6275696c646572 which is the link used at rendered markdown |
21:18:12 | OnO | see https://github.com/github/markup/issues/224 there's issue about that |
21:21:26 | * | CARAM__ quit (Ping timeout: 240 seconds) |
21:22:19 | * | Guest4360 quit (Ping timeout: 240 seconds) |
21:24:39 | * | pmbauer quit (Ping timeout: 250 seconds) |
21:24:49 | * | n1ftyn8_ quit (Ping timeout: 256 seconds) |
21:26:49 | * | NhanH quit (Read error: Connection reset by peer) |
21:28:02 | tmm1 | strange. if you curl the proxy url for that badge it says "unknown build number 'None'" |
21:31:40 | OnO | tmm1: I think this is some very old response of buildbot when there was no OSX slave configured |
21:35:08 | tmm1 | OnO: it should be fixed now |
21:36:19 | OnO | tmm1: did you do anything? |
21:36:37 | tmm1 | OnO: yea i purged the cache as you said |
21:36:49 | tmm1 | the old response was missing a Cache-Control header so it got cached indefinitely |
21:37:06 | tmm1 | the image responses have the correct header so they do not get cached incorrectly |
21:38:11 | OnO | yeah, but how did you purge the cache from GitHub cache server? (superpowers?) |
21:42:26 | tmm1 | i work at github |
21:44:51 | OnO | :) |
21:45:00 | OnO | so superpowers then |
21:45:17 | * | brson joined #nim |
21:46:16 | tmm1 | just regular powers |
21:49:20 | OnO | anyways that's great to have GitHub employee contribute to Nim |
21:49:44 | OnO | btw. do you know if Travis can be used as build server on our own machines? |
21:51:18 | * | Senketsu quit (Remote host closed the connection) |
21:53:31 | OnO | another thing, maybe you can help with is: https://github.com/github/markup/issues/498 (sorry for offtopic) |
21:53:34 | * | Senketsu joined #nim |
21:55:52 | tmm1 | travis has a self-hosted "enterprise" version but its aimed at big companies |
21:56:25 | tmm1 | and i don't think it will support multiple platforms |
21:58:42 | * | Trustable quit (Remote host closed the connection) |
22:00:33 | * | NhanH joined #nim |
22:00:40 | * | pregressive quit (Remote host closed the connection) |
22:01:06 | OnO | okay, thanks for the info |
22:01:11 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:02:32 | * | pmbauer joined #nim |
22:06:03 | NimBot | nim-lang/Nim threadpool-isready dda41af Dominik Picheta [+0 ±1 -0]: Implement isReady procedure in threadpool module. |
22:07:28 | * | n1ftyn8_ joined #nim |
22:11:01 | * | strcmp1 joined #nim |
22:12:42 | * | Guest4360 joined #nim |
22:13:56 | * | vendethiel quit (Ping timeout: 250 seconds) |
22:17:29 | * | CARAM__ joined #nim |
22:26:12 | * | brson quit (Quit: leaving) |
22:26:30 | * | brson joined #nim |
22:26:43 | federico3 | doing a send() on a channel triggers an error in gc.nim - Error: can have an unlisted effect: RootEffect |
22:29:40 | * | irrequietus quit () |
22:31:08 | Araq | federico3: is that a regression? |
22:32:37 | federico3 | I haven't tested it with any Nim release, just dev |
22:33:15 | Araq | well my code uses send just fine |
22:33:23 | Araq | so you have to be more specific |
22:34:28 | Araq | but I am trying hard to get as many PRs and improvements as possible to 0.12.0 so it might have been introduced today |
22:36:05 | federico3 | no, it happened with devel since a while |
22:36:23 | federico3 | I'm updating devel... |
22:36:46 | * | Varriount quit (Ping timeout: 240 seconds) |
22:39:26 | * | Varriount joined #nim |
22:42:27 | federico3 | ok, apparently it's due to log() listing 3 effects in https://github.com/nim-lang/Nim/blob/devel/lib/pure/logging.nim#L127 |
22:43:00 | federico3 | ...while send() on Channel has RootEffect |
22:43:40 | * | Varriount_ joined #nim |
22:43:43 | onionhammer | https://code.visualstudio.com/updates |
22:43:45 | * | Varriount quit (Ping timeout: 240 seconds) |
22:44:02 | onionhammer | time for someone to make a nim plugin for vscode |
22:44:50 | * | CryptoToad joined #nim |
22:45:58 | * | nande quit (Remote host closed the connection) |
22:48:32 | * | strcmp2 joined #nim |
22:49:04 | OnO | Araq: is there any way to unwrap argument args: varargs[expr] in template, so someOtherProc(args) will receive args as separate arguments? |
22:49:22 | Araq | nope, needs a helper macro. |
22:49:46 | Araq | only macros can do the iteration to unwrap varargs |
22:49:57 | OnO | this is what I thought, maybe some pragma then? |
22:50:16 | OnO | someOtherProc(args) {.unwrap.} ? |
22:50:18 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:50:20 | Araq | I think we only have to add a helper to macros.nim |
22:51:19 | * | strcmp1 quit (Ping timeout: 252 seconds) |
22:51:20 | Araq | template foo(args: varargs[untyped]) = unpack(someFunc, args) |
22:51:22 | * | Jesin quit (Quit: Leaving) |
22:51:51 | OnO | ahh... yeah, I'd remove couple of my trivial helper macros this way |
22:52:11 | OnO | maybe call it "call"? |
22:52:21 | OnO | template foo(args: varargs[untyped]) = call(someFunc, args) |
22:52:24 | Araq | no. |
22:52:40 | federico3 | it looks like overriding a method cannot change the effects |
22:52:45 | federico3 | any way around it? |
22:52:54 | Araq | 'cast' it. |
22:53:19 | Araq | you need to cast the evil call into a proc type that has the effects you desire. |
22:53:41 | Araq | well. you need to cast the 'f' like so |
22:54:18 | Araq | cast[proc (argshere) {.nimcall, tags: [].}](f)(a, b, c) |
22:54:53 | Araq | that an overriding method cannot change the effects is of course a requirement for soundness. |
22:55:22 | Araq | the real problem here is that 'send' has the RootEffect. I wonder why that is. |
22:57:06 | Araq | also 'log' should simply declare tags: [RootEffect] I guess. |
23:02:13 | OnO | Araq: if we call if 'unpack' can 1st param have some specific type that binds only to proc symbols? |
23:04:23 | Araq | that would be 'x: proc' then |
23:04:28 | Araq | but why? |
23:04:48 | Araq | usually the 'f' is not among the packed arguments |
23:05:15 | federico3 | thanks |
23:07:33 | * | elrood quit (Quit: Leaving) |
23:27:59 | * | jaco60 quit (Ping timeout: 240 seconds) |
23:40:40 | Araq | tmm1: this returns 1 for me: |
23:40:50 | Araq | import os |
23:40:51 | Araq | if paramCount() == 1 and paramStr(1) == "quit": |
23:40:53 | Araq | quit 1 |
23:40:54 | Araq | echo os.execShellCmd("temp.exe quit") |
23:40:59 | Araq | # file: temp.nim |
23:41:32 | tmm1 | what about quit("tests failed", QuitFailure) |
23:42:03 | Araq | that's not what the tester uses. but let's see |
23:42:22 | tmm1 | that's what i see in koch anyway |
23:42:48 | tmm1 | or try `./koch test r tests\objects\tobjconstr2.nim` |
23:42:51 | Araq | well that works too |
23:42:56 | tmm1 | with a test that fails |
23:44:28 | Araq | well I'm on a branch right now where everything fails anyway |
23:44:49 | Araq | but quit "tests failed", QuitFailure works for me |