<< 24-10-2025 >>

00:15:54*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
00:19:52*SchweinDeBurg joined #nim
00:28:51*rockcavera joined #nim
01:07:40*cjaburto joined #nim
01:08:24*cjaburto left #nim (WeeChat 4.7.1)
01:14:25*krunsh joined #nim
01:19:37*krunsh left #nim (WeeChat 4.7.1)
01:22:18*krunsh joined #nim
01:25:41*krunsh left #nim (WeeChat 4.7.1)
01:32:45*krunsh joined #nim
01:36:24*krunsh quit (Quit: WeeChat 4.7.1)
01:41:54*krunsh joined #nim
02:50:13*rockcavera quit (Remote host closed the connection)
03:21:48*void09_ is now known as void09
03:51:17*krunsh quit (Quit: WeeChat 4.7.1)
06:37:50*ainema joined #nim
06:38:41*ainema left #nim (#nim)
06:42:50*kubrat joined #nim
07:00:13*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
08:20:00*SchweinDeBurg joined #nim
08:33:32*beholders_eye joined #nim
08:38:56*SchweinDeBurg quit (Ping timeout: 256 seconds)
08:40:55*SchweinDeBurg joined #nim
08:45:28*SchweinDeBurg quit (Ping timeout: 260 seconds)
08:47:08*SchweinDeBurg joined #nim
08:54:44*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
08:55:19*kubrat quit (Quit: Client closed)
08:59:43*beholders_eye quit (Ping timeout: 240 seconds)
09:27:21*beholders_eye joined #nim
10:09:31FromDiscord<shigumin.> Is there exists a dedicated channel to ask newbie questions about Nim?
10:16:46FromDiscord<leorize> you're already in it
10:55:55*kubrat joined #nim
11:05:24FromDiscord<shigumin.> sent a code paste, see https://play.nim-lang.org/#pasty=ZHhJkQhA
11:07:15FromDiscord<shigumin.> Tried to rewrite code several times, but no luck :(
11:20:51FromDiscord<Laylie> `ref` is a keyword that you put in front of type names to make the ref version of them, but you're trying to use it on a value
11:21:11FromDiscord<Laylie> newNode already returns a ref Node[T]
11:23:45FromDiscord<Laylie> Node is already a ref object, so you can remove most of your other uses of `ref`. also you're trying to use object initialization syntax for named arguments
11:26:22FromDiscord<amun0666> And you don't even to use explicit type: var n = newNode(val=2, prev= nil, next= nil)
11:26:38FromDiscord<amun0666> (edit) "And you don't even ... to" added "need"
11:58:13*beholders_eye quit (Ping timeout: 264 seconds)
12:08:10*SchweinDeBurg joined #nim
12:19:19*kubrat quit (Quit: Client closed)
12:29:21*_________ quit (Ping timeout: 250 seconds)
12:31:25*_________ joined #nim
12:42:37*beholders_eye joined #nim
15:24:40*thisago joined #nim
15:24:54thisagoHello guys!
15:27:02Amun-Ramorning
15:28:40thisago First time at IRC, nothing better than say hi to the Nim community :)
15:29:06Amun-Rait's a good start ;)
15:33:32thisagoThanks for your time, see you soon!
15:36:01Amun-Rahappy nim programming :)
15:38:17thisagoTnx!
15:44:28FromDiscord<kiloneie> Man, i can't wait for Nimony and this: https://github.com/metacraft-labs/codetracer?tab=readme-ov-file#introduction to have Nim support.
15:45:46Amun-Ralooks interesting, thanks for the link
15:46:59*thisago quit (Quit: #some-unknown-channel-for-testing-without-struggle/)
15:49:04FromDiscord<heysokam> Does `uchar` exist, similar to `char`?↵I know about `cuchar`, but I don't know if the nim native `uchar` is a thing 🤔
15:49:20Amun-Rabyte is
15:49:36Amun-Racuchar is just a C's unsigned char reflecting type
15:49:42FromDiscord<heysokam> ah good point, forgot about `byte`
15:50:08Amun-Ra…and deprecated, use byte/uint8 instead of cuchar
15:51:57FromDiscord<heysokam> Good to know, ty.↵I'm creating a random code generator, to cover all valid syntax, so I'll keep it around just for completion
15:53:23FromDiscord<leorize> no, because nim char is unsigned
15:53:24FromDiscord<leorize> or rather, char is not a fancy integer in nim
15:54:34FromDiscord<heysokam> In reply to @leorize "or rather, char is": can you elaborate a little bit on the distinction?
15:54:35*hygo quit (Quit: WeeChat 4.6.3)
15:55:36Amun-Rachar represents ascii character, if you need a type to store 8-bit values use int8/uint8 (aka byte)
15:58:03FromDiscord<leorize> ^ pretty much that
15:58:12Amun-RaC does not have that distinction
15:58:47Amun-Rayou couldn't even pass char as an argument in good old days, that's why %c still accepts an int
16:00:27FromDiscord<heysokam> oh, so `char` is type restricted to ascii chars? I see, makes sense
16:00:58FromDiscord<leorize> they're not
16:01:16Amun-RaI should have said 'characters'
16:01:25*Amun-Ra stares at string type
16:01:25FromDiscord<leorize> char can store any 8-bit values, regardless of whether it's ascii
16:02:04*beholders_eye quit (Ping timeout: 256 seconds)
16:04:38FromDiscord<kiloneie> The amount of walls hit, due to recursive dependencies D:...
16:07:33FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=sQzfPUkQ
16:12:45FromDiscord<leorize> it's not free, though
16:19:36FromDiscord<heysokam> wdym?
16:28:59*krunsh joined #nim
16:37:34*redj quit (Ping timeout: 255 seconds)
16:38:31*redj joined #nim
16:51:15FromDiscord<kiloneie> Fake gods, this was tiring D:...
17:55:58*redj quit (Ping timeout: 256 seconds)
17:56:08*ttkap quit (Ping timeout: 260 seconds)
18:02:24*beholders_eye joined #nim
18:02:52krunshwhy do you think nim is so underrated?
18:05:00*ttkap joined #nim
18:08:51krunshi something about araq ? i dont getit
18:15:10FromDiscord<mitranim> My assumption is most programmers are unable to appreciate the ways in which Nim is better than various Blubs
18:15:26FromDiscord<mitranim> (edit) "Blubs" => "[Blubs](<https://paulgraham.com/avg.html>)"
18:33:37*Mister_Magister quit (Ping timeout: 264 seconds)
18:38:46FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=aYurmnGJ
18:39:27krunshdamn! that article was deep, thanks!
18:44:59FromDiscord<TӨMΛ ☠> In reply to @mitranim "My assumption is most": I remember so many people saying Nim isn't for them purely because "no brackets" lol
18:45:59FromDiscord<TӨMΛ ☠> But it's also quite fun to think so many programmers throwing all their love towards AI the second it came out, quite unusual for conservative mindset↵It does feel funny with me being exact reverse - love jumping from lang to lang, but I swear to god I will never want to have AI code my apps
18:46:17FromDiscord<TӨMΛ ☠> (edit) "mindset↵It" => "mindset the article kinda talks upon↵It"
18:46:27FromDiscord<TӨMΛ ☠> (edit) "upon↵It" => "upon (conservative in terms of habits ofc)↵It"
18:46:52FromDiscord<nervecenter> In reply to @krunsh "why do you think": For one, Go and Rust have marketing budgets. For two, wherever the community zeitgeist of the Javascript world lurches gets slammed with tons of momentum, which I think Rust and Zig benefitted from. For three, yes, trivial non-issues like style insensitivity and indent-delimiting enrage a common type of programmer who cares very deeply about those things.
18:53:37FromDiscord<nervecenter> sent a long message, see https://pasty.ee/nJEVZDeU
18:54:18FromDiscord<nervecenter> (edit) "https://pasty.ee/JpRvHvsl" => "https://pasty.ee/saZBdJyn"
18:57:35FromDiscord<Elegantbeef> @TӨMΛ ☠ `Example = ref object`
19:06:56krunshyeah i was thinking about that, you know rust hype or whatever, i mean maybe its a marketing thing ... but why??
19:23:55*Mister_Magister joined #nim
19:36:10*redj joined #nim
19:52:30*redj quit (Read error: Connection reset by peer)
19:53:00*redj joined #nim
20:14:47krunshi mean, can be just money right?
20:16:41krunshim rewrittin from go, and it has been so damn fun XD.
20:18:12FromDiscord<TӨMΛ ☠> In reply to @Elegantbeef "<@656540400546480128> `Example = ref": Would this follow with `examples: seq[ref Example]` for the two next objects?
20:20:25FromDiscord<TӨMΛ ☠> It's quite confusing to me where exactly which thing should be used/done to work correctly :owo:
20:24:17FromDiscord<Elegantbeef> No cause the object is already a pointer
20:24:24FromDiscord<Elegantbeef> So you don't need to have a `ref ref Example`
21:03:37*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
21:04:25*Lord_Nightmare joined #nim
21:35:14*zgasma joined #nim
21:35:43*zgasma quit (Client Quit)
21:35:54*zgasma joined #nim
21:44:38*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
21:46:13*vsantana quit (Ping timeout: 264 seconds)
21:47:10*Lord_Nightmare joined #nim
22:29:12*ftajhii joined #nim
22:42:12FromDiscord<lousp4521> hey
22:48:48FromDiscord<.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=cSIGozcN
23:43:36FromDiscord<.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=UOrlbwUa
23:44:22FromDiscord<.tokyovigilante> (edit) "https://play.nim-lang.org/#pasty=oUyGmTQU" => "https://play.nim-lang.org/#pasty=kRSiGfQN"
23:55:34*beholders_eye quit (Ping timeout: 246 seconds)