<< 14-09-2024 >>

00:47:31*Guest61 joined #nim
00:48:22*Guest61 quit (Client Quit)
01:42:25*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
02:17:50*albe6 joined #nim
02:19:49*albe quit (Ping timeout: 252 seconds)
02:19:49*albe6 is now known as albe
02:22:39*alexdaguy joined #nim
02:30:13FromDiscord<xkonti> sent a code paste, see https://play.nim-lang.org/#pasty=rOdUHIbj
02:53:58FromDiscord<Elegantbeef> @xkonti I imagine it's due to it being an async which turns it into an closure iterator it's the same as `openArray` so it cannot safely capture it
02:55:42FromDiscord<xkonti> In reply to @Elegantbeef "<@244832576215318528> I imagine it's": Thanks! Makes sense, and it's truly unfortunate. One viewer found this issue: https://github.com/nim-lang/Nim/issues/7831 which says exactly the same thing.
03:04:28FromDiscord<Elegantbeef> You can wrap it in a proc that then does `@`
03:05:30FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=IUlysdOc
03:52:01*major0 quit (Quit: major0)
03:55:59*major0 joined #nim
05:03:34*alexdaguy quit (Quit: WeeChat 4.4.2)
05:28:33FromDiscord<xkonti> sent a code paste, see https://play.nim-lang.org/#pasty=HVJYOCpm
05:59:11FromDiscord<albassort> In reply to @xtrayambak "Are my function names": i bet i cNo
05:59:15FromDiscord<albassort> (edit) "i bet i cNo" => "no"
05:59:42FromDiscord<albassort> long names are ok dont let the nerds here peer pressure you into more ambiguous code
06:03:15FromDiscord<albassort> in an ideal world, your imo your functions should follow a standardized sentence structure, and be descriptive of the task you want to undergo. E.g SVO for English, The Man Walks The Dog. newJSONObject
06:03:32FromDiscord<Elegantbeef> Well it's not really nerds to suggest using a distinct type so then it's just `.toUtf...`
06:03:43FromDiscord<albassort> you call newJSONObject because you want to make a new json object, and you infer its name from SVO
06:03:48FromDiscord<Elegantbeef> You should be using distinct types anyway cause `string` can easily add data to
06:04:13FromDiscord<albassort> don't let these nerds bully you into writing safe code
06:04:38FromDiscord<albassort> never forget your root and where you come from, it all goes to Machine Code >:) /s
06:11:08FromDiscord<zumi.dxy> me when I need to `{.borrow.}`
06:14:57FromDiscord<Elegantbeef> You act like a `Utf32` string should have any of the built in string types
06:14:57FromDiscord<Elegantbeef> string ops\
06:14:58FromDiscord<Elegantbeef> All of them are quite literally the worst
06:16:09FromDiscord<Elegantbeef> @Robyn [She/Her] you don't by any chance have a config to cross compile on a x86 for an arm linux device do you?
06:32:49FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "<@524288464422830095> you don't by": With Zig?
06:32:59FromDiscord<Robyn [She/Her]> Not on me but I can whip one up
06:33:29FromDiscord<Elegantbeef> Well with zig or gcc I was not picky
06:36:23FromDiscord<Robyn [She/Her]> `nim c --os:linux --cpu:arm64 --passC:"-target aarch64-linux" --passL:"-target aarch6↵4-linux" main.nim`
06:36:44FromDiscord<Robyn [She/Her]> There ya go Beef
06:36:59FromDiscord<Robyn [She/Her]> google could've gotten you the same answer :P
06:38:10FromDiscord<Elegantbeef> Actually I do not think gcc requires a config
06:38:11FromDiscord<Elegantbeef> I was just asking if you had a config
06:39:16FromDiscord<Elegantbeef> Well thanks anyway, don't need a config whatsoever and my game works on my pixel3a 😄
06:40:21FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Actually I do not": wdym?
06:40:38FromDiscord<Elegantbeef> `--cpu:arm64` is all gcc needs it seems
06:41:49FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "`--cpu:arm64` is all gcc": ...huh, sounds like Nim is doing something then
06:50:28FromDiscord<Elegantbeef> no that the screenshot app isn't in the way
06:50:29FromDiscord<Elegantbeef> But damn
06:50:29FromDiscord<Elegantbeef> image.png https://media.discordapp.net/attachments/371759389889003532/1284405897526775860/image.png?ex=66e683b5&is=66e53235&hm=e07ec765d25e8cf8cc607c729b4e5ee9f630001408bc88b7703c5d2c34223e15&
06:50:37FromDiscord<Elegantbeef> Just running a compile and transfering it over, I really like droidian 😄
06:50:48FromDiscord<Elegantbeef> Phosh really out to troll
06:58:04FromDiscord<odexine> thats a horrible screenshot tool
06:58:15FromDiscord<Elegantbeef> It is indeed
07:17:23*lumidify_ is now known as lumidify
07:20:01*mal`` quit (Quit: Leaving)
07:38:03*mal`` joined #nim
07:53:45FromDiscord<krissh.wtf> websites like these should not exist https://media.discordapp.net/attachments/371759389889003532/1284421817041162250/image.png?ex=66e69288&is=66e54108&hm=34100ee75e294506f8f8d504551696fad1e73231cf163af2690195d3c7dc1300&
08:14:08FromDiscord<morgan (ping with reply)> an update on my logging macros, it looks much nicer now with colors and glenums converted to strings. tomorrow i'll work on show values after the call (return and typed pointers) https://media.discordapp.net/attachments/371759389889003532/1284426946595393627/image.png?ex=66e6974f&is=66e545cf&hm=49e0e46c4caa35b0ca2198459f8a096fd4554bd9458f2d2a7aba52a7cae749f3&
08:24:08*ntat joined #nim
09:09:43FromDiscord<Robyn [She/Her]> Hey @griffith1deadly did you ever implement encryption for Minecraft?
09:10:08FromDiscord<Robyn [She/Her]> Stuck tryna implement https://wiki.vg/Protocol_Encryption, since I've never messed with cryptography much
09:42:55FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "Hey <@620135501201932300> did you": sorry no
09:44:06FromDiscord<Robyn [She/Her]> Thanks anyway ^^
09:48:01FromDiscord<griffith1deadly> im just bad with ssl
09:57:16FromDiscord<Robyn [She/Her]> No sweat
11:33:29*ryuukk quit (Remote host closed the connection)
11:35:20*xet7 joined #nim
11:37:13*ryuukk joined #nim
12:36:26*beholders_eye joined #nim
12:46:42*ntat_ joined #nim
12:46:59*ntat quit (Ping timeout: 260 seconds)
12:48:00*ntat_ is now known as ntat
13:10:47*ryuukk quit (Remote host closed the connection)
13:18:07*ryuukk joined #nim
14:26:27*major0 quit (Quit: major0)
14:27:11*coldfeet joined #nim
14:43:40*xet7 quit (Remote host closed the connection)
15:00:57*ntat quit (Quit: Leaving)
16:06:09*ntat joined #nim
16:07:38*ntat quit (Client Quit)
16:10:26*xet7 joined #nim
16:58:24*beholders_eye quit (Ping timeout: 260 seconds)
17:16:42*SchweinDeBurg quit (Ping timeout: 252 seconds)
17:17:00*SchweinDeBurg joined #nim
17:20:44*coldfeet quit (Ping timeout: 252 seconds)
17:21:01*coldfeet joined #nim
19:17:54FromDiscord<arathanis> Is there a library for dynamic string formatting? `std/strformat` requires static strings.
19:18:34FromDiscord<Elegantbeef> strutils `%`
19:19:07FromDiscord<arathanis> thanks beef, I totally missed this one
19:19:10*Artea joined #nim
19:22:42*beholders_eye joined #nim
19:43:19*beholders_eye quit (Ping timeout: 264 seconds)
20:08:45FromDiscord<.bobbbob> If I have a recursive function with a table as a parameter (not a tablreRef), does it copy the whole table every call?
20:14:05FromDiscord<Elegantbeef> Nope Nim parameters are immutable so deep copies are not required
20:16:45FromDiscord<.bobbbob> kewl
20:17:50FromDiscord<.bobbbob> still gonna have to convert it to a loop eventually anyways cuz I keep getting stack overflows but good to know
20:59:02FromDiscord<Elegantbeef> @.bobbbob clearly you just manually do TCO and cry 😄
21:05:50*coldfeet quit (Remote host closed the connection)
21:34:18*lucasta joined #nim
21:38:17*beholders_eye joined #nim
22:14:04*cm_ joined #nim
22:14:33*cm quit (Ping timeout: 244 seconds)
22:14:33*cm_ is now known as cm
22:45:01*beholders_eye quit (Read error: Connection reset by peer)
22:50:40*beholders_eye joined #nim
23:27:28*xet7 quit (Remote host closed the connection)
23:59:58*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)