00:01:18 | FromDiscord | <grumblygibson> The answer has something to do with `--dynlibOverride` @jviega if that rings a bell. |
00:05:58 | * | krux02_ joined #nim |
00:08:46 | * | krux02 quit (Ping timeout: 256 seconds) |
00:18:05 | FromDiscord | <morgan> In reply to @morganalyssa "ok so my code": anyone familiar with locks to know what's going on here? |
00:31:32 | FromDiscord | <grumblygibson> @morgan it looks like you're relying on automatic dereferencing for pointer and ref types, which I think is deprecated(?) Try specifying `[]` dereferencing maybe to see if that helps? |
00:33:00 | FromDiscord | <morgan> i have converters for t to changed[t] below this https://media.discordapp.net/attachments/371759389889003532/1222704962237104198/image.png?ex=66172fbb&is=6604babb&hm=75f3355793d46840257f177104e4ba9e96eef39d4eec5038426c4cfce79d0b61& |
00:33:06 | FromDiscord | <morgan> but it's not a pointer |
00:36:47 | FromDiscord | <morgan> oh maybe i should see what the param id is being set to there |
00:41:36 | FromDiscord | <morgan> sent a code paste, see https://play.nim-lang.org/#pasty=yhVvQEPnDMJx |
00:42:01 | FromDiscord | <morgan> and 0 is correct for the slider i clicked on just then |
00:42:16 | FromDiscord | <morgan> so case of ClapID(0) should be correct, right? |
00:42:27 | FromDiscord | <morgan> but i don't think it's getting there |
00:42:33 | FromDiscord | <morgan> idk what's the issue with the locl |
00:42:35 | FromDiscord | <morgan> (edit) "locl" => "lock" |
00:46:53 | FromDiscord | <pri.ivy> sent a code paste, see https://play.nim-lang.org/#pasty=ymohLETOJmUd |
00:47:00 | FromDiscord | <pri.ivy> when I echo the match then it prints some weird stuff |
00:47:07 | FromDiscord | <pri.ivy> (edit) "https://play.nim-lang.org/#pasty=IavmUNfVGfva" => "https://play.nim-lang.org/#pasty=pXASjBOAXbAK" |
00:47:24 | FromDiscord | <pri.ivy> https://nitely.github.io/nim-regex/regex/nfatype.html#RegexMatch2 |
00:47:43 | FromDiscord | <pri.ivy> sent a code paste, see https://play.nim-lang.org/#pasty=KOaXrBMdyEiX |
00:47:48 | FromDiscord | <pri.ivy> ^ thats the shit that it prints |
00:48:12 | FromDiscord | <pri.ivy> im confused, because looking at the docs "captures" seems like where the result would goβ΅but there's nothing there. I know my regex is valid |
00:48:26 | FromDiscord | <pri.ivy> (edit) "https://play.nim-lang.org/#pasty=EztcyUdZoGGr" => "https://play.nim-lang.org/#pasty=KIzaohEdpIHy" |
02:46:39 | * | fallback quit (Ping timeout: 268 seconds) |
02:55:09 | * | fallback joined #nim |
03:02:29 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
03:02:50 | * | SchweinDeBurg joined #nim |
03:12:50 | FromDiscord | <nitely_> sent a code paste, see https://play.nim-lang.org/#pasty=JzLHVndRPYQe |
03:12:52 | FromDiscord | <nitely_> see https://nitely.github.io/nim-regex/regex.html#examples-find-all |
03:13:17 | FromDiscord | <nitely_> ^ @privy |
03:13:36 | FromDiscord | <nitely_> (edit) "@privy" => "@pri.ivy" |
03:16:34 | FromDiscord | <Elegantbeef> Oh damn the bridge was down for a while today |
03:24:34 | FromDiscord | <Robyn [She/Her]> Rup |
03:24:37 | FromDiscord | <Robyn [She/Her]> (edit) "Rup" => "Rip" |
03:33:25 | * | ursa-major quit (Ping timeout: 256 seconds) |
03:36:52 | * | ursa-major joined #nim |
03:43:11 | FromDiscord | <whmsft> I need a bit of help. Though unrelated to nim... |
03:43:52 | FromDiscord | <whmsft> I signed up to matrix using my GitHub account. And now while singing in via Element X android client, it asks for my username and password. What to do? |
03:45:24 | FromDiscord | <Elegantbeef> I've not used elementx but I do know there is supposed to be a thirdparty login method or a fallback method |
04:06:13 | FromDiscord | <patitotective> In reply to @patitotective "I was able to": I tried using `skipDirs = @["minidocx/examples"]` but it still installs it, and I'm not sure if that path is relative to `srcDir`, though using `src/minidocx/examples` didn't work either. I'm just going to let it install everything |
04:07:22 | FromDiscord | <Elegantbeef> https://github.com/beef331/wasm3/blob/master/wasm3.nimble#L9-L10 |
04:07:32 | FromDiscord | <Elegantbeef> Might help given it also uses a submodule and attempts to not pull everything |
04:08:57 | FromDiscord | <patitotective> Thanks :] |
04:47:02 | * | krux02_ quit (Remote host closed the connection) |
06:03:51 | * | rockcavera quit (Remote host closed the connection) |
06:11:23 | * | xet7 quit (Ping timeout: 268 seconds) |
06:23:45 | * | xet7 joined #nim |
06:26:01 | NimEventer | New thread by xTrayambak: Stylus: a CSS3 parser and tokenizer written in pure Nim (and a small update on Ferus), see https://forum.nim-lang.org/t/11310 |
06:35:57 | * | rockcavera joined #nim |
06:36:28 | * | ntat joined #nim |
09:31:31 | FromDiscord | <amigrave> it appears that a change from 1.6 to 2.0 is that the compiler will append a suffix to procedures parameters (eg: `(a_p0, b_p1, c_p2)`), am I right ? How can I prevent this behavior ? I checked the pragma list and could not find it but I might have missed it |
09:36:59 | FromDiscord | <ringabout> In reply to @amigrave "it appears that a": Why do you want to prevent it? It was mangled because it could cause trouble with some C variables. https://github.com/nim-lang/Nim/pull/23396 might help to exportc parameters |
09:39:45 | FromDiscord | <intervinn> is there something else i have to do after doing nimble install and putting a required package in project file, because langserver is fine with dotenv but not with jester https://media.discordapp.net/attachments/371759389889003532/1222842555071332403/image.png?ex=6617afe0&is=66053ae0&hm=3c28ab7b2537900596fbf05830b2496b86a7d903bec24fde2857873ee34f09dd& |
09:40:25 | FromDiscord | <nnsee> In reply to @intervinn "is there something else": try restarting the lsp/editor |
09:40:35 | FromDiscord | <nnsee> it's a bit uh |
09:40:36 | FromDiscord | <nnsee> slow |
09:40:51 | FromDiscord | <intervinn> o yea |
09:40:52 | FromDiscord | <intervinn> its good now |
09:41:16 | FromDiscord | <intervinn> its funny how every time i get to send my problem here it appears to be so easy to fix |
09:51:28 | FromDiscord | <amigrave> sent a code paste, see https://play.nim-lang.org/#pasty=NuYhOOgDaUSP |
10:09:25 | * | pmp-p quit (Ping timeout: 268 seconds) |
10:15:12 | FromDiscord | <ringabout> Well, using backticks on parameters should probably work for this case |
10:15:33 | FromDiscord | <ringabout> sent a code paste, see https://play.nim-lang.org/#pasty=EQvLsfgMddub |
10:20:01 | FromDiscord | <amigrave> sent a code paste, see https://play.nim-lang.org/#pasty=nvfrNlFgbAOX |
10:20:59 | FromDiscord | <ringabout> Isn't it generating the mangled paramters though, I think it should be good enough |
10:21:29 | FromDiscord | <ringabout> sent a code paste, see https://play.nim-lang.org/#pasty=ZZTsqoqCiLhs |
10:21:42 | FromDiscord | <ringabout> sent a code paste, see https://play.nim-lang.org/#pasty=GYZqHlUwDxNH |
10:23:40 | FromDiscord | <amigrave> In reply to @ringabout "Isn't it generating the": OH! My apologies, I messed up my test and put backticks in the nim proc instead of the C emit call, it works perfectly, thanks ! |
10:24:00 | FromDiscord | <ringabout> You are welcome |
10:27:04 | * | pmp-p joined #nim |
11:15:14 | NimEventer | New thread by ggibson: Os:windows but nim puts 'lpthread', see https://forum.nim-lang.org/t/11314 |
11:34:36 | FromDiscord | <fosster> does anyone know what happens if `fromFlatty` proc fails? |
11:35:06 | FromDiscord | <fosster> I mean I saw it shouldn't raise an exception, so what does it return? |
11:36:17 | FromDiscord | <fosster> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/1222871457256837270): does anyone know what happens if `fromFlatty` proc from the flatty lib fails? |
12:50:08 | * | lucasta joined #nim |
13:10:13 | FromDiscord | <kreatoo> Can I make sub-sub-commands in cligen?β΅Likeβ΅`command subcommand1 subcommand2` |
13:18:57 | FromDiscord | <z3ntl3> psshsh |
13:18:58 | FromDiscord | <z3ntl3> pssh |
13:18:59 | FromDiscord | <z3ntl3> phsshsh |
13:19:00 | FromDiscord | <z3ntl3> shshsh |
13:19:01 | FromDiscord | <z3ntl3> psshh |
13:28:42 | FromDiscord | <nnsee> um, can we not? |
13:56:40 | * | krux02 joined #nim |
14:16:44 | FromDiscord | <nasuray> In reply to @kreatoo "Can I make sub-sub-commands": I think so, maybe this test case does what you want https://github.com/c-blake/cligen/blob/master/test/MultMultMult.nim |
14:52:23 | FromDiscord | <myxi> Did anybody try installing Nim and compiling Nim programs using Darling (https://github.com/darlinghq/darling)? Does it work? I have not installed it yet, and if it is known to not work, maybe I can save a couple hours. |
15:11:18 | * | dza quit (Quit: ) |
15:12:24 | Amun-Ra | that's runtime env for programs already compiled |
15:13:02 | Amun-Ra | btw "Please note that most GUI applications will not run at the moment." |
15:13:47 | * | dza joined #nim |
15:22:32 | FromDiscord | <myxi> sent a code paste, see https://play.nim-lang.org/#pasty=CTLagJUsAlIN |
15:22:39 | FromDiscord | <myxi> sent a code paste, see https://play.nim-lang.org/#pasty=scuteeCSkudu |
15:22:53 | FromDiscord | <myxi> sent a code paste, see https://play.nim-lang.org/#pasty=scxxoOpxvtqB |
15:23:03 | FromDiscord | <myxi> sent a code paste, see https://play.nim-lang.org/#pasty=AJGifxskRKqC |
15:23:25 | FromDiscord | <myxi> sent a code paste, see https://play.nim-lang.org/#pasty=cUGTtAgHpuIq |
15:56:35 | * | lucasta quit (Quit: Leaving) |
16:22:46 | Amun-Ra | I presume most simple programs will run |
16:22:52 | Amun-Ra | GUI ones not so much |
16:43:17 | FromDiscord | <whisperecean> I get "can raise an unlisted exception: ref ValueError" what should I do with this error? |
16:43:21 | FromDiscord | <michalkap> sent a code paste, see https://play.nim-lang.org/#pasty=KsWroQTQUnNs |
16:43:32 | FromDiscord | <michalkap> (edit) "https://play.nim-lang.org/#pasty=wsxVALHenNcE" => "https://play.nim-lang.org/#pasty=YIyciQnvRWlS" |
16:43:41 | FromDiscord | <michalkap> (edit) "https://play.nim-lang.org/#pasty=OlORAstEMUXL" => "https://play.nim-lang.org/#pasty=zqyfREMCCNpw" |
16:45:59 | * | SEP quit (Ping timeout: 260 seconds) |
16:48:02 | * | SEP joined #nim |
17:05:20 | FromDiscord | <Robyn [She/Her]> In reply to @whisperecean "I get "can raise": What's your code? |
17:05:29 | FromDiscord | <Robyn [She/Her]> We can't know what issue you're having without code |
17:10:03 | * | rockcavera quit (Remote host closed the connection) |
17:15:42 | * | rockcavera joined #nim |
17:44:27 | Amun-Ra | whisperecean: you have a function/proc with raises pragma, that do not include ValueError - either catch it inside or add ValueError to the list of explicitely stated exceptions |
18:22:41 | FromDiscord | <firasuke> Do we have any forum moderators online right now? I am unable to register π¦ |
18:27:38 | Amun-Ra | hmm, Phil? jviega? (guessing) |
18:55:49 | * | ntat quit (Quit: Leaving) |
19:40:49 | * | SEP quit (Ping timeout: 255 seconds) |
19:43:06 | * | SEP joined #nim |
19:47:49 | NimEventer | New thread by sei: Which Nim Paradigm could I use instead of OOP with Generics and Inheritance?, see https://forum.nim-lang.org/t/11316 |
20:11:45 | FromDiscord | <Phil> Oh, err fair, I'll... honestly have to see. I'll be honest that I've never done that before and for that particular process I don't think we have troubleshooting guides ready |
20:19:46 | FromDiscord | <requiresupport> anyone buy the book mastering nim? need a quick review |
20:41:06 | FromDiscord | <whisperecean> Does anybody use chronos here? |
20:45:22 | * | krux02_ joined #nim |
20:46:29 | FromDiscord | <whisperecean> I use nim-metrics and use the metrics server there but I want to add an additional httpserver (very simple ones) that just acts like a mock. |
20:48:17 | * | krux02 quit (Ping timeout: 268 seconds) |
20:50:23 | FromDiscord | <user2m> In reply to @requiresupport "anyone buy the book": It's good but I wish there was a PDF option. I prefer digital books (better for taking / indexing notes) and the only way to get a digital copy of Mastering Nim is with Kindle...which is an awful app. I use Kindle on desktop and there's no dark mode so it makes it really hard to read. Again good book, there's just no good way to get it IMO |
20:50:32 | FromDiscord | <user2m> In reply to @user2m "It's good but I": Nim in Action is good too |
20:50:54 | FromDiscord | <user2m> In reply to @requiresupport "anyone buy the book": It def helped me understand templates and macros better |
20:55:43 | FromDiscord | <tsoj> The vscode-nim plugin doesn't seem to do autocomplete suggestions. Is there anything I need to configure, except installing the plugin in vscode and having a nim compiler? |
21:27:30 | FromDiscord | <sOkam! π«> does someone know how to add `Header` information to a `std/httpclient post()` call? π€ |
21:29:25 | FromDiscord | <Robyn [She/Her]> In reply to @heysokam "does someone know how": `client.headers = newHttpHeaders({ "Content-Type": "application/json" })` |
21:29:36 | FromDiscord | <Robyn [She/Her]> You have to modify the HttpClient you're using, specifically |
21:32:57 | FromDiscord | <sOkam! π«> In reply to @chronos.vitaqua "You have to modify": epic! tysm! |
21:36:05 | FromDiscord | <Robyn [She/Her]> No worries! |
22:00:30 | FromDiscord | <Robyn [She/Her]> Should I just use QuickJWT instead of spinning up my own minimal token format? |
22:00:59 | FromDiscord | <Robyn [She/Her]> QuickJWT as in the library by treeform |
22:01:03 | FromDiscord | <Robyn [She/Her]> I'm assuming yes |
22:01:27 | FromDiscord | <oope1988> sent a long message, see https://pasty.ee/VQdNwaMZjJlb |
22:02:03 | FromDiscord | <Robyn [She/Her]> In reply to @chronos.vitaqua "Should I just use": My own format would just be `<user id>.<session id>.<timestamp of expiry>` |
22:02:09 | FromDiscord | <Robyn [She/Her]> In reply to @oope1988 "<@524288464422830095>\: Thank you for": <@&371760044473319454> |
22:07:45 | FromDiscord | <Robyn [She/Her]> In reply to @chronos.vitaqua "My own format would": Though this does mean every time someone logs in, I'd have to check the database, but that's what a cache is for, so |
22:09:55 | FromDiscord | <sOkam! π«> @Robyn [She/Her] that pointed me exactly into the right direction. tysm! π |
22:11:34 | FromDiscord | <Robyn [She/Her]> No worried about it! |
22:11:38 | FromDiscord | <Robyn [She/Her]> (edit) "worried" => "worries" |
22:38:54 | NimEventer | New thread by victor_isikwei: I was trying a simple binary search algorithm, what am i doing wrong, see https://forum.nim-lang.org/t/11318 |
22:43:44 | * | krux02_ quit (Remote host closed the connection) |
23:31:08 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
23:31:32 | * | SchweinDeBurg joined #nim |
23:51:27 | termer | Is it possible to get a strong reference to a view of a heap allocated array? |
23:52:17 | termer | Right now I'm building a view type similar to openArray using ptr UncheckedArray, but if the original memory it's pointing at is freed, it'll start referencing garbage if it lives longer than the original data |
23:52:18 | FromDiscord | <Elegantbeef> `ptr T` |
23:52:18 | FromDiscord | <Elegantbeef> π |
23:52:38 | termer | ptr isn't a strong reference from the GC's point of view |
23:52:44 | termer | it's just a weak ref |
23:52:50 | FromDiscord | <Elegantbeef> I know |
23:53:13 | FromDiscord | <Elegantbeef> You'd need to do `(TheRootRef, ptr T)` to keep it alive |
23:53:52 | termer | another question then, is it possible to hoist some stack data into the heap after it dies and update the pointer to that |
23:54:11 | termer | this sounds like a clusterfuck actually |
23:54:23 | termer | this would be a great place to have a lifetime system |
23:54:54 | FromDiscord | <Elegantbeef> Wish for view types to be stable |
23:54:57 | FromDiscord | <Elegantbeef> I think they can I think they can |
23:55:08 | termer | I was using openArray until I ran into a codegen bug |
23:56:10 | FromDiscord | <Elegantbeef> Yep they do that |
23:56:42 | FromDiscord | <Elegantbeef> View types are still way to broken to rely upon sadly, and who knows maybe they'll hit stable before I die π |