00:05:09 | * | vendethiel quit (Ping timeout: 260 seconds) |
00:27:40 | * | couven92 quit (Quit: Exiting) |
00:38:38 | * | vendethiel joined #nim |
01:00:33 | * | vendethiel quit (Ping timeout: 240 seconds) |
01:07:02 | * | vendethiel joined #nim |
01:15:23 | * | izi quit (Read error: Connection reset by peer) |
01:19:06 | * | izi joined #nim |
01:29:04 | * | vendethiel quit (Ping timeout: 268 seconds) |
01:34:38 | * | brson joined #nim |
01:36:00 | * | vendethiel joined #nim |
01:59:15 | * | vendethiel quit (Ping timeout: 246 seconds) |
02:00:35 | * | Jesin quit (Quit: Leaving) |
02:09:39 | * | brson quit (Quit: leaving) |
02:27:17 | * | desophos_ joined #nim |
02:31:16 | * | desophos quit (Ping timeout: 244 seconds) |
02:45:00 | * | yglukhov joined #nim |
02:46:13 | * | desophos_ is now known as desophos |
02:49:13 | * | yglukhov quit (Ping timeout: 252 seconds) |
04:21:28 | * | yglukhov joined #nim |
04:25:54 | * | yglukhov quit (Ping timeout: 260 seconds) |
04:32:40 | * | vendethiel joined #nim |
05:04:44 | * | endragor joined #nim |
05:29:18 | * | gokr joined #nim |
05:41:57 | * | darkf quit (Read error: Connection reset by peer) |
05:42:26 | * | darkf joined #nim |
06:07:03 | * | gokr quit (Ping timeout: 240 seconds) |
06:17:51 | * | endragor_ joined #nim |
06:21:01 | * | desophos quit (Read error: Connection reset by peer) |
06:21:24 | * | endragor quit (Ping timeout: 260 seconds) |
06:43:41 | * | gokr joined #nim |
06:52:11 | * | endragor_ quit (Remote host closed the connection) |
06:52:40 | * | endragor joined #nim |
06:58:25 | * | gokr quit (Quit: Leaving.) |
07:00:01 | * | Trustable joined #nim |
07:09:55 | * | yglukhov joined #nim |
07:34:10 | * | cheatfate_ joined #nim |
07:34:44 | * | cheatfate quit (Read error: Connection reset by peer) |
07:36:27 | * | g00 quit (Ping timeout: 250 seconds) |
07:37:50 | * | pandada8 quit (Ping timeout: 268 seconds) |
07:38:03 | * | cheatfate_ is now known as cheatfate |
07:44:10 | * | wh1t3r0s3 joined #nim |
07:51:22 | * | gokr joined #nim |
07:52:40 | * | Demon_Fox quit (Quit: Leaving) |
07:57:05 | * | dorei joined #nim |
08:00:58 | * | endragor quit (Remote host closed the connection) |
08:04:25 | * | pandada8 joined #nim |
08:11:34 | * | gokr1 joined #nim |
08:15:28 | * | gokr quit (Ping timeout: 264 seconds) |
08:34:29 | * | vendethiel quit (Ping timeout: 244 seconds) |
08:36:57 | * | vendethiel joined #nim |
08:44:19 | * | girvo quit (Ping timeout: 244 seconds) |
08:45:10 | * | girvo joined #nim |
08:46:18 | * | Arrrr joined #nim |
08:59:48 | * | vendethiel quit (Ping timeout: 244 seconds) |
09:02:52 | * | endragor joined #nim |
09:06:40 | * | vendethiel joined #nim |
09:18:09 | * | enthus1ast quit (Ping timeout: 260 seconds) |
09:23:03 | * | t4nk460 joined #nim |
09:30:12 | * | t4nk460 quit (Ping timeout: 250 seconds) |
09:35:01 | Arrrr | Why is mget deprecated and what do we have to use instead of it? |
09:35:48 | Araq | Arrrr: just [] |
09:36:17 | Arrrr | Uh, you are right. I got a 'no address' error and thought it was because of that operator, but i was wrong |
09:36:19 | Arrrr | thanks |
09:36:55 | Araq | do you work on --gc:stack now? |
09:37:46 | cheatfate | Araq, when building compiler i always get this warning (lib/pure/osproc.nim(878, 9) Warning: raiseOSError is deprecated [Deprecated]) but i'm using raiseOsError(osLastError()) and dont receive any Depricated warnings is this bug? |
09:38:10 | Araq | come again? |
09:45:38 | * | coffeepot joined #nim |
09:48:19 | cheatfate | Araq, ? |
09:50:17 | Araq | I don't understand your question |
09:52:13 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:52:18 | cheatfate | If you try to build compiler you will get this warning "lib/pure/osproc.nim(878, 9) Warning: raiseOSError is deprecated [Deprecated]" |
09:52:59 | * | coffeepot joined #nim |
09:54:08 | cheatfate | But it looks like raiseOsError(osLastError()) - not raise warning |
09:54:19 | cheatfate | raiseOSError("Could not find command: '$1'. OS error: $2" % [$data.sysCommand, $strerror(error)]) - raise warning |
09:54:35 | * | coffeepot quit (Client Quit) |
09:55:03 | dom96 | cheatfate: raiseOSError which takes a string is deprecated |
09:55:11 | dom96 | but not the one which takes an error code |
09:55:22 | cheatfate | dom96, thanks |
09:55:26 | Araq | yup. |
09:55:28 | Araq | bbl |
10:06:50 | vegansk | dom96, hi. Do you remember my question about ``nrpl`` in nimble packages? (http://irclogs.nim-lang.org/01-04-2016.html at 08:39:19). |
10:08:14 | dom96 | vegansk: yes, go for it. If your fork is more up to date I will update the packages repo. |
10:09:26 | * | coffeepot joined #nim |
10:11:26 | coffeepot | heya :) |
10:11:59 | coffeepot | This code errors with type mismatch got int expected string https://gist.github.com/coffeepots/3d033d110ab04cab9df8758bfc8a6f1c |
10:12:22 | coffeepot | if you comment out the proc test it runs! |
10:12:59 | endragor | makes sense |
10:13:12 | coffeepot | how come local templates don't get called when there's a proc with the same name? |
10:13:24 | endragor | echo calls `$` for non-str values. Nim doesn't do that in other places |
10:13:41 | endragor | oh you mean that |
10:13:51 | coffeepot | this is a test case for something that doesn't use echo |
10:14:56 | endragor | well I'd guess in case of ambiguity Nim prefers procs, because they are more specific |
10:15:47 | coffeepot | specifically, I was asked to change some procs in times.nim to "toTime", and this is causing os.nim to not compile, because at line 1462 there's a local template called "toTime". Now os.nim doesn't compile because it tries to call the times.nim versions and ignores the template. I tried editing the template in os.nim to take a specific type but it' |
10:15:47 | coffeepot | s still ignored |
10:15:48 | vegansk | dom96: here is the PR: https://github.com/nim-lang/packages/pull/336 |
10:16:35 | coffeepot | surely the template should fire if there is no overloaded proc that matches though? |
10:17:22 | coffeepot | to be honest, I would have expected the local template to take precedence over procs in another module |
10:17:28 | endragor | and I think it does in your example, doesn't it? If, as you said, removing the `test` proc made it compile |
10:18:58 | coffeepot | if you comment out line 1, then it will use the template, but this means that a template won't work if there's a proc with the same name, even in another module... |
10:19:13 | coffeepot | is this a bug? |
10:20:27 | endragor | not sure. I'd consider erroring out in case of ambiguity, but perhaps Araq had his reasons not to |
10:23:04 | coffeepot | if Nim checks types first, i'd have expected it to consider the proc first then fall back on the template, if Nim considers scope first I'd expect the template to be used before the proc. I had not expect the proc to essentially remove the existence of the template! |
10:25:04 | coffeepot | Araq can you comment on whether this is by design? |
10:29:50 | Araq | coffeepot: oh god just a sec. |
10:30:01 | coffeepot | lol no probs :) |
10:32:15 | * | arnetheduck joined #nim |
10:34:39 | * | vendethiel quit (Ping timeout: 276 seconds) |
10:36:29 | coffeepot | btw, moving the test template outside of the testt template, the code works fine. So it seems to be isolated to local templates |
10:36:32 | * | elrood joined #nim |
10:37:56 | * | vendethiel joined #nim |
10:38:52 | vegansk | yglukhov, hi! What do you think about the ability to rename imported classes and methods in jnim. Something like that: https://gist.github.com/vegansk/89b2a3bc144408128fdcd8a45dc9c1b5 |
10:39:28 | Araq | local templates default to 'bind' semantics, not 'gensym'. coffeepot add {.gensym.} to the local inner template and see what happens. |
10:39:56 | coffeepot | Yep, now it works! |
10:40:15 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
10:40:30 | * | coffeepot joined #nim |
10:40:36 | coffeepot | Araq, is there a reason for this default? |
10:40:56 | Araq | yes but I don't understand it. |
10:41:07 | coffeepot | ok, fair enough :) |
10:41:35 | coffeepot | well I'll just use {.gensym.} on the os.nim template to get the times.nim changes to compile hopefully. |
10:42:08 | coffeepot | bit of a gotcha for local templates though! Not what I expected at least |
10:42:28 | yglukhov | vegansk: good idea, but it seems to me that you've mixed real names vs import names. consider pure nim: proc myImportedProc() {.importc: "NameOfTheProcInC".} |
10:43:04 | * | coffeepot quit (Client Quit) |
10:43:16 | * | coffeepot joined #nim |
10:43:52 | vegansk | yglukhov, ok, and let it be ``importc``. Updated the gist. And what about ``import`` syntax |
10:43:55 | vegansk | ? |
10:46:00 | yglukhov | does pure nim allow importing and renaming? i cant remember. if it does we sohuld use the same approach i think. if it doesnt, then i like your syntax |
10:46:58 | vegansk | modules can be renamed: http://nim-lang.org/docs/manual.html#modules-module-names-in-imports |
10:47:56 | yglukhov | oh cool. so it pretty much matches with your suggestion. |
10:49:48 | vegansk | ok! |
10:49:51 | yglukhov | added you to the group. just please don't do breaking changes without a pr. |
10:50:09 | * | endragor quit (Remote host closed the connection) |
10:50:41 | * | dorei quit (Quit: Page closed) |
10:52:39 | vegansk | thanks! i'll be carefull :-) |
10:53:52 | Araq | vegansk: I fixed your LL bug. I hope. |
10:55:39 | vegansk | Araq, thank you so much! This was a really showstopper for my FP experiments :-) |
10:59:08 | * | endragor joined #nim |
10:59:34 | * | vendethiel quit (Ping timeout: 240 seconds) |
10:59:57 | reactormonk | vegansk, I wonder, how do you implement monoids? |
11:03:18 | * | endragor quit (Ping timeout: 244 seconds) |
11:05:16 | * | ehmry joined #nim |
11:12:41 | vegansk | reactormonk, it didn't implemented now in fp library, but something like this. https://gist.github.com/vegansk/fd722ed9d42da3c1c829815d56ccec6a. Do not checked if it compiles :-) |
11:13:38 | vegansk | And same thing for the other types |
11:19:17 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
11:19:29 | * | coffeepot joined #nim |
11:20:01 | vegansk | Don't know yet if the current concepts implementation will be enough to create typeclasses |
11:20:31 | * | enthus1ast joined #nim |
11:20:58 | Araq | the current concept implementation is the worst hack that's left in the compiler. |
11:21:33 | Araq | I have a new-concept branch ... |
11:21:48 | reactormonk | Araq, I don't think you actually need concepts for FP |
11:23:32 | Araq | reactormonk: never said anything like that. |
11:24:37 | reactormonk | vegansk, try for typeclasses without concepts for now :-) |
11:26:48 | vegansk | reactormonk, i want to implement for comprehension, (un)currying and other usefull things before typeclasses and theirs implementation :-) |
11:28:12 | reactormonk | vegansk, no interest in the full TC hierarchy? |
11:30:37 | * | vendethiel joined #nim |
11:32:25 | cheatfate | vegansk, please check https://github.com/nim-lang/Nim/pull/4000 |
11:32:34 | vegansk | reactormonk, not now, maybe later :-) |
11:37:32 | vegansk | cheatfate, hi. i saw it, will fix it later. but there is only one warning for me then both modules are imported: https://gist.github.com/vegansk/45f223efd80f8a89a126aa0e277ed111 |
11:38:12 | * | Guest59926isaway is now known as Guest59926 |
11:39:01 | cheatfate | vegansk, its better to just move all rmlocks staff from syslocks.nim because rlocks nim not used in stub code... |
11:50:10 | * | fredrik92 joined #nim |
11:50:23 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
11:50:38 | * | coffeepot joined #nim |
11:53:49 | * | M-Quora quit (Remote host closed the connection) |
11:53:50 | * | M-max1 quit (Remote host closed the connection) |
11:54:18 | * | coffeepot quit (Client Quit) |
11:54:30 | * | coffeepot joined #nim |
11:54:43 | * | vendethiel quit (Ping timeout: 250 seconds) |
11:59:07 | * | vendethiel joined #nim |
12:00:46 | * | M-max joined #nim |
12:01:44 | * | vegansk is now known as veganskaway |
12:12:39 | * | Guest59926 is now known as bup |
12:12:43 | * | bup is now known as boop |
12:12:53 | * | boop is now known as boopsies |
12:32:25 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
12:32:43 | * | coffeepot joined #nim |
12:33:43 | * | coffeepot quit (Client Quit) |
12:33:59 | * | coffeepot joined #nim |
12:38:35 | * | boopsies is now known as boopsiesisaway |
12:44:16 | * | vendethiel quit (Ping timeout: 264 seconds) |
12:51:11 | * | vendethiel joined #nim |
13:02:07 | * | PMunch joined #nim |
13:03:15 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:03:21 | * | vangroan joined #nim |
13:03:28 | * | coffeepot joined #nim |
13:05:10 | * | M-Quora joined #nim |
13:05:21 | * | fredrik92 quit (Quit: Exiting) |
13:07:12 | * | Galax joined #nim |
13:07:17 | * | Galax left #nim ("WeeChat 1.5-dev") |
13:07:26 | * | endragor joined #nim |
13:18:21 | * | darkf quit (Quit: Leaving) |
13:35:16 | * | vendethiel quit (Ping timeout: 264 seconds) |
13:43:28 | * | gokr1 quit (Ping timeout: 244 seconds) |
13:46:28 | ehmry | I would like to bootstrap a new platform and I need to rebuild the csources compiler, how do I regerenerate the niminst scripts? |
13:47:04 | dom96 | hello ehmry! |
13:47:08 | ehmry | hello |
13:47:34 | dom96 | I think you can regenerate those by executing ./koch csources -d:release |
13:47:41 | ehmry | ok, let me try |
13:50:47 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:50:54 | * | BitPuffin joined #nim |
13:50:55 | * | enthus1ast quit (Ping timeout: 268 seconds) |
13:51:02 | * | coffeepot joined #nim |
13:55:12 | ehmry | that looks like it |
13:57:16 | * | vangroan quit (Quit: Leaving) |
13:57:53 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:58:10 | * | coffeepot joined #nim |
13:59:36 | ehmry | thanks |
14:02:57 | dom96 | np :) |
14:04:27 | * | saml joined #nim |
14:10:39 | * | enthus1ast joined #nim |
14:13:15 | * | vendethiel joined #nim |
14:13:19 | ehmry | the csources build completes, but I don't know what the product was |
14:14:27 | ehmry | well I see I have niminst now |
14:28:14 | * | pregressive joined #nim |
14:36:09 | * | vendethiel quit (Ping timeout: 244 seconds) |
14:53:21 | * | vendethiel joined #nim |
15:05:23 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
15:06:33 | * | coffeepot joined #nim |
15:08:41 | * | coffeepot quit (Client Quit) |
15:16:32 | * | vendethiel quit (Ping timeout: 260 seconds) |
15:17:38 | * | Jesin joined #nim |
15:19:15 | * | arnetheduck quit (Ping timeout: 250 seconds) |
15:22:09 | * | PMunch quit (Ping timeout: 246 seconds) |
15:28:44 | * | vendethiel joined #nim |
15:33:51 | * | endragor_ joined #nim |
15:36:35 | * | endragor quit (Ping timeout: 250 seconds) |
15:38:15 | * | endragor_ quit (Ping timeout: 246 seconds) |
16:04:17 | reactormonk | Close https://github.com/nim-lang/Nim/issues/3672 since won't fix? |
16:08:35 | dom96 | reactormonk: give veganskaway a chance to reply :) |
16:31:20 | * | izi quit (Quit: Leaving) |
16:35:42 | * | allan0 quit (Quit: no) |
16:37:25 | * | vendethiel quit (Ping timeout: 268 seconds) |
16:37:33 | federico3 | how can I convert a string to an array? |
16:38:56 | * | vendethiel joined #nim |
16:52:52 | * | boopsiesisaway is now known as boopsies |
16:55:06 | * | desophos joined #nim |
16:56:49 | * | allan0 joined #nim |
17:00:00 | elrood | federico3, maybe you want to rephrase your question? strings are basically sequences or growable arrays already, aren't they? what is it that you're after? |
17:04:18 | * | Demon_Fox joined #nim |
17:05:52 | * | enthus1ast quit (Ping timeout: 264 seconds) |
17:16:41 | * | brson joined #nim |
17:17:13 | federico3 | elrood: I was looking for a simple syntax to populate a fixed-size array from a string, I ended up using a hex string and doing a cycle over the array |
17:17:16 | federico3 | result[i] = key[i*2..i*2+1].parseHexInt.uint8 |
17:22:51 | * | vendethiel quit (Ping timeout: 276 seconds) |
17:26:06 | * | yglukhov quit (Ping timeout: 276 seconds) |
17:28:14 | * | ludocode quit (Read error: Connection reset by peer) |
17:28:54 | * | ludocode joined #nim |
17:34:04 | * | vendethiel joined #nim |
17:47:29 | * | krux02 joined #nim |
17:57:46 | * | Matthias247 joined #nim |
18:09:36 | flyx | `$` seems to add underscores for int, can I deactivate that? |
18:10:34 | * | Demon_Fox quit (Quit: Leaving) |
18:11:08 | * | yglukhov joined #nim |
18:11:57 | flyx | hmm, I can't reproduce it in a minimal example |
18:12:33 | flyx | is there a scenario where it might generate "-4_247" instead of "-4247" |
18:12:53 | flyx | if not, something I do not understand is happening in my code |
18:15:37 | * | yglukhov quit (Ping timeout: 260 seconds) |
18:16:21 | dom96 | That would be very strange |
18:17:48 | dom96 | keep shortening your code until you find the cause |
18:25:13 | elrood | federico3, wouldn't arr[0..len(str)-1]=str suffice? |
18:25:29 | * | Ven joined #nim |
18:25:52 | * | gokr joined #nim |
18:27:01 | flyx | ouch. there's a proc elsewhere in my testcode that gets called instead of what I expected would get called |
18:27:59 | flyx | so, when I have `type BetterInt = int`, why is a proc taking a `BetterInt` used instead of one taking an `int` when the parameter is an `int`? |
18:28:55 | * | Ven quit (Client Quit) |
18:29:17 | def- | flyx: because those are now the same type, you might want a distinct type |
18:31:03 | flyx | oh. well but with a distinct type, I would need to borrow everything |
18:31:16 | flyx | but okay, if that's how it is, I'll do that |
18:32:27 | dom96 | maybe you could just provide a converter toInt(x: BetterInt): int? |
18:33:16 | dom96 | although that might result in the same outcome |
18:34:39 | flyx | I remember I saw a proposition to have {.borrow.} available for the whole type somewhere |
18:49:57 | def- | dom96: no, without a converter it should be fine, conversion only in one direction |
18:50:09 | def- | with a converter* |
18:56:36 | dom96 | Cool. |
18:56:42 | dom96 | def-: what are you working on nowadays? |
18:58:47 | * | themagician quit (Ping timeout: 260 seconds) |
18:59:46 | * | AckZ quit () |
19:03:51 | * | themagician joined #nim |
19:04:51 | * | shodan45 joined #nim |
19:19:08 | * | enthus1ast joined #nim |
19:23:01 | * | izi joined #nim |
19:39:30 | * | BitPuffin quit (Read error: Connection reset by peer) |
19:47:29 | * | yglukhov joined #nim |
20:22:05 | * | yglukhov quit (Remote host closed the connection) |
20:22:43 | * | alexsystemf_ joined #nim |
20:26:29 | * | Arrrr quit (Quit: WeeChat 1.4) |
20:30:23 | * | gokr left #nim (#nim) |
20:32:42 | * | yglukhov joined #nim |
20:55:56 | * | krux02 quit (Quit: Verlassend) |
21:07:40 | * | ephja joined #nim |
21:22:30 | * | boopsies is now known as boopsiesisaway |
21:30:18 | * | desophos_ joined #nim |
21:34:02 | * | desophos quit (Ping timeout: 268 seconds) |
21:38:51 | * | desophos_ quit (Remote host closed the connection) |
21:42:20 | * | flaviu joined #nim |
21:44:36 | * | desophos joined #nim |
21:45:45 | * | desophos quit (Remote host closed the connection) |
21:48:35 | * | gokr joined #nim |
21:55:09 | * | Demon_Fox joined #nim |
21:57:49 | * | desophos joined #nim |
21:59:00 | * | desophos quit (Remote host closed the connection) |
22:03:52 | * | desophos joined #nim |
22:07:22 | * | desophos quit (Remote host closed the connection) |
22:09:36 | * | shodan45 quit (Quit: Konversation terminated!) |
22:17:57 | * | flaviu quit (Ping timeout: 276 seconds) |
22:18:17 | * | vendethiel quit (Ping timeout: 260 seconds) |
22:22:27 | * | flaviu joined #nim |
22:23:04 | * | Trustable quit (Remote host closed the connection) |
22:27:27 | * | desophos joined #nim |
22:27:43 | * | ozra joined #nim |
22:27:51 | * | ozra left #nim (#nim) |
22:28:41 | * | desophos quit (Remote host closed the connection) |
22:31:30 | * | desophos joined #nim |
22:34:06 | * | desophos quit (Remote host closed the connection) |
22:34:21 | * | desophos joined #nim |
22:34:39 | * | vendethiel joined #nim |
22:39:04 | * | darkf joined #nim |
22:45:19 | * | yglukhov quit (Remote host closed the connection) |
22:52:44 | * | flaviu left #nim (#nim) |
22:55:21 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:56:33 | * | vendethiel quit (Ping timeout: 240 seconds) |
23:00:17 | * | Jesin quit (Quit: Leaving) |
23:00:28 | * | brson quit (Ping timeout: 244 seconds) |
23:08:07 | * | vendethiel joined #nim |
23:18:30 | * | elrood quit (Quit: Leaving) |
23:29:14 | * | vendethiel quit (Ping timeout: 260 seconds) |
23:37:59 | * | Jesin joined #nim |
23:39:47 | * | brson joined #nim |
23:44:22 | * | gokr quit (Remote host closed the connection) |
23:52:36 | * | vendethiel joined #nim |