<< 04-04-2016 >>

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:01ArrrrWhy is mget deprecated and what do we have to use instead of it?
09:35:48AraqArrrr: just []
09:36:17ArrrrUh, you are right. I got a 'no address' error and thought it was because of that operator, but i was wrong
09:36:19Arrrrthanks
09:36:55Araqdo you work on --gc:stack now?
09:37:46cheatfateAraq, 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:10Araqcome again?
09:45:38*coffeepot joined #nim
09:48:19cheatfateAraq, ?
09:50:17AraqI don't understand your question
09:52:13*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
09:52:18cheatfateIf 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:08cheatfateBut it looks like raiseOsError(osLastError()) - not raise warning
09:54:19cheatfateraiseOSError("Could not find command: '$1'. OS error: $2" % [$data.sysCommand, $strerror(error)]) - raise warning
09:54:35*coffeepot quit (Client Quit)
09:55:03dom96cheatfate: raiseOSError which takes a string is deprecated
09:55:11dom96but not the one which takes an error code
09:55:22cheatfatedom96, thanks
09:55:26Araqyup.
09:55:28Araqbbl
10:06:50veganskdom96, 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:14dom96vegansk: 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:26coffeepotheya :)
10:11:59coffeepotThis code errors with type mismatch got int expected string https://gist.github.com/coffeepots/3d033d110ab04cab9df8758bfc8a6f1c
10:12:22coffeepotif you comment out the proc test it runs!
10:12:59endragormakes sense
10:13:12coffeepothow come local templates don't get called when there's a proc with the same name?
10:13:24endragorecho calls `$` for non-str values. Nim doesn't do that in other places
10:13:41endragoroh you mean that
10:13:51coffeepotthis is a test case for something that doesn't use echo
10:14:56endragorwell I'd guess in case of ambiguity Nim prefers procs, because they are more specific
10:15:47coffeepotspecifically, 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:47coffeepots still ignored
10:15:48veganskdom96: here is the PR: https://github.com/nim-lang/packages/pull/336
10:16:35coffeepotsurely the template should fire if there is no overloaded proc that matches though?
10:17:22coffeepotto be honest, I would have expected the local template to take precedence over procs in another module
10:17:28endragorand I think it does in your example, doesn't it? If, as you said, removing the `test` proc made it compile
10:18:58coffeepotif 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:13coffeepotis this a bug?
10:20:27endragornot sure. I'd consider erroring out in case of ambiguity, but perhaps Araq had his reasons not to
10:23:04coffeepotif 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:04coffeepotAraq can you comment on whether this is by design?
10:29:50Araqcoffeepot: oh god just a sec.
10:30:01coffeepotlol no probs :)
10:32:15*arnetheduck joined #nim
10:34:39*vendethiel quit (Ping timeout: 276 seconds)
10:36:29coffeepotbtw, 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:52veganskyglukhov, 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:28Araqlocal templates default to 'bind' semantics, not 'gensym'. coffeepot add {.gensym.} to the local inner template and see what happens.
10:39:56coffeepotYep, 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:36coffeepotAraq, is there a reason for this default?
10:40:56Araqyes but I don't understand it.
10:41:07coffeepotok, fair enough :)
10:41:35coffeepotwell I'll just use {.gensym.} on the os.nim template to get the times.nim changes to compile hopefully.
10:42:08coffeepotbit of a gotcha for local templates though! Not what I expected at least
10:42:28yglukhovvegansk: 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:52veganskyglukhov, ok, and let it be ``importc``. Updated the gist. And what about ``import`` syntax
10:43:55vegansk?
10:46:00yglukhovdoes 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:58veganskmodules can be renamed: http://nim-lang.org/docs/manual.html#modules-module-names-in-imports
10:47:56yglukhovoh cool. so it pretty much matches with your suggestion.
10:49:48veganskok!
10:49:51yglukhovadded 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:39veganskthanks! i'll be carefull :-)
10:53:52Araqvegansk: I fixed your LL bug. I hope.
10:55:39veganskAraq, 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:57reactormonkvegansk, I wonder, how do you implement monoids?
11:03:18*endragor quit (Ping timeout: 244 seconds)
11:05:16*ehmry joined #nim
11:12:41veganskreactormonk, 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:38veganskAnd 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:01veganskDon't know yet if the current concepts implementation will be enough to create typeclasses
11:20:31*enthus1ast joined #nim
11:20:58Araqthe current concept implementation is the worst hack that's left in the compiler.
11:21:33AraqI have a new-concept branch ...
11:21:48reactormonkAraq, I don't think you actually need concepts for FP
11:23:32Araqreactormonk: never said anything like that.
11:24:37reactormonkvegansk, try for typeclasses without concepts for now :-)
11:26:48veganskreactormonk, i want to implement for comprehension, (un)currying and other usefull things before typeclasses and theirs implementation :-)
11:28:12reactormonkvegansk, no interest in the full TC hierarchy?
11:30:37*vendethiel joined #nim
11:32:25cheatfatevegansk, please check https://github.com/nim-lang/Nim/pull/4000
11:32:34veganskreactormonk, not now, maybe later :-)
11:37:32veganskcheatfate, 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:01cheatfatevegansk, 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:28ehmryI would like to bootstrap a new platform and I need to rebuild the csources compiler, how do I regerenerate the niminst scripts?
13:47:04dom96hello ehmry!
13:47:08ehmryhello
13:47:34dom96I think you can regenerate those by executing ./koch csources -d:release
13:47:41ehmryok, 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:12ehmrythat 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:36ehmrythanks
14:02:57dom96np :)
14:04:27*saml joined #nim
14:10:39*enthus1ast joined #nim
14:13:15*vendethiel joined #nim
14:13:19ehmrythe csources build completes, but I don't know what the product was
14:14:27ehmrywell 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:17reactormonkClose https://github.com/nim-lang/Nim/issues/3672 since won't fix?
16:08:35dom96reactormonk: 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:33federico3how 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:00elroodfederico3, 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:13federico3elrood: 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:16federico3result[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:36flyx`$` 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:57flyxhmm, I can't reproduce it in a minimal example
18:12:33flyxis there a scenario where it might generate "-4_247" instead of "-4247"
18:12:53flyxif not, something I do not understand is happening in my code
18:15:37*yglukhov quit (Ping timeout: 260 seconds)
18:16:21dom96That would be very strange
18:17:48dom96keep shortening your code until you find the cause
18:25:13elroodfederico3, wouldn't arr[0..len(str)-1]=str suffice?
18:25:29*Ven joined #nim
18:25:52*gokr joined #nim
18:27:01flyxouch. there's a proc elsewhere in my testcode that gets called instead of what I expected would get called
18:27:59flyxso, 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:17def-flyx: because those are now the same type, you might want a distinct type
18:31:03flyxoh. well but with a distinct type, I would need to borrow everything
18:31:16flyxbut okay, if that's how it is, I'll do that
18:32:27dom96maybe you could just provide a converter toInt(x: BetterInt): int?
18:33:16dom96although that might result in the same outcome
18:34:39flyxI remember I saw a proposition to have {.borrow.} available for the whole type somewhere
18:49:57def-dom96: no, without a converter it should be fine, conversion only in one direction
18:50:09def-with a converter*
18:56:36dom96Cool.
18:56:42dom96def-: 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