<< 04-08-2017 >>

00:26:49*endragor joined #nim
00:31:12*endragor quit (Ping timeout: 240 seconds)
00:39:13FromGitter<zacharycarter> something's not quite right :P
00:39:16FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/4Yyc/Screen-Shot-2017-08-03-at-8.38.45-PM.png)
00:40:27FromGitter<zacharycarter> OH SNAP
00:41:15FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/1Byn/Screen-Shot-2017-08-03-at-8.40.53-PM.png)
00:42:59*sz0 quit (Quit: Connection closed for inactivity)
00:50:42FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/H5z8/zengine.gif)
00:54:47*arnetheduck joined #nim
01:22:34*chemist69 quit (Ping timeout: 246 seconds)
01:29:41*def-pri-pub joined #nim
01:35:09*chemist69 joined #nim
01:43:41*rauss joined #nim
02:05:05*shmup quit (Ping timeout: 240 seconds)
02:18:45*http_GK1wmSU joined #nim
02:20:18*http_GK1wmSU left #nim (#nim)
02:33:47*endragor joined #nim
02:35:05*endragor quit (Remote host closed the connection)
02:35:12*endragor joined #nim
03:50:14*itseris_ joined #nim
03:50:52*itseris quit (Ping timeout: 260 seconds)
04:07:05*Serenitor joined #nim
04:12:51*vendethiel joined #nim
04:21:13*jinshil joined #nim
04:21:39*def-pri-pub quit (Quit: leaving)
06:23:18*nsf joined #nim
06:24:23*nattefrost joined #nim
06:30:04ElronndI was reading over this https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers and it says this "Strings are always unicode."
06:30:46Elronnddoes that mean something's actually enforced by the compiler, or is that just what the stdlib functions expect?
06:36:57Elronndreading over https://github.com/nim-lang/Nim/wiki/Nim-for-C-programmers it looks like the preferred way of printing out multiple values is echo "foo", bar, "baz". Is it possible to use c-style string formatting? Perhaps the way python and d do it where %s is used for everything and calls toString (or equivelant) on its parameter?
06:38:12*skrylar joined #nim
06:42:54*rauss quit (Quit: WeeChat 1.9)
06:46:32*tankfeeder joined #nim
06:47:16*yglukhov joined #nim
06:51:46*yglukhov quit (Ping timeout: 258 seconds)
06:52:25doznElronnd, https://github.com/nim-lang/Nim/blob/master/lib/pure/strutils.nim#L2210 ?
06:53:17doznI haven't actually used any of the formatting utilities, but I'm sure you're close with the strutils package there
06:55:17Elronndok
06:55:52doznElronnd, another example https://paste.ee/p/9n9xf
06:56:26dozn'%' is documented in the strutils documentation
07:22:42*dankrad quit (Ping timeout: 240 seconds)
07:22:57FromGitter<Varriount> Elronnd: Nim strings are actually char arrays. String literals are encoded using utf-8.
07:24:41*dankrad joined #nim
07:29:18Elronndso it works the same as d? (In d string is just an alias for immutable(char)[])
07:32:25*ShalokShalom joined #nim
07:33:21*yglukhov joined #nim
07:33:57*yglukhov quit (Remote host closed the connection)
07:34:11*yglukhov joined #nim
07:45:59*Vladar joined #nim
07:48:15*http_GK1wmSU joined #nim
07:49:26*http_GK1wmSU left #nim (#nim)
08:06:46euantorI have a couple of Windows machine I can test on if you still need to test the AppVeyor bootstrap tests, just let me know
08:20:52FromGitter<Varriount> Elronnd: Somewhat, yes. Nim strings are mutable and have a dynamic length.
08:24:26*mal``` quit (Quit: Leaving)
08:30:11*vendethiel- joined #nim
08:32:04*vendethiel quit (Ping timeout: 276 seconds)
08:33:22*mal`` joined #nim
08:37:35*fredrik92 joined #nim
08:40:15*ShalokShalom quit (Remote host closed the connection)
08:41:09*jinshil quit (Quit: Good-bye!)
08:44:48*rokups joined #nim
08:48:28*vendethiel joined #nim
08:49:27*vendethiel- quit (Ping timeout: 240 seconds)
08:52:13*dom96|w joined #nim
09:02:10*ShalokShalom joined #nim
09:03:58*v17d joined #nim
09:06:26*Serenitor quit (Quit: Leaving)
09:09:26*ShalokShalom quit (Remote host closed the connection)
09:10:36*ShalokShalom joined #nim
09:39:28*vendethiel quit (Ping timeout: 240 seconds)
09:40:38*vendethiel joined #nim
10:11:55*yglukhov_ joined #nim
10:11:55*yglukhov quit (Read error: Connection reset by peer)
10:17:05*dankrad quit (Ping timeout: 240 seconds)
10:18:12*dankrad joined #nim
10:18:25*vendethiel quit (Ping timeout: 246 seconds)
10:24:23*dankrad quit (Ping timeout: 268 seconds)
10:29:28*dankrad joined #nim
10:52:26FromGitter<TiberiumN> dom96: about appveyor - https://github.com/nim-lang/Nim/issues/6156
10:52:33FromGitter<TiberiumN> "With the newest devel-branch compiler (0.17.1) compilation seems to take about a hundred times longer, at least in debug mode. Koch's second pass lasts for 20 minutes already and it's still on about a half of the modules list. It's not specific to compiling the compiler, the same with a tineest prigram - just processing system.nim takes several minutes. Windows, MinGW 4.9.3."
10:53:18FromGitter<TiberiumN> and another: "windows 10-64bit, GCC 7.1.0 ⏎ devel branch: koch boot ⏎ iteration 1: 14secs - 28 secs ⏎ iteration 2: 2670 secs / 44,5mins ⏎ iteration 3: out of patience" [https://gitter.im/nim-lang/Nim?at=5984521e210ac2692052af4f]
11:01:42*gokr joined #nim
11:03:59*ShalokShalom quit (Read error: Connection reset by peer)
11:06:44*skrylar quit (Ping timeout: 260 seconds)
11:25:23*gokr left #nim (#nim)
11:27:34*nhywyll joined #nim
11:31:12dom96|wTiberiumN: Cool, so it's not an AppVeyor issue but a Nim one :)
11:37:28*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
11:43:52*http_GK1wmSU joined #nim
11:44:16*http_GK1wmSU left #nim (#nim)
11:55:27*CcxWrk quit (Ping timeout: 240 seconds)
11:59:42*dankrad quit (Ping timeout: 260 seconds)
12:00:05*dankrad joined #nim
12:01:13*dom96|w joined #nim
12:10:48*CcxWrk joined #nim
12:24:47*Snircle joined #nim
12:29:09*nhywyll quit (Quit: nhywyll)
12:36:09*salewski joined #nim
12:37:33salewskiManning just informs me that the final EBook version is available. Great!
12:38:17FromGitter<ChristianWitts> Just saw that too :)
12:39:16*salewski quit (Client Quit)
12:46:00*mahmudov joined #nim
12:57:32*Vladar quit (Quit: Leaving)
13:17:28dom96|w:D
13:31:35*chemist69 quit (Ping timeout: 258 seconds)
13:33:20*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
13:33:40*v17d quit (Ping timeout: 276 seconds)
13:35:39*UxerUospr joined #nim
13:40:55*rauss joined #nim
13:41:41*dom96|w joined #nim
13:44:00*chemist69 joined #nim
13:45:30*v17d joined #nim
13:48:57FromGitter<TiberiumN> ``````
13:49:21FromGitter<TiberiumN> sorry, it's hard to use macos when you've used windows and linux all the time :)
13:56:27FromGitter<Smaehtin> Does anyone know how (if possible) to specify generic procs in concepts? Something like this: http://ideone.com/zLQgMc
14:05:43*Pwntus quit (Changing host)
14:05:43*Pwntus joined #nim
14:10:09*planhths joined #nim
14:18:46*endragor quit (Remote host closed the connection)
14:27:46*chemist69 quit (Quit: WeeChat 1.9)
14:27:54*sz0 joined #nim
14:29:52*chemist69 joined #nim
14:49:52*planhths quit (Ping timeout: 255 seconds)
14:53:26*nhywyll joined #nim
15:00:01FromGitter<aboisvert> yes, definitely possible to define generic procs in concepts
15:00:10FromGitter<aboisvert> don't understand your code sample, though
15:00:45FromGitter<aboisvert> are you trying to apply the concept to `int` ?
15:01:19FromGitter<Smaehtin> Yes, I am in this example
15:02:30FromGitter<Smaehtin> Because there is a proc `stuffT (...)` defined for `int`, it should fill the requirements of being a `Test` concept type
15:03:26FromGitter<Smaehtin> Do you happen to have an example of specifying generic procs inside of a concept by any chance? I've been searching for a while and haven't had any luck so far finding one
15:04:57FromGitter<aboisvert> Looking for one ...
15:09:41*fredrik92 quit (Read error: Connection reset by peer)
15:11:23FromGitter<Smaehtin>  thanks
15:11:37*ShalokShalom joined #nim
15:21:28FromGitter<aboisvert> sorry, not finding one. trying with 0.17 but getting same issue. taking a look at #head
15:22:53FromGitter<Smaehtin> It actually works if I replace the generic parameter with `auto`, so: `proc stuffT (i: int, value: T): T` becomes `proc stuff(i: int, value: auto): auto`
15:23:37FromGitter<Smaehtin> Which is strange, because as far as I remember, `auto` parameters are converted to generic parameters anyways
15:29:33*Trustable joined #nim
15:30:32FromGitter<Smaehtin> Scratch that, that was another test I was doing using `typedesc[auto]`...
15:34:31*nsf quit (Quit: WeeChat 1.9)
15:44:05*yglukhov_ quit (Read error: Connection reset by peer)
15:44:24*yglukhov joined #nim
15:45:23*yglukhov_ joined #nim
15:45:23*yglukhov quit (Read error: Connection reset by peer)
15:50:14*yglukhov joined #nim
15:50:15*yglukhov_ quit (Read error: Connection reset by peer)
15:53:36*yglukhov_ joined #nim
15:53:36*yglukhov quit (Read error: Connection reset by peer)
15:56:21*tankfeeder quit (Quit: Connection closed for inactivity)
15:57:31*yglukhov joined #nim
15:57:32*yglukhov_ quit (Read error: Connection reset by peer)
15:58:56*yglukhov_ joined #nim
15:58:56*yglukhov quit (Read error: Connection reset by peer)
16:00:11*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
16:08:10*yglukhov_ quit (Read error: Connection reset by peer)
16:08:17*yglukhov joined #nim
16:09:45*yglukhov_ joined #nim
16:10:04*yglukhov_ quit (Read error: Connection reset by peer)
16:10:16*yglukhov quit (Read error: Connection reset by peer)
16:10:17*yglukhov_ joined #nim
16:10:19*arnetheduck quit (Ping timeout: 276 seconds)
16:11:25*yglukhov joined #nim
16:11:25*yglukhov_ quit (Read error: Connection reset by peer)
16:15:34*yglukhov quit (Remote host closed the connection)
16:44:14*haha joined #nim
16:44:38*haha is now known as Guest85096
16:44:57*v17d quit (Ping timeout: 240 seconds)
16:47:08*tankfeeder joined #nim
16:47:34*Guest85096 is now known as hawtf
16:48:20*gangstacat quit (Ping timeout: 260 seconds)
16:51:01*hawtf quit (Quit: Textual IRC Client: www.textualapp.com)
16:51:17*haha_ joined #nim
16:55:44*itseris_ quit (Quit: Konversation terminated!)
17:00:50*v17d joined #nim
17:01:51*endragor joined #nim
17:02:07*gangstacat joined #nim
17:02:26*itseris joined #nim
17:05:38*haha_ quit (Quit: it is possible that i just died)
17:06:08*endragor quit (Ping timeout: 240 seconds)
17:06:30*haha_ joined #nim
17:06:44*yglukhov joined #nim
17:08:21*ShalokShalom quit (Read error: Connection reset by peer)
17:13:47*pilne joined #nim
17:31:02*v17d quit (Ping timeout: 260 seconds)
17:43:20*v17d joined #nim
17:49:02*planhths joined #nim
17:49:19*dddddd joined #nim
18:04:51Xeis there a way to get the gc stats from GC_getStatistics as a struct?
18:10:11Araqno, it uses Unix's design. strings are good enough nobody needs structured data
18:12:22dom96hah
18:12:42dom96We would love it if you created a PR that made it return a struct :)
18:13:24Araqthat's true but the object's fields depend on the used GC
18:13:41Araqand are subject to change
18:16:40dom96Speaking of things that return a string: getStackTrace (or w/e it's called) should return a struct of some sort
18:22:44Araqok with me but don't make it return seqs of strings please
18:22:55Araqreturn what the runtime actually really uses
18:23:06Araq(a linked list with cstrings in it)
18:31:23FromGitter<Smaehtin> > Does anyone know how (if possible) to specify generic procs in concepts? Something like this: http://ideone.com/zLQgMc
18:31:44FromGitter<Smaehtin> > Does anyone know how (if possible) to specify generic procs in concepts? Something like this: http://ideone.com/zLQgMc ⏎ ⏎ ^ Anyone? 
18:32:54Araqdoesn't seem reasonable. why do you need it?
18:36:08*planhths quit (Ping timeout: 240 seconds)
18:36:26*planhths joined #nim
18:38:31*v17d quit (Ping timeout: 276 seconds)
18:42:50*itseris quit (Quit: Konversation terminated!)
18:49:43*itseris joined #nim
18:57:22*planhths quit (Ping timeout: 255 seconds)
19:03:47*Sentreen quit (Ping timeout: 260 seconds)
19:16:02*Sentreen joined #nim
19:27:08*dddddd quit (Remote host closed the connection)
19:33:07*haha_ quit (Quit: it is possible that i just died)
19:43:13*haha joined #nim
19:43:36*haha is now known as Guest99050
19:46:13*Guest99050 quit (Client Quit)
19:47:13*enthus1ast joined #nim
19:48:34enthus1asthi
19:49:33Araqhi
19:50:10*andrzejku joined #nim
19:52:21enthus1astshould this async code fail like this?
19:52:26enthus1asthttps://gist.github.com/enthus1ast/31c63fc9555c90eee05c66b9be93b9ca
19:53:52enthus1astwhen foo is local to cb it works
19:57:57FromGitter<Smaehtin> It should say something like: "proc cb is not GC-safe because it accesses GC'd memory blablabalb"
19:58:02FromGitter<Smaehtin> I think?
19:58:35*rokups quit (Quit: Connection closed for inactivity)
20:00:52FromGitter<zacharycarter> babel and javascript and es62015 and webpack are the worst things on earth
20:07:33*Tester_ joined #nim
20:08:38FromGitter<Smaehtin> @enthus1ast https://vgy.me/aipPRo.png I get this when trying to access a global from an async proc, which Nim version are you using?
20:10:00UxerUosprDoes anyone have a good resource on writing multi-threaded/process programs? I've not done it before in any language and it'd be a good excuse to delve deeper into Nim.
20:10:31FromGitter<zacharycarter> Threads are tough in Nim with the default GC UxerUospr
20:10:48*Tester_ quit (Client Quit)
20:10:58FromGitter<zacharycarter> not impossible but with the thread local heaps memory management becomes a little more difficult
20:11:07FromGitter<zacharycarter> you have to resort to channels or use shared unsafe memory
20:11:13FromGitter<zacharycarter> that is not garbage collected
20:11:42FromGitter<zacharycarter> you can use thread pool and spawn
20:12:34FromGitter<zacharycarter> https://nim-lang.org/docs/manual.html#parallel-spawn
20:12:40enthus1astSmaehtin i've just build the freshest devel
20:13:09enthus1ast(had not pulled since a month)
20:14:29UxerUosprzacharycarter: thanks for the insight. I'll read through that and give it a go
20:14:44FromGitter<zacharycarter> UxerUospr: no problem
20:17:35enthus1astSmaehtin your example runs fine here
20:18:54FromGitter<Smaehtin> @enthus1ast My async proc example thing?
20:19:00enthus1astjep
20:19:32FromGitter<Smaehtin> Strange. I'm running 0.17 though :)
20:20:30enthus1astmhhh i cleanup everything again and try again
20:26:20*rauss quit (Quit: WeeChat 1.9)
20:27:15*andrzejku quit (Quit: Textual IRC Client: www.textualapp.com)
20:27:32*ipjk joined #nim
20:37:21*Matthias247 joined #nim
20:37:44*Sentreen quit (Quit: WeeChat 1.4)
20:42:53*Trustable quit (Remote host closed the connection)
20:46:04*Sentreen joined #nim
20:46:08*Sentreen quit (Client Quit)
20:49:07*enthus1ast quit (Quit: Lost terminal)
20:49:45*Sentreen joined #nim
21:01:59*Sentreen quit (Quit: WeeChat 1.4)
21:03:05*enthus1ast- joined #nim
21:03:40*Sentreen joined #nim
21:03:40*Sentreen quit (Client Quit)
21:05:32*Sentreen joined #nim
21:06:12enthus1ast-jep it fails now, updated other systems as well
21:06:17*Sentreen quit (Client Quit)
21:07:45*v17d joined #nim
21:08:03*Sentreen joined #nim
21:11:55*skrylar joined #nim
21:12:08*skrylar quit (Client Quit)
21:17:01*Sentreen quit (Quit: WeeChat 1.4)
21:17:01enthus1ast-filed an issue https://github.com/nim-lang/Nim/issues/6186
21:17:07*nhywyll quit (Ping timeout: 276 seconds)
21:18:22dankradi've checked the git history and nothing has been changed. for me it seems to be a compiler bug
21:18:43*UxerUospr quit (Quit: Lost terminal)
21:19:54*nhywyll joined #nim
21:20:19*nhywyll quit (Client Quit)
21:20:28*nhywyll joined #nim
21:37:41*Sentreen joined #nim
21:58:41*nsf joined #nim
22:12:03*ShalokShalom joined #nim
22:16:32*nhywyll quit (Quit: nhywyll)
22:20:10*Sentreen quit (Quit: WeeChat 1.4)
22:20:59*themagician quit ()
22:25:11*itseris quit (Remote host closed the connection)
22:25:29*itseris joined #nim
22:27:28*Sentreen joined #nim
22:30:29*def-pri-pub joined #nim
22:30:29*def-pri-pub quit (Changing host)
22:30:29*def-pri-pub joined #nim
22:37:15*nattefrost quit (Remote host closed the connection)
22:42:04*Sentreen quit (Quit: WeeChat 1.4)
22:45:58ipjkAre the any documented logs about language decisions?
22:46:27ipjkI'm quite curious about the "[]" being both for generics, indexing and dereferencing
22:47:43Araqthat was decided by me before the project got track ;-)
22:48:57ipjkOh, thank you.
22:50:27ipjkDo you happen to remember how you decided on it? Don't feel forced to anwser
22:51:36ipjkI do realise `*` is for public, which I quite like.
22:53:42FromGitter<zetashift> @Araq got any recommendations on courses/books/articles that I can read how I can into imperative/procedural programming? Coming as a hobbyist from C# and Kotlin, I can't seem to structure programs well/efficient in Nim
22:54:26ipjkzetashift: Both C# and Kotlin are imperative languages.
22:57:02FromGitter<zetashift> most learning resources pick an OOP approach tho
22:57:20FromGitter<zetashift> tho thanks to gamedev they certainly preach 'composition over inheritance'
23:00:50*couven92 quit (Ping timeout: 240 seconds)
23:07:34ipjkzetashift: Don't care about such. Just code and get what you want to do, acutally do what you want to.
23:11:18ipjkImplemented > implementation
23:14:17FromGitter<zetashift> I guess that's what it all boils down too, JUST DO IT!
23:14:29FromGitter<zetashift> hehe thanks for your time anyway
23:20:06*endragor joined #nim
23:20:09*shadwick joined #nim
23:20:10ipjkI feel you, the scary thing about patterns - are that they take you away from the actual problem. Atleast that's how I feel
23:20:55shadwickHi all -- I looked around but couldn't find any packages to support gRPC in Nim. Does anyone know of a wrapper that exists? Thanks,
23:24:15*Matthias247 quit (Read error: Connection reset by peer)
23:24:17*endragor quit (Ping timeout: 248 seconds)
23:28:42enthus1ast-shadwick: afaik there is none, but there is a json rpc and a msgpack rpc
23:29:50enthus1ast-and you might find a protobuf implemention
23:34:22shadwickenthus1ast-: thanks
23:39:05*yglukhov quit (Remote host closed the connection)
23:39:34*dankrad quit (Ping timeout: 246 seconds)
23:39:58*yglukhov joined #nim
23:41:48*dankrad joined #nim
23:44:22*yglukhov quit (Ping timeout: 260 seconds)
23:44:32*ipjk quit (Quit: Leaving)