<< 28-06-2025 >>

01:08:42*xtr00 quit (Ping timeout: 252 seconds)
01:14:26*xtr00 joined #nim
02:14:12*xtr00 quit (Read error: Connection reset by peer)
02:17:02*xtr00 joined #nim
03:00:11*xtr00 quit (Quit: ZNC 1.9.1 - https://znc.in)
03:05:16*xet7 quit (Remote host closed the connection)
04:15:19*xtr00 joined #nim
04:43:00*nils` quit (Ping timeout: 260 seconds)
04:58:37*xtr00 quit (Read error: Connection reset by peer)
05:41:35FromDiscord<shigumin.> Is there a MVU GUI lib or framework for Nim?
05:43:56*xtr00 joined #nim
05:58:42FromDiscord<TӨMΛ ☠> If struct has boolean field that isn't set in constructor, will it default to true or false?
06:07:13FromDiscord<lainlaylie> if the field doesn't have a default, it will be false
06:07:57FromDiscord<lainlaylie> literature:↵https://nim-lang.org/docs/manual.html#types-default-values-for-object-fields↵https://nim-lang.org/docs/manual.html#statements-and-expressions-var-statement
06:15:28FromDiscord<TӨMΛ ☠> Great, thank you 🙏
06:29:13*nils` joined #nim
07:06:31*skippy8 joined #nim
07:42:57*xet7 joined #nim
07:50:39*redj quit (Ping timeout: 260 seconds)
07:51:14*redj joined #nim
08:01:13*jjido joined #nim
08:10:21FromDiscord<eugaming> the arrays are so unoptimized solved but tbo my goal was learning the syntax https://media.discordapp.net/attachments/371759389889003532/1388431311185903697/image.png?ex=6860f4ec&is=685fa36c&hm=74ed72d7d7cb291a26320223a26dfa85f470f5da8c2a53a091c6c32f69e70df2&
08:15:55Amun-Ra"for i in 1 .. length" is shorter than its countup counterpart, the latter is usually used for steps other than 1
08:18:16FromDiscord<eugaming> thx
08:18:26FromDiscord<eugaming> dont even remember why i didnt use 1..length
08:18:43Amun-Raand if you need non-inclusive end "..<"
08:18:58FromDiscord<eugaming> i think that my brain didnt realize that i can use variables etc in int..int
08:42:30FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=MqgWBXeZ
09:01:02*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
09:04:11FromDiscord<eugaming> In reply to @janakali "> #-- Main ->": is that some kind of magic function?
09:04:26FromDiscord<eugaming> like if {\main}
09:14:01Amun-Raor even something like this: https://play.nim-lang.org/#pasty=YKAJuuUZ
09:14:23Amun-Rayou can't do a few things on a file scope (defer, etc.)
09:15:04Amun-Raeugaming: isMainModule is true if, and only if, you run the file directly; it's false if you import a file
09:32:54FromDiscord<janakali> In reply to @eugaming "like if {\__main__}": `when` is a compile-time `if` `isMainModule` checks if current file is the entry point.↵↵Yep, it's similar to python's `main`, but not as ugly.↵https://nim-lang.org/docs/system.html#isMainModule
09:33:15FromDiscord<janakali> (edit) "`if`" => "`if`; "
09:44:01FromDiscord<eugaming> In reply to @janakali "`when` is a compile-time": oh i read about when thx
09:52:57Amun-Raand that means the code in when block, then the condition is false is removed from the final executable
09:53:16Amun-Ras/then/when/
09:53:53FromDiscord<eugaming> now i get it
09:54:12FromDiscord<eugaming> its acually \main but less ugly
09:55:01Amun-RaI always add an explicit main
09:55:02FromDiscord<eugaming> you also reminded me i sould look into the magic classes already saw one with compiler time and compiler date which is awesome for version control
09:55:10FromDiscord<eugaming> In reply to @Amun-Ra "I always add an": thx i will now too
10:36:24*xet7 quit (Remote host closed the connection)
10:37:58*xet7 joined #nim
11:16:09*andy-turner joined #nim
11:38:05*jjido joined #nim
11:48:02*xet7 quit (Remote host closed the connection)
12:05:29*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
12:08:59*andy-turner quit (Read error: Connection reset by peer)
13:33:40*xet7 joined #nim
13:38:26*nils` quit (Ping timeout: 252 seconds)
13:42:20*amadaluzia joined #nim
14:26:46*amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in)
14:38:12*nils` joined #nim
14:51:59*nils` quit (Ping timeout: 260 seconds)
15:01:17*_________ quit (Ping timeout: 252 seconds)
15:28:15*_________ joined #nim
15:28:18*pmp-p quit (Ping timeout: 245 seconds)
15:31:42*pmp-p joined #nim
15:35:45*beholders_eye quit (Ping timeout: 248 seconds)
16:01:11FromDiscord<gokr> Hey folks, trying to reach guzba but... he doesn't seem to be on this server anymore? Anyone know?
16:13:52FromDiscord<gokr> Sidenote: I am using AugmentCode (free option) and Claude Code (Pro version, which is $20/month) and ... GOD DAMN. I do not know what to say, it writes Nim code brilliantly. All of it. 100%.
16:17:03FromDiscord<gokr> Example: Last night I asked AugmentCode (uses Sonnet internally I suspect) to simply "Add SSE suppor to Mummy". It worked on it while I was chatting with a friend. And yeah, all done.
16:37:05FromDiscord<griffith1deadly> In reply to @gokr "Sidenote: I am using": chatgpt pro (20$) and o3 also good at nim
16:37:38FromDiscord<griffith1deadly> but still using these ai's like just junior
16:37:59FromDiscord<gokr> Last few days I built https://github.com/gokr/nimcp ... 99.9% by Claude Code. It
16:38:12FromDiscord<gokr> It is around 6kloc of Nim code.
17:41:55FromDiscord<choltreppe> can you check if assertions are on inside the code?↵I tried `when defined(assertions)` but that didnt work (which makes sense i guess since its not a `-d:..` define).↵but is there a way?
17:44:09FromDiscord<Elegantbeef> `compileOption("assertions")`
17:51:53*nils` joined #nim
17:59:47*beholders_eye joined #nim
18:21:29FromDiscord<choltreppe> thanks
18:22:25Amun-Racholtreppe: remember you can always use doassert
18:22:59FromDiscord<Elegantbeef> Well depending what you're doing you might want `checks` instead of `assertions` cause one makes more sense
18:25:19*beholders_eye quit (Ping timeout: 260 seconds)
18:37:26Amun-Ramhm
19:36:04*pmp-p quit (Quit: No Ping reply in 180 seconds.)
19:36:17*pmp-p joined #nim
19:41:14*skippy8 quit (Quit: WeeChat 4.6.3)
19:41:40*tiorock joined #nim
19:41:40*tiorock quit (Changing host)
19:41:40*tiorock joined #nim
19:41:40*rockcavera is now known as Guest7344
19:41:40*Guest7344 quit (Killed (molybdenum.libera.chat (Nickname regained by services)))
19:41:40*tiorock is now known as rockcavera
19:43:44*tiorock joined #nim
19:43:44*tiorock quit (Changing host)
19:43:44*tiorock joined #nim
19:43:44*rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services)))
19:43:44*tiorock is now known as rockcavera
20:24:34*beholders_eye joined #nim
21:36:51*jjido joined #nim
23:13:48*jinn6 left #nim (WeeChat 4.6.3)
23:53:43*beholders_eye quit (Ping timeout: 245 seconds)