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