00:02:25 | FromGitter | <Bennyelg> you created it? |
00:02:33 | FromGitter | <Bennyelg> so you are good on blender |
00:08:28 | FromGitter | <zacharycarter> no |
00:08:38 | FromGitter | <zacharycarter> that's modo A) and b) I didn't create the model hehe |
00:08:50 | FromGitter | <zacharycarter> I'm just trying to prerender stuff from the unity asset store |
00:19:28 | FromGitter | <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:11 | FromGitter | <zacharycarter> https://imgur.com/a/fg8yy |
00:28:14 | FromGitter | <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:32 | FromGitter | <define-private-public> Heyas. |
00:38:47 | FromGitter | <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:21 | FromGitter | <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:25 | FromGitter | <zacharycarter> That's fine though I totally understand man |
00:40:35 | FromGitter | <zacharycarter> I appreciate all the work you've already done in playing with the engine |
00:40:37 | * | Demos_ joined #nim |
00:40:38 | FromGitter | <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:15 | FromGitter | <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:48 | FromGitter | <gokr> Spotted: http://www.bootstrap.me.uk/bootstrapped-blog/nim-for-the-discerning-rubyist |
06:58:44 | FromGitter | <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:44 | gokr | Araq: 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:03 | Araq | gokr: ok, report it |
09:28:25 | gokr | Hmmm, I just cut it down even further. It doesn't have to do with Jester at all. |
09:28:40 | gokr | Yeah, I will. |
09:32:03 | gokr | https://gist.github.com/gokr/07af61db91129ff7c664c68364948ade |
09:32:28 | gokr | Just curious if anyone can try that. It blocks for me after spawning 4 |
09:32:42 | gokr | Perhaps it's something silly. |
09:36:20 | * | claudiuinberlin joined #nim |
09:37:36 | gokr | Hmmm, updated the gist to be even more minimal. It shouldn't block, should it? |
09:50:55 | gokr | Hehe, issue number 6500! ;) |
09:51:40 | gokr | It turns out it has nothing to do with execCmdEx either, I can just use Nim sleep and it still blocks. |
10:04:07 | FromGitter | <Bennyelg> gokr, the os sleep is the problem dont you think? |
10:04:32 | FromGitter | <Bennyelg> I found it interesting look like the sleep is blocking |
10:05:03 | gokr | Well, it doesn't really matter it turns out if you actually call out or just do "sleep(20000)" |
10:05:23 | gokr | Although the latter will make it happen less often. |
10:05:58 | gokr | Also, I have tried tons of different things - this started out with a compilation job and not sleep. |
10:06:07 | gokr | I also called a shell script that does sleep, it doesn |
10:06:10 | gokr | 't matter. |
10:06:51 | gokr | Also, 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:49 | FromGitter | <Bennyelg> interesting, |
10:09:39 | * | ShalokShalom joined #nim |
10:09:48 | FromGitter | <Bennyelg> Well, it's always in a batch of 4 threads at a time. |
10:11:07 | gokr | Yeah, typically. |
10:11:36 | gokr | But... 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:59 | gokr | Ok, 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:01 | FromGitter | <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:05 | gokr | So it doesn't have to do with sleep. |
10:17:18 | FromGitter | <Bennyelg> I tried import 'threads' but I get cannot open threads :| |
10:21:10 | gokr | You don't import "threads" - you instead compile with "--threads:on" |
10:21:56 | FromGitter | <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:18 | FromGitter | <Bennyelg> error type Thread |
10:23:03 | * | claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:23:17 | gokr | Works for me. Just compile with "nim c --threads:on blabla.nim" |
10:23:51 | * | PMunch_ joined #nim |
10:24:41 | FromGitter | <Bennyelg> Nim Compiler Version 0.17.3 (2017-10-12) |
10:24:54 | FromGitter | <Bennyelg> no I have no idea why it doesnt work for me lol I updated my nim lets see |
10:25:17 | FromGitter | <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:02 | FromGitter | <Bennyelg> @gokr ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59df43b1b20c642429f22689] |
10:28:09 | FromGitter | <Bennyelg> seems like this works |
10:29:14 | gokr | Yeah, 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:48 | FromGitter | <Bennyelg> depends on you work |
10:30:17 | gokr | At this point its not important - it just keeps nagging at me - I don't like it. |
10:30:37 | FromGitter | <Bennyelg> hehe |
10:30:51 | Araq | gokr: I'm looking into it but there is a reason we have a new simpler threadpool in the works :-) |
10:31:14 | gokr | Yeah, I understand, it's cool |
10:31:43 | gokr | For me, since I don't use FlowVars even, it's not hard to do what Benny did (manual Threads). |
10:32:17 | gokr | Btw, I started to try to look up ParaSail but... hard to find a good place to get a grip. |
10:32:37 | gokr | And 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:43 | Araq | that spawn bug is easy |
10:36:32 | gokr | Glad to hear! Although I have been chasing rabbits for... hours. |
10:36:54 | gokr | I was so convinced it had to do with IO or something weird. |
10:44:18 | Araq | pull devel and try it |
10:48:38 | FromGitter | <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:59 | gokr | Araq: First test seems to work! Cool. I will try it on my larger prog. |
10:55:24 | gokr | Wohoo! |
10:55:45 | gokr | Araq: Thanks. Works great. Now I can happily swamp my Raspberry in compilation jobs. |
10:57:26 | gokr | "care about minpoolsize" hehe. |
11:02:09 | * | Snircle joined #nim |
11:09:31 | * | couven92 joined #nim |
11:11:40 | Araq | grabli: --gc:regions is the same as --gc:stack |
11:14:19 | couven92 | Hehe, 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:28 | FromGitter | <Grabli66> And what is --gc:regions? What will be with ref objects, how they will be freed? |
11:16:15 | FromGitter | <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:20 | Araq | every allocation ref/seq/string happes in a region which is freed at the end of the program |
11:19:33 | Araq | to get more control you have to use |
11:19:37 | Araq | var r: MemRegino |
11:19:40 | Araq | var r: MemRegion |
11:19:47 | Araq | withRegion r: |
11:19:58 | Araq | stuff_here_that_doesnt_escape() |
11:20:17 | Araq | it sucks but its speed is enormous |
11:24:06 | * | sz0 joined #nim |
11:29:49 | FromGitter | <andreaferretti> can regions be nested? |
11:29:53 | Arrrr | Mmm makes me think |
11:30:01 | FromGitter | <andreaferretti> I mean `withRegion` blocks |
11:41:26 | Araq | yes, they can be nested |
11:41:55 | FromGitter | <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:23 | Yardanico | hi nimians! |
12:05:21 | * | Calinou quit (Changing host) |
12:05:21 | * | Calinou joined #nim |
12:09:23 | FromGitter | <Yardanico> @Bennyelg you was getting errors in vscode because you didn't have nim.cfg for your project |
12:09:51 | FromGitter | <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:23 | zolk3ri | Huh, 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:00 | Yardanico | zolk3ri, report it :) |
12:20:10 | * | claudiuinberlin joined #nim |
12:21:06 | Yardanico | ah I see why probably |
12:21:21 | Yardanico | ah, I don't :D |
12:21:25 | zolk3ri | xD |
12:21:30 | Yardanico | it errors for me even in debug mode |
12:21:35 | zolk3ri | wow |
12:21:37 | zolk3ri | :P |
12:21:44 | zolk3ri | I did compile 0.17.2 myself though |
12:22:25 | Yardanico | I have devel version of nim |
12:22:52 | zolk3ri | well at least it consistently throws IOError in devel |
12:23:02 | zolk3ri | I'll try it myself, too, in a bit :D |
12:23:20 | Yardanico | well "lines" iterator uses readLine |
12:23:33 | Yardanico | and 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:33 | yglukhov_ | 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:02 | gokr | dom96: choosenim - neat stuff ;) |
13:22:03 | dom96 | :D |
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:58 | FromGitter | <Yardanico> yglukhov: not only file path |
13:52:31 | FromGitter | <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:01 | FromGitter | <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:07 | FromGitter | <Yardanico> oh wait |
14:04:13 | FromGitter | <Yardanico> lol |
14:08:38 | FromGitter | <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:52 | FromGitter | <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:13 | Araq | mratsim: 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:22 | FromGitter | <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:34 | zolk3ri | Yardanico: Ended up with this: https://ptpb.pw/AONHo8j56WBN8tlyFNsOcPJKF9hs/nim |
14:39:01 | FromGitter | <Yardanico> Use strscans module |
14:39:12 | zolk3ri | And you tell me now! |
14:39:14 | zolk3ri | :P |
14:51:33 | FromGitter | <andreaferretti> @mratsim when allocations happen a lot in a tight loop, isn't it more convenient to reuse some object? |
14:51:55 | FromGitter | <andreaferretti> I do that, for instance, when iterating over rows or columns in neo |
14:52:22 | FromGitter | <andreaferretti> you just get the same object, mutated, at every iteration |
14:52:48 | FromGitter | <andreaferretti> there is a separate implementation of row iterators that is safer, but slower |
14:53:13 | FromGitter | <andreaferretti> I don't know if that is feasible in your use case |
14:54:12 | FromGitter | <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:21 | FromGitter | <Yardanico> zolk3ri: it would be MUCH easier to use strscans rather than your approach |
15:07:25 | FromGitter | <Yardanico> and it probably would be faster |
15:07:35 | FromGitter | <Yardanico> because you do a lot of copies here (slice = copy) |
15:07:58 | zolk3ri | Yardanico, probably. I don't know how to use strscans yet though, just started reading about Nim. |
15:08:13 | FromGitter | <Yardanico> can you post a example file in this format? |
15:08:22 | FromGitter | <Yardanico> format that you're parsing |
15:08:24 | zolk3ri | Yes, hold on. |
15:09:43 | zolk3ri | https://ptpb.pw/ANdPmPF65d4G8aMy0jtcXtrf2yt9 |
15:10:57 | FromGitter | <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:57 | FromGitter | ... that will hold gradients in the backward pass. |
15:11:27 | * | jjido quit (Ping timeout: 248 seconds) |
15:13:46 | FromGitter | <andreaferretti> well, can these intermediate tensors be reused? |
15:14:00 | FromGitter | <andreaferretti> just suggesting, no idea if this fits in your design |
15:16:09 | FromGitter | <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:04 | FromGitter | <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:48 | FromGitter | <mratsim> Others like Mxnet have (several) memory pools and a quite involved allocation scheme. |
15:20:02 | FromGitter | <Yardanico> @zolk3ri: not the best one: https://gist.github.com/Yardanico/fbb8ab4e6b0a504f7a2ae879afbda05e |
15:20:09 | FromGitter | <Yardanico> can you benchmark it vs your solution? :) |
15:20:21 | FromGitter | <Yardanico> well I didn't add any memfile logic here |
15:21:29 | * | nsf joined #nim |
15:23:40 | FromGitter | <Yardanico> I just skip not needed parts of the string into "extra" variable |
15:24:17 | zolk3ri | hold on :D |
15:26:34 | FromGitter | <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:28 | FromGitter | <Yardanico> ah, and also it doesn't replace GUIDs |
15:28:41 | FromGitter | <Yardanico> or it does |
15:28:43 | zolk3ri | Hmm, 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:38 | FromGitter | <Yardanico> ah, it can be fixed easily |
15:32:30 | FromGitter | <Yardanico> updated the gist |
15:32:41 | FromGitter | <Yardanico> maybe you can post whole file, or it would be a security issue? |
15:35:42 | zolk3ri | Yardanico: https://ptpb.pw/AL-auHgv94uNt1OUH2s42jFkZc2e |
15:36:07 | FromGitter | <Yardanico> hmm, maybe we can try to use parseutils module manually :) |
15:37:35 | * | earenndil joined #nim |
15:37:42 | FromGitter | <Yardanico> or maybe memory is faster than overhead |
15:38:46 | zolk3ri | hmm |
15:39:00 | Araq | muhahaha |
15:39:04 | Araq | my prototype works |
15:39:30 | FromGitter | <Yardanico> ?? |
15:39:32 | * | endragor quit (Remote host closed the connection) |
15:39:37 | FromGitter | <Yardanico> something big it seems :P |
15:39:46 | crem | Push it to prod! |
15:40:42 | Araq | best thing I ever invented |
15:41:09 | FromGitter | <Yardanico> https://github.com/nim-lang/Nim/commit/a2e4ab2e4e3570cd313e8d5422b276625f87e0d7 |
15:41:15 | FromGitter | <Yardanico> ? |
15:42:29 | * | endragor joined #nim |
15:43:28 | FromGitter | <Yardanico> ohh, Araq probably has enabled his turbo mode |
15:43:55 | Arrrr | turbo? |
15:44:19 | FromGitter | <Yardanico> *turbo with the speed of light |
15:44:46 | FromGitter | <Yardanico> well I mean "turbo mode" like in games :D |
15:44:49 | FromGitter | <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:28 | FromGitter | <Yardanico> Araq: is there a way to enable this destructor pass? |
15:53:31 | FromGitter | <Yardanico> via newDestructors, right? |
15:59:55 | FromGitter | <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:37 | FromGitter | <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:35 | FromGitter | <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:05 | FromGitter | <zacharycarter> https://imgur.com/a/1Thn0 |
18:09:49 | FromGitter | <zacharycarter> think I got my art situation figured out mostly |
18:11:15 | * | zolk3ri quit (Quit: Lost terminal) |
18:12:38 | planetis[m] | are you sure its in there? |
18:13:11 | planetis[m] | I searched for echo, proc, strutils |
18:13:14 | planetis[m] | can't find it |
18:14:25 | * | marcux quit (Ping timeout: 248 seconds) |
18:15:03 | FromGitter | <Yardanico> https://github.com/mame/quine-relay/blob/81d88adbbc31b4329fd605caddfc95767e09c515/src/code-gen.rb#L261 |
18:15:07 | planetis[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:15 | planetis[m] | because of the sizeof |
18:16:37 | * | voiceftp joined #nim |
18:17:45 | planetis[m] | so its just an echo :P |
18:18:08 | planetis[m] | thought it was from bash |
18:19:04 | Araq | planetis[m]: yup. |
18:19:41 | FromGitter | <zacharycarter> Araq: how do you feel about those gfx? |
18:19:46 | FromGitter | <zacharycarter> I'll probably be doing Orcs vs Humans |
18:19:59 | FromGitter | <zacharycarter> since those are the most easily obtainable graphics for both buildings and units |
18:20:25 | Araq | I like them so far. |
18:20:32 | FromGitter | <zacharycarter> :D |
18:21:01 | FromGitter | <zacharycarter> going to try to get some animations in this evening and get some of these in engine |
18:21:17 | Araq | got the extracted Sprites from War Wind 1 somewhere but these are just too shitty for today |
18:21:42 | Araq | Orcs vs Humans is a bit boring :-) |
18:21:48 | FromGitter | <zacharycarter> I agree hehe |
18:22:00 | FromGitter | <zacharycarter> hard to find buildings and units though in the same art style |
18:22:33 | Araq | true |
18:23:39 | FromGitter | <Yardanico> Araq: will you make a complete change-log for 1.0 ? :) |
18:23:40 | Araq | you only need buildings for one race though, the other race could be invaders |
18:23:47 | FromGitter | <zacharycarter> I'd really like to use these - https://www.unrealengine.com/marketplace/rts-buildings-humans |
18:23:51 | FromGitter | <Yardanico> I mean what was added/changed/removed |
18:23:55 | FromGitter | <zacharycarter> but I can't find decent units to go along with them |
18:24:32 | FromGitter | <Yardanico> @zacharycarter these looks like NOD from C&C series, my favourite RTS (C & C 3 mostly) :) |
18:25:48 | Araq | zacharycarter: these are well done but sci-fi |
18:25:56 | Araq | and I thought you wanted fantasy |
18:26:03 | Araq | though either is fine with me |
18:26:34 | FromGitter | <zacharycarter> I don't care too much fantasy vsc sci fi |
18:26:35 | FromGitter | <zacharycarter> vs* |
18:26:52 | FromGitter | <zacharycarter> as long as I can find units and buildings for the setting |
18:27:02 | FromGitter | <zacharycarter> that match up in artistic style |
18:28:11 | FromGitter | <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:56 | FromGitter | <Yardanico> are you sure ? |
18:28:57 | FromGitter | <Yardanico> https://www.assetstore.unity3d.com/en/#!/list/54799-scifi-tanks |
18:29:24 | FromGitter | <Yardanico> oh |
18:29:29 | FromGitter | <Yardanico> it's a bit too expensive :D |
18:30:18 | FromGitter | <zacharycarter> well I meant like soldier units |
18:34:08 | FromGitter | <Yardanico> Araq: so is there a way to enable new destroyer pass? or it's too unstable even to try? |
18:34:29 | Araq | it's vaporware :-) |
18:35:16 | FromGitter | <Yardanico> well can it compile system module? |
18:35:45 | Araq | I don't know, I'm about to enable it for everything |
18:35:50 | FromGitter | <Yardanico> ohhhh |
18:35:55 | FromGitter | <Yardanico> so can we try it now? |
18:36:00 | FromGitter | <Yardanico> for our code :D |
18:41:50 | Araq | do you even know what it does? |
18:43:01 | FromGitter | <Yardanico> optimizes copies to moves, but not only this, so I can say I don't really know |
18:48:53 | manjaro-kde5_ | Is there a rule that plus(+) and minus(-) operators need spaces on both sides? |
18:49:35 | manjaro-kde5_ | let a = 2 -1 fails |
18:49:48 | FromGitter | <zacharycarter> what about |
18:50:02 | FromGitter | <zacharycarter> !eval "let a = 2- 1" |
18:50:05 | NimBot | Compile failed: in.nim(1, 1) Error: expression '"let a = 2- 1"' is of type 'string' and has to be discarded |
18:50:18 | FromGitter | <zacharycarter> !eval "echo 2- 1" |
18:50:19 | NimBot | Compile failed: in.nim(1, 1) Error: expression '"echo 2- 1"' is of type 'string' and has to be discarded |
18:50:27 | FromGitter | <zacharycarter> oh whoops |
18:50:30 | FromGitter | <zacharycarter> !eval 2- 1 |
18:50:31 | NimBot | Compile failed: in.nim(1, 2) Error: expression '1' is of type 'int literal(1)' and has to be discarded |
18:50:39 | FromGitter | <zacharycarter> whatever I give up: |
18:50:52 | manjaro-kde5_ | !eval let a = 2- 1; echo a |
18:50:53 | NimBot | 1 |
18:51:03 | FromGitter | <zacharycarter> https://play.nim-lang.org/?gist=728228903ec4ae799f4169aa28c9bdd0 |
18:51:05 | manjaro-kde5_ | !eval let a = 2 -1; echo a |
18:51:06 | NimBot | Compile failed: in.nim(1, 11) Error: invalid indentation |
18:51:15 | FromGitter | <zacharycarter> I guess that's your answer |
18:51:23 | FromGitter | <zacharycarter> I think -1 gets interpreted as negative one |
18:51:31 | FromGitter | <zacharycarter> so 2 -1 is not a valid statement |
18:51:32 | FromGitter | <Yardanico> !eval let a = (2 - 1); echo a |
18:51:34 | NimBot | 1 |
18:51:37 | FromGitter | <Yardanico> gotcha |
18:51:46 | FromGitter | <Yardanico> !eval let a = 2 - 1 ; echo a |
18:51:48 | NimBot | 1 |
18:51:50 | FromGitter | <Yardanico> ah |
18:52:13 | manjaro-kde5_ | !eval let a = 2 +1; echo a |
18:52:15 | NimBot | Compile failed: in.nim(1, 11) Error: invalid indentation |
18:52:43 | FromGitter | <Yardanico> !eval let a = 2 + 1; echo a |
18:52:45 | NimBot | 3 |
18:52:45 | FromGitter | <Yardanico> put spaces! :) |
18:53:01 | manjaro-kde5_ | yeah spaces works, I was just a bit surprised |
18:53:05 | FromGitter | <Yardanico> it would work if you do this: |
18:53:11 | FromGitter | <Yardanico> !eval let a = 2+1; echo a |
18:53:13 | NimBot | 3 |
18:53:23 | FromGitter | <Yardanico> but not "2 +1" or "2+ 1" |
18:54:55 | SusWombat | Can i somehow specify librarys when i dont want to use the system ones while coompiling and running the binary? |
18:55:06 | SusWombat | under linux |
18:55:27 | FromGitter | <Yardanico> well if you can do it via c compiler command-line arguments: you can |
18:55:37 | * | solitudesf joined #nim |
18:56:15 | SusWombat | How would i do it? |
18:56:57 | FromGitter | <Yardanico> --passC:"pass arguments to the compiler" --passL:"pass arguments to the linker" |
18:57:26 | * | solitudesf quit (Client Quit) |
19:01:11 | SusWombat | ok thx i try |
19:04:46 | FromGitter | <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:09 | FromGitter | <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:13 | FromGitter | <Bennyelg> why I cant do this: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59dfbdd8614889d475a8ba1f] |
19:09:37 | FromGitter | <Yardanico> because you didn't allocate Statistics |
19:09:54 | FromGitter | <Yardanico> I suggest you to rename initStatistics to newStatistics and add "new(result)" as a first statement in your proc |
19:11:15 | FromGitter | <Yardanico> I mean you don't initialize it |
19:11:25 | FromGitter | <Yardanico> "ref" means that Statistics is a reference to an object |
19:12:03 | * | solitudesf joined #nim |
19:12:15 | FromGitter | <mratsim> and it should be a “var” parameter as well I think |
19:12:51 | FromGitter | <Yardanico> it shouldn't if it's a ref object |
19:12:52 | FromGitter | <mratsim> your proc should be "gs: var Statistics" |
19:12:55 | FromGitter | <mratsim> ah ok |
19:13:22 | FromGitter | <Bennyelg> new(result) not working |
19:13:38 | FromGitter | <mratsim> new gs |
19:13:46 | FromGitter | <mratsim> since you are modifying in place |
19:13:59 | FromGitter | <Bennyelg> oh correct |
19:14:07 | FromGitter | <Yardanico> ah, yes |
19:14:18 | FromGitter | <Yardanico> but it would be better to create statistics object in newStatistics |
19:14:27 | FromGitter | <Yardanico> so you don't need to create "var" yourself |
19:14:38 | FromGitter | <Bennyelg> I changed the init statistics to newStatistics |
19:14:41 | FromGitter | <Bennyelg> it's just a name |
19:14:45 | FromGitter | <Bennyelg> no? |
19:15:13 | FromGitter | <Yardanico> I mean |
19:15:31 | FromGitter | <Yardanico> what's the point to create a variable yourself and then initialize it if it's a ref object? |
19:16:22 | FromGitter | <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:39 | FromGitter | <Yardanico> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59dfbfd3e44c43700a264396] |
19:19:10 | * | scriptum quit (Quit: Leaving) |
19:19:28 | FromGitter | <Bennyelg> yea, this is what I did just now |
19:19:32 | FromGitter | <Bennyelg> thanks for inlight me |
19:19:36 | FromGitter | <Yardanico> and there's no real difference now between let and var for ref objects |
19:20:11 | FromGitter | <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:02 | FromGitter | <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:40 | Araq | they are a bit too oldfashioned for my taste |
20:08:28 | SusWombat | does anyone know of a os agnostic clipboard library in nim or c? |
20:09:07 | PMunch | I like that zacharycarter, looks cool :) |
20:11:23 | FromGitter | <zacharycarter> PMunch: do you like the sprites I produced better? or these? |
20:11:47 | PMunch | Link for those you made? |
20:11:58 | PMunch | Sorry, I've been off IRC for a while |
20:12:08 | FromGitter | <zacharycarter> np one sec |
20:12:46 | FromGitter | <zacharycarter> PMunch: https://imgur.com/a/nnsq2 |
20:13:06 | FromGitter | <zacharycarter> I'd probably be doing orcs vs humans if I go with these |
20:13:06 | SusWombat | they look great |
20:13:07 | ipjk | Way better. |
20:13:19 | FromGitter | <zacharycarter> :D thanks guys |
20:13:20 | PMunch | Wow, those look cool |
20:13:51 | FromGitter | <zacharycarter> I'll go with this style then |
20:14:07 | FromGitter | <zacharycarter> and pray someone makes some undead buildings |
20:14:08 | PMunch | Looking forward to see where this goes :) |
20:15:04 | FromGitter | <zacharycarter> me too :D |
20:16:10 | FromGitter | <zacharycarter> oh man |
20:16:16 | FromGitter | <zacharycarter> Araq: As soon as I started bitching about lack of ground units |
20:16:17 | FromGitter | <zacharycarter> I find these |
20:16:22 | FromGitter | <zacharycarter> https://www.assetstore.unity3d.com/en/#!/content/85399 |
20:16:23 | FromGitter | <zacharycarter> and |
20:16:51 | FromGitter | <zacharycarter> https://www.assetstore.unity3d.com/en/#!/content/69684 |
20:16:54 | FromGitter | <zacharycarter> maybe I should go sci fi |
20:17:46 | FromGitter | <zacharycarter> https://www.assetstore.unity3d.com/en/#!/content/74088 |
20:21:56 | * | cabuschardt joined #nim |
20:22:56 | cabuschardt | Can 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:10 | FromGitter | <mratsim> I don’t think so, but there is a setupForeignThreadGC template |
20:55:32 | Araq | SusWombat: SDL2 has them |
20:56:08 | Araq | cabuschardt: no, but you can Disable the GC per thread |
20:56:17 | SusWombat | Araq, 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:37 | Araq | it works for nimEdit :p |
20:56:55 | SusWombat | might play a bit more with it |
20:57:32 | * | dddddd quit (Ping timeout: 255 seconds) |
20:59:59 | SusWombat | Araq, thanks tho! |
21:13:22 | cabuschardt | Araq: Thanks. I don't support custom allocators are a thing for seq yet? |
21:13:34 | * | jjido quit (Ping timeout: 264 seconds) |
21:15:37 | Araq | it's coming real soon (tm)... |
21:15:41 | cabuschardt | :) |
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:41 | cabuschardt | Nim 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:00 | kino` | Hello |
21:58:38 | kino` | I was wondering something about strutils |
21:58:49 | FromGitter | <zacharycarter> ask away |
21:59:17 | kino` | As there's a toOctal proc which Converts a character c to its octal representation. |
21:59:56 | kino` | But I didn't find such functions for respectively Hex and Bin |
22:01:09 | kino` | Is there any rationale behind this? Or is it actually trivial to implement? |
22:02:18 | FromGitter | <zacharycarter> I think there are toHex and toBin functions somewhere |
22:02:29 | ipjk | It's in strutils |
22:02:39 | kino` | Yeah, but they take a BiggestInt, not a char |
22:02:55 | ipjk | there's a generic |
22:03:00 | FromGitter | <zacharycarter> https://nim-lang.org/docs/strutils.html#toHex,T |
22:03:05 | ipjk | toHex[t](x: t): string |
22:03:44 | FromGitter | <zacharycarter> looks like toBin doesn't have a generic |
22:03:51 | FromGitter | <zacharycarter> so just cast your char to biggestInt |
22:05:17 | kino` | Yeah, I'll do that |
22:05:20 | kino` | Thanks :) |
22:06:00 | FromGitter | <zacharycarter> https://play.nim-lang.org/?gist=b7afe2107ea1df734a9a838f63e9a778 |
22:06:00 | FromGitter | <zacharycarter> np! |
22:08:06 | FromGitter | <zacharycarter> cabuschardt - that's good to hear :D |
22:09:14 | ipjk | zacharycarter: 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:06 | FromGitter | <zacharycarter> ah |
22:32:14 | FromGitter | <zacharycarter> ipjk: how about these? |
22:32:24 | FromGitter | <zacharycarter> https://imgur.com/a/94A7u |
22:32:36 | FromGitter | <zacharycarter> I'd love others opinions too on sci fi vs fantasy |
22:36:12 | * | nsf quit (Quit: WeeChat 1.9) |
22:39:46 | ipjk | Looks good |
22:40:10 | FromGitter | <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) |