<< 03-04-2024 >>

00:53:23FromDiscord<Robyn [She/Her]> This is a bizarre issue? https://github.com/Luyten-Orion/Supernovae/actions/runs/8530980439/job/23369770102#step:5:77↵↵Was looking through the tests (they fail locally but I don't have access to my laptop currently) and for some reason, the account in the database has a different ID from the one stored locally? The database has `01HTGKMRT E YWBB32DBR7FVDA7C` (I put spaces around the discrepancy I noticed) while the variable co
00:53:34FromDiscord<Robyn [She/Her]> (edit) "`01HTGKMRTFYWBB32DBR7FVDA7C`" => "`01HTGKMRT F YWBB32DBR7FVDA7C`"
00:55:53FromDiscord<Robyn [She/Her]> https://github.com/Luyten-Orion/Supernovae/blob/main/tests/tsqliterepository.nim#L33 this is the tests and I can't see any obvious issues
00:56:53FromDiscord<Robyn [She/Her]> In reply to @chronos.vitaqua "This is a bizarre": Oh yeah, the 'E' instead of the 'F' means that the timestamp is 1 ms different (if I remember the UNIX timestamp format correctly)
00:58:03*jmdaemon quit (Ping timeout: 272 seconds)
01:40:59*ursa-major quit (Ping timeout: 260 seconds)
01:40:59*mronetwo_ quit (Ping timeout: 260 seconds)
01:42:09*casaca quit (Ping timeout: 255 seconds)
01:43:33*mronetwo joined #nim
01:43:46*ursa-major joined #nim
01:54:46*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
02:25:42*krux02_ quit (Remote host closed the connection)
03:05:09NimEventerNew thread by dwhall256: Invoking a macro from a template?, see https://forum.nim-lang.org/t/11344
03:41:00*SchweinDeBurg joined #nim
04:51:30*ntat joined #nim
05:41:07*advesperacit joined #nim
05:45:20*computerquip quit (Ping timeout: 256 seconds)
05:49:21*computerquip joined #nim
05:50:35FromDiscord<arnetheduck> In reply to @michaelb.eth "not sure if /": we include the mozilla cert store for convenience but apps using chronos/bearssl can choose their own strategy as well (including loading OS stores).. there's room for improvement here though, it's just one thing we haven't gotten to
05:51:05FromDiscord<arnetheduck> (edit) "In reply to @michaelb.eth "not sure if /": we include the mozilla cert store for convenience but apps using chronos/bearssl can choose their own strategy as well (including loading OS stores).. there's room for improvement here though, it's just one thing we haven't gotten to ... " added "- ie it would probably be nice to have some baked-in functionality for getting those OS stores in there"
06:25:41*PMunch joined #nim
06:57:36*PMunch_ joined #nim
07:00:19*PMunch quit (Ping timeout: 255 seconds)
07:09:18*ntat quit (Quit: Leaving)
08:33:27*pmp-p joined #nim
08:56:21*ntat joined #nim
09:26:25FromDiscord<wannabelokesh> sent a long message, see https://pasty.ee/cehUWJrponQp
09:31:31FromDiscord<tapeda> In reply to @wannabelokesh "I just visited the": Check the chrome console, is there an error?
09:32:54FromDiscord<tapeda> Look at the snake program source and see where it is designed to output?
09:45:33*KhazAkar joined #nim
09:49:37FromDiscord<s3cur3th1ssh1t> sent a long message, see https://pasty.ee/axUpzikecerC
10:06:18Amun-RaI wonder whether #pragma comment(linker, "/export:origfunc=newfunc") and #pragma comment(linker, "/export:myfunc=origfunc")
10:06:25Amun-Ra…would work
10:07:40Amun-Raotherwise not without compiling to dll and playing with dlopen
10:09:27Amun-Radynlib*
10:11:35*PMunch_ is now known as PMunch
10:13:38PMunch@wannabelokesh, https://github.com/dom96/snake
10:14:25FromDiscord<s3cur3th1ssh1t> In reply to @Amun-Ra "I wonder whether #pragma": In an emmit block? Or pure nim?
10:17:10Amun-Ras3cur3th1ssh1t: these are msvc pragmas
10:17:22Amun-Raso emmit
10:17:58*ntat quit (Quit: Leaving)
10:19:29NimEventerNew thread by beckx: How to get current loop counter from for loop in a module?, see https://forum.nim-lang.org/t/11346
10:43:38NimEventerNew thread by ninovanhooff: How to use inherited Object type as return type?, see https://forum.nim-lang.org/t/11347
11:19:08FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=jseqxoiBSVVg
11:19:34FromDiscord<s3cur3th1ssh1t> In reply to @Amun-Ra "<@605765004796362820>: these are msvc": Did not work
11:20:10FromDiscord<TӨMΛ ☠> Which is a bit harder for me to grasp, because it doesn't seem to have any `\0` that would allow me to know where it ends↵It has fixed length though, so it's not like I can predetermine bytes that I need to read https://media.discordapp.net/attachments/371759389889003532/1225042154074673182/image.png?ex=661fb069&is=660d3b69&hm=cb98f458040a43a6a00fd307269611b04c3c84b8dcdf386a17ffd8efa3a35779&
11:21:03FromDiscord<TӨMΛ ☠> In example here, BNAM string ends literally where CNAM keyword starts, to my parser includes field name inside string
11:21:19FromDiscord<TӨMΛ ☠> (edit) "to" => "so"
11:21:30FromDiscord<TӨMΛ ☠> (edit) "In example here, BNAM string ends literally where CNAM keyword starts, so my parser includes field name inside ... string" added "previous"
11:22:49FromDiscord<TӨMΛ ☠> Of course I can counter that by checking if CNAM exists in string, but it'd work for single case - not with scaling this to proper parser, where there are various combinations of keywords used (second case where that happens is INDX keyword merging with CNAM string, at the very end of image)
11:23:04FromDiscord<TӨMΛ ☠> (edit) "keyword" => "field"
11:32:51*krux02 joined #nim
11:41:29PMunchThere is probably a size field somewhere for you to read
11:43:40PMunchSo they both seem to be preceded by a number, in this case 14 and 15 (32-bit big endian), and the strings appear to be 24 and 25 characters long respectively
11:43:51PMunchNot sure what's up with that +10 thing though..
11:43:52*ntat joined #nim
12:12:21FromDiscord<TӨMΛ ☠> Thank you so much, that was it exactly 😍
12:12:47FromDiscord<TӨMΛ ☠> I was actually wondering what was that lone byte after each field name, now that makes a lot more sense
12:14:15PMunchHaha, nice. Very common to see length delimited fields like that :)
12:53:42*lucasta joined #nim
13:10:23*PMunch_ joined #nim
13:13:03*PMunch quit (Ping timeout: 260 seconds)
13:41:49*ntat quit (Ping timeout: 246 seconds)
13:42:55*ntat joined #nim
14:16:32*PMunch_ quit (Quit: Leaving)
14:50:13FromDiscord<Robyn [She/Her]> In reply to @chronos.vitaqua "Oh yeah, the 'E'": Still confused about this, on my PC and can't see why this wuld happen
14:54:15FromDiscord<Robyn [She/Her]> Just verified my code for ID generation isn't the issue, it can parse and output IDs as bytes without any fault
15:03:30*lucasta quit (Quit: Leaving)
16:12:05*ntat quit (Quit: Leaving)
16:31:03FromDiscord<wannabelokesh> In reply to @tapeda "Look at the snake": unfortunately, I don't know js and I'm a newbie to nim.
16:58:26*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
17:24:34FromDiscord<Robyn [She/Her]> Oh
17:24:37FromDiscord<Robyn [She/Her]> I'm just stupid
17:24:43FromDiscord<Robyn [She/Her]> I was comparing the wrong ID lmao
17:33:12*om3ga quit (Ping timeout: 260 seconds)
17:38:54FromDiscord<Robyn [She/Her]> Huh, Mummy's routing API feels a bit weird? `/api` and `/api/` are different
17:39:09FromDiscord<Robyn [She/Her]> Which does makes sense, just pretty sure other libraries treat them as the same
17:39:33FromDiscord<Phil> In reply to @chronos.vitaqua "Huh, Mummy's routing API": It's in fact a mixed bag
17:39:45FromDiscord<Phil> A lot of libs treat it as the same, a lot provide options, some require explicitness
17:40:03FromDiscord<Phil> The "technical default" is definitely treating them as separate,
17:40:05FromDiscord<Phil> (edit) "separate," => "separate"
17:40:10FromDiscord<Robyn [She/Her]> Hm fair enough
18:42:45*ntat joined #nim
18:50:48*om3ga joined #nim
18:51:27FromDiscord<cineration> I can't remember how to get the nico game engine to load SDL2.dll on windows. I copied the dll to my project folder after running nicoboot. Anybody have any advice?
18:53:12FromDiscord<cineration> (edit) "" => "I keep getting "could not load: SDL2.dll" when I try to compile."
18:55:53FromDiscord<cineration> Ah, nvm it was my SDL2 version.
18:58:54FromDiscord<.bobbbob> when I do nimble test how can I get it to change the working directory to the tests/ dir so it can load files in that dir?
19:15:19FromDiscord<.bobbbob> figured it out, made a custom task and put a nimscript cd command before doing the nim r command on the files, unless there's a better way to do it?
19:26:34*krux02_ joined #nim
19:26:40*ntat quit (Quit: Leaving)
19:29:01*krux02 quit (Ping timeout: 246 seconds)
19:30:02Amun-Raprovide paths relative to the nim file
19:39:32FromDiscord<solitudesf> In reply to @.bobbbob "when I do nimble": `setCurrentDir getAppDir()`
19:39:53FromDiscord<solitudesf> in the test itself
20:05:44*advesperacit quit ()
20:11:31*GreaseMonkey quit (Remote host closed the connection)
20:15:07FromDiscord<Robyn [She/Her]> Defining endpoints with Mummy right now seems like such a tedious job
20:21:42FromDiscord<saint.___.> What's mummy?
20:21:58FromDiscord<Elegantbeef> Robyn time to make your own router
20:22:26FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Robyn time to make": Don't think I can do that, Mummy's router is probably tightly put into the code :P
20:22:34FromDiscord<Robyn [She/Her]> Might be time to make my own HTTP server though /j
20:22:45FromDiscord<Elegantbeef> `import mummy {.all.}` 😛
20:22:51FromDiscord<Robyn [She/Her]> In reply to @saint.___. "What's mummy?": A HTTP server that uses multi threading instead of async
20:22:53FromDiscord<Elegantbeef> Do not do that
20:23:29FromDiscord<Elegantbeef> What's the tedious part though Robyn?
20:23:48FromDiscord<saint.___.> In reply to @chronos.vitaqua "A HTTP server that": Oh interesting yeah i was just reading
20:23:54FromDiscord<saint.___.> Why are people moving away from async?
20:24:11FromDiscord<saint.___.> Other than wasn't there some issue regarding async and nim 1.6 to 2? Like stuff that used async broke?
20:25:22FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "*Do not do that*": Lmao
20:26:27FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "What's the tedious part": The way you return responses (but I'm pretty sure that's made to be wrapped around in a template or something) and adding endpoints to the router
20:26:44FromDiscord<Robyn [She/Her]> I'm thinking of just making a template that uses a pragma for that
20:29:25FromDiscord<saint.___.> In reply to @saint.___. "Why are people moving": Ok this question in answered in Mummy's readme
20:29:26FromDiscord<saint.___.> https://cdn.discordapp.com/attachments/713760162460074034/906235599231533056/giggle-emote.png
20:41:06FromDiscord<zumi.dxy> how common is it for servers to just defer static file uploads to another server i.e. amazon s3 or minio?↵vs just hosting everything as a single binary and let that one serve directly from the file system
20:41:41FromDiscord<Elegantbeef> Big data is cheap so I imagine very common
20:43:24FromDiscord<Elegantbeef> Getting a server with large storage is way more costly than just using one of the pay as you go storage solutions
20:43:25FromDiscord<zumi.dxy> i saw a thread about how streaming requests can't be done using existing nim web frameworks alone, and that it was an apparent shortcoming of the ecosystem at present
20:44:56FromDiscord<Elegantbeef> Yea I don't talk about servers so this is where I smokebomb out
20:47:11FromDiscord<zumi.dxy> "you wish to do everything in $NEWLANG but infrastructure is not sexy so you couldn't"
20:48:05FromDiscord<Elegantbeef> I always just say "be the change you want in the world" and grin
20:48:42FromDiscord<zumi.dxy> true↵but i've been burnt out by it many times
20:49:35FromDiscord<zumi.dxy> i always say that to myself but ultimately get angry because oftentimes i either don't have the time, can't figure something out, or flat-out lose interest before not too long
20:50:10FromDiscord<zumi.dxy> but that saying frequently drives what I do
20:50:47FromDiscord<zumi.dxy> I think it's especially frustrating if what you want in the world involves other people
20:51:20FromDiscord<Elegantbeef> Everyone always complains about language ecosystems when there is lacking specific libraries, very few spend the time to expand the libraries
20:51:52FromDiscord<zumi.dxy> you can try to be the change but ultimately no one's gonna care if you don't go through the right channels
20:52:13FromDiscord<zumi.dxy> yeah again that's true but interest is key
21:08:28FromDiscord<Robyn [She/Her]> How does the `async` pragma change the name of a function to be `functionName (Async)`? Beef, would you know? :p
21:09:42FromDiscord<Elegantbeef> What do you mean?
21:11:35FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=nDowJFYmpwBr
21:12:44FromDiscord<Robyn [She/Her]> https://media.discordapp.net/attachments/371759389889003532/1225191277092409374/image.png?ex=66203b4b&is=660dc64b&hm=1d6d64b718392b58a12c2e790620381030ec93ea611342e746cbe62ac55b8003&
21:13:19FromDiscord<Robyn [She/Her]> But then this hasn't changed https://media.discordapp.net/attachments/371759389889003532/1225191425399066624/image.png?ex=66203b6e&is=660dc66e&hm=d139b0f7fed4b3a9bc3a4493f2fa556e4994bbb5d0856f6ba2da2527b6fc3c43&
21:14:36FromDiscord<Elegantbeef> Right cause Nim wraps the procedure body inside of a closure
21:15:26FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=fdXSHGFFTkJA
21:15:33FromDiscord<Elegantbeef> `--expandMacro: async`
21:17:41FromDiscord<Robyn [She/Her]> Aaah okay thanks!
21:28:46FromDiscord<sOkam! 🫐> In reply to @chronos.vitaqua "": #dracula 🩷💚💜
21:31:26FromDiscord<Robyn [She/Her]> In reply to @heysokam "#dracula 🩷💚💜": It's great!
22:10:15FromDiscord<michaelb.eth> Zenburn 4 evah!
22:16:54FromDiscord<Robyn [She/Her]> `Zenburn Dark Matter Theme` is looking nice 👀
22:23:40FromDiscord<michaelb.eth> never seen that variant, interesting, though I can't use dark themes, find them offputting
22:29:49FromDiscord<Robyn [She/Her]> Fair
23:42:42*SchweinDeBurg joined #nim