<< 28-03-2024 >>

00:01:18FromDiscord<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:05FromDiscord<morgan> In reply to @morganalyssa "ok so my code": anyone familiar with locks to know what's going on here?
00:31:32FromDiscord<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:00FromDiscord<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:06FromDiscord<morgan> but it's not a pointer
00:36:47FromDiscord<morgan> oh maybe i should see what the param id is being set to there
00:41:36FromDiscord<morgan> sent a code paste, see https://play.nim-lang.org/#pasty=yhVvQEPnDMJx
00:42:01FromDiscord<morgan> and 0 is correct for the slider i clicked on just then
00:42:16FromDiscord<morgan> so case of ClapID(0) should be correct, right?
00:42:27FromDiscord<morgan> but i don't think it's getting there
00:42:33FromDiscord<morgan> idk what's the issue with the locl
00:42:35FromDiscord<morgan> (edit) "locl" => "lock"
00:46:53FromDiscord<pri.ivy> sent a code paste, see https://play.nim-lang.org/#pasty=ymohLETOJmUd
00:47:00FromDiscord<pri.ivy> when I echo the match then it prints some weird stuff
00:47:07FromDiscord<pri.ivy> (edit) "https://play.nim-lang.org/#pasty=IavmUNfVGfva" => "https://play.nim-lang.org/#pasty=pXASjBOAXbAK"
00:47:24FromDiscord<pri.ivy> https://nitely.github.io/nim-regex/regex/nfatype.html#RegexMatch2
00:47:43FromDiscord<pri.ivy> sent a code paste, see https://play.nim-lang.org/#pasty=KOaXrBMdyEiX
00:47:48FromDiscord<pri.ivy> ^ thats the shit that it prints
00:48:12FromDiscord<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:26FromDiscord<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:50FromDiscord<nitely_> sent a code paste, see https://play.nim-lang.org/#pasty=JzLHVndRPYQe
03:12:52FromDiscord<nitely_> see https://nitely.github.io/nim-regex/regex.html#examples-find-all
03:13:17FromDiscord<nitely_> ^ @privy
03:13:36FromDiscord<nitely_> (edit) "@privy" => "@pri.ivy"
03:16:34FromDiscord<Elegantbeef> Oh damn the bridge was down for a while today
03:24:34FromDiscord<Robyn [She/Her]> Rup
03:24:37FromDiscord<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:11FromDiscord<whmsft> I need a bit of help. Though unrelated to nim...
03:43:52FromDiscord<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:24FromDiscord<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:13FromDiscord<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:22FromDiscord<Elegantbeef> https://github.com/beef331/wasm3/blob/master/wasm3.nimble#L9-L10
04:07:32FromDiscord<Elegantbeef> Might help given it also uses a submodule and attempts to not pull everything
04:08:57FromDiscord<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:01NimEventerNew 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:31FromDiscord<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:59FromDiscord<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:45FromDiscord<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:25FromDiscord<nnsee> In reply to @intervinn "is there something else": try restarting the lsp/editor
09:40:35FromDiscord<nnsee> it's a bit uh
09:40:36FromDiscord<nnsee> slow
09:40:51FromDiscord<intervinn> o yea
09:40:52FromDiscord<intervinn> its good now
09:41:16FromDiscord<intervinn> its funny how every time i get to send my problem here it appears to be so easy to fix
09:51:28FromDiscord<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:12FromDiscord<ringabout> Well, using backticks on parameters should probably work for this case
10:15:33FromDiscord<ringabout> sent a code paste, see https://play.nim-lang.org/#pasty=EQvLsfgMddub
10:20:01FromDiscord<amigrave> sent a code paste, see https://play.nim-lang.org/#pasty=nvfrNlFgbAOX
10:20:59FromDiscord<ringabout> Isn't it generating the mangled paramters though, I think it should be good enough
10:21:29FromDiscord<ringabout> sent a code paste, see https://play.nim-lang.org/#pasty=ZZTsqoqCiLhs
10:21:42FromDiscord<ringabout> sent a code paste, see https://play.nim-lang.org/#pasty=GYZqHlUwDxNH
10:23:40FromDiscord<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:00FromDiscord<ringabout> You are welcome
10:27:04*pmp-p joined #nim
11:15:14NimEventerNew thread by ggibson: Os:windows but nim puts 'lpthread', see https://forum.nim-lang.org/t/11314
11:34:36FromDiscord<fosster> does anyone know what happens if `fromFlatty` proc fails?
11:35:06FromDiscord<fosster> I mean I saw it shouldn't raise an exception, so what does it return?
11:36:17FromDiscord<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:13FromDiscord<kreatoo> Can I make sub-sub-commands in cligen?↡Like↡`command subcommand1 subcommand2`
13:18:57FromDiscord<z3ntl3> psshsh
13:18:58FromDiscord<z3ntl3> pssh
13:18:59FromDiscord<z3ntl3> phsshsh
13:19:00FromDiscord<z3ntl3> shshsh
13:19:01FromDiscord<z3ntl3> psshh
13:28:42FromDiscord<nnsee> um, can we not?
13:56:40*krux02 joined #nim
14:16:44FromDiscord<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:23FromDiscord<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:24Amun-Rathat's runtime env for programs already compiled
15:13:02Amun-Rabtw "Please note that most GUI applications will not run at the moment."
15:13:47*dza joined #nim
15:22:32FromDiscord<myxi> sent a code paste, see https://play.nim-lang.org/#pasty=CTLagJUsAlIN
15:22:39FromDiscord<myxi> sent a code paste, see https://play.nim-lang.org/#pasty=scuteeCSkudu
15:22:53FromDiscord<myxi> sent a code paste, see https://play.nim-lang.org/#pasty=scxxoOpxvtqB
15:23:03FromDiscord<myxi> sent a code paste, see https://play.nim-lang.org/#pasty=AJGifxskRKqC
15:23:25FromDiscord<myxi> sent a code paste, see https://play.nim-lang.org/#pasty=cUGTtAgHpuIq
15:56:35*lucasta quit (Quit: Leaving)
16:22:46Amun-RaI presume most simple programs will run
16:22:52Amun-RaGUI ones not so much
16:43:17FromDiscord<whisperecean> I get "can raise an unlisted exception: ref ValueError" what should I do with this error?
16:43:21FromDiscord<michalkap> sent a code paste, see https://play.nim-lang.org/#pasty=KsWroQTQUnNs
16:43:32FromDiscord<michalkap> (edit) "https://play.nim-lang.org/#pasty=wsxVALHenNcE" => "https://play.nim-lang.org/#pasty=YIyciQnvRWlS"
16:43:41FromDiscord<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:20FromDiscord<Robyn [She/Her]> In reply to @whisperecean "I get "can raise": What's your code?
17:05:29FromDiscord<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:27Amun-Rawhisperecean: 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:41FromDiscord<firasuke> Do we have any forum moderators online right now? I am unable to register 😦
18:27:38Amun-Rahmm, 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:49NimEventerNew 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:45FromDiscord<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:46FromDiscord<requiresupport> anyone buy the book mastering nim? need a quick review
20:41:06FromDiscord<whisperecean> Does anybody use chronos here?
20:45:22*krux02_ joined #nim
20:46:29FromDiscord<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:23FromDiscord<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:32FromDiscord<user2m> In reply to @user2m "It's good but I": Nim in Action is good too
20:50:54FromDiscord<user2m> In reply to @requiresupport "anyone buy the book": It def helped me understand templates and macros better
20:55:43FromDiscord<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:30FromDiscord<sOkam! 🫐> does someone know how to add `Header` information to a `std/httpclient post()` call? πŸ€”
21:29:25FromDiscord<Robyn [She/Her]> In reply to @heysokam "does someone know how": `client.headers = newHttpHeaders({ "Content-Type": "application/json" })`
21:29:36FromDiscord<Robyn [She/Her]> You have to modify the HttpClient you're using, specifically
21:32:57FromDiscord<sOkam! 🫐> In reply to @chronos.vitaqua "You have to modify": epic! tysm!
21:36:05FromDiscord<Robyn [She/Her]> No worries!
22:00:30FromDiscord<Robyn [She/Her]> Should I just use QuickJWT instead of spinning up my own minimal token format?
22:00:59FromDiscord<Robyn [She/Her]> QuickJWT as in the library by treeform
22:01:03FromDiscord<Robyn [She/Her]> I'm assuming yes
22:01:27FromDiscord<oope1988> sent a long message, see https://pasty.ee/VQdNwaMZjJlb
22:02:03FromDiscord<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:09FromDiscord<Robyn [She/Her]> In reply to @oope1988 "<@524288464422830095>\: Thank you for": <@&371760044473319454>
22:07:45FromDiscord<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:55FromDiscord<sOkam! 🫐> @Robyn [She/Her] that pointed me exactly into the right direction. tysm! πŸ™
22:11:34FromDiscord<Robyn [She/Her]> No worried about it!
22:11:38FromDiscord<Robyn [She/Her]> (edit) "worried" => "worries"
22:38:54NimEventerNew 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:27termerIs it possible to get a strong reference to a view of a heap allocated array?
23:52:17termerRight 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:18FromDiscord<Elegantbeef> `ptr T`
23:52:18FromDiscord<Elegantbeef> πŸ˜„
23:52:38termerptr isn't a strong reference from the GC's point of view
23:52:44termerit's just a weak ref
23:52:50FromDiscord<Elegantbeef> I know
23:53:13FromDiscord<Elegantbeef> You'd need to do `(TheRootRef, ptr T)` to keep it alive
23:53:52termeranother question then, is it possible to hoist some stack data into the heap after it dies and update the pointer to that
23:54:11termerthis sounds like a clusterfuck actually
23:54:23termerthis would be a great place to have a lifetime system
23:54:54FromDiscord<Elegantbeef> Wish for view types to be stable
23:54:57FromDiscord<Elegantbeef> I think they can I think they can
23:55:08termerI was using openArray until I ran into a codegen bug
23:56:10FromDiscord<Elegantbeef> Yep they do that
23:56:42FromDiscord<Elegantbeef> View types are still way to broken to rely upon sadly, and who knows maybe they'll hit stable before I die πŸ˜„