00:28:44 | * | a_chou joined #nim |
00:45:24 | * | njoseph quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
00:45:43 | * | njoseph joined #nim |
00:47:17 | * | a_chou quit (Remote host closed the connection) |
00:47:37 | * | a_chou joined #nim |
00:48:04 | * | natrys quit (Quit: natrys) |
00:51:49 | ForumUpdaterBot | New thread by Xioren: Nim convention for multiple imports?, see https://forum.nim-lang.org/t/7814 |
01:15:52 | ForumUpdaterBot | New thread by Sdmcallister: Hashing stored passwords, see https://forum.nim-lang.org/t/7815 |
01:38:08 | * | arecaceae quit (Remote host closed the connection) |
01:38:29 | * | arecaceae joined #nim |
01:57:54 | * | sz0 joined #nim |
02:07:15 | * | bomb joined #nim |
02:19:03 | FromGitter | <xflywind> https://github.com/nordlow/compiler-benchmark/issues/8 |
02:42:24 | * | a_chou quit (Quit: a_chou) |
03:06:04 | * | spiderstew_ joined #nim |
03:06:59 | * | spiderstew quit (Ping timeout: 250 seconds) |
03:08:16 | * | riceman joined #nim |
03:09:35 | riceman | hey, I'm having a bit of trouble getting Jester redirects to work without errors. Anybody I can bounce this off of? |
03:09:50 | * | wasted_youth2 quit (Quit: Leaving) |
03:12:26 | FromDiscord | <ElegantBeef> What are the errors, what are you trying? |
03:12:45 | * | rockcavera quit (Ping timeout: 260 seconds) |
03:12:57 | FromDiscord | <ElegantBeef> This is a big ol' forum of shoot you question and hope you get a response(you will tend to eventually get one) |
03:14:44 | riceman | hey, thanks! Got some outsider pages, pre-login, that I'd like to redirect to /home, logged, if the user has a cookie-based auth session |
03:14:57 | riceman | */home, logged in, |
03:15:04 | riceman | get "/register": |
03:15:04 | riceman | var (response, loggedUser) = checkCookie(request.headers) |
03:15:04 | riceman | if response == true: redirect "/home" |
03:15:04 | riceman | else: resp(htmlReg) |
03:15:14 | FromDiscord | <ElegantBeef> You can post code here https://play.nim-lang.org/ |
03:15:19 | FromDiscord | <ElegantBeef> Then share it |
03:15:27 | riceman | Great, thank you I'll do that rn |
03:16:46 | riceman | Here's that snippet in a cleaner format: https://play.nim-lang.org/#ix=2Wsa |
03:17:13 | FromDiscord | <ElegantBeef> What's the error? |
03:17:21 | riceman | Getting "Error: undeclared identifier: 'allRoutes'" when I try to use that 'redirect "/home"' bit anywhere |
03:17:58 | * | bomb quit (Quit: I quit.) |
03:18:28 | riceman | Can't post my full code as I have secrets scattered about in it that I'd like to avoid posting publicly. Basically just wondering if the "redirect" bit of Jester is deprecated or if something I'm doing is breaking it. |
03:22:09 | FromDiscord | <ElegantBeef> It's declared in a `routes:` block? |
03:25:03 | riceman | Yep, just a basic "routes:" block. If a user hits a "logged out" endpoint like '/register', my checkCookie() proc grabs cookie headers, tries any cookies against a redis db of active cookies, and upon matching, I'd like to funnel them back to "/home" instead of "/register" |
03:26:11 | riceman | currently I'm using resp(pageTemplate) to redirect, but that's just putting different content in front of them, not actually redirecting them somewhere else. |
03:26:59 | FromDiscord | <ElegantBeef> I've never used jester before so i'm currently trying to figure out how you get the code to report that `allRoutes` doesnt exist |
03:27:38 | riceman | Thanks for helping out! I really appreciate it. |
03:28:00 | FromDiscord | <ElegantBeef> any chance you can minify this to some code i could run then? |
03:29:03 | riceman | Maybe... It's tricky since the checkCookies() proc queries redis, but I can probably modify that into a simple random true/false return and get the same result. |
03:29:21 | riceman | Let me throw that together quick. |
03:29:24 | FromDiscord | <ElegantBeef> yea removing redis would be fine, just something so i can repro it |
03:39:35 | riceman | Uh oh. Redirect works fine now with the db and stuff stripped away... |
03:40:15 | riceman | Must be a me problem. Let me comb through commenting stuff out until I can track down what's breaking Jester. Thanks for being willing to consult! |
03:40:17 | FromDiscord | <ElegantBeef> Odd, seems it's now a case of "what's interacting with what" |
03:40:33 | FromDiscord | <ElegantBeef> Yea no problem, not that i did anything 😛 |
03:40:59 | riceman | Yes, I'm sure I messed something up somewhere, or perhaps it's the waiting for redis that's doing it in. Still, appreciate the sense of guidance! :) |
03:51:01 | riceman | Aha! Solved. |
03:52:19 | riceman | Jester allows routing error pages, and I had "error Http404:", but it seems that those are coded differently than any others. Taking out the "if else" statement for routing them un-broke my project. |
03:52:59 | riceman | Perhaps that's a bug. |
03:56:34 | FromDiscord | <ElegantBeef> Well can always wait and hope, or just make an issue and hope it's |
03:57:01 | FromDiscord | <ElegantBeef> Wait and hope for someone that knows |
04:25:31 | * | teiresias quit (Quit: ZNC - https://znc.in) |
05:18:14 | * | Vladar joined #nim |
06:16:36 | ForumUpdaterBot | New thread by Archnim: Nim on raspberry PI, see https://forum.nim-lang.org/t/7816 |
06:25:54 | * | NimBot joined #nim |
06:43:16 | * | teiresias joined #nim |
07:00:08 | FromDiscord | <Marcin(MrogaM)> In reply to @Goel "<@!645893452164235285> https://nim-lang.org/docs/m": Thank You |
07:39:37 | FromDiscord | <jtiai> sent a code paste, see https://play.nim-lang.org/#ix=2Wua |
07:41:01 | FromDiscord | <ElegantBeef> `.=` is `CpuFlags, CpuFlags, val` |
07:41:27 | FromDiscord | <jtiai> Well note: it worked before adding `using`-keyword. |
07:42:24 | FromDiscord | <jtiai> So I could write `cpu.flags.C = true` and `if cpu.flags.C:` |
07:42:49 | * | blaumetallic[m] joined #nim |
07:44:17 | FromDiscord | <ElegantBeef> is fetched a field of CpuRef? |
07:44:24 | FromDiscord | <jtiai> Yes. |
07:44:28 | FromDiscord | <ElegantBeef> Exported? |
07:44:39 | FromDiscord | <jtiai> Err.. no... 😄 |
07:44:46 | FromDiscord | <ElegantBeef> Is that the issue? |
07:45:25 | FromDiscord | <jtiai> Hard to tell without testing but when I have to use public/exported fields and when not? |
07:45:41 | FromDiscord | <ElegantBeef> If you're accessing a field from another module it has to be exported |
07:45:50 | FromDiscord | <ElegantBeef> Otherwise this is a bug |
07:46:03 | FromDiscord | <jtiai> Aha. And all my types are in separate module due cross referencing. |
07:48:10 | FromDiscord | <ElegantBeef> Yep nim defaults to private, so top level symbols you want need to be exported, unless you "abuse" macrocache |
07:49:57 | FromDiscord | <jtiai> I want to be good boy and do it right. |
07:54:44 | FromDiscord | <longterm> sent a code paste, see https://play.nim-lang.org/#ix=2Wuc |
07:55:09 | FromDiscord | <longterm> (edit) "https://play.nim-lang.org/#ix=2Wuc" => "https://play.nim-lang.org/#ix=2Wud" |
08:01:23 | FromDiscord | <jtiai> Given number of languages I've been trying out and working with in my long and glorious career and as a hobbyist I must put Nim at very top of my language list. Python still wins but hey - I've been writing Python code for ~15 years and Nim like.. 2 weeks... |
08:02:39 | FromDiscord | <ElegantBeef> Nim being beat by python, damn time to pack it up |
08:03:29 | FromDiscord | <Rika> yall the projects being archived weve lost to python |
08:03:42 | FromDiscord | <Rika> gotta reallocate the resources to improving that |
08:15:01 | * | teiresias quit (Quit: ZNC - https://znc.in) |
08:27:45 | FromDiscord | <mlokis> how do i deal with template imports? |
08:28:43 | FromDiscord | <Rika> whats the issue? |
08:29:55 | FromDiscord | <mlokis> well i have module a that imports b and b is used in template, if module c imports a and use template, b has to be imported manually |
08:30:12 | FromDiscord | <mlokis> (edit) "use" => "uses" |
08:31:05 | FromDiscord | <Rika> export b in module a? |
08:31:19 | FromDiscord | <Rika> or export the template only `export templateName` in module a |
08:31:24 | FromDiscord | <Rika> if you want only the template |
08:32:56 | FromDiscord | <mlokis> thenx |
08:38:47 | * | teiresias joined #nim |
09:03:56 | * | Blocklisted joined #nim |
09:07:57 | * | Blocklisted quit (Client Quit) |
09:12:12 | * | jess quit (Quit: back soon) |
09:22:52 | FromDiscord | <mlokis> sent a code paste, see https://play.nim-lang.org/#ix=2Wuy |
09:32:37 | * | krux02 joined #nim |
09:32:48 | * | cyraxjoe quit (Ping timeout: 268 seconds) |
09:53:04 | FromGitter | <ShalokShalom> I just try to install Nim on the phone, and setup Emacs on Termux to do so. |
09:53:32 | FromGitter | <ShalokShalom> The next step is to install nimlsp, and it complains that nimsuggest isnt there. |
09:55:06 | FromGitter | <ShalokShalom> I read from couple of issues, that koch can build it and that one gives me always the same error message, anyway with what I call it (unless --help) |
09:55:10 | FromGitter | <ShalokShalom> koch nimsuggest ⏎ oserr.nim(94) raiseOSError ⏎ Error: unhandled exception: No such file or directory ⏎ Additional info: "lib" [OSError] [https://gitter.im/nim-lang/Nim?at=607c01fea9dd556843e666be] |
09:55:28 | FromGitter | <ShalokShalom> Can anybody help me? :) |
09:57:23 | FromGitter | <ShalokShalom> Oh, koch is expecting a source code directory? |
09:59:35 | FromGitter | <ShalokShalom> No, the docs say, this is the correct command. |
10:00:00 | FromGitter | <ShalokShalom> https://nim-lang.org/1.4.0/nimsuggest.html |
10:04:15 | * | natrys joined #nim |
10:05:40 | FromGitter | <ShalokShalom> Ah, I think I have to compile it with the sources extra, since I used the Termux package manager and got no sources with it. 🤭 |
10:16:09 | FromGitter | <ShalokShalom> No, still doesnt work. |
10:17:45 | FromGitter | <ShalokShalom> `````` |
10:18:17 | FromGitter | <ShalokShalom> . |
10:19:01 | FromGitter | <ShalokShalom> Gitter is pure pain... |
10:19:07 | ForumUpdaterBot | New thread by Alexeypetrushin: Post process string formatted with `fmt`, see https://forum.nim-lang.org/t/7817 |
10:19:50 | FromDiscord | <Rika> so whos calling technisha to help this poor lad |
10:34:37 | * | l1x quit (Quit: Connection closed for inactivity) |
10:35:14 | FromDiscord | <ShalokShalom> sent a code paste, see https://play.nim-lang.org/#ix=2WuV |
10:35:18 | FromDiscord | <ShalokShalom> (edit) |
10:36:50 | * | teal joined #nim |
10:39:48 | * | teal quit (Client Quit) |
10:44:39 | FromDiscord | <jtiai> Can I forward declare procs nim? |
10:44:47 | FromDiscord | <Rika> yes |
10:44:54 | FromDiscord | <jtiai> (edit) "Can I forward declare procs ... nim?" added "in" |
10:45:11 | FromDiscord | <Rika> how: copy the proc, remove everything after the equals sign including the equals sign |
10:45:12 | FromDiscord | <Rika> done |
10:46:15 | FromDiscord | <jtiai> So just signature? |
10:46:20 | FromDiscord | <Rika> yes |
10:50:06 | * | nisstyre quit (Ping timeout: 258 seconds) |
10:55:01 | FromDiscord | <jtiai> Or could I declare variable (static array) somwhere at the top and define array at the bottom? |
11:00:33 | FromDiscord | <haxscramper> Yes, this is just a global variable |
11:00:40 | FromDiscord | <haxscramper> No magic here either |
11:01:08 | FromDiscord | <haxscramper> Though you would have to make it `var` in this case since `let` must be initialialized |
11:01:14 | FromDiscord | <haxscramper> (edit) "initialialized" => "initialized" |
11:02:14 | * | nisstyre joined #nim |
11:10:40 | ForumUpdaterBot | New Nimble package! ansiwave - ANSI art + MIDI music editor, see https://github.com/oakes/ansiwave |
11:16:19 | * | clyybber joined #nim |
11:17:54 | FromDiscord | <jtiai> sent a code paste, see https://play.nim-lang.org/#ix=2Wv3 |
11:18:04 | FromDiscord | <haxscramper> `var foo: seq[<youir type>]` |
11:18:21 | FromDiscord | <haxscramper> (edit) "seq[<youir" => "seq[<your" |
11:18:33 | FromDiscord | <Rika> bare var must have type |
11:45:41 | * | lritter joined #nim |
12:33:06 | * | riceman quit (Quit: Leaving) |
12:43:12 | FromDiscord | <Goel> So chars can't be used to check if a line of text is empty?↵`""` works `''` doesn't work |
12:45:40 | FromDiscord | <Rika> what is an "empty char"? |
12:53:59 | Oddmonger | \0 |
12:54:07 | Oddmonger | (this is not a smiley) |
12:55:00 | FromDiscord | <Rika> thats a null character, not necessarily empty |
12:55:10 | FromDiscord | <Rika> might not be what goel wants |
12:56:08 | FromDiscord | <Solitude> In reply to @Goel "So chars can't be": no, they cant, no such thing as `''` |
13:00:57 | * | nc-x joined #nim |
13:01:34 | nc-x | Anybody has any idea what this error means "IO error has occurred in the BIO layer [OSError]"? |
13:02:57 | nc-x | I am getting this error when using httpclient get function |
13:03:32 | FromDiscord | <Rika> something went wrong with openssl's BIO |
13:03:56 | FromDiscord | <Rika> what version of openssl do you have? it might be too old |
13:04:13 | nc-x | i am on windows, and openssl comes from the dlls.zip file uploaded on the website |
13:04:34 | nc-x | https://nim-lang.org/download/dlls.zip |
13:20:50 | * | nc-x quit (Quit: Connection closed) |
13:27:05 | * | nisstyre quit (Ping timeout: 250 seconds) |
13:29:19 | * | nisstyre joined #nim |
14:35:13 | * | rockcavera joined #nim |
14:52:00 | * | letto quit (Quit: Konversation terminated!) |
14:56:46 | giaco__ | when writing functions that takes an array/varargs, I'm not sure if I should prefer writing it for openarray or varargs |
14:57:20 | giaco__ | also not sure if it is just an idiomatic matter or there's more under the hood |
14:59:12 | FromDiscord | <dk> it doesn't matter |
14:59:42 | FromDiscord | <dk> varargs is a sugar for openarray, but pretending to be multiple arguments |
15:00:21 | FromDiscord | <dk> unless you want to use implicit conversion like `echo` does |
15:01:27 | * | letto joined #nim |
15:02:02 | giaco__ | thanks |
15:25:08 | ForumUpdaterBot | New question by Alex Craft: Macro to generate function implementation by its definition?, see https://stackoverflow.com/questions/67150226/macro-to-generate-function-implementation-by-its-definition |
15:27:15 | giaco__ | what's wrong with this trivial function? https://play.nim-lang.org/#ix=2WwI |
15:30:13 | FromDiscord | <jtiai> sent a code paste, see https://play.nim-lang.org/#ix=2WwJ |
15:31:54 | FromDiscord | <Rika> just cast it? |
15:32:06 | FromDiscord | <Rika> cast[uint8](isOfCPUFlags) |
15:32:07 | FromDiscord | <Rika> ? |
15:33:00 | FromDiscord | <jtiai> Ah, I need unsafe cast. |
15:34:03 | FromDiscord | <Rika> .T is not cast, its convert |
15:34:09 | FromDiscord | <Rika> cast is cast, convert is convert |
15:34:14 | FromDiscord | <Rika> all casts are unsafe |
15:36:20 | FromDiscord | <Rika> giaco: i think the issue is that it is a statement since not all branches have a return type |
15:36:28 | FromDiscord | <Rika> aka: an else branch is needed |
15:36:33 | FromDiscord | <jtiai> Aand more complex issue... |
15:37:38 | FromDiscord | <Rika> ? |
15:39:22 | giaco__ | Rika, I think it's about this https://github.com/nim-lang/Nim/issues/16078 |
15:39:38 | FromDiscord | <Rika> huh okay |
15:41:12 | FromDiscord | <jtiai> sent a code paste, see https://play.nim-lang.org/#ix=2WwP |
15:42:48 | FromDiscord | <jtiai> (edit) "https://play.nim-lang.org/#ix=2WwP" => "https://play.nim-lang.org/#ix=2WwQ" |
15:42:52 | FromDiscord | <Rika> you have to do lookup[0] = Ins... |
15:42:53 | FromDiscord | <Rika> yes |
15:43:04 | FromDiscord | <Solitude> you are assigning 1 element array to 255 element array |
15:43:04 | FromDiscord | <Rika> you dont need to "redefine the array" |
15:43:09 | FromDiscord | <Solitude> (edit) "255" => "256" |
15:43:09 | * | wasted_youth2 joined #nim |
15:43:10 | FromDiscord | <Rika> since its already defaulted |
15:43:12 | ForumUpdaterBot | New question by Alex Craft: How to get function name as string in macro/template?, see https://stackoverflow.com/questions/67150392/how-to-get-function-name-as-string-in-macro-template |
15:43:14 | FromDiscord | <Rika> unlike seqs |
15:43:28 | FromDiscord | <jtiai> Can I specify default value for array? |
15:43:47 | FromDiscord | <Solitude> no |
15:44:27 | FromDiscord | <jtiai> So what it will contain in by default my case where value is an object? |
15:44:42 | FromDiscord | <Solitude> zeroes |
15:46:03 | FromDiscord | <jtiai> A bit confusin but array apparently can have multiple types in it then? |
15:46:54 | FromDiscord | <Rika> no? |
15:46:54 | FromDiscord | <Solitude> no |
15:50:33 | FromDiscord | <jtiai> is "nil" same as 0 or is it just equal to 0? or not equal nor same...? |
15:50:50 | FromDiscord | <Rika> in terms of? |
15:51:30 | FromDiscord | <Rika> by "zero" solitude means binary 0, not the number 0; so if you have pointer array, they default as nil, int default as 0, float 0.0, etc |
15:51:38 | FromDiscord | <Rika> string "", bool false |
15:53:21 | FromDiscord | <jtiai> I mean that if I do `if nil == 0` that would evaluate true... |
15:54:16 | FromDiscord | <Rika> !eval echo nil == 0 |
15:54:18 | NimBot | Compile failed: /usercode/in.nim(1, 10) Error: type mismatch: got <typeof(nil), int literal(0)> |
15:54:18 | FromDiscord | <Rika> compile error. |
15:54:27 | FromDiscord | <Rika> theyre different types |
15:54:31 | FromDiscord | <Rika> so they cannot be compared |
15:54:44 | FromDiscord | <Rika> well, unless you make a comparator proc |
15:55:18 | FromDiscord | <jtiai> That's what I was after that they are different types 🙂 |
15:57:29 | FromDiscord | <jtiai> Now more stupid questions but what is advantage of `let` compared to `var` ? |
15:57:35 | FromDiscord | <haxscramper> `let` is immutable |
15:58:04 | FromDiscord | <jtiai> does it means that it is way faster than var? |
15:58:08 | FromDiscord | <Rika> no |
15:58:10 | FromDiscord | <haxscramper> no |
15:58:31 | FromDiscord | <haxscramper> Though there might be some subtle optimizations that I'm not aware of |
15:58:31 | FromDiscord | <Rika> there are no guarantees that let is faster than var and vice versa |
15:58:45 | FromDiscord | <Rika> there might be speed gains, but they are not guaranteed |
15:59:19 | FromDiscord | <jtiai> So why I would use `let` instead of `var` ? |
15:59:46 | FromDiscord | <haxscramper> when you need immutable variable |
16:00:02 | FromDiscord | <dk> for convenience of the reader |
16:00:06 | * | Simon[m]6 quit (Quit: Idle for 30+ days) |
16:00:18 | FromDiscord | <haxscramper> `let` has a subset of `var` features |
16:00:19 | FromDiscord | <Solitude> for your convenience |
16:00:25 | FromDiscord | <haxscramper> can't assign, can't take address |
16:00:29 | FromDiscord | <haxscramper> (edit) "assign," => "reassign," |
16:00:37 | FromDiscord | <haxscramper> everything else is a the same |
16:01:43 | FromDiscord | <Rika> if you want to ensure the var doesnt change |
16:01:50 | FromDiscord | <Rika> i mean, the value |
16:02:23 | * | tane joined #nim |
16:13:44 | FromDiscord | <flywind> https://github.com/nordlow/compiler-benchmark |
16:15:08 | FromDiscord | <flywind> nim build time seems slower than rust and c++ in the benchmark |
16:16:26 | FromDiscord | <jtiai> Is that test reliable? |
16:29:31 | Amun_Ra | the only slowness regarding Nim I encountered was while using unittest |
16:31:10 | Amun_Ra | (iirc ~20 seconds build time for a file containing ~50 tests) |
16:44:12 | federico3 | @flywind Nim is usually much faster |
16:45:44 | Amun_Ra | I'd read it as "rust is usually the slowest" |
16:45:52 | FromDiscord | <haxscramper> Maybe it was caused by linear increase in codes size? I.e. for each line of nim code there are more lines of C that is minimally necessary |
16:46:30 | FromDiscord | <haxscramper> Because `nim check` is quite fast |
16:47:24 | FromDiscord | <haxscramper> But `nim c` is much slower, which means this is the main reason |
16:48:28 | * | letto quit (Quit: Konversation terminated!) |
16:50:26 | FromDiscord | <zetashift> But these are compile times right? Nim should still win out from C++ / Rust unless it's extremely basic code |
16:50:43 | Amun_Ra | indeed |
16:50:58 | FromDiscord | <haxscramper> It is extremely basic code |
16:51:21 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2Wxj |
16:51:26 | FromDiscord | <haxscramper> At least judging from C example |
16:52:10 | FromDiscord | <haxscramper> So this is the classic "repeat-1000000-times" benchmark |
16:52:24 | FromDiscord | <haxscramper> (edit) ""repeat-1000000-times"" => ""repeat-1000000-times-see-who-is-faster"" |
16:54:06 | FromDiscord | <Rika> 1 million echo line flashbacks |
16:54:13 | FromDiscord | <Rika> sorry, 1.2 million |
16:57:00 | FromDiscord | <no name fits> enums: plural or singular? I'm so confused |
16:57:16 | FromDiscord | <no name fits> ``Color`` or ``Colors`` |
16:57:27 | FromDiscord | <no name fits> (edit) removed "or ``Colors``" |
16:59:24 | FromDiscord | <Rika> enums are singular |
17:13:32 | * | letto joined #nim |
17:15:26 | * | natrys quit (Quit: natrys) |
17:24:12 | ForumUpdaterBot | New thread by Alexeypetrushin: Error in macro, `int` is not evaluated as `int`., see https://forum.nim-lang.org/t/7818 |
17:40:16 | ForumUpdaterBot | New thread by Masiarek2: Python: print(x, end=" ") , see https://forum.nim-lang.org/t/7819 |
17:55:48 | FromDiscord | <dom96> huh, the Vox github repo seems to be gone |
17:55:53 | FromDiscord | <dom96> Is it still a language that exists? |
18:01:58 | FromDiscord | <Anuke> interesting coincidence, I just got recommended the vox repo: <https://github.com/MrSmith33/vox> |
18:05:54 | FromGitter | <bung87> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=607c7502a9dd556843e77052] |
18:06:33 | FromGitter | <bung87> help me correct this, I want convert nsstring to cstring, this not work |
18:11:31 | FromGitter | <bung87> oh, found solution. |
19:17:13 | FromDiscord | <clyybber> In reply to @Anuke "interesting coincidence, I just": huh, I also found it yesterday through xflywinds mention of the compile time benchmarks :D |
19:34:52 | * | vicfred joined #nim |
19:35:41 | * | filcuc joined #nim |
19:39:08 | * | lritter quit (Ping timeout: 265 seconds) |
20:01:13 | FromDiscord | <jtiai> I do get interesting `Error: unhandled exception: semcall.nim(228, 18) ``nArg != nil\`` [AssertionDefect]` error. |
20:07:51 | FromDiscord | <ElegantBeef> What are you doing |
20:08:01 | FromDiscord | <ElegantBeef> Though seems like a compiler assertion |
20:09:37 | FromDiscord | <jtiai> I have no clue. There is no other messages. |
20:16:31 | FromDiscord | <haxscramper> This is a bug |
20:16:48 | FromDiscord | <haxscramper> But try to move generics around this helps sometimes |
20:16:52 | FromDiscord | <haxscramper> (edit) "But try" => "Try" |
20:17:10 | FromDiscord | <haxscramper> One a more serious note - |
20:18:08 | FromDiscord | <haxscramper> it really is an internal compiler assertion that you should not see. You can run `koch temp yourfile.nim` to get full backtrace of compiler invocation |
20:18:25 | FromDiscord | <jtiai> Okay, let's see... |
20:18:35 | * | krux02 quit (Remote host closed the connection) |
20:18:48 | FromDiscord | <jtiai> where I'm supposed to find koch? |
20:19:01 | FromDiscord | <haxscramper> It should be bundled with default installation |
20:19:20 | FromDiscord | <haxscramper> I think |
20:19:44 | FromDiscord | <jtiai> at least powershell doesn't recgonize it. |
20:20:04 | * | krux02 joined #nim |
20:20:30 | FromDiscord | <willyboar> I think is not if you install nim through choosenim |
20:21:29 | FromDiscord | <jtiai> It's there just not in `bin` but root of `nim`-dir. |
20:22:20 | FromDiscord | <jtiai> And it doesn't work. 😦 tries to read something from d:\A... |
20:22:28 | FromDiscord | <haxscramper> You can also clone nim repo and compile it using `./build_all.bat` - it will generate the latest version of the koch too. Though I suppose there should be an easier way around this, I just don't exactly know about |
20:22:28 | FromDiscord | <haxscramper> https://nim-lang.org/docs/intern.html#rebuilding-the-compiler |
20:34:43 | FromDiscord | <jtiai> sent a code paste, see https://paste.rs/8Yh |
20:42:50 | ForumUpdaterBot | New thread by Jrenner: When to use nim.cfg vs config.nims?, see https://forum.nim-lang.org/t/7820 |
20:42:53 | FromDiscord | <haxscramper> Can you share the code btw? |
20:43:09 | FromDiscord | <jtiai> Just a sec, I'll push it to github. |
20:45:11 | FromDiscord | <haxscramper> I also realized that `koch` is not located in `~/.nimble/bin` but instead is placed in `~./choosenim/toolcharins/nim-1.4.4/koch` |
20:47:13 | FromDiscord | <jtiai> <https://github.com/jtiai/nimoric> there it is. |
20:47:42 | FromDiscord | <jtiai> Code actually doesn't do anything when run (or when I was able to run it) |
20:56:16 | FromDiscord | <haxscramper> From what I can tell the compiler somehow manages to fail the type resolution and thinks you have a `kTypeMismatch, kVarNeeded` error, but there are not enough arguments https://github.com/nim-lang/Nim/blob/2ff517462bf8609b30e6134c96658aa7912b628a/compiler/semcall.nim#L212 , so it fails internal assertion. You can try to localize the source of the error using `static: echo "compiled until here"` and file a bug report when you have thi |
20:57:52 | FromDiscord | <haxscramper> About possible causes/fixes - I don't know, but it seems like a strange bug to be honest, because there is not a lot of generics involved (they are known to cause some issues, though I'm yet to run into direct compiler crash) |
21:06:12 | FromDiscord | <jtiai> Yep. That was a bit unexpected... Have to do digging tomorrow. |
21:22:48 | * | Vladar quit (Quit: Leaving) |
21:39:31 | * | hyiltiz quit (Ping timeout: 260 seconds) |
21:44:44 | * | hyiltiz joined #nim |
21:47:33 | ForumUpdaterBot | New Nimble package! minecraft_server_status - Check minecraft server status, see https://github.com/GabrielLasso/minecraft_server_status |
21:51:31 | * | tane quit (Quit: Leaving) |
21:59:03 | ForumUpdaterBot | New thread by Dullbananas: ArrayBuffer, see https://forum.nim-lang.org/t/7821 |
22:11:19 | * | filcuc quit (Quit: Konversation terminated!) |
22:14:11 | * | clyybber quit (Quit: WeeChat 3.1) |
22:26:37 | * | jess joined #nim |
22:42:44 | * | azed joined #nim |
23:20:06 | * | azed quit (Quit: WeeChat 3.1) |