<< 25-08-2019 >>

00:00:01*junland quit (Quit: %ZNC Disconnected%)
00:03:11*junland joined #nim
00:04:01*nif quit (Quit: ...)
00:04:10*nif joined #nim
00:04:30*couven92 quit (Read error: Connection reset by peer)
00:05:16*couven92 joined #nim
00:18:22*wildtrees quit (Quit: Leaving)
00:27:02*laaron quit (Quit: ZNC 1.7.1 - https://znc.in)
00:28:00*couven92 quit (Read error: Connection reset by peer)
00:28:08*laaron joined #nim
00:28:59*couven92 joined #nim
00:35:38*actuallybatman quit (Ping timeout: 244 seconds)
00:37:42*actuallybatman joined #nim
00:42:32*actuallybatman quit (Ping timeout: 245 seconds)
00:43:45*laaron quit (Quit: ZNC 1.7.1 - https://znc.in)
00:44:31*laaron joined #nim
00:44:40*actuallybatman joined #nim
00:45:56*laaron quit (Client Quit)
00:48:48*actuallybatman quit (Ping timeout: 245 seconds)
00:49:41*laaron joined #nim
00:53:30*ng0 quit (Quit: Alexa, when is the end of world?)
00:55:02*actuallybatman joined #nim
00:59:56*laaron quit (Quit: ZNC 1.7.1 - https://znc.in)
01:01:18*laaron joined #nim
01:04:14*laaron quit (Client Quit)
01:06:14*laaron joined #nim
01:06:47*laaron quit (Client Quit)
01:08:23*laaron joined #nim
01:25:25*theelous3 quit (Ping timeout: 246 seconds)
01:44:43*owl joined #nim
02:08:34*laaron quit (Remote host closed the connection)
02:10:37*laaron joined #nim
03:32:59*owl is now known as owl_000
03:34:27*laaron quit (Remote host closed the connection)
03:39:07*laaron joined #nim
03:49:51*chemist69 quit (Ping timeout: 264 seconds)
03:51:18*chemist69 joined #nim
03:52:52*endragor joined #nim
04:05:24*snooptek joined #nim
04:10:45*jaens[m] is now known as jaens
04:11:03*jaens is now known as jaens[m]
04:13:25*darithorn quit (Read error: Connection reset by peer)
04:14:17*jaens[m] quit (Quit: jaens[m])
04:14:28*jaens[m] joined #nim
04:16:22*endragor quit (Remote host closed the connection)
04:18:10*owl_000 quit (Ping timeout: 272 seconds)
05:32:43*dddddd quit (Remote host closed the connection)
06:11:19*solitudesf joined #nim
06:27:00*narimiran joined #nim
06:48:13*vlad1777d quit (Ping timeout: 268 seconds)
06:58:22*ng0 joined #nim
07:00:00*gmpreussner quit (Quit: kthxbye)
07:00:43*owl_000 joined #nim
07:04:42*gmpreussner joined #nim
07:14:29*Vladar joined #nim
07:24:03*owl_000 quit (Ping timeout: 264 seconds)
07:24:55*krux02 joined #nim
07:35:07FromGitter<mratsim> emit is broken :/, symbol is not properly interleaved anymore :/
07:42:41*endragor joined #nim
07:50:59*owl_000 joined #nim
07:54:12*endragor quit (Ping timeout: 268 seconds)
08:12:26*nsf joined #nim
08:16:01*endragor joined #nim
08:16:30*endragor quit (Read error: Connection reset by peer)
08:19:59*endragor joined #nim
08:21:14Zevvinterleaved?
08:24:13owl_000i have style checked enabled, so it produces this error, C:\prog\nim-0.20.2\lib\pure\random.nim(91, 8) Error: 'ui' should be: 'Ui'
08:26:43owl_000i replaced all "ui" occurence to "Ui" in random.nim file, then it compile, (though removing this --styleCheck:error compile too)
08:37:29FromGitter<mratsim> @Zevv, yes interpolation might be a better word - https://github.com/nim-lang/Nim/issues/12036
08:38:17Zevvwow, how could that not be caught by the tests?
08:56:50ZevvWhy is it that nim does not use stderr/stdout the 'proper' way?
08:56:55Zevvthe compiler, that is
08:57:51ZevvI now have a failing nimble package because there's compiler warnings ending up in nimblecache/pkg.ini :(
08:59:39Zevvoh wait, complaining too soon about the wrong thing again :/
09:00:40Zevvbut still, errors in my nimble cache
09:25:09owl_000echo "..long line here..", how to break it to multiple line
09:25:57owl_000echo fmt "" actually
09:47:57dom96Zevv, someone else had this problem, can you comment on their nimble issue with details?
09:48:17dom96oh, I see you just did
09:48:23dom96well, created a new issue :)
10:09:40*NimBot joined #nim
10:11:43Zevvi thought that one was closed?
10:12:00Zevvor maybe I looked at the wrong one, just mark it as dup then?
10:13:04Zevvyeah definitely looks like a dup
10:14:30Zevvwhat was the reason for the original commit passing stderr to stdout? Thats just not a good idea imho
10:23:26*lritter joined #nim
10:28:47*vlad1777d joined #nim
10:33:23AraqZevv: what is the "proper" way? the compiler doesn't output the binary file to a stream...
10:52:44Zevvno I was confused, the problem was not in the compiler part put in the nimble part
10:53:16Zevvnimble invokes "nim e" and sends stderr to stdout. unused import warnings ended up in .ini files
10:53:47*kungtotte quit (Quit: WeeChat 2.5)
11:40:41dom96wouldn't be surprised if nim writes errors to stdout tbh
11:40:48dom96we should be writing the .ini to a file
12:06:39*laaron quit (Quit: ZNC 1.7.1 - https://znc.in)
12:16:08*luis_ joined #nim
12:24:16*nsf quit (Quit: WeeChat 2.5)
12:31:15*luis_ quit (Ping timeout: 264 seconds)
12:41:05*laaron joined #nim
12:53:43*luis_ joined #nim
12:58:00*solitudesf quit (Remote host closed the connection)
12:58:25*solitudesf joined #nim
12:58:27dom96it would really be nice if openarray was available outside of limited contexts
12:59:31dom96trying to work around it by using templates, hitting roadblocks :(
13:10:30*owl joined #nim
13:12:25*owl left #nim (#nim)
13:13:30*owl joined #nim
13:13:33*owl_000 quit (Ping timeout: 258 seconds)
13:18:48*solitudesf quit (Ping timeout: 245 seconds)
13:22:39shashlickThat should have been fixed with https://github.com/nim-lang/nimble/pull/667
13:22:48shashlickDo you have latest?
13:28:44Zevvno, 0.10.2 - thats the default that gets checked out with nim devel it seems
13:28:46Zevvdidn't realize
13:31:57shashlickTry `koch --latest nimble`
13:33:30shashlickYa nimble isn't updated in Nim
13:33:33shashlickhttps://github.com/nim-lang/Nim/blob/devel/koch.nim#L13
13:34:04shashlickWell actually it is updated
13:34:13shashlickWhat commit is your nimble at
13:34:20Zevvnow its latest
13:34:22Zevvworks like a charm
13:34:52ZevvI expected it to clone latest if I had nim latest, my wrong
13:35:15shashlickYa 693 is still an issue I think, probably because of using different versions of Nim
13:35:27shashlickWill fix it in the next few days
13:36:08shashlickAre you on devel
13:36:16Zevvusually, yes
13:39:44shashlickWell if you still see the issue with latest, update the issue
13:40:09shashlickIf you were on devel then it should have been latest already
13:40:25shashlickUnless you hadn't done koch tools in a while
13:40:46*owl quit (Ping timeout: 268 seconds)
13:40:57Zevvno latest is just fine, that fixed it
13:41:12Zevvoh or you mean latest nim, now i'm confused
13:41:22shashlickNo nimble
13:41:33Zevvyeah, I just got --latest
13:41:36Zevvand now its ok
13:41:47shashlickI'm just curious how you had an old nimble if you were on devel
13:42:14ZevvDunno. Koch just got an old version, but that was probably already in my tree and it didn't update?
13:42:50shashlickKoch gets almost latest now so unless you hadn't run koch tools in a while
13:42:53Zevvno, nim devel explicitly checks out nimble 0.10.2
13:43:07shashlickSee the hash though
13:43:16ZevvOk, currently doing koch tools
13:43:20shashlickMy link to koch above too
13:44:19Zevvstill 0.10.2 after updating nim, doing koch tools and koch nimble
13:44:31shashlickYa version isn't updated
13:44:38Zevvok, clear :)
13:44:43shashlickJust see the hash for nimble -v
13:44:52Zevvd15c8530cb7480ce39ffa85a2dd9819d2d4fc645
13:45:12Zevvand on latetst 2243e3fbc2dd277ad81df5d795307bf8389b9240
13:46:09shashlickThat's weird
13:46:16Zevvnot the da82e3
13:46:20shashlickWhat's in your koch.nim
13:46:25Zevvda82
13:46:38Zevvgit fetch
13:46:38Zevvgit checkout tags/v0.10.2
13:46:38ZevvNote: checking out 'tags/v0.10.2'.
13:47:04shashlickProbably cause if this
13:47:07shashlickhttps://github.com/nim-lang/Nim/blob/devel/koch.nim#L145
13:47:08Zevvaaargh
13:47:20Zevv./koch tools doesnt rebuild koch itself?
13:47:55Zevvno did manual compile of koch.nim and its ok
13:47:59Zevvs/no/now/
13:50:22shashlickOk so does it checkout correct commit after koch is rebuilt
13:50:26shashlickWithout latest
13:50:27*dddddd joined #nim
13:50:57Zevvyes it does :)
13:51:17shashlickOk root caused then whew
13:51:22Zevvhaha
13:51:24Zevvconfusion galore
13:51:49Zevvanyway, rebuildign koch is not in my regular workflow, so I'll add that
13:51:53Zevvthanks for your patience :)
13:52:36shashlickNp
13:58:15*Trustable joined #nim
14:13:12*owl_000 joined #nim
14:19:01owl_000what is -x:off aka runtime check on or off.
14:19:15owl_000what it actually does?
14:19:53owl_000it increases loop's speed in huge margin.
14:29:36owl_000i write a prime_number checker, -x:off outperform default setting in term of speed.
14:30:17owl_000what if i always compile using -x:off
14:43:42Zevvdisables boundary checks, array/string overflow etc
14:43:59Zevvso instead of a stacktrace and a crash, you get undefined behaviour
14:50:27*luis_ quit (Ping timeout: 264 seconds)
14:51:22*theelous3 joined #nim
14:54:45*Lullius[m] joined #nim
14:56:20*luis_ joined #nim
15:01:11*luis_ quit (Client Quit)
15:13:50shashlickThat's what release used to be and now danger
15:15:10*laaron quit (Remote host closed the connection)
15:19:46*laaron joined #nim
15:20:54*laaron quit (Client Quit)
15:24:02Zevvdom96: ah, thanks for updating the nimble issue
15:24:48*laaron joined #nim
15:25:29FromGitter<mratsim> x:off is a very poor flag name
15:26:14shashlick@Zevv can we close it?
15:27:09ZevvI guess that this doesn't bite people running normal releases, so yes
15:27:11*laaron quit (Remote host closed the connection)
15:27:31shashlickIt does but they need to update again :)
15:27:42Zevvtrue, true
15:27:42shashlickGood thing is that it's easy to update nimble now
15:28:10shashlickYou can even get new features in older Nim
15:28:31shashlickCause no compiler dependencies
15:31:17shashlickWondering what to work on, have 3.5 hour flight and no internet
15:31:32Zevvread a book!
15:31:47shashlickCan't work on nimterop getHeader
15:32:45shashlickI have to run Travis locally to debug some issues but it's a 4gb docker so have to make space on my vm
15:33:49shashlickNeed to fix nightlies arm as well but have run into a qemu issue with sqlite
15:36:24Zevvhmm I get tons of "Hint: 'ploc`gensym343142' is declared but not used" but I don't see any locations
15:36:58FromGitter<mratsim> gensym symbol are local variables in templates
15:37:15Zevvyes, I think I saw something in your issue this morning
15:37:16FromGitter<deech> Is there a introspection iterator like `fieldPairs` that statically returns all candidate procs/functions/iterators and their argument where the given object is the first argument?
15:37:53Zevvmratsim: how would I figure out where these warnings originate?
15:50:48*snooptek quit (Remote host closed the connection)
15:56:09FromGitter<mratsim> it should give you the line
15:56:19FromGitter<mratsim> also gensym is appended to the original symbol
16:01:41ZevvThey all look like this: /home/ico/external/Nim/lib/system/assertions.nim(32, 5) Hint: 'ploc`gensym358384' is declared but not used [XDeclaredButNotUsed]
16:04:59Zevvso it comes from assertImpl somehow
16:06:52FromDiscord_<me2beats> doesn't nim have python-like import syntax like from X import Y?
16:09:00*darithorn joined #nim
16:11:45FromDiscord_<me2beats> I mean my problem is this:
16:11:46FromDiscord_<me2beats> I'm very very new to nim
16:11:46FromDiscord_<me2beats> and I took this example
16:11:46FromDiscord_<me2beats> https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/
16:11:46FromDiscord_<me2beats> And I'm here (see image)
16:11:46FromDiscord_<me2beats> https://cdn.discordapp.com/attachments/371759389889003532/615216752984326193/basic2d.JPG
16:13:56FromDiscord_<me2beats> I got that basic2d module is depreciated, but from this source code it's unclear for me what lines use that basic2d module
16:14:51FromGitter<awr1> all of the *2d is basic2d
16:15:31FromGitter<awr1> you can install basic2d w/ `nimble install basic2d`
16:15:49narimiran@me2beats: read about the differences in imports between nim and python: https://narimiran.github.io/2019/07/01/nim-import.html
16:15:59FromGitter<awr1> and yes, you can import things with `from X import Y` in nim
16:18:57FromGitter<awr1> it's kind of the opposite of what you're expected to though, read the article narimiran posted
16:22:04FromDiscord_<me2beats> yeah reading it now thanks
16:41:33owl_000how to get current working directory
16:42:09FromDiscord_<exelotl> getCurrentDir() in os module: https://nim-lang.org/docs/os.html#getCurrentDir
16:43:42owl_000wow thanks, it is easy as python.
16:45:32owl_000thanks Nim, when i used python i can't share my program to my friends easily. but sharing nim program is awesomely easy.
16:48:20FromDiscord_<treeform> Just send them an .exe?
16:52:34dom96ahh, when you spend a couple of hours trying to work around a bug in the compiler, and you finally get the program to compile only to be met by a C code gen error
16:55:59shashlickGoing to work on a blog post on Nim wrapping
16:58:01*endragor quit (Remote host closed the connection)
16:59:20*owl_000 quit (Ping timeout: 258 seconds)
17:00:20Zevvwhy would the 'when enabled' in assertImpl (system.nim:30) not be the first line in the template. Now loc and ploc are always defined but generate these "declared but not used" warnings for ploc`genymXXXX
17:00:29ZevvIf I move the 'when' to the top my prolem is gone
17:01:46*Kaivo joined #nim
17:06:30Zevvalso speeds up all my compilations by about 3%!
17:07:25Zevvoh, 0.3% that is :)
17:15:18FromDiscord_<me2beats> how to solve 'hg' not in PATH when nimble installing strfmt?
17:17:03Zevvis 'hg' in your path?
17:17:18Zevvif not, install mercurial
17:17:24narimiranby using strformat from std.lib.
17:17:38Zevvthat's not the question
17:17:49narimiranyep, that's the answer :P
17:19:44Zevvyou are violating the permise "when installing strfmt"
17:20:08narimirani'm one step ahead on this XY problem ;)
17:22:20Zevv:)
17:29:28FromDiscord_<me2beats> so can I just import strformat instead of strfmt?
17:30:02FromDiscord_<me2beats> to make that platformer work
17:41:33FromDiscord_<me2beats> I think yes because now I have "undeclared identifier 'interp'" in this line `interp"${mins:02}:${secs:02}"`
17:43:43*solitudesf joined #nim
17:44:20*luis_ joined #nim
17:45:26luis_Hi everyone, are you aware whether someone implemented logistic regression in Nim? Not for machine learning but for simpler inferences...
17:47:56*vlad1777d quit (Ping timeout: 244 seconds)
18:43:38*nsf joined #nim
18:46:50luis_How do I type cast to float?
18:46:59luis_say from string?
18:48:12narimiranhttps://nim-lang.github.io/Nim/strutils.html#parseFloat%2Cstring
18:59:08FromGitter<deech> The use of `when` in the documentation seems to imply that `fieldPairs` is a compile time only construct can anyone verify if this is true? https://nim-lang.org/docs/iterators.html#fieldPairs.i%2CT
19:01:59Zevvafaik it is, it is not really an iterator, iirc it just transforms your for loop into linear code
19:02:52FromGitter<deech> So am I correct in assuming this is compile time reflection, as in the `object`'s field names aren't around at runtime?
19:03:23ZevvI think that's correct
19:03:42Zevvyou won't find them as strings in the C code, for example
19:03:55FromGitter<deech> Ok good, thanks!
19:26:01FromDiscord_<me2beats> well I made the platformer example run (yay) but still can't get what's wrong in ths line: interp"${mins:02}:${secs:02}"
19:27:05FromDiscord_<me2beats> undeclared identifier 'interp
19:29:24FromGitter<Varriount> Hello fellow Nimsters! How are things going?
19:33:01FromGitter<Vindaar> @me2beats the problem is that while the functionality of `strfmt` is basically the same as `strformat` from the stdlib, the naming is not. See the docs here: https://nim-lang.github.io/Nim/strformat.html ⏎ so replace `interp` by `fmt` or `&`
19:43:34FromDiscord_<me2beats> seems to work, cool! thank you
19:52:49FromDiscord_<DeltaPHC> Within pure Nim code, assuming you don't use `ptr` nor compile with checks disabled, is it still possible to trigger undefined behavior?
19:53:49FromDiscord_<DeltaPHC> I know there have been recent efforts to make things safer, so I'm kinda wondering where things are at
19:55:01FromDiscord_<DeltaPHC> I'm thinking that threading can still throw a wrench in things, but let's ignore that for a sec :P
20:23:16*narimiran quit (Ping timeout: 246 seconds)
20:25:06*lmariscal quit (Quit: I'm out!)
20:28:06shashlickNot bad - 1250 words in 3 hours
20:28:37Zevvyou're a slow reader!
20:29:16xaceshashlick: do you have a link to your blog or do I have to wait until the article is completed?
20:31:47*lmariscal joined #nim
20:35:41shashlickFirst draft really
20:36:31shashlickI will post it after some time for review
20:36:55shashlickHope to get it on the nim lang blog, let's see
20:39:38FromGitter<mratsim> @deech you can use astToStr if you need the field names
20:48:59*nsf quit (Quit: WeeChat 2.5)
20:49:00*Trustable quit (Remote host closed the connection)
21:02:18*vlad1777d joined #nim
21:12:02*clyybber joined #nim
21:32:27*luis_ quit (Quit: luis_)
21:33:40*ng0 quit (Ping timeout: 260 seconds)
21:34:55*luis_ joined #nim
21:36:50*solitudesf quit (Ping timeout: 272 seconds)
21:36:56*ng0 joined #nim
21:47:15*Vladar quit (Remote host closed the connection)
21:52:02*clyybber quit (Quit: WeeChat 2.5)
21:55:32*vlad1777d quit (Remote host closed the connection)
21:57:46*vlad1777d joined #nim
22:01:16*shomodj joined #nim
22:19:51*lritter quit (Remote host closed the connection)
22:40:10*tribly quit (Quit: WeeChat 2.5)
22:41:03*tribly joined #nim
22:49:50FromDiscord_<me2beats> let me clarify pls - is this the official Nim discord server?
22:50:04FromDiscord_<Shield> Yes
22:50:12FromDiscord_<me2beats> thanks
23:14:32*owl_000 joined #nim
23:14:57*owl_000 quit (Client Quit)
23:17:36*user0225 joined #nim
23:20:17*owl_000 joined #nim
23:36:18FromGitter<gogolxdong> koch --latest nimble also works for my issue , thanks.
23:37:32shashlickWhat are you seeing
23:38:14*shomodj quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:38:41*shomodj joined #nim
23:39:01*shomodj quit (Client Quit)
23:56:52*krux02_ joined #nim
23:59:23*krux02 quit (Ping timeout: 250 seconds)