<< 10-05-2018 >>

00:23:07*yglukhov quit (Read error: Connection reset by peer)
00:23:43*yglukhov joined #nim
01:35:14*leorize quit (Ping timeout: 260 seconds)
01:36:58FromGitter<gogolxdong> @PMunch , include private/richtext/richtextdialogpage.nim got `cannot open 'private/richtext/richtextdialogpage/nim'`.
01:44:22*ketralnis joined #nim
02:05:41FromGitter<gogolxdong> never mind ,wrap these include with double quote mark.
02:13:10*gokr quit (Ping timeout: 260 seconds)
02:16:30*xkapastel quit (Quit: Connection closed for inactivity)
02:17:03*NimBot joined #nim
02:35:03*CodeVance quit (Quit: Leaving)
02:40:15*arecaceae quit (Remote host closed the connection)
02:40:38*arecaceae joined #nim
02:44:29*cornfeedhobo quit (Quit: ZNC - http://znc.in)
02:57:42*cornfeedhobo joined #nim
03:23:47*CodeVance joined #nim
03:48:37*vivus quit (Quit: Leaving)
03:50:44CodeVanceWhen is nim planning to automatically unwrap pointers/refrences
03:57:44*darithorn quit (Quit: Leaving)
04:00:50*dddddd quit (Remote host closed the connection)
04:09:37*CodeVance quit (Read error: Connection reset by peer)
04:17:14*CodeVance joined #nim
04:23:16*endragor joined #nim
04:25:42*leorize joined #nim
04:33:59*athenot_ quit (Ping timeout: 246 seconds)
04:37:50FromGitter<Varriount> CodeVance: It also does for more cases.
04:39:35*athenot joined #nim
04:41:05CodeVancemost cases?
04:41:13CodeVanceIs it in devel?
04:43:47*athenot quit (Ping timeout: 246 seconds)
04:44:01*athenot_ joined #nim
04:48:20*athenot_ quit (Ping timeout: 246 seconds)
04:48:31*athenot joined #nim
04:52:53*athenot quit (Ping timeout: 246 seconds)
04:53:18*athenot joined #nim
04:57:47*athenot quit (Ping timeout: 246 seconds)
04:59:32*miran joined #nim
05:00:25*xet7 joined #nim
05:13:13FromGitter<Varriount> What code do you have that doesn't dereference references automatically?
05:15:30*CodeVance quit (Read error: Connection reset by peer)
05:16:36*CodeVance joined #nim
05:34:01*citycide quit (Remote host closed the connection)
05:34:09*xkapastel joined #nim
05:48:11*ARCADIVS quit (Ping timeout: 246 seconds)
05:55:27*nsf joined #nim
05:56:09*ARCADIVS joined #nim
05:58:04*stisa quit (*.net *.split)
05:58:04*libman[m] quit (*.net *.split)
05:58:04*planetis[m] quit (*.net *.split)
05:58:04*petersjt014[m] quit (*.net *.split)
05:58:04*TheManiac quit (*.net *.split)
05:58:04*Demos[m] quit (*.net *.split)
05:58:04*unclechu quit (*.net *.split)
05:58:24*CodeVance quit (Quit: Leaving)
05:59:27*sz0 quit (Quit: Connection closed for inactivity)
06:00:51*unclechu joined #nim
06:11:14*CodeVance joined #nim
06:14:14FromGitter<Varriount> @gogolxdong I've updated this gist with the current v4 implementation. I've verified that it works in other regions: https://gist.github.com/Varriount/edfaf064fa17658f2d88c1d740a7070b
06:14:32FromGitter<Varriount> Note that there are 3 files there - v4.nim, utils.nim, and testcase.nim
06:14:39*miran quit (Ping timeout: 260 seconds)
06:17:05FromGitter<Varriount> @gogolxdong Also note that the query parameters aren't in order. :)
06:19:04FromGitter<gogolxdong> As if you can read my mind, thanks.
06:20:51FromGitter<gogolxdong> Why do you use low level cmp rather than stdlib cmp?
06:21:21FromGitter<Varriount> Because I need to compare openarrays, not strings.
06:21:44FromGitter<Varriount> And the stdlib cmp doesn't work with openarrays
06:28:15*leorize quit (Ping timeout: 255 seconds)
06:31:21FromGitter<Varriount> @gogolxdong Any other questions?
06:37:30FromGitter<gogolxdong> clear
06:37:51*jjido joined #nim
06:42:26CodeVanceCan you get the hash of an array
06:51:03FromGitter<gogolxdong> works well ,thanks for your contribution.
06:54:53shashlick23 test failures with VC++ 2017 on Windows: https://www.dropbox.com/s/01bo5v616zmnsgc/testresults-vcc.html
06:55:40shashlick22 different test failures with TCC on Windows: https://www.dropbox.com/s/lz89i2us5gowyzd/testresults.html
07:01:29CodeVanceShashlick, you trying to get the other compilers working?
07:03:21shashlicki don't know if anyone is regularly testing these compilers with nim, at the very least, we should make sure our test cases work with VC++
07:03:29shashlicki like tcc though, it is super fast
07:08:56CodeVanceId like to see tcc work
07:09:03CodeVanceItd open more doors
07:09:16CodeVanceTiny c compiler right?
07:09:47CodeVanceIs tcc compiling fast?
07:11:29*jjido quit (Ping timeout: 246 seconds)
07:13:28shashlickya in my experience
07:19:25CodeVanceNice
07:21:59*Ieatnerds quit (Read error: Connection reset by peer)
07:22:53*jjido joined #nim
07:35:28FromGitter<gogolxdong> TinyCC is about 9 times faster than GCC.
07:38:42FromGitter<gogolxdong> How to change the default compiler to tcc on windows?
07:39:35*jjido quit (Ping timeout: 240 seconds)
07:40:13CodeVance--cc:tcc
07:42:12*jjido joined #nim
07:42:34*Vladar joined #nim
07:43:14*xkapastel quit (Quit: Connection closed for inactivity)
07:43:43FromGitter<gogolxdong> The current compiler 'tcc' doesn't support the requested compilation target
07:44:45shashlickdo you have 64-bit nim with 32-bit tcc?
07:45:22shashlickor actually you cannot "nim cpp" since tcc is a C compiler
07:46:11FromGitter<gogolxdong> 64-bit tcc and i386 nim
07:49:16CodeVanceThats 32 bit aint it?
07:52:53CodeVanceShashlick what tcc version you using. The first result on google is unmaintained
07:53:34FromGitter<gogolxdong> Does it compile nim ?
07:53:36FromGitter<gogolxdong> bin/nim c koch ⏎ Error: unhandled exception: Invalid argument [OSError]
07:56:40shashlickCodeVance: well 0.9.27 was posted in Feb, so it is recent
07:56:49shashlicki'm trying #head to see if it makes any diff
07:56:56shashlickyep, compiles nim
07:57:32*skrylar joined #nim
07:58:41CodeVanceOh i see the github now
07:59:00CodeVanceHow quick was that?
08:04:04FromGitter<gogolxdong> then what am I going through ? ```
08:04:09FromGitter<gogolxdong> ```bin/nim c koch ⏎ Error: unhandled exception: Invalid argument [OSError]``` [https://gitter.im/nim-lang/Nim?at=5af3fcf9e0b50c2d05af4eb9]
08:04:18FromGitter<survivorm> is there a way to adress to the object field in generic way in nim?
08:04:18shashlickso the threads issue seems fixed in tcc#head, probably a few others too, have to run again since I didn't have all headers
08:05:09shashlickgogolxdong: how did you build nim? haven't seen that one before
08:05:19FromGitter<survivorm> like `obj.$foo`, with the meaning, adress the `obj` field named as the `foo` contents?
08:05:32FromGitter<gogolxdong> as the instructions in README
08:10:44CodeVanceSurviform, im going around your question, but have you considered nims json?
08:11:04*yglukhov quit (Read error: Connection reset by peer)
08:11:29*leorize joined #nim
08:11:41*yglukhov joined #nim
08:12:43shashlicksurvivorm: nope, you need to use a table
08:13:13shashlickperhaps macros if foo is known at compile time
08:14:02FromGitter<survivorm> @shashlick Do you now - is it `by design`, `by decision`, or just `not done yet`?
08:14:36FromGitter<survivorm> And how is this possible with macro?
08:14:59shashlicki don't think it's possible by design but Araq would know best
08:15:26CodeVanceSurvivorm macro would work... But it would be a macro.
08:15:55shashlicki'm really not good at macros, but it will only work if you know foo at compile time, if not, it's not possible
08:16:19FromGitter<survivorm> it's known
08:16:21CodeVanceWhy not use a generic proc?
08:16:59CodeVanceThen you can just use T for what ever the type is
08:17:37FromGitter<survivorm> The point is - then converting time types (e.g. DateTime or TimeInterval) you often need to do several similar operations over any of their fields
08:18:04CodeVanceAnd?
08:18:07FromGitter<survivorm> it can be done with the list of the code, but it's a kind of ugly
08:18:46FromGitter<survivorm> like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af40065e1cf621dba0b3707]
08:19:00CodeVanceI cant go to gitter atm
08:19:02shashlickokay, down from 22 failing to 20 with latest tcc, threading issue seems fixed which is nice
08:19:46FromGitter<survivorm> CodeVance: look at https://github.com/nim-lang/Nim/pull/7664#issuecomment-387532732
08:20:10FromGitter<survivorm> Is there a way to do this prettier?
08:23:55FromGitter<alehander42> I think fieldPairs
08:24:01FromGitter<alehander42> could help
08:24:03CodeVanceIf your talking about all those ifs at the bottom, then in real code you could use a template
08:24:05FromGitter<alehander42> or something like that
08:25:22CodeVanceI think the ifs are fine though
08:26:03CodeVanceBut the add sep would be wrong if you dont have a year
08:26:48FromGitter<alehander42> yeah fieldPairs should work
08:26:53FromGitter<alehander42> it yields name, value
08:26:56FromGitter<alehander42> for all fields
08:27:12FromGitter<alehander42> for name, value in fieldPairs(obj): ⏎ ..
08:27:26CodeVanceAlehander +1 for that, thanks for showing me something new
08:28:20FromGitter<alehander42> no prob, I myself used it now for the first time
08:28:34FromGitter<alehander42> just remembered there was something like that in github
08:28:54*stisa joined #nim
08:28:54*libman[m] joined #nim
08:28:54*petersjt014[m] joined #nim
08:28:54*planetis[m] joined #nim
08:28:54*TheManiac joined #nim
08:28:54*Demos[m] joined #nim
08:29:16FromGitter<alehander42> @survivorm ping us if fieldPairs is not suitable for your case
08:30:09shashlickokay, so latest tcc seems to work with threads but snip still doesn't work
08:30:12FromGitter<survivorm> @alehander42 looks like it's that what i was looking for
08:30:17shashlicktime to bed, too late now
08:30:25FromGitter<survivorm> is it `system`?
08:30:28Araqsurvivorm: it's by design, if the fieldname is dynamic, obj.fieldname has an unknown type
08:30:49Araqyou can use fieldPairs or a template
08:31:10FromGitter<survivorm> Thanks for the clarification
08:31:12Araqtemplate t(obj, field): untyped = obj.field
08:31:31Araqonce you wrapped your head around it, it works :P
08:36:00*libman[m] quit (Ping timeout: 240 seconds)
08:36:02*planetis[m] quit (Ping timeout: 240 seconds)
08:36:03*Demos[m] quit (Ping timeout: 240 seconds)
08:36:08*solitudesf quit (Ping timeout: 250 seconds)
08:36:08*endes[m] quit (Ping timeout: 250 seconds)
08:36:15*hohlerde quit (Ping timeout: 256 seconds)
08:36:19*amp907[m] quit (Ping timeout: 260 seconds)
08:36:20*unclechu quit (Ping timeout: 255 seconds)
08:36:22*narimiran[m] quit (Ping timeout: 255 seconds)
08:36:24*macsek1911[m] quit (Ping timeout: 240 seconds)
08:36:24*mgdelacroix[m] quit (Ping timeout: 240 seconds)
08:36:25*zielmicha[m] quit (Ping timeout: 240 seconds)
08:36:26*Abnegation quit (Ping timeout: 240 seconds)
08:36:26*stisa quit (Ping timeout: 240 seconds)
08:36:26*petersjt014[m] quit (Ping timeout: 240 seconds)
08:36:26*TheManiac quit (Ping timeout: 240 seconds)
08:36:33*dyce[m] quit (Ping timeout: 269 seconds)
08:36:34*notdekka[m] quit (Ping timeout: 269 seconds)
08:36:34*metaden92[m] quit (Ping timeout: 269 seconds)
08:36:34shashlickaraq: appreciate your feedback on tcc efforts when you get a chance
08:36:34*byteflame quit (Ping timeout: 269 seconds)
08:36:38shashlickhttps://github.com/nim-lang/Nim/issues/7750
08:41:05*skrzyp quit (Ping timeout: 240 seconds)
08:41:38*pqflx3[m] quit (Ping timeout: 276 seconds)
08:41:40*Miguelngel[m] quit (Ping timeout: 276 seconds)
08:42:52*skrzyp joined #nim
09:03:24*athenot joined #nim
09:17:44*leorize quit (Ping timeout: 250 seconds)
09:20:01*juanfra quit (Remote host closed the connection)
09:29:46*leorize joined #nim
09:31:59*Vladar quit (Quit: Leaving)
09:32:52*CodeVance quit (Read error: Connection reset by peer)
09:34:29*pqflx3[m] joined #nim
09:35:51*athenot quit (Ping timeout: 240 seconds)
09:37:29*CodeVance joined #nim
09:42:41*skrylar quit (Remote host closed the connection)
09:46:29*solitudesf joined #nim
09:46:30*dyce[m] joined #nim
09:46:30*Abnegation joined #nim
09:46:30*Miguelngel[m] joined #nim
09:46:30*unclechu joined #nim
09:46:30*Demos[m] joined #nim
09:46:30*mgdelacroix[m] joined #nim
09:46:36*stisa joined #nim
09:46:36*macsek1911[m] joined #nim
09:46:36*TheManiac joined #nim
09:46:36*amp907[m] joined #nim
09:46:36*narimiran[m] joined #nim
09:46:37*planetis[m] joined #nim
09:46:37*libman[m] joined #nim
09:46:37*notdekka[m] joined #nim
09:46:37*petersjt014[m] joined #nim
09:46:37*endes[m] joined #nim
09:46:37*metaden92[m] joined #nim
09:46:37*byteflame joined #nim
09:46:38*zielmicha[m]1 joined #nim
09:46:38*hohlerde joined #nim
09:51:56*gokr joined #nim
09:53:41*leorize quit (Ping timeout: 255 seconds)
10:03:38*noonien joined #nim
10:23:50FromGitter<mratsim> I’m spammed by this warning when I want to align multiple equality checks in tests >_> `Warning: Number of spaces around '==' is not consistent`
10:29:41dom96haha
10:34:35*PMunch joined #nim
10:37:39FromGitter<narimiran> @mratsim probably it is my fault: https://github.com/nim-lang/Nim/issues/7685 :)
11:05:04*leorize joined #nim
11:11:33*Vladar joined #nim
11:21:48FromGitter<diegogub> How can I iterate over ref object ?
11:21:51FromGitter<diegogub> fields*
11:22:49FromGitter<alehander42> i guess you can unref it
11:22:52FromGitter<alehander42> with `[]`
11:25:13FromGitter<diegogub> @alehander42 worked..thank you!
11:26:14*dddddd joined #nim
11:32:31*ARCADIVS quit (Quit: WeeChat 2.0.1)
11:33:57*athenot joined #nim
11:34:40*yglukhov quit (Remote host closed the connection)
11:35:15*yglukhov joined #nim
11:38:46*yglukhov quit (Remote host closed the connection)
11:39:38FromGitter<narimiran> there's no built-in gaussian random, right?
11:40:03*yglukhov joined #nim
11:50:08*jjido quit (Ping timeout: 256 seconds)
11:57:11*athenot quit (Ping timeout: 276 seconds)
11:58:49*CodeVance2 joined #nim
12:01:51*CodeVance quit (Ping timeout: 240 seconds)
12:06:43*athenot joined #nim
12:12:08*athenot quit (Ping timeout: 276 seconds)
12:20:34FromGitter<survivorm> AFAIK, yes. Haven't found it in stdlib myself, though it has been several months ago
12:24:07*CodeVance2 is now known as CodeVance
12:24:27*CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org)
12:24:44*CodeVance joined #nim
12:35:55*DarkArctic joined #nim
12:41:37FromGitter<mratsim> @narimiran https://github.com/mratsim/Arraymancer/blob/master/src/tensor/init_cpu.nim#L209-L222
13:03:55*PMunch quit (Quit: leaving)
13:09:19*athenot joined #nim
13:20:42*DarkArctic quit (Quit: Leaving)
13:21:02*DarkArctic joined #nim
13:27:12*Snircle joined #nim
13:33:48FromGitter<zah> !eval const x = staticExec("ls"); echo x
13:33:50NimBoterrors.txt↵in.nim↵logfile.txt↵script.sh
13:51:17*endragor quit (Remote host closed the connection)
13:55:31*max3 joined #nim
13:56:08*athenot quit (Ping timeout: 276 seconds)
14:00:19*athenot joined #nim
14:01:54*leorize quit (Ping timeout: 260 seconds)
14:04:41FromGitter<narimiran> @mratsim thanks!
14:05:14*athenot quit (Ping timeout: 255 seconds)
14:08:07FromGitter<mratsim> @narimiran alea also has the normal distribution: https://github.com/unicredit/alea/blob/master/alea/gauss.nim
14:09:52*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
14:10:21*Snircle joined #nim
14:12:13FromGitter<narimiran> @mratsim i've tried to use alea, but it didn't work for me (errors on compilation)
14:12:39FromGitter<mratsim> Ah, I didn’t try it yet so I can’t comment on that.
14:13:33FromGitter<narimiran> btw, it would be nice if `randomNormal`is exported, so i don't have to use `randomNormalTensor` for a single number
14:13:54FromGitter<mratsim> buuuutt, it’s a tensor library? :D
14:15:26FromGitter<narimiran> weeell, until nim gets gaussian random, it is multipurpose library! :D
14:16:28FromGitter<mratsim> urgh, even Numpy does scalar gaussian: https://docs.scipy.org/doc/numpy-1.14.0/reference/generated/numpy.random.normal.html
14:16:50FromGitter<mratsim> but you can just copy paste the code from Arraymancer ;)
14:17:07FromGitter<mratsim> I don’t think the stdlib will improve if you don’t do a PR ;)
14:17:22FromGitter<narimiran> yeah, i've just copied it
14:17:57FromGitter<narimiran> i'm doing some more "benchmarks" (comparing speed to python/numpy). maybe i should do arraymancer version too :)
14:18:20FromGitter<narimiran> as for numpy, there is `randn`: https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.randn.html
14:19:33*leorize joined #nim
14:20:27*endragor joined #nim
14:24:57*endragor quit (Ping timeout: 264 seconds)
14:30:28*Ieatnerds joined #nim
14:31:38*athenot joined #nim
14:36:16FromGitter<brentp> what's the nim equivalent of `__file__` from python?
14:38:17IeatnerdsThis might be helpful. https://forum.nim-lang.org/t/2784
14:38:39IeatnerdsSorry if it isnt
14:44:55FromGitter<brentp> perfect. thanks.
14:52:12IeatnerdsNo problem
14:52:33*miran joined #nim
14:53:38*yglukhov quit (Read error: Connection reset by peer)
14:54:14*yglukhov joined #nim
14:58:48*darithorn joined #nim
14:59:50FromGitter<brentp> hey all, been working on this plotting library. happy for any feedback: https://github.com/brentp/nim-plotly
15:01:25miran@brentp: (good) plotting library is what nim needs! keep up the good work!!
15:01:44FromGitter<brentp> aye.
15:02:30FromGitter<brentp> I needed one and this seemed the simplest path. limited by number of points we can plot since it's JS-backed, but can get up to a few hundred thousand using the web-gl backend.
15:08:38miranhttps://altair-viz.github.io/ - this is something that i see mentioned very often lately when people talk about (future) python plotting libraries
15:09:04miranmaybe you can get some ideas from there too....
15:16:59Yardanico@brentp that's amazing!
15:18:10Yardanicoah, it uses plotly api :)
15:20:51*endragor joined #nim
15:21:55*xkapastel joined #nim
15:22:11FromGitter<brentp> @Yardanico yes, well it serializes to JSON and then uses the javascript plotly lib -- which is MIT licensed.
15:22:30Yardanicooh, wait, how does it do that from C target?
15:23:16Yardanicoah, I'm dumb :D
15:23:46*leorize quit (Ping timeout: 264 seconds)
15:24:33FromGitter<brentp> heh, yeah. it's a bit round-about, but I think it provides the most plotting utility with the least code from me.
15:26:32*CodeVance quit (Read error: Connection reset by peer)
15:29:55*endragor quit (Remote host closed the connection)
15:30:54*CodeVance joined #nim
15:33:41*kaliy quit (Remote host closed the connection)
15:37:25FromGitter<mratsim> @brentp, awesome! you’re missing the most important though, screenshots
15:37:34FromGitter<mratsim> ah no it’s there
15:39:00FromGitter<mratsim> Another thing that I found interesting was Visdom (which uses Plot.ly in a client server mode): https://github.com/facebookresearch/visdom, Nim/Arraymancer bindings were started here: https://github.com/edubart/arraymancer-vision
15:40:41FromGitter<zah> @brentp, are these intended for the Jupyter kerner (INim)? :)
15:41:53FromGitter<mratsim> You should accept openarrays btw, all those @ are noisy
15:43:25FromGitter<brentp> @mratsim I hadn't seen that, but I'd prefer to have a more liberal license. looks like visdom is non-commerical (?)
15:43:35miran@mratsim: i'm writing an article about my today's benchmarks.... i don't use arraymancer, but it will be mentioned :)
15:43:41FromGitter<brentp> I'll have a look at accepting open arrays.
15:44:02FromGitter<brentp> @zah intended for general use. hopefully they can be used in iNim.
15:44:44FromGitter<mratsim> I’m not sure why FB used Creative Commons :?
15:45:50FromGitter<mratsim> anyway if you can directly use Plot.ly without yet another layer that’s good I think
15:51:31FromGitter<brentp> is there an actively developed nim kernel for Jupyter?
15:51:51FromGitter<zah> https://github.com/stisa/INim
15:53:49FromGitter<brentp> thanks. no dev since Feb though. :(
15:54:26miranjupyter kernel would be HUGE for nim's science community!
15:57:13Yardanicomiran, there's two unfinished ones :)
16:06:27miranYardanico: ok, let me rephrase it then: finished jupyter kernel ....... :D
16:08:41FromGitter<zah> what is the other one?
16:17:31*nsf quit (Quit: WeeChat 2.1)
16:19:05Yardanicohttps://github.com/stisa/jupyter-nim-kernel - simple one
16:19:16Yardanicopure-nim one (except for zmq) - https://github.com/stisa/INim
16:24:58*Sembei quit (Ping timeout: 256 seconds)
16:27:10*Sembei joined #nim
16:38:07*athenot quit (Ping timeout: 260 seconds)
16:38:56*athenot joined #nim
16:51:13dom96Can anyone see why this fails to compile? https://gist.github.com/dom96/6442b7c92a4333dba5765311f01fc14a
16:51:35dom96I'm either missing something very obvious or this is a very odd bug
16:52:13miranparenthesis before `string` on the first line?
16:52:40miranor is `x` of type `(string, proc ())`?
16:53:19miranoh, now i see it is
16:55:29dom96I'm not crazy am I?
16:55:34dom96This is so strange
17:03:31Yardanicodom96, it works if you add {.closure.} to proc where you print hello
17:03:57dom96bah
17:04:09dom96That error message needs to be better
17:05:01Yardanicodom96, I did "echo type((string, proc ()))" with imported typetraits :)
17:05:22dom96nice trick :)
17:05:30Yardanicobut yeah, error message is very confusing
17:06:15miranofftopic question: when writing a blog post which contains code snippets, and i want to offer full code as a link - do i put those .nim files in the blog repo, or in the separate repo just for those examples?
17:06:32YardanicoIt probably should be "but expected one of: proc foo(x: (string, proc () {.closure.}))"
17:07:07mirani don't know if i should create a new repo with just two files, or this should be the part of blog repo?
17:08:07dom96miran: part of the repo
17:08:38*Ieatnerds quit (Quit: Leaving)
17:09:21*nuxdie quit (Ping timeout: 248 seconds)
17:09:23mirandom96: thanks! my first nim-related blog post coming soon :)
17:10:47*Senketsu_ joined #nim
17:12:40Yardanicomiran, cool!
17:14:25*Senketsu_ quit (Client Quit)
17:16:05*darithorn quit (Quit: Leaving)
17:20:25*jrbrt joined #nim
17:35:02*max3 quit (Quit: Connection closed for inactivity)
17:43:17*xet7 quit (Quit: Leaving)
17:48:52*r3ditttor joined #nim
17:54:00*r3ditttor left #nim (#nim)
18:07:56*xcm quit (Remote host closed the connection)
18:09:43*xcm joined #nim
18:11:21*athenot quit (Ping timeout: 240 seconds)
18:11:38*athenot joined #nim
18:15:51*athenot quit (Ping timeout: 240 seconds)
18:17:09*athenot joined #nim
18:18:34*mostly-harmless quit (Ping timeout: 260 seconds)
18:18:41*mostly-harmless joined #nim
18:18:57*Senketsu quit (Ping timeout: 240 seconds)
18:19:21*Senketsu joined #nim
19:04:19*yglukhov_ joined #nim
19:06:52*yglukhov quit (Ping timeout: 260 seconds)
19:12:39*nsf joined #nim
19:33:03*Senketsu quit (Quit: WeeChat 2.1)
19:43:30*sz0 joined #nim
19:45:01FromGitter<diegogub> guys, some idea what this error means : Error: request to generate code for .compileTime proc: $ ?
19:45:42miranwow, first message after 2.5 hours. i thought i was disconnected.... :)
19:46:07miranand sorry, i don't know how to help you :)
19:46:24Yardanico@diegogub: can you provide code example?
19:46:35Yardanicoprobably you're calling some compile-time only $ proc
19:48:39FromGitter<diegogub> t.`field` = j.getString($field):
19:49:16FromGitter<diegogub> I guess $field is the issue..I should use strVal right?
19:49:36FromGitter<diegogub> same issue..with strVal
19:51:59gokrI have to admit... I hate these conversion issues. So converting a uint64 to a string? (same bytes I mean) And then converting a seq[uint8] to a uint64
19:52:00FromGitter<mratsim> $`field` ?
19:52:25FromGitter<mratsim> you’re missing the quote around field @diegogub
19:53:05FromGitter<mratsim> and it probably should by `$field` so you interpolate the conversion at compile time
19:54:09FromGitter<diegogub> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af4a3615e8e2175e257325c]
19:55:53FromGitter<mratsim> try this ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af4a3c85a1d895fae2e22ea]
19:56:06miranhere is my first blog-post: https://narimiran.github.io/2018/05/10/python-numpy-nim.html
19:56:13*PMunch joined #nim
19:56:22mirancomments, critique, improvements, etc. are very welcome!
19:56:35FromGitter<mratsim> images!
19:58:32FromGitter<mratsim> awesome =)
20:01:17FromGitter<mratsim> the original blog post is misusing tensorflow though, there is no need to redefine a gradient descent, he can just use the autograd and leverage the XLA Tensorflow compiler.
20:02:09*noonien quit (Quit: Connection closed for inactivity)
20:02:11miranthanks @mratsim! i haven't used TF, so i didn't want to go in that direction
20:02:46FromGitter<mratsim> no problem, I never used it too and I’m living well =)
20:03:19FromGitter<diegogub> @mratsim thank you , its working now
20:04:04FromGitter<mratsim> awesome :), I was giving advice in the dark.
20:04:04miranif you have any suggestion for improvement (both in text and in nim code), please let me know
20:04:26mirani plan to post it to reddit tomorrow....
20:04:31FromGitter<mratsim> It’s short and to the point, /r/python or /r/numpy worthy I think
20:05:15FromGitter<mratsim> I’ll try to port it to Arraymancer once I figure out recurrent neural network. I’ve been head deep into that today .
20:05:51miranoh, i didn't know that /r/numpy exists. the plan was to post it to /r/nim, /r/python, and probably on /r/programming
20:06:06miran(i don't have a personal problem with spamming, like you do :D )
20:07:27FromGitter<mratsim> there is /r/scipy as well
20:08:29FromGitter<mratsim> well the deep learning and machine learning are spammed by “how do I start doing data science” “job offer” “what is the best way to do X” “This doesn’t work”. So I expect people to be less welcoming.
20:12:45miraneh, i would wait with nim posts on /r/DL and /r/ML until arraymancer is more ready ;)
20:14:05*Notkea joined #nim
20:14:28*CodeVance quit (Ping timeout: 256 seconds)
20:15:48*Ven`` joined #nim
20:15:50*CodeVance joined #nim
20:17:22*Sentreen quit (Quit: WeeChat 1.6)
20:18:11FromGitter<mratsim> to be honest I think it’s already in a pretty good state. Lots of experimental frameworks are just layers upon layers but you can’t slice a tensor.
20:18:28FromGitter<mratsim> i.e. you can’t do FizzBuzz ;)
20:19:45miransolving some kaggle problem in AM would make a nice blog post ;)
20:21:55*citycide joined #nim
20:26:14*jrbrt quit (Quit: jrbrt)
20:29:24*jjido joined #nim
20:30:31*Vladar quit (Quit: Leaving)
20:36:00PMunchhttps://uploads.peterme.net/protobuf-speedup.png
20:36:12PMunchThe speedup of protobuf with the new string slices
20:37:01dom96No labels for x-axis D:
20:37:02PMunchThat's parsing the krpc protobuf file, average of three runs with nimcache deleted between each run
20:37:14miranPMunch: new string slices is something nim-wide or protobuf-specific?
20:37:32PMunchYeah, it's before on the left, after on the right :P Guess I should've labeled that
20:37:43PMunchcombparser specific
20:37:49PMunchWell, the idea could certainly be used anywhere
20:38:01PMunchIt's basically a type with a ref string and a start and stop index
20:38:33PMunchSo when the parser goes through and passes the rest of the string to the next step it isn't copying the entire input
20:38:55PMunchRather it just copies the reference and the two indices, and updates one of the indices
20:39:40mirandom96, PMunch: https://narimiran.github.io/2018/05/10/python-numpy-nim.html - i would appreciate if you have any suggestion/improvement before i publish this on reddit tomorrow
20:39:58PMunchThen I've defined things like find, len, [], ==, and startsWith for the string slice so you can use it for whatever you like
20:40:17*vivus joined #nim
20:40:34miranPMunch: nice job!!
20:40:38PMunchLately I’ve been experimenting with the Nim programming language
20:40:43*CodeVance quit (Read error: Connection reset by peer)
20:40:52PMunchpromises to offer a Python-like
20:41:23*miran typical
20:41:35PMunchHaha :P
20:42:03dom96*as it takes advantage of :)
20:42:49*nsf quit (Quit: WeeChat 2.1)
20:43:05*miran will never learn *the* correct usage of *the* articles
20:43:57PMunchwhich gives us a Gaussian distribution
20:44:31miranarticles are overrated!! :P
20:45:17*CodeVance joined #nim
20:45:59PMunchWe compile the program in t̶h̶e̶ release mode
20:47:08PMunchWould be very interesting to see arraymancer as well
20:47:18dom96might want to add a footnote after "Nim is analogous to from Foo import * in Python"
20:47:28dom96Every Python user that reads this will freak out
20:47:46mirandom96: true :) i know i did when i first came over from python
20:48:02dom96*Nim is *a* statically typed language
20:54:35miranthanks for all *the* corrections dom96 and PMunch! will push the updated version tomorrow morning (if anybody else has something to correct, please do, i'll check the logs when i wake up)
20:57:31*athenot quit (Remote host closed the connection)
20:58:29*athenot joined #nim
21:00:54*CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org)
21:02:09*miran quit (Quit: Konversation terminated!)
21:07:19*CodeVance joined #nim
21:16:34*Sentreen joined #nim
21:16:47*Ven`` quit (Quit: q+)
21:26:16*NimBot joined #nim
22:12:06*PMunch quit (Quit: leaving)
22:24:10shashlicknice work miran
22:24:31*jrbrt joined #nim
22:27:55*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:29:14*jjido joined #nim
22:42:40*Sembei quit (Read error: Connection reset by peer)
22:43:29*Sembei joined #nim
22:44:27*cornfeedhobo quit (Ping timeout: 240 seconds)
22:53:52*cmk_zzz joined #nim
22:55:43*cornfeedhobo joined #nim
23:18:14*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:19:21*jjido joined #nim
23:28:52*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:39:39*MyMind joined #nim
23:40:10*Sembei quit (Ping timeout: 256 seconds)
23:42:36*leorize joined #nim