00:02:25FromGitter<Bennyelg> you created it?
00:02:33FromGitter<Bennyelg> so you are good on blender
00:08:28FromGitter<zacharycarter> no
00:08:38FromGitter<zacharycarter> that's modo A) and b) I didn't create the model hehe
00:08:50FromGitter<zacharycarter> I'm just trying to prerender stuff from the unity asset store
00:19:28FromGitter<zacharycarter> https://imgur.com/a/tO4j4
00:20:24*Demos_ joined #nim
00:20:46*Demos_ quit (Client Quit)
00:21:21*JappleAck quit (Ping timeout: 248 seconds)
00:22:10*Demos_ joined #nim
00:25:10*Demos_ quit (Remote host closed the connection)
00:25:37*Demos joined #nim
00:28:11FromGitter<zacharycarter> https://imgur.com/a/fg8yy
00:28:14FromGitter<zacharycarter> zoom was off in the first pic
00:35:23*Demos_ joined #nim
00:35:45*Demos_ quit (Client Quit)
00:36:53*Demos quit (Read error: Connection reset by peer)
00:37:08*Demos joined #nim
00:38:01*Demos_ joined #nim
00:38:32FromGitter<define-private-public> Heyas.
00:38:47FromGitter<define-private-public> Did you get a chance to read the PM I sent via Gitter?
00:40:16*Demos quit (Client Quit)
00:40:16*Demos_ is now known as Demos
00:40:21FromGitter<zacharycarter> Oh yeah thanks for reminding me about that - I read it last night when I was super tired / right before I went to sleep and totally spaced on it today
00:40:25FromGitter<zacharycarter> That's fine though I totally understand man
00:40:35FromGitter<zacharycarter> I appreciate all the work you've already done in playing with the engine
00:40:37*Demos_ joined #nim
00:40:38FromGitter<zacharycarter> and contributing
00:40:44*couven92 quit (Ping timeout: 255 seconds)
00:48:12*sz0 joined #nim
00:56:39*Demos_ quit (Quit: Demos_)
01:03:55*Demos_ joined #nim
01:25:19*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
01:33:31*Demos_ quit (Quit: Demos_)
01:36:42*yglukhov joined #nim
01:41:01*yglukhov quit (Ping timeout: 255 seconds)
01:46:47*chemist69 quit (Ping timeout: 258 seconds)
02:00:21*chemist69 joined #nim
02:34:36*endragor joined #nim
03:06:40*sz0 quit (Quit: Connection closed for inactivity)
03:33:44*Demos quit (Quit: Demos)
04:00:19*Demos joined #nim
04:05:59*Demos quit (Quit: Demos)
04:16:54*Demos joined #nim
04:19:21*Demos quit (Client Quit)
04:22:08*dddddd quit (Remote host closed the connection)
04:29:48*Demos joined #nim
04:44:36*Demos quit (Remote host closed the connection)
05:16:38*miran joined #nim
06:06:45*miran quit (Quit: Leaving)
06:18:17*Vladar joined #nim
06:21:15FromGitter<mratsim> Someone tried Halide? https://en.wikipedia.org/wiki/Halide_(programming_language) An image processing domain language with x86_64, ARM, OpenGL Shader, Cuda, OpenCL backends and embedded in C++
06:24:07*libman quit (Quit: Connection closed for inactivity)
06:30:39*nsf joined #nim
06:31:16*Arrrr joined #nim
06:31:16*Arrrr quit (Changing host)
06:31:16*Arrrr joined #nim
06:53:58*PMunch joined #nim
06:55:48FromGitter<gokr> Spotted: http://www.bootstrap.me.uk/bootstrapped-blog/nim-for-the-discerning-rubyist
06:58:44FromGitter<gokr> Woa... Just discovered Nim at devdocs.io - neat!
07:03:10*PMunch_ joined #nim
07:03:28*cabuschardt joined #nim
07:04:48*smt_ joined #nim
07:05:28*PMunch quit (Ping timeout: 240 seconds)
07:06:04*PMunch_ is now known as PMunch
07:08:38*smt` quit (Ping timeout: 255 seconds)
07:31:30*cabuschardt quit (Ping timeout: 260 seconds)
07:33:39*PMunch_ joined #nim
07:36:31*PMunch quit (Ping timeout: 248 seconds)
07:47:02*yglukhov joined #nim
07:51:17*yglukhov quit (Ping timeout: 255 seconds)
08:01:45*yglukhov joined #nim
08:31:30*claudiuinberlin joined #nim
08:34:47*smt` joined #nim
08:35:55*ipjk joined #nim
08:37:40*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:38:23*smt_ quit (Ping timeout: 248 seconds)
08:42:06*claudiuinberlin joined #nim
08:47:36*yglukhov_ joined #nim
08:48:59*yglukhov quit (Ping timeout: 255 seconds)
08:51:03*PMunch_ is now known as PMunch
08:56:22*PMunch quit (Remote host closed the connection)
09:03:10*PMunch joined #nim
09:17:08*gokr joined #nim
09:21:44gokrAraq: Cut it down to a smallish example now, still blocks randomly. And it happens on the spawn line.
09:26:24*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:28:03Araqgokr: ok, report it
09:28:25gokrHmmm, I just cut it down even further. It doesn't have to do with Jester at all.
09:28:40gokrYeah, I will.
09:32:28gokrJust curious if anyone can try that. It blocks for me after spawning 4
09:32:42gokrPerhaps it's something silly.
09:36:20*claudiuinberlin joined #nim
09:37:36gokrHmmm, updated the gist to be even more minimal. It shouldn't block, should it?
09:50:55gokrHehe, issue number 6500! ;)
09:51:40gokrIt turns out it has nothing to do with execCmdEx either, I can just use Nim sleep and it still blocks.
10:04:07FromGitter<Bennyelg> gokr, the os sleep is the problem dont you think?
10:04:32FromGitter<Bennyelg> I found it interesting look like the sleep is blocking
10:05:03gokrWell, it doesn't really matter it turns out if you actually call out or just do "sleep(20000)"
10:05:23gokrAlthough the latter will make it happen less often.
10:05:58gokrAlso, I have tried tons of different things - this started out with a compilation job and not sleep.
10:06:07gokrI also called a shell script that does sleep, it doesn
10:06:10gokr't matter.
10:06:51gokrAlso, execProcess, execCmdEx etc, doesn't matter. So AFAICT it has nothing to do with what is being done per se. I could try with some... loop or something.
10:07:49FromGitter<Bennyelg> interesting,
10:09:39*ShalokShalom joined #nim
10:09:48FromGitter<Bennyelg> Well, it's always in a batch of 4 threads at a time.
10:11:07gokrYeah, typically.
10:11:36gokrBut... I dunno, it depends on what you do it seems. I am not at all sure. The default value for min size of pool is 4 though.
10:13:59gokrOk, so I dumped in some httpclient code - sucking in a URL 20 times. It starts up 4 or 5, then blocks... then suddenly starts spawning again.
10:14:01FromGitter<mratsim> @Araq It's not possible currently to write my own memory pool and use seq with it right. (Or have value semantics since assignment overloading doesn't work)
10:14:05gokrSo it doesn't have to do with sleep.
10:17:18FromGitter<Bennyelg> I tried import 'threads' but I get cannot open threads :|
10:21:10gokrYou don't import "threads" - you instead compile with "--threads:on"
10:21:56FromGitter<Bennyelg> so what is wrong with the docs example: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59df42443cb340a261159a2d]
10:22:08*xet7 quit (Ping timeout: 255 seconds)
10:22:18FromGitter<Bennyelg> error type Thread
10:23:03*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:23:17gokrWorks for me. Just compile with "nim c --threads:on blabla.nim"
10:23:51*PMunch_ joined #nim
10:24:41FromGitter<Bennyelg> Nim Compiler Version 0.17.3 (2017-10-12)
10:24:54FromGitter<Bennyelg> no I have no idea why it doesnt work for me lol I updated my nim lets see
10:25:17FromGitter<Bennyelg> it's working but i get errors in my vscode
10:26:21*PMunch quit (Ping timeout: 240 seconds)
10:27:01*claudiuinberlin joined #nim
10:27:30*PMunch_ is now known as PMunch
10:28:02FromGitter<Bennyelg> @gokr ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59df43b1b20c642429f22689]
10:28:09FromGitter<Bennyelg> seems like this works
10:29:14gokrYeah, but... I didn't want to have to go there and do it manually. But perhaps I will just have to do that.
10:29:48FromGitter<Bennyelg> depends on you work
10:30:17gokrAt this point its not important - it just keeps nagging at me - I don't like it.
10:30:37FromGitter<Bennyelg> hehe
10:30:51Araqgokr: I'm looking into it but there is a reason we have a new simpler threadpool in the works :-)
10:31:14gokrYeah, I understand, it's cool
10:31:43gokrFor me, since I don't use FlowVars even, it's not hard to do what Benny did (manual Threads).
10:32:17gokrBtw, I started to try to look up ParaSail but... hard to find a good place to get a grip.
10:32:37gokrAnd I presume you are only picking a few pieces of that puzzle?
10:32:43*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:35:37*xet7 joined #nim
10:35:43Araqthat spawn bug is easy
10:36:32gokrGlad to hear! Although I have been chasing rabbits for... hours.
10:36:54gokrI was so convinced it had to do with IO or something weird.
10:44:18Araqpull devel and try it
10:48:38FromGitter<Grabli66> Hi. where i can find information about all options of "--gc:refc|v2|markAndSweep|boehm|go|none|regions"? And about "--gc:stack".
10:51:59gokrAraq: First test seems to work! Cool. I will try it on my larger prog.
10:55:45gokrAraq: Thanks. Works great. Now I can happily swamp my Raspberry in compilation jobs.
10:57:26gokr"care about minpoolsize" hehe.
11:02:09*Snircle joined #nim
11:09:31*couven92 joined #nim
11:11:40Araqgrabli: --gc:regions is the same as --gc:stack
11:14:19couven92Hehe, I just wento to https://github.com/dashboard/discover GitHub's discover list seems to be a nim-only list... Apearently GitHub feels that I have mostly done Nim programming there :D
11:15:28FromGitter<Grabli66> And what is --gc:regions? What will be with ref objects, how they will be freed?
11:16:15FromGitter<mratsim> ^ very interested in that too. Would gc:regions simplify memory pool implementation? (or even means I don’t need to implement my own)
11:19:20Araqevery allocation ref/seq/string happes in a region which is freed at the end of the program
11:19:33Araqto get more control you have to use
11:19:37Araqvar r: MemRegino
11:19:40Araqvar r: MemRegion
11:19:47AraqwithRegion r:
11:19:58Araq stuff_here_that_doesnt_escape()
11:20:17Araqit sucks but its speed is enormous
11:24:06*sz0 joined #nim
11:29:49FromGitter<andreaferretti> can regions be nested?
11:29:53ArrrrMmm makes me think
11:30:01FromGitter<andreaferretti> I mean `withRegion` blocks
11:41:26Araqyes, they can be nested
11:41:55FromGitter<andreaferretti> thank you
11:44:31*Snircle_ joined #nim
11:45:27*ShalokShalom quit (Ping timeout: 260 seconds)
11:47:05*Snircle quit (Ping timeout: 258 seconds)
11:54:15*Yardanico joined #nim
12:04:23Yardanicohi nimians!
12:05:21*Calinou quit (Changing host)
12:05:21*Calinou joined #nim
12:09:23FromGitter<Yardanico> @Bennyelg you was getting errors in vscode because you didn't have nim.cfg for your project
12:09:51FromGitter<Yardanico> @Bennyelg by default threads are disabled, so add "nim.cfg" or "myprojectname.nim.cfg" file and add "--threads:on" to it
12:13:00*federico3 quit (Quit: WeeChat 1.9)
12:14:43*federico3 joined #nim
12:17:51*zolk3ri joined #nim
12:18:23zolk3riHuh, how come "let f = readFile("old")\nfor line in f.lines():\n echo line" works for debug build but not release build (I get IOError)?
12:20:00Yardanicozolk3ri, report it :)
12:20:10*claudiuinberlin joined #nim
12:21:06Yardanicoah I see why probably
12:21:21Yardanicoah, I don't :D
12:21:30Yardanicoit errors for me even in debug mode
12:21:44zolk3riI did compile 0.17.2 myself though
12:22:25YardanicoI have devel version of nim
12:22:52zolk3riwell at least it consistently throws IOError in devel
12:23:02zolk3riI'll try it myself, too, in a bit :D
12:23:20Yardanicowell "lines" iterator uses readLine
12:23:33Yardanicoand readLine docs say it can throw an IOError
12:35:06*zolk3ri quit (Quit: Lost terminal)
12:35:46*zolk3ri joined #nim
12:49:02*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:53:13*claudiuinberlin joined #nim
12:53:31*dddddd joined #nim
13:07:43*crem quit (Ping timeout: 248 seconds)
13:07:49*Yardanico quit (Remote host closed the connection)
13:09:44*crem joined #nim
13:11:11*jjido joined #nim
13:13:33yglukhov_zolk3ri, Yardanico: lines accepts file path, not contents.
13:16:37*deavmi quit (Quit: Lost terminal)
13:18:16*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:20:02gokrdom96: choosenim - neat stuff ;)
13:23:38*claudiuinberlin joined #nim
13:25:35*gokr quit (Ping timeout: 240 seconds)
13:37:28*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:42:12*ShalokShalom joined #nim
13:49:06*claudiuinberlin joined #nim
13:51:58FromGitter<Yardanico> yglukhov: not only file path
13:52:31FromGitter<Yardanico> https://nim-lang.org/docs/system.html#lines.i,File
13:53:09*claudiuinberlin quit (Client Quit)
13:56:57*claudiuinberlin joined #nim
13:59:01FromGitter<andreaferretti> still, `readFile` returns a string
13:59:51*PMunch_ joined #nim
14:02:38*PMunch quit (Ping timeout: 255 seconds)
14:04:05*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
14:04:07FromGitter<Yardanico> oh wait
14:04:13FromGitter<Yardanico> lol
14:08:38FromGitter<mratsim> @Araq so we can mix normal GC with memory regions? Say we want to initiate a new region so that all alloc/deallocate are fast. But some data comes from regular seq
14:10:27*claudiuinberlin joined #nim
14:10:52FromGitter<mratsim> That would be awesome for Machine Learning, allocation/deallocations happen a lot in a very tight loop.
14:11:29*PMunch_ is now known as PMunch
14:12:13Araqmratsim: no and I lost interest in regions. I'm working day and night to give decent assignment and destructors and making strings/seqs GC free
14:13:22FromGitter<mratsim> Oh that's even better ! Keep it up.
14:21:10*nsf quit (Quit: WeeChat 1.9)
14:21:15*kafke joined #nim
14:37:34zolk3riYardanico: Ended up with this: https://ptpb.pw/AONHo8j56WBN8tlyFNsOcPJKF9hs/nim
14:39:01FromGitter<Yardanico> Use strscans module
14:39:12zolk3riAnd you tell me now!
14:51:33FromGitter<andreaferretti> @mratsim when allocations happen a lot in a tight loop, isn't it more convenient to reuse some object?
14:51:55FromGitter<andreaferretti> I do that, for instance, when iterating over rows or columns in neo
14:52:22FromGitter<andreaferretti> you just get the same object, mutated, at every iteration
14:52:48FromGitter<andreaferretti> there is a separate implementation of row iterators that is safer, but slower
14:53:13FromGitter<andreaferretti> I don't know if that is feasible in your use case
14:54:12FromGitter<andreaferretti> https://github.com/unicredit/neo/blob/master/neo/dense.nim#L339-L357
14:55:38*Jesin joined #nim
14:55:42*PMunch quit (Quit: Leaving)
15:06:44*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:07:21FromGitter<Yardanico> zolk3ri: it would be MUCH easier to use strscans rather than your approach
15:07:25FromGitter<Yardanico> and it probably would be faster
15:07:35FromGitter<Yardanico> because you do a lot of copies here (slice = copy)
15:07:58zolk3riYardanico, probably. I don't know how to use strscans yet though, just started reading about Nim.
15:08:13FromGitter<Yardanico> can you post a example file in this format?
15:08:22FromGitter<Yardanico> format that you're parsing
15:08:24zolk3riYes, hold on.
15:10:57FromGitter<mratsim> @andreaferretti for my tensor I provide value semantics by default and unsafe/view functions to avoid copy. The (potential) issue is how to design the autograd, forward, backward and gradient descent pass efficiently. See here: https://github.com/mratsim/Arraymancer/blob/master/benchmarks/ex01_xor.nim. There will be a lot of intermediate tensors created to cache inputs in the forward pass, and many temporary Tensors
15:10:57FromGitter... that will hold gradients in the backward pass.
15:11:27*jjido quit (Ping timeout: 248 seconds)
15:13:46FromGitter<andreaferretti> well, can these intermediate tensors be reused?
15:14:00FromGitter<andreaferretti> just suggesting, no idea if this fits in your design
15:16:09FromGitter<mratsim> Since I have a dynamic graph input can have different size/shape and if the size/shape if different I can't. This is especially true for NLP. For images though most of the time input all have the same size and we can reuse I the memory allocated.
15:18:04FromGitter<mratsim> I've checked several deep learning framework and it seems like memory management is one of the most complex area. Some like Tensorflow or Theano just outright reserve the whole GPU memory.
15:19:48FromGitter<mratsim> Others like Mxnet have (several) memory pools and a quite involved allocation scheme.
15:20:02FromGitter<Yardanico> @zolk3ri: not the best one: https://gist.github.com/Yardanico/fbb8ab4e6b0a504f7a2ae879afbda05e
15:20:09FromGitter<Yardanico> can you benchmark it vs your solution? :)
15:20:21FromGitter<Yardanico> well I didn't add any memfile logic here
15:21:29*nsf joined #nim
15:23:40FromGitter<Yardanico> I just skip not needed parts of the string into "extra" variable
15:24:17zolk3rihold on :D
15:26:34FromGitter<Yardanico> also there's https://nim-lang.org/docs/parseutils.html if you want to parse it yourself (scanf macro just generates calls to procs from this module)
15:28:28FromGitter<Yardanico> ah, and also it doesn't replace GUIDs
15:28:41FromGitter<Yardanico> or it does
15:28:43zolk3riHmm, it prints the name instead of guid in auth, also it hangs after a while, I'll have to debug this.
15:28:51*libman joined #nim
15:29:38FromGitter<Yardanico> ah, it can be fixed easily
15:32:30FromGitter<Yardanico> updated the gist
15:32:41FromGitter<Yardanico> maybe you can post whole file, or it would be a security issue?
15:35:42zolk3riYardanico: https://ptpb.pw/AL-auHgv94uNt1OUH2s42jFkZc2e
15:36:07FromGitter<Yardanico> hmm, maybe we can try to use parseutils module manually :)
15:37:35*earenndil joined #nim
15:37:42FromGitter<Yardanico> or maybe memory is faster than overhead
15:39:04Araqmy prototype works
15:39:30FromGitter<Yardanico> ??
15:39:32*endragor quit (Remote host closed the connection)
15:39:37FromGitter<Yardanico> something big it seems :P
15:39:46cremPush it to prod!
15:40:42Araqbest thing I ever invented
15:41:09FromGitter<Yardanico> https://github.com/nim-lang/Nim/commit/a2e4ab2e4e3570cd313e8d5422b276625f87e0d7
15:41:15FromGitter<Yardanico> ?
15:42:29*endragor joined #nim
15:43:28FromGitter<Yardanico> ohh, Araq probably has enabled his turbo mode
15:44:19FromGitter<Yardanico> *turbo with the speed of light
15:44:46FromGitter<Yardanico> well I mean "turbo mode" like in games :D
15:44:49FromGitter<Yardanico> "nitro"
15:45:25*SusWombat joined #nim
15:46:41*endragor quit (Ping timeout: 248 seconds)
15:48:15*yglukhov_ quit (Remote host closed the connection)
15:53:28FromGitter<Yardanico> Araq: is there a way to enable this destructor pass?
15:53:31FromGitter<Yardanico> via newDestructors, right?
15:59:55FromGitter<mratsim> I'm down a rabbit hole so I will pull you all with me: https://en.wikipedia.org/wiki/Greenspun%27s_tenth_rule
16:00:37FromGitter<mratsim> Metaprogramming art with 100 languages generating each other source code in a loop (including Nim) https://github.com/mame/quine-relay
16:00:37*yglukhov joined #nim
16:00:45*sz0 quit (Quit: Connection closed for inactivity)
16:05:10*yglukhov quit (Ping timeout: 264 seconds)
16:08:34*azur_kind joined #nim
16:21:05*voice_ftp joined #nim
16:24:01*voiceftp quit (Ping timeout: 248 seconds)
16:28:48*claudiuinberlin joined #nim
16:29:04*claudiuinberlin quit (Client Quit)
16:35:11*Snircle_ quit (Ping timeout: 248 seconds)
16:44:01*yglukhov joined #nim
16:46:04*gokr joined #nim
16:48:35*yglukhov quit (Ping timeout: 255 seconds)
16:49:23*vlad1777d joined #nim
16:50:54*Snircle joined #nim
16:55:15*Snircle_ joined #nim
16:57:58*Snircle quit (Ping timeout: 258 seconds)
16:59:45*vlad1777d quit (Ping timeout: 248 seconds)
17:01:05*Trustable joined #nim
17:04:43*jjido joined #nim
17:13:06*vlad1777d joined #nim
17:16:35FromGitter<Yardanico> find nim here :D https://raw.githubusercontent.com/mame/quine-relay/81d88adbbc31b4329fd605caddfc95767e09c515/QR.rb
17:20:59*voice_ftp quit (Read error: Connection reset by peer)
17:21:41*vlad1777d quit (Ping timeout: 240 seconds)
17:25:46*azur_kind quit (Remote host closed the connection)
17:37:55*vlad1777d joined #nim
17:40:03*vlad1777d quit (Remote host closed the connection)
17:47:02*nsf quit (Quit: WeeChat 1.9)
17:51:30*couven92 quit (Quit: Client disconnecting)
18:01:32*solitudesf joined #nim
18:02:52*yglukhov joined #nim
18:03:14*solitudesf quit (Client Quit)
18:09:05FromGitter<zacharycarter> https://imgur.com/a/1Thn0
18:09:49FromGitter<zacharycarter> think I got my art situation figured out mostly
18:11:15*zolk3ri quit (Quit: Lost terminal)
18:12:38planetis[m]are you sure its in there?
18:13:11planetis[m]I searched for echo, proc, strutils
18:13:14planetis[m]can't find it
18:14:25*marcux quit (Ping timeout: 248 seconds)
18:15:03FromGitter<Yardanico> https://github.com/mame/quine-relay/blob/81d88adbbc31b4329fd605caddfc95767e09c515/src/code-gen.rb#L261
18:15:07planetis[m]Anyway write from https://nim-lang.org/docs/streams.html#write,Stream,T can't work for seqs, right?
18:16:07*marcux joined #nim
18:16:15planetis[m]because of the sizeof
18:16:37*voiceftp joined #nim
18:17:45planetis[m]so its just an echo :P
18:18:08planetis[m]thought it was from bash
18:19:04Araqplanetis[m]: yup.
18:19:41FromGitter<zacharycarter> Araq: how do you feel about those gfx?
18:19:46FromGitter<zacharycarter> I'll probably be doing Orcs vs Humans
18:19:59FromGitter<zacharycarter> since those are the most easily obtainable graphics for both buildings and units
18:20:25AraqI like them so far.
18:20:32FromGitter<zacharycarter> :D
18:21:01FromGitter<zacharycarter> going to try to get some animations in this evening and get some of these in engine
18:21:17Araqgot the extracted Sprites from War Wind 1 somewhere but these are just too shitty for today
18:21:42AraqOrcs vs Humans is a bit boring :-)
18:21:48FromGitter<zacharycarter> I agree hehe
18:22:00FromGitter<zacharycarter> hard to find buildings and units though in the same art style
18:23:39FromGitter<Yardanico> Araq: will you make a complete change-log for 1.0 ? :)
18:23:40Araqyou only need buildings for one race though, the other race could be invaders
18:23:47FromGitter<zacharycarter> I'd really like to use these - https://www.unrealengine.com/marketplace/rts-buildings-humans
18:23:51FromGitter<Yardanico> I mean what was added/changed/removed
18:23:55FromGitter<zacharycarter> but I can't find decent units to go along with them
18:24:32FromGitter<Yardanico> @zacharycarter these looks like NOD from C&C series, my favourite RTS (C & C 3 mostly) :)
18:25:48Araqzacharycarter: these are well done but sci-fi
18:25:56Araqand I thought you wanted fantasy
18:26:03Araqthough either is fine with me
18:26:34FromGitter<zacharycarter> I don't care too much fantasy vsc sci fi
18:26:35FromGitter<zacharycarter> vs*
18:26:52FromGitter<zacharycarter> as long as I can find units and buildings for the setting
18:27:02FromGitter<zacharycarter> that match up in artistic style
18:28:11FromGitter<zacharycarter> https://www.assetstore.unity3d.com/en/#!/search/page=1/sortby=popularity/query=publisher:1611 - this guy has a TON of sci fi RTS vehicles but no ground units :/
18:28:56FromGitter<Yardanico> are you sure ?
18:28:57FromGitter<Yardanico> https://www.assetstore.unity3d.com/en/#!/list/54799-scifi-tanks
18:29:24FromGitter<Yardanico> oh
18:29:29FromGitter<Yardanico> it's a bit too expensive :D
18:30:18FromGitter<zacharycarter> well I meant like soldier units
18:34:08FromGitter<Yardanico> Araq: so is there a way to enable new destroyer pass? or it's too unstable even to try?
18:34:29Araqit's vaporware :-)
18:35:16FromGitter<Yardanico> well can it compile system module?
18:35:45AraqI don't know, I'm about to enable it for everything
18:35:50FromGitter<Yardanico> ohhhh
18:35:55FromGitter<Yardanico> so can we try it now?
18:36:00FromGitter<Yardanico> for our code :D
18:41:50Araqdo you even know what it does?
18:43:01FromGitter<Yardanico> optimizes copies to moves, but not only this, so I can say I don't really know
18:48:53manjaro-kde5_Is there a rule that plus(+) and minus(-) operators need spaces on both sides?
18:49:35manjaro-kde5_let a = 2 -1 fails
18:49:48FromGitter<zacharycarter> what about
18:50:02FromGitter<zacharycarter> !eval "let a = 2- 1"
18:50:05NimBotCompile failed: in.nim(1, 1) Error: expression '"let a = 2- 1"' is of type 'string' and has to be discarded
18:50:18FromGitter<zacharycarter> !eval "echo 2- 1"
18:50:19NimBotCompile failed: in.nim(1, 1) Error: expression '"echo 2- 1"' is of type 'string' and has to be discarded
18:50:27FromGitter<zacharycarter> oh whoops
18:50:30FromGitter<zacharycarter> !eval 2- 1
18:50:31NimBotCompile failed: in.nim(1, 2) Error: expression '1' is of type 'int literal(1)' and has to be discarded
18:50:39FromGitter<zacharycarter> whatever I give up:
18:50:52manjaro-kde5_!eval let a = 2- 1; echo a
18:51:03FromGitter<zacharycarter> https://play.nim-lang.org/?gist=728228903ec4ae799f4169aa28c9bdd0
18:51:05manjaro-kde5_!eval let a = 2 -1; echo a
18:51:06NimBotCompile failed: in.nim(1, 11) Error: invalid indentation
18:51:15FromGitter<zacharycarter> I guess that's your answer
18:51:23FromGitter<zacharycarter> I think -1 gets interpreted as negative one
18:51:31FromGitter<zacharycarter> so 2 -1 is not a valid statement
18:51:32FromGitter<Yardanico> !eval let a = (2 - 1); echo a
18:51:37FromGitter<Yardanico> gotcha
18:51:46FromGitter<Yardanico> !eval let a = 2 - 1 ; echo a
18:51:50FromGitter<Yardanico> ah
18:52:13manjaro-kde5_!eval let a = 2 +1; echo a
18:52:15NimBotCompile failed: in.nim(1, 11) Error: invalid indentation
18:52:43FromGitter<Yardanico> !eval let a = 2 + 1; echo a
18:52:45FromGitter<Yardanico> put spaces! :)
18:53:01manjaro-kde5_yeah spaces works, I was just a bit surprised
18:53:05FromGitter<Yardanico> it would work if you do this:
18:53:11FromGitter<Yardanico> !eval let a = 2+1; echo a
18:53:23FromGitter<Yardanico> but not "2 +1" or "2+ 1"
18:54:55SusWombatCan i somehow specify librarys when i dont want to use the system ones while coompiling and running the binary?
18:55:06SusWombatunder linux
18:55:27FromGitter<Yardanico> well if you can do it via c compiler command-line arguments: you can
18:55:37*solitudesf joined #nim
18:56:15SusWombatHow would i do it?
18:56:57FromGitter<Yardanico> --passC:"pass arguments to the compiler" --passL:"pass arguments to the linker"
18:57:26*solitudesf quit (Client Quit)
19:01:11SusWombatok thx i try
19:04:46FromGitter<mratsim> @Araq I have a lead and a fix for the genericReset, genericResetAux spam in my code. ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ The first version generates no GenericReset, the second one does. ... [https://gitter.im/nim-lang/Nim?at=59dfbcce01110b7231aab846]
19:05:09FromGitter<mratsim> A move operator can probably be a solution as well
19:07:01*Vladar quit (Remote host closed the connection)
19:08:59*claudiuinberlin joined #nim
19:09:13FromGitter<Bennyelg> why I cant do this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59dfbdd8614889d475a8ba1f]
19:09:37FromGitter<Yardanico> because you didn't allocate Statistics
19:09:54FromGitter<Yardanico> I suggest you to rename initStatistics to newStatistics and add "new(result)" as a first statement in your proc
19:11:15FromGitter<Yardanico> I mean you don't initialize it
19:11:25FromGitter<Yardanico> "ref" means that Statistics is a reference to an object
19:12:03*solitudesf joined #nim
19:12:15FromGitter<mratsim> and it should be a “var” parameter as well I think
19:12:51FromGitter<Yardanico> it shouldn't if it's a ref object
19:12:52FromGitter<mratsim> your proc should be "gs: var Statistics"
19:12:55FromGitter<mratsim> ah ok
19:13:22FromGitter<Bennyelg> new(result) not working
19:13:38FromGitter<mratsim> new gs
19:13:46FromGitter<mratsim> since you are modifying in place
19:13:59FromGitter<Bennyelg> oh correct
19:14:07FromGitter<Yardanico> ah, yes
19:14:18FromGitter<Yardanico> but it would be better to create statistics object in newStatistics
19:14:27FromGitter<Yardanico> so you don't need to create "var" yourself
19:14:38FromGitter<Bennyelg> I changed the init statistics to newStatistics
19:14:41FromGitter<Bennyelg> it's just a name
19:14:45FromGitter<Bennyelg> no?
19:15:13FromGitter<Yardanico> I mean
19:15:31FromGitter<Yardanico> what's the point to create a variable yourself and then initialize it if it's a ref object?
19:16:22FromGitter<Bennyelg> so how you will do it? I need to instantiate a variable of object with some additional data
19:17:13*nsf joined #nim
19:17:39FromGitter<Yardanico> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59dfbfd3e44c43700a264396]
19:19:10*scriptum quit (Quit: Leaving)
19:19:28FromGitter<Bennyelg> yea, this is what I did just now
19:19:32FromGitter<Bennyelg> thanks for inlight me
19:19:36FromGitter<Yardanico> and there's no real difference now between let and var for ref objects
19:20:11FromGitter<Bennyelg> My case is now I want to populate some cache object to refresh it every 15 minutes
19:22:25*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:28:02*Nobabs27 joined #nim
19:31:15*Arrrr quit (Read error: Connection reset by peer)
19:33:34*claudiuinberlin joined #nim
19:34:02FromGitter<zacharycarter> @Araq maybe I should use these: https://www.defold.com/community/projects/57480/ ?
19:34:51*PMunch joined #nim
19:38:08*xet7 quit (Quit: Leaving)
19:38:17*Nobabs25 joined #nim
19:40:47*Nobabs27 quit (Ping timeout: 248 seconds)
19:42:28*Nobabs25 quit (Ping timeout: 240 seconds)
19:43:11*d10n-work joined #nim
19:45:01*xet7 joined #nim
19:50:46*JappleAck joined #nim
19:53:58*JappleAck quit (Client Quit)
19:54:49*JappleAck joined #nim
19:57:56*JappleAck quit (Client Quit)
20:03:47*couven92 joined #nim
20:03:52*Trustable quit (Remote host closed the connection)
20:03:57*JappleAck joined #nim
20:05:40Araqthey are a bit too oldfashioned for my taste
20:08:28SusWombatdoes anyone know of a os agnostic clipboard library in nim or c?
20:09:07PMunchI like that zacharycarter, looks cool :)
20:11:23FromGitter<zacharycarter> PMunch: do you like the sprites I produced better? or these?
20:11:47PMunchLink for those you made?
20:11:58PMunchSorry, I've been off IRC for a while
20:12:08FromGitter<zacharycarter> np one sec
20:12:46FromGitter<zacharycarter> PMunch: https://imgur.com/a/nnsq2
20:13:06FromGitter<zacharycarter> I'd probably be doing orcs vs humans if I go with these
20:13:06SusWombatthey look great
20:13:07ipjkWay better.
20:13:19FromGitter<zacharycarter> :D thanks guys
20:13:20PMunchWow, those look cool
20:13:51FromGitter<zacharycarter>  I'll go with this style then
20:14:07FromGitter<zacharycarter> and pray someone makes some undead buildings
20:14:08PMunchLooking forward to see where this goes :)
20:15:04FromGitter<zacharycarter> me too :D
20:16:10FromGitter<zacharycarter> oh man
20:16:16FromGitter<zacharycarter> Araq: As soon as I started bitching about lack of ground units
20:16:17FromGitter<zacharycarter> I find these
20:16:22FromGitter<zacharycarter> https://www.assetstore.unity3d.com/en/#!/content/85399
20:16:23FromGitter<zacharycarter> and
20:16:51FromGitter<zacharycarter> https://www.assetstore.unity3d.com/en/#!/content/69684
20:16:54FromGitter<zacharycarter> maybe I should go sci fi
20:17:46FromGitter<zacharycarter> https://www.assetstore.unity3d.com/en/#!/content/74088
20:21:56*cabuschardt joined #nim
20:22:56cabuschardtCan I select the stack gc only for a specific thread?
20:25:19*JappleAck quit (Quit: Leaving)
20:26:03*JappleAck joined #nim
20:31:37*kafke quit (Remote host closed the connection)
20:32:05*kafke joined #nim
20:32:06*kafke quit (Remote host closed the connection)
20:35:13*claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com)
20:35:24*PMunch quit (Quit: leaving)
20:42:10FromGitter<mratsim> I don’t think so, but there is a setupForeignThreadGC template
20:55:32AraqSusWombat: SDL2 has them
20:56:08Araqcabuschardt: no, but you can Disable the GC per thread
20:56:17SusWombatAraq, i played around with it it doesnt seem to work. So i guess it cant get the clipboard when its set before i started the binary containing my sdl code
20:56:37Araqit works for nimEdit :p
20:56:55SusWombatmight play a bit more with it
20:57:32*dddddd quit (Ping timeout: 255 seconds)
20:59:59SusWombatAraq, thanks tho!
21:13:22cabuschardtAraq: Thanks. I don't support custom allocators are a thing for seq yet?
21:13:34*jjido quit (Ping timeout: 264 seconds)
21:15:37Araqit's coming real soon (tm)...
21:27:28*kafke joined #nim
21:30:01*xet7 quit (Ping timeout: 240 seconds)
21:32:17*kafke quit (Ping timeout: 260 seconds)
21:38:24*manjaro-kde5_ quit (Read error: Connection reset by peer)
21:42:45*kp__ joined #nim
21:48:04*kafke joined #nim
21:52:21*kafke quit (Ping timeout: 240 seconds)
21:55:41cabuschardtNim has been unbelievably productive for me [coming from C++]. The iterators feature is great for writing search algorithms! Thanks guys!
21:56:58*solitudesf quit (Ping timeout: 258 seconds)
21:57:56*kino` joined #nim
21:58:38kino`I was wondering something about strutils
21:58:49FromGitter<zacharycarter> ask away
21:59:17kino`As there's a toOctal proc which Converts a character c to its octal representation.
21:59:56kino`But I didn't find such functions for respectively Hex and Bin
22:01:09kino`Is there any rationale behind this? Or is it actually trivial to implement?
22:02:18FromGitter<zacharycarter> I think there are toHex and toBin functions somewhere
22:02:29ipjkIt's in strutils
22:02:39kino`Yeah, but they take a BiggestInt, not a char
22:02:55ipjkthere's a generic
22:03:00FromGitter<zacharycarter> https://nim-lang.org/docs/strutils.html#toHex,T
22:03:05ipjktoHex[t](x: t): string
22:03:44FromGitter<zacharycarter> looks like toBin doesn't have a generic
22:03:51FromGitter<zacharycarter> so just cast your char to biggestInt
22:05:17kino`Yeah, I'll do that
22:05:20kino`Thanks :)
22:06:00FromGitter<zacharycarter> https://play.nim-lang.org/?gist=b7afe2107ea1df734a9a838f63e9a778
22:06:00FromGitter<zacharycarter> np!
22:08:06FromGitter<zacharycarter> cabuschardt - that's good to hear :D
22:09:14ipjkzacharycarter: looks like toHex[T] was just a shortcut anyway
22:16:21*earenndil is now known as rlrijnd
22:16:42*rlrijnd is now known as earenndil
22:18:47*cabuschardt quit (Quit: Page closed)
22:31:48*yglukhov quit (Remote host closed the connection)
22:32:06FromGitter<zacharycarter> ah
22:32:14FromGitter<zacharycarter> ipjk: how about these?
22:32:24FromGitter<zacharycarter> https://imgur.com/a/94A7u
22:32:36FromGitter<zacharycarter> I'd love others opinions too on sci fi vs fantasy
22:36:12*nsf quit (Quit: WeeChat 1.9)
22:39:46ipjkLooks good
22:40:10FromGitter<zacharycarter> thanks
22:43:56*xet7 joined #nim
22:52:12*gokr quit (Ping timeout: 260 seconds)
22:57:08*kino` quit (Read error: Connection reset by peer)
23:09:21*obadz quit (Ping timeout: 248 seconds)
23:09:50*NimBot joined #nim
23:12:19*obadz joined #nim
23:13:27*dddddd joined #nim
23:23:12*kafke joined #nim
23:23:19*kp__ left #nim ("WeeChat 1.4")
23:24:55*Nobabs27 joined #nim
23:27:21*kafke quit (Ping timeout: 240 seconds)
23:32:17*yglukhov joined #nim
23:32:57*d10n-work quit (Quit: Connection closed for inactivity)
23:36:33*yglukhov quit (Ping timeout: 248 seconds)