<< 01-08-2021 >>

00:58:21*krux02 quit (Quit: Leaving)
01:03:53*bkay joined #nim
01:04:18*beshr quit (Ping timeout: 240 seconds)
02:10:10*arkurious quit (Quit: Leaving)
02:49:41*thunder quit (Ping timeout: 265 seconds)
04:06:02*supakeen quit (Quit: WeeChat 3.2)
04:06:33*supakeen joined #nim
04:30:50FromDiscord<Bung> Error: unhandled exception: The system cannot find the file specified.
04:31:31FromDiscord<Bung> the nimble task does not transform file path to windows format automatically ?
04:31:54FromDiscord<Bung> sent a code paste, see https://play.nim-lang.org/#ix=3uDt
04:32:25fn<Prestige99> I wouldn't think so, maybe check the issues on the nimble repo
04:36:06FromDiscord<Bung> hmm , thanks , let me search how others nimble file write.
04:36:59FromDiscord<Elegantbeef> Could look at https://nim-lang.org/docs/nimscript.html#selfExec%2Cstring if you're talking about the nim compiler invokation
04:39:56FromDiscord<Bung> found I should use / proc
05:12:54*thunder joined #nim
05:33:53FromDiscord<cabboose> @treeform how’s development for fidget 2.0 going; I’m dying here.
05:35:03FromDiscord<cabboose> Any thoughts on a date when it will be available for public testing/use?
05:35:36FromDiscord<cabboose> Or still finalising the dependencies like pixie
05:36:08FromDiscord<cabboose> Was really hoping there would have been a mention of it with your nimconf talk lol
05:45:32FromDiscord<treeform> In reply to @cabboose "<@107140179025735680> how’s development for": I am mostly, working on dependencies and some other stuff.
06:04:04FromDiscord<treeform> fidget 2.0 is progressing, but I would not wait for it
06:08:06*bkay quit (Quit: Leaving)
06:08:26*beshr joined #nim
06:08:43*neceve joined #nim
06:16:33*pro joined #nim
06:34:45*runvnc joined #nim
07:07:43*runvnc__ joined #nim
07:07:43*runvnc quit (Read error: Connection reset by peer)
07:36:22*Jjp137 quit (Read error: Connection reset by peer)
07:37:07*Jjp137 joined #nim
07:37:48*max22- joined #nim
07:45:13*runvnc__ quit (Quit: Lost terminal)
08:00:59*neceve quit (Remote host closed the connection)
08:42:38FromDiscord<dankrad> sent a code paste, see https://paste.rs/gY7
08:52:34*pro quit (Ping timeout: 272 seconds)
08:54:08FromDiscord<Elegantbeef> [dankrad](https://matrix.to/#/@dankrad:matrix.code0.xyz)\: I can give a small example suggestion but this really has an issue that what's the point like you're avoiding strings but you still need to register logic based off logic
08:58:45FromDiscord<Elegantbeef> For that example implementation https://play.nim-lang.org/#ix=3uE9
09:00:44FromDiscord<Elegantbeef> and also in macros use `eqIdent`
09:01:18FromDiscord<Elegantbeef> Dont be the person that abandons Nim's style insensitivity for your macro since it just causes confusion to "why's it wrong?!"
09:26:39FromDiscord<dankrad> I'll fix the macro naming.↵Regarding to your example. It doesn't fit my needs, because then I need to check against strings too. Or did I miss something?↵I want to get the symbol like `getSymbol(Prefix)`. I want that the compiler crashes after I modified the tempalte name.
09:32:54*Mister_Magister quit (Ping timeout: 256 seconds)
09:48:16*pro joined #nim
09:51:47FromDiscord<dankrad> sent a code paste, see https://play.nim-lang.org/#ix=3uEr
09:54:52FromDiscord<dankrad> this would work\: `bindSym(Default.repr)`
09:58:50FromDiscord<impbox [ftsf]> does `cut` have a special meaning in nim? when I call a proc called `cut` I get `Error: in expression 'i.cut()': identifier expected, but found 'i.cut'` but if I call it say `cutInTwo` it works as expected
10:00:18*krux02 joined #nim
10:04:09*xet7 quit (Remote host closed the connection)
10:05:23*xet7 joined #nim
10:07:05*xet7 quit (Remote host closed the connection)
10:07:56*xet7 joined #nim
10:08:49*thunder quit (Remote host closed the connection)
10:15:26*vicfred quit (Quit: Leaving)
10:43:57*Mister_Magister joined #nim
10:48:34fn<ForumUpdaterBot99> New thread by Ingo: Choosenim x64, see https://forum.nim-lang.org/t/8289
10:52:14*max22- quit (Ping timeout: 256 seconds)
11:23:49FromDiscord<Bung> sent a code paste, see https://paste.rs/Sl7
11:24:06FromDiscord<Bung> I still get `Error: unhandled exception: The system cannot find the file specified.`. any idea ?
11:49:58FromDiscord<haxscramper> try `fileExists` to check. Or try `cwd() / <path>`
11:50:26FromDiscord<haxscramper> Does it fail when installing or when running `nimble test` locally?
11:50:54FromDiscord<haxscramper> Or try with `thisDir()`
12:06:02*supakeen quit (Quit: WeeChat 3.2)
12:06:34*supakeen joined #nim
12:07:24FromDiscord<Bung> when run `nimble test` on ci
12:07:27fn<ForumUpdaterBot99> New Nimble package! linear_models - Generalized linear models in Nim., see https://github.com/ayman-albaz/linear-models
12:07:28fn<R2D299> itHub: 7"Generalized linear models in Nim"
12:10:01FromDiscord<Bung> it looks like it does not found the yarn , it does not report addition info with file path, so am not sure.
12:20:29*arkurious joined #nim
12:20:58arkanoidhow is nim with code coverage? last time I tried I had to actually compile C code with coverage options, run it and filter out C and nim std
12:26:39*Mister_Magister quit (Quit: bye)
12:31:20FromDiscord<gerwy> damn
13:01:09*Mister_Magister joined #nim
13:02:17FromDiscord<haxscramper> https://forum.nim-lang.org/t/7024
13:02:17FromDiscord<haxscramper> Not really great, there are several nim libraries
13:02:38FromDiscord<haxscramper> And you can use C compiler coverage options to get somewhat bearable results
13:02:41FromDiscord<haxscramper> No built-in compiler support
13:20:52*max22- joined #nim
13:29:50FromDiscord<gerwy> will we get something like cpp2nim anytime?
13:30:46federico3or *2nim?
13:37:40FromDiscord<exelotl> brain2nim
13:40:18FromDiscord<haxscramper> I can throw together simple tree-sitter-baser solution like I did with java, but full translation is not really possible↵(@gerwy)
13:40:46FromDiscord<haxscramper> Without huge time investments in the clang-based tooling
13:41:20FromDiscord<haxscramper> https://github.com/haxscramper/htsparse/blob/master/tests/tJavaTranspiler.nim
13:42:01FromDiscord<haxscramper> It is a 20/80% situation
13:42:44FromDiscord<haxscramper> Somewhat working solution can take couple days at most, using extremely dumb code. Fully working solution is much more complicated
13:48:54FromDiscord<haxscramper> Or if you are talking whether c2nim could ever support cpp fully
13:49:00FromDiscord<haxscramper> In which case - probably never
13:49:23FromDiscord<Bung> sent a code paste, see https://paste.rs/Vhw
13:56:19FromDiscord<haxscramper> Or anything
13:56:20FromDiscord<haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3uGb
13:56:42FromDiscord<Bung> https://github.com/bung87/napibindings/runs/3213922167?check_suite_focus=true
13:57:26FromDiscord<Bung> it looks to me nim compile use mingw generate c code, then node-gyp use vs2019 build dll
13:59:07FromDiscord<haxscramper> https://github.com/nim-lang/csources/blob/master/c_code/2_10/stdlib_assertions.nim.c#L196 probably can't handle this?
13:59:38FromDiscord<haxscramper> This is a different line, but it might be related to codegen &msvc
14:00:56FromDiscord<haxscramper> In reply to @Bung "it looks to me": Maybe msvc attribute syntax somehow different, and this difference results in error
14:01:50FromDiscord<Bung> I do searched attribute is for gcc
14:03:48federico3what's the latest/best py2nim converter?
14:05:05FromDiscord<haxscramper> https://github.com/metacraft-labs/py2nim there is only one
14:05:07fn<R2D299> itHub: 7"A Python-to-Nim transpiler"
14:08:11FromDiscord<gerwy> but there is literally nothing there
14:08:35FromDiscord<gerwy> the deprecated seems to work tho
14:08:45FromDiscord<gerwy> (edit) "the deprecated ... seems" added "one"
14:09:56FromDiscord<gerwy> In reply to @haxscramper "I can throw together": ah understandable, i mean its not hard if you understand cpp to translate it, but i meant it more for libraries and stuff
14:11:42FromDiscord<haxscramper> In reply to @Life Sucks "ah understandable, i mean": So wrappers then? I work on hcparse, so it will be ready
14:11:44FromDiscord<haxscramper> Sometimes
14:11:49FromDiscord<haxscramper> Sometimes in the future
14:12:24FromDiscord<haxscramper> https://github.com/haxscramper/hcparse
14:12:26fn<R2D299> itHub: 7"High-level nim bindings for parsing C/C++ code"
14:12:35FromDiscord<gerwy> what i would do with python as a dumb person i would compile it with CPython or Nuitka to C code and then use c2nim on it, or if speed isn't needed then maybe use nimpy
14:12:46FromDiscord<gerwy> In reply to @haxscramper "Sometimes in the future": sounds promising
14:12:53FromDiscord<haxscramper> Vlang moment
14:13:02FromDiscord<gerwy> pls don't be another vlang
14:13:21FromDiscord<gerwy> i saw a benchmark of languages and vlang was like 2 or 3 times slower than Nim
14:13:58FromDiscord<haxscramper> I'm talking more about overpromising on features and then underdelivering on implementation
14:14:27FromDiscord<haxscramper> But the tool won't be too slow, hopefully. But right now I'm having troubles to just make it work properly
14:14:28FromDiscord<Rika> dont invest on something based on promises, applies to basically anything
14:14:43FromDiscord<haxscramper> Though considering I'm fighting with c++ stdlib right now
14:15:14FromDiscord<gerwy> so i guess C++ doesn't have as good support as C :sadclown:
14:16:03FromDiscord<gerwy> what about JS? im like using js packages with nim? i know its possible but how hard it is when we doesn't have js2nim
14:17:26FromDiscord<haxscramper> Transpiling code based on syntax is easy
14:17:34FromDiscord<haxscramper> Based on semantics - almost impossible
14:18:04FromDiscord<haxscramper> There is a ts2nim, or dts2nim (for TS type definitions)
14:24:13FromDiscord<Bung> I specify --cc:vcc solved
15:19:21federico3languist seems dead :(
15:25:37*ozzz quit (Ping timeout: 265 seconds)
15:35:15*ozzz joined #nim
15:50:59*krux02 quit (Remote host closed the connection)
15:53:30*supakeen quit (Remote host closed the connection)
15:53:54*supakeen joined #nim
16:02:33emeryhow do I hide the effects of a proc?
16:16:10FromDiscord<generic linux user> what did you mean
16:19:11emeryI have a proc that has effects that need to be disregarded
16:32:06emerymeh, better to just remove effect tracking
16:55:54*thunder joined #nim
17:05:04*max22- quit (Remote host closed the connection)
17:07:01FromDiscord<saem> You can cast via nosideeffect
17:07:28FromDiscord<saem> Example in the manual if you search for that key word, IIRC
17:07:37*max22- joined #nim
17:11:11FromDiscord<PsychoClay> what does "virtualFree failing!" mean?
17:15:25FromDiscord<PsychoClay> sent a long message, see http://ix.io/3uHh
17:19:36FromDiscord<generic linux user> sent a code paste, see https://play.nim-lang.org/#ix=
17:19:54FromDiscord<generic linux user> (edit) "https://play.nim-lang.org/#ix=" => "https://play.nim-lang.org/#ix=3uHm"
17:20:10FromDiscord<PsychoClay> ah
17:35:50*supakeen quit (Remote host closed the connection)
17:36:14*supakeen joined #nim
17:39:21emerysaem: I'm not sure what that example does, but it is not what I want
17:42:47emeryI'm convinced that IOEffect is never meaningful
18:22:14*max22- quit (Ping timeout: 252 seconds)
18:40:33*thunder quit (Remote host closed the connection)
18:48:08*thunder joined #nim
18:51:00*pro quit (Ping timeout: 272 seconds)
19:17:21*max22- joined #nim
19:24:00FromDiscord<@bracketmaster-5a708063d73408ce4> @\_discord\_347345994217816066\:t2bot.io , benchmarks can be misleading
19:24:47FromDiscord<@bracketmaster-5a708063d73408ce4> Generally I've found three performance groups, interpreted dynamic typed langs, virtual machine langs, and native static typed lange
19:25:45*max22- quit (Remote host closed the connection)
19:26:39*max22- joined #nim
19:43:52FromDiscord<theangryepicbanana> is play.nim-lang down? I suddenly started having issues running stuff
19:47:36FromDiscord<theangryepicbanana> nvm my code was just really bad lol
20:06:07*krux02 joined #nim
20:14:04*max22- quit (Remote host closed the connection)
20:15:50*max22- joined #nim
20:20:52*max22- quit (Remote host closed the connection)
21:07:32*krux02 quit (Remote host closed the connection)
21:09:07*krux02 joined #nim
21:35:11*max22- joined #nim
21:38:03FromDiscord<@bracketmaster-5a708063d73408ce4> @haxscramper\:matrix.org , parsercombinators also seem to work well in Nim\: https://xmonader.github.io/nimdays/day21_parsec.html#parser-combinators
22:19:02fn<ForumUpdaterBot99> New thread by Xioren: Possible to have a reference in a seq of another type?, see https://forum.nim-lang.org/t/8290
22:31:16FromDiscord<theangryepicbanana> huh, why does `nnkDo` have a bunch of extra empty nodes?
22:35:26FromDiscord<theangryepicbanana> sent a code paste, see https://play.nim-lang.org/#ix=3uKb
22:35:38FromDiscord<theangryepicbanana> (edit) "https://play.nim-lang.org/#ix=3uKb" => "https://play.nim-lang.org/#ix=3uKc"
22:35:53FromDiscord<theangryepicbanana> (edit) "https://play.nim-lang.org/#ix=3uKc" => "https://play.nim-lang.org/#ix=3uKd"
23:12:40*max22- quit (Remote host closed the connection)
23:12:55FromDiscord<⃟⃟> how do i compile with optimization
23:16:17FromDiscord<Elegantbeef> `-d:release` and for enabling LTO either through `-d:lto` or `--passC:-flto` if that doesnt work
23:27:56FromDiscord<arne> @theangryepicbanana the empty nodes are placeholders for parts that might be part ore were at some point part of the ast.
23:29:02FromDiscord<arne> ast componets are positon based, that means if some part isn't used anymore, it needs to stay in the ast as an empty node, so that the other parts of the ast are still accessible as from the same index
23:29:38FromDiscord<theangryepicbanana> In reply to @arne "<@!356108561232953344> the empty nodes": hmm ok