00:00:01 | * | junland quit (Quit: %ZNC Disconnected%) |
00:03:11 | * | junland joined #nim |
00:04:01 | * | nif quit (Quit: ...) |
00:04:10 | * | nif joined #nim |
00:04:30 | * | couven92 quit (Read error: Connection reset by peer) |
00:05:16 | * | couven92 joined #nim |
00:18:22 | * | wildtrees quit (Quit: Leaving) |
00:27:02 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
00:28:00 | * | couven92 quit (Read error: Connection reset by peer) |
00:28:08 | * | laaron joined #nim |
00:28:59 | * | couven92 joined #nim |
00:35:38 | * | actuallybatman quit (Ping timeout: 244 seconds) |
00:37:42 | * | actuallybatman joined #nim |
00:42:32 | * | actuallybatman quit (Ping timeout: 245 seconds) |
00:43:45 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
00:44:31 | * | laaron joined #nim |
00:44:40 | * | actuallybatman joined #nim |
00:45:56 | * | laaron quit (Client Quit) |
00:48:48 | * | actuallybatman quit (Ping timeout: 245 seconds) |
00:49:41 | * | laaron joined #nim |
00:53:30 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
00:55:02 | * | actuallybatman joined #nim |
00:59:56 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
01:01:18 | * | laaron joined #nim |
01:04:14 | * | laaron quit (Client Quit) |
01:06:14 | * | laaron joined #nim |
01:06:47 | * | laaron quit (Client Quit) |
01:08:23 | * | laaron joined #nim |
01:25:25 | * | theelous3 quit (Ping timeout: 246 seconds) |
01:44:43 | * | owl joined #nim |
02:08:34 | * | laaron quit (Remote host closed the connection) |
02:10:37 | * | laaron joined #nim |
03:32:59 | * | owl is now known as owl_000 |
03:34:27 | * | laaron quit (Remote host closed the connection) |
03:39:07 | * | laaron joined #nim |
03:49:51 | * | chemist69 quit (Ping timeout: 264 seconds) |
03:51:18 | * | chemist69 joined #nim |
03:52:52 | * | endragor joined #nim |
04:05:24 | * | snooptek joined #nim |
04:10:45 | * | jaens[m] is now known as jaens |
04:11:03 | * | jaens is now known as jaens[m] |
04:13:25 | * | darithorn quit (Read error: Connection reset by peer) |
04:14:17 | * | jaens[m] quit (Quit: jaens[m]) |
04:14:28 | * | jaens[m] joined #nim |
04:16:22 | * | endragor quit (Remote host closed the connection) |
04:18:10 | * | owl_000 quit (Ping timeout: 272 seconds) |
05:32:43 | * | dddddd quit (Remote host closed the connection) |
06:11:19 | * | solitudesf joined #nim |
06:27:00 | * | narimiran joined #nim |
06:48:13 | * | vlad1777d quit (Ping timeout: 268 seconds) |
06:58:22 | * | ng0 joined #nim |
07:00:00 | * | gmpreussner quit (Quit: kthxbye) |
07:00:43 | * | owl_000 joined #nim |
07:04:42 | * | gmpreussner joined #nim |
07:14:29 | * | Vladar joined #nim |
07:24:03 | * | owl_000 quit (Ping timeout: 264 seconds) |
07:24:55 | * | krux02 joined #nim |
07:35:07 | FromGitter | <mratsim> emit is broken :/, symbol is not properly interleaved anymore :/ |
07:42:41 | * | endragor joined #nim |
07:50:59 | * | owl_000 joined #nim |
07:54:12 | * | endragor quit (Ping timeout: 268 seconds) |
08:12:26 | * | nsf joined #nim |
08:16:01 | * | endragor joined #nim |
08:16:30 | * | endragor quit (Read error: Connection reset by peer) |
08:19:59 | * | endragor joined #nim |
08:21:14 | Zevv | interleaved? |
08:24:13 | owl_000 | i have style checked enabled, so it produces this error, C:\prog\nim-0.20.2\lib\pure\random.nim(91, 8) Error: 'ui' should be: 'Ui' |
08:26:43 | owl_000 | i replaced all "ui" occurence to "Ui" in random.nim file, then it compile, (though removing this --styleCheck:error compile too) |
08:37:29 | FromGitter | <mratsim> @Zevv, yes interpolation might be a better word - https://github.com/nim-lang/Nim/issues/12036 |
08:38:17 | Zevv | wow, how could that not be caught by the tests? |
08:56:50 | Zevv | Why is it that nim does not use stderr/stdout the 'proper' way? |
08:56:55 | Zevv | the compiler, that is |
08:57:51 | Zevv | I now have a failing nimble package because there's compiler warnings ending up in nimblecache/pkg.ini :( |
08:59:39 | Zevv | oh wait, complaining too soon about the wrong thing again :/ |
09:00:40 | Zevv | but still, errors in my nimble cache |
09:25:09 | owl_000 | echo "..long line here..", how to break it to multiple line |
09:25:57 | owl_000 | echo fmt "" actually |
09:47:57 | dom96 | Zevv, someone else had this problem, can you comment on their nimble issue with details? |
09:48:17 | dom96 | oh, I see you just did |
09:48:23 | dom96 | well, created a new issue :) |
10:09:40 | * | NimBot joined #nim |
10:11:43 | Zevv | i thought that one was closed? |
10:12:00 | Zevv | or maybe I looked at the wrong one, just mark it as dup then? |
10:13:04 | Zevv | yeah definitely looks like a dup |
10:14:30 | Zevv | what was the reason for the original commit passing stderr to stdout? Thats just not a good idea imho |
10:23:26 | * | lritter joined #nim |
10:28:47 | * | vlad1777d joined #nim |
10:33:23 | Araq | Zevv: what is the "proper" way? the compiler doesn't output the binary file to a stream... |
10:52:44 | Zevv | no I was confused, the problem was not in the compiler part put in the nimble part |
10:53:16 | Zevv | nimble invokes "nim e" and sends stderr to stdout. unused import warnings ended up in .ini files |
10:53:47 | * | kungtotte quit (Quit: WeeChat 2.5) |
11:40:41 | dom96 | wouldn't be surprised if nim writes errors to stdout tbh |
11:40:48 | dom96 | we should be writing the .ini to a file |
12:06:39 | * | laaron quit (Quit: ZNC 1.7.1 - https://znc.in) |
12:16:08 | * | luis_ joined #nim |
12:24:16 | * | nsf quit (Quit: WeeChat 2.5) |
12:31:15 | * | luis_ quit (Ping timeout: 264 seconds) |
12:41:05 | * | laaron joined #nim |
12:53:43 | * | luis_ joined #nim |
12:58:00 | * | solitudesf quit (Remote host closed the connection) |
12:58:25 | * | solitudesf joined #nim |
12:58:27 | dom96 | it would really be nice if openarray was available outside of limited contexts |
12:59:31 | dom96 | trying to work around it by using templates, hitting roadblocks :( |
13:10:30 | * | owl joined #nim |
13:12:25 | * | owl left #nim (#nim) |
13:13:30 | * | owl joined #nim |
13:13:33 | * | owl_000 quit (Ping timeout: 258 seconds) |
13:18:48 | * | solitudesf quit (Ping timeout: 245 seconds) |
13:22:39 | shashlick | That should have been fixed with https://github.com/nim-lang/nimble/pull/667 |
13:22:48 | shashlick | Do you have latest? |
13:28:44 | Zevv | no, 0.10.2 - thats the default that gets checked out with nim devel it seems |
13:28:46 | Zevv | didn't realize |
13:31:57 | shashlick | Try `koch --latest nimble` |
13:33:30 | shashlick | Ya nimble isn't updated in Nim |
13:33:33 | shashlick | https://github.com/nim-lang/Nim/blob/devel/koch.nim#L13 |
13:34:04 | shashlick | Well actually it is updated |
13:34:13 | shashlick | What commit is your nimble at |
13:34:20 | Zevv | now its latest |
13:34:22 | Zevv | works like a charm |
13:34:52 | Zevv | I expected it to clone latest if I had nim latest, my wrong |
13:35:15 | shashlick | Ya 693 is still an issue I think, probably because of using different versions of Nim |
13:35:27 | shashlick | Will fix it in the next few days |
13:36:08 | shashlick | Are you on devel |
13:36:16 | Zevv | usually, yes |
13:39:44 | shashlick | Well if you still see the issue with latest, update the issue |
13:40:09 | shashlick | If you were on devel then it should have been latest already |
13:40:25 | shashlick | Unless you hadn't done koch tools in a while |
13:40:46 | * | owl quit (Ping timeout: 268 seconds) |
13:40:57 | Zevv | no latest is just fine, that fixed it |
13:41:12 | Zevv | oh or you mean latest nim, now i'm confused |
13:41:22 | shashlick | No nimble |
13:41:33 | Zevv | yeah, I just got --latest |
13:41:36 | Zevv | and now its ok |
13:41:47 | shashlick | I'm just curious how you had an old nimble if you were on devel |
13:42:14 | Zevv | Dunno. Koch just got an old version, but that was probably already in my tree and it didn't update? |
13:42:50 | shashlick | Koch gets almost latest now so unless you hadn't run koch tools in a while |
13:42:53 | Zevv | no, nim devel explicitly checks out nimble 0.10.2 |
13:43:07 | shashlick | See the hash though |
13:43:16 | Zevv | Ok, currently doing koch tools |
13:43:20 | shashlick | My link to koch above too |
13:44:19 | Zevv | still 0.10.2 after updating nim, doing koch tools and koch nimble |
13:44:31 | shashlick | Ya version isn't updated |
13:44:38 | Zevv | ok, clear :) |
13:44:43 | shashlick | Just see the hash for nimble -v |
13:44:52 | Zevv | d15c8530cb7480ce39ffa85a2dd9819d2d4fc645 |
13:45:12 | Zevv | and on latetst 2243e3fbc2dd277ad81df5d795307bf8389b9240 |
13:46:09 | shashlick | That's weird |
13:46:16 | Zevv | not the da82e3 |
13:46:20 | shashlick | What's in your koch.nim |
13:46:25 | Zevv | da82 |
13:46:38 | Zevv | git fetch |
13:46:38 | Zevv | git checkout tags/v0.10.2 |
13:46:38 | Zevv | Note: checking out 'tags/v0.10.2'. |
13:47:04 | shashlick | Probably cause if this |
13:47:07 | shashlick | https://github.com/nim-lang/Nim/blob/devel/koch.nim#L145 |
13:47:08 | Zevv | aaargh |
13:47:20 | Zevv | ./koch tools doesnt rebuild koch itself? |
13:47:55 | Zevv | no did manual compile of koch.nim and its ok |
13:47:59 | Zevv | s/no/now/ |
13:50:22 | shashlick | Ok so does it checkout correct commit after koch is rebuilt |
13:50:26 | shashlick | Without latest |
13:50:27 | * | dddddd joined #nim |
13:50:57 | Zevv | yes it does :) |
13:51:17 | shashlick | Ok root caused then whew |
13:51:22 | Zevv | haha |
13:51:24 | Zevv | confusion galore |
13:51:49 | Zevv | anyway, rebuildign koch is not in my regular workflow, so I'll add that |
13:51:53 | Zevv | thanks for your patience :) |
13:52:36 | shashlick | Np |
13:58:15 | * | Trustable joined #nim |
14:13:12 | * | owl_000 joined #nim |
14:19:01 | owl_000 | what is -x:off aka runtime check on or off. |
14:19:15 | owl_000 | what it actually does? |
14:19:53 | owl_000 | it increases loop's speed in huge margin. |
14:29:36 | owl_000 | i write a prime_number checker, -x:off outperform default setting in term of speed. |
14:30:17 | owl_000 | what if i always compile using -x:off |
14:43:42 | Zevv | disables boundary checks, array/string overflow etc |
14:43:59 | Zevv | so instead of a stacktrace and a crash, you get undefined behaviour |
14:50:27 | * | luis_ quit (Ping timeout: 264 seconds) |
14:51:22 | * | theelous3 joined #nim |
14:54:45 | * | Lullius[m] joined #nim |
14:56:20 | * | luis_ joined #nim |
15:01:11 | * | luis_ quit (Client Quit) |
15:13:50 | shashlick | That's what release used to be and now danger |
15:15:10 | * | laaron quit (Remote host closed the connection) |
15:19:46 | * | laaron joined #nim |
15:20:54 | * | laaron quit (Client Quit) |
15:24:02 | Zevv | dom96: ah, thanks for updating the nimble issue |
15:24:48 | * | laaron joined #nim |
15:25:29 | FromGitter | <mratsim> x:off is a very poor flag name |
15:26:14 | shashlick | @Zevv can we close it? |
15:27:09 | Zevv | I guess that this doesn't bite people running normal releases, so yes |
15:27:11 | * | laaron quit (Remote host closed the connection) |
15:27:31 | shashlick | It does but they need to update again :) |
15:27:42 | Zevv | true, true |
15:27:42 | shashlick | Good thing is that it's easy to update nimble now |
15:28:10 | shashlick | You can even get new features in older Nim |
15:28:31 | shashlick | Cause no compiler dependencies |
15:31:17 | shashlick | Wondering what to work on, have 3.5 hour flight and no internet |
15:31:32 | Zevv | read a book! |
15:31:47 | shashlick | Can't work on nimterop getHeader |
15:32:45 | shashlick | I have to run Travis locally to debug some issues but it's a 4gb docker so have to make space on my vm |
15:33:49 | shashlick | Need to fix nightlies arm as well but have run into a qemu issue with sqlite |
15:36:24 | Zevv | hmm I get tons of "Hint: 'ploc`gensym343142' is declared but not used" but I don't see any locations |
15:36:58 | FromGitter | <mratsim> gensym symbol are local variables in templates |
15:37:15 | Zevv | yes, I think I saw something in your issue this morning |
15:37:16 | FromGitter | <deech> Is there a introspection iterator like `fieldPairs` that statically returns all candidate procs/functions/iterators and their argument where the given object is the first argument? |
15:37:53 | Zevv | mratsim: how would I figure out where these warnings originate? |
15:50:48 | * | snooptek quit (Remote host closed the connection) |
15:56:09 | FromGitter | <mratsim> it should give you the line |
15:56:19 | FromGitter | <mratsim> also gensym is appended to the original symbol |
16:01:41 | Zevv | They all look like this: /home/ico/external/Nim/lib/system/assertions.nim(32, 5) Hint: 'ploc`gensym358384' is declared but not used [XDeclaredButNotUsed] |
16:04:59 | Zevv | so it comes from assertImpl somehow |
16:06:52 | FromDiscord_ | <me2beats> doesn't nim have python-like import syntax like from X import Y? |
16:09:00 | * | darithorn joined #nim |
16:11:45 | FromDiscord_ | <me2beats> I mean my problem is this: |
16:11:46 | FromDiscord_ | <me2beats> I'm very very new to nim |
16:11:46 | FromDiscord_ | <me2beats> and I took this example |
16:11:46 | FromDiscord_ | <me2beats> https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/ |
16:11:46 | FromDiscord_ | <me2beats> And I'm here (see image) |
16:11:46 | FromDiscord_ | <me2beats> https://cdn.discordapp.com/attachments/371759389889003532/615216752984326193/basic2d.JPG |
16:13:56 | FromDiscord_ | <me2beats> I got that basic2d module is depreciated, but from this source code it's unclear for me what lines use that basic2d module |
16:14:51 | FromGitter | <awr1> all of the *2d is basic2d |
16:15:31 | FromGitter | <awr1> you can install basic2d w/ `nimble install basic2d` |
16:15:49 | narimiran | @me2beats: read about the differences in imports between nim and python: https://narimiran.github.io/2019/07/01/nim-import.html |
16:15:59 | FromGitter | <awr1> and yes, you can import things with `from X import Y` in nim |
16:18:57 | FromGitter | <awr1> it's kind of the opposite of what you're expected to though, read the article narimiran posted |
16:22:04 | FromDiscord_ | <me2beats> yeah reading it now thanks |
16:41:33 | owl_000 | how to get current working directory |
16:42:09 | FromDiscord_ | <exelotl> getCurrentDir() in os module: https://nim-lang.org/docs/os.html#getCurrentDir |
16:43:42 | owl_000 | wow thanks, it is easy as python. |
16:45:32 | owl_000 | thanks Nim, when i used python i can't share my program to my friends easily. but sharing nim program is awesomely easy. |
16:48:20 | FromDiscord_ | <treeform> Just send them an .exe? |
16:52:34 | dom96 | ahh, when you spend a couple of hours trying to work around a bug in the compiler, and you finally get the program to compile only to be met by a C code gen error |
16:55:59 | shashlick | Going to work on a blog post on Nim wrapping |
16:58:01 | * | endragor quit (Remote host closed the connection) |
16:59:20 | * | owl_000 quit (Ping timeout: 258 seconds) |
17:00:20 | Zevv | why would the 'when enabled' in assertImpl (system.nim:30) not be the first line in the template. Now loc and ploc are always defined but generate these "declared but not used" warnings for ploc`genymXXXX |
17:00:29 | Zevv | If I move the 'when' to the top my prolem is gone |
17:01:46 | * | Kaivo joined #nim |
17:06:30 | Zevv | also speeds up all my compilations by about 3%! |
17:07:25 | Zevv | oh, 0.3% that is :) |
17:15:18 | FromDiscord_ | <me2beats> how to solve 'hg' not in PATH when nimble installing strfmt? |
17:17:03 | Zevv | is 'hg' in your path? |
17:17:18 | Zevv | if not, install mercurial |
17:17:24 | narimiran | by using strformat from std.lib. |
17:17:38 | Zevv | that's not the question |
17:17:49 | narimiran | yep, that's the answer :P |
17:19:44 | Zevv | you are violating the permise "when installing strfmt" |
17:20:08 | narimiran | i'm one step ahead on this XY problem ;) |
17:22:20 | Zevv | :) |
17:29:28 | FromDiscord_ | <me2beats> so can I just import strformat instead of strfmt? |
17:30:02 | FromDiscord_ | <me2beats> to make that platformer work |
17:41:33 | FromDiscord_ | <me2beats> I think yes because now I have "undeclared identifier 'interp'" in this line `interp"${mins:02}:${secs:02}"` |
17:43:43 | * | solitudesf joined #nim |
17:44:20 | * | luis_ joined #nim |
17:45:26 | luis_ | Hi everyone, are you aware whether someone implemented logistic regression in Nim? Not for machine learning but for simpler inferences... |
17:47:56 | * | vlad1777d quit (Ping timeout: 244 seconds) |
18:43:38 | * | nsf joined #nim |
18:46:50 | luis_ | How do I type cast to float? |
18:46:59 | luis_ | say from string? |
18:48:12 | narimiran | https://nim-lang.github.io/Nim/strutils.html#parseFloat%2Cstring |
18:59:08 | FromGitter | <deech> The use of `when` in the documentation seems to imply that `fieldPairs` is a compile time only construct can anyone verify if this is true? https://nim-lang.org/docs/iterators.html#fieldPairs.i%2CT |
19:01:59 | Zevv | afaik it is, it is not really an iterator, iirc it just transforms your for loop into linear code |
19:02:52 | FromGitter | <deech> So am I correct in assuming this is compile time reflection, as in the `object`'s field names aren't around at runtime? |
19:03:23 | Zevv | I think that's correct |
19:03:42 | Zevv | you won't find them as strings in the C code, for example |
19:03:55 | FromGitter | <deech> Ok good, thanks! |
19:26:01 | FromDiscord_ | <me2beats> well I made the platformer example run (yay) but still can't get what's wrong in ths line: interp"${mins:02}:${secs:02}" |
19:27:05 | FromDiscord_ | <me2beats> undeclared identifier 'interp |
19:29:24 | FromGitter | <Varriount> Hello fellow Nimsters! How are things going? |
19:33:01 | FromGitter | <Vindaar> @me2beats the problem is that while the functionality of `strfmt` is basically the same as `strformat` from the stdlib, the naming is not. See the docs here: https://nim-lang.github.io/Nim/strformat.html ⏎ so replace `interp` by `fmt` or `&` |
19:43:34 | FromDiscord_ | <me2beats> seems to work, cool! thank you |
19:52:49 | FromDiscord_ | <DeltaPHC> Within pure Nim code, assuming you don't use `ptr` nor compile with checks disabled, is it still possible to trigger undefined behavior? |
19:53:49 | FromDiscord_ | <DeltaPHC> I know there have been recent efforts to make things safer, so I'm kinda wondering where things are at |
19:55:01 | FromDiscord_ | <DeltaPHC> I'm thinking that threading can still throw a wrench in things, but let's ignore that for a sec :P |
20:23:16 | * | narimiran quit (Ping timeout: 246 seconds) |
20:25:06 | * | lmariscal quit (Quit: I'm out!) |
20:28:06 | shashlick | Not bad - 1250 words in 3 hours |
20:28:37 | Zevv | you're a slow reader! |
20:29:16 | xace | shashlick: do you have a link to your blog or do I have to wait until the article is completed? |
20:31:47 | * | lmariscal joined #nim |
20:35:41 | shashlick | First draft really |
20:36:31 | shashlick | I will post it after some time for review |
20:36:55 | shashlick | Hope to get it on the nim lang blog, let's see |
20:39:38 | FromGitter | <mratsim> @deech you can use astToStr if you need the field names |
20:48:59 | * | nsf quit (Quit: WeeChat 2.5) |
20:49:00 | * | Trustable quit (Remote host closed the connection) |
21:02:18 | * | vlad1777d joined #nim |
21:12:02 | * | clyybber joined #nim |
21:32:27 | * | luis_ quit (Quit: luis_) |
21:33:40 | * | ng0 quit (Ping timeout: 260 seconds) |
21:34:55 | * | luis_ joined #nim |
21:36:50 | * | solitudesf quit (Ping timeout: 272 seconds) |
21:36:56 | * | ng0 joined #nim |
21:47:15 | * | Vladar quit (Remote host closed the connection) |
21:52:02 | * | clyybber quit (Quit: WeeChat 2.5) |
21:55:32 | * | vlad1777d quit (Remote host closed the connection) |
21:57:46 | * | vlad1777d joined #nim |
22:01:16 | * | shomodj joined #nim |
22:19:51 | * | lritter quit (Remote host closed the connection) |
22:40:10 | * | tribly quit (Quit: WeeChat 2.5) |
22:41:03 | * | tribly joined #nim |
22:49:50 | FromDiscord_ | <me2beats> let me clarify pls - is this the official Nim discord server? |
22:50:04 | FromDiscord_ | <Shield> Yes |
22:50:12 | FromDiscord_ | <me2beats> thanks |
23:14:32 | * | owl_000 joined #nim |
23:14:57 | * | owl_000 quit (Client Quit) |
23:17:36 | * | user0225 joined #nim |
23:20:17 | * | owl_000 joined #nim |
23:36:18 | FromGitter | <gogolxdong> koch --latest nimble also works for my issue , thanks. |
23:37:32 | shashlick | What are you seeing |
23:38:14 | * | shomodj quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:38:41 | * | shomodj joined #nim |
23:39:01 | * | shomodj quit (Client Quit) |
23:56:52 | * | krux02_ joined #nim |
23:59:23 | * | krux02 quit (Ping timeout: 250 seconds) |