<< 16-07-2025 >>

00:02:55FromDiscord<spotlightkid> @.bobbbob\: paste full error to a paste site and post link.
01:07:10FromDiscord<.bobbbob> looks like I needed libm, compiling with `nim c --passL:-lm example.nim` works @spotlightkid @pmunch
02:37:43FromDiscord<zectbumo> is anyone else bothered that redis hGetAll returns a sequence of strings?↵https://github.com/nim-lang/redis/blob/master/src/redis.nim#L664
03:19:01*rockcavera quit (Remote host closed the connection)
05:15:19*perr_ quit (Ping timeout: 260 seconds)
05:50:15FromDiscord<lainlaylie> should probably be a seq[tuple[field, value: string]] like hMSet
06:15:56*cornfeedhobo quit (Server closed connection)
06:20:40*cornfeedhobo joined #nim
06:31:46*skippy8 joined #nim
06:49:18FromDiscord<Zjfc> In reply to @determiedmech1 "nixos moment": Ok based on my experience ↵Languages start with the letter N are the hardest
06:54:13FromDiscord<morgan (ping with reply)> sent a code paste, see https://play.nim-lang.org/#pasty=Rwshawex
07:01:35FromDiscord<pmunch> In reply to @.bobbbob "looks like I needed": Which compiler do you use? I thought Nim added `-lm` automatically 🤔
07:03:19FromDiscord<.bobbbob> In reply to @pmunch "Which compiler do you": gcc 12 on debian 🤷‍♂️
07:10:35*SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev)
07:12:32*SchweinDeBurg joined #nim
07:21:29*perro joined #nim
07:48:53*jjido joined #nim
07:58:20FromDiscord<python36_08342> hello. please create Language-specific topic for ukrainian language.↵topic name: "українська"
07:59:51*perro quit (Read error: Connection reset by peer)
08:00:36*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
08:03:48*perro joined #nim
08:43:11*perr_ joined #nim
08:44:01*perro quit (Ping timeout: 248 seconds)
09:15:32*pmp-p joined #nim
09:18:38*beholders_eye joined #nim
09:47:37*xutaxkamay_ joined #nim
09:48:37*xutaxkamay quit (Ping timeout: 248 seconds)
09:48:38*xutaxkamay_ is now known as xutaxkamay
11:13:18*perr_ quit (Ping timeout: 245 seconds)
11:13:33*perro joined #nim
11:35:04*beholders_eye quit (Ping timeout: 260 seconds)
12:21:01FromDiscord<pmunch> In reply to @.bobbbob "gcc 12 on debian": Hmm, that's a pretty old GCC version (I'm using 15). But I think it's Nim adding the `-lm` switch so it's weird that it doesn't work out of the box
12:21:06FromDiscord<pmunch> Which Nim version are you using?
12:21:43FromDiscord<pmunch> In reply to @python36_08342 "hello. please create Language-specific": If we add language-specific channels we need a moderator which speaks the language. And unfortunately I don't think any of us do 😦
12:28:07*beholders_eye joined #nim
12:57:07FromDiscord<frankharwaldgmx.de_40301> So I was able to boot nim compiler & tools using "./build_all.sh" from source on current stable raspian (debian 12 "bookworm") on arm64 using gcc-12. I'm trying the same on recent arch on x86_64 using gcc-15 which fails with error "cmd: git checkout 7f6681b4c4ccc0dc43fd256280be4c3ad3c773e5 fatal: unable to read tree (7f6681b4c4ccc0dc43fd256280be4c3ad3c773e5)"
13:03:08Amun-Rahave you tried any specific branch by any chance?
13:03:39FromDiscord<frankharwaldgmx.de_40301> I suspect this is early on where the script is looking for the master branch of the csources_v2 & then fails to get the correct one. ( config/build_config.txt says "nim_csourcesBranch=master" and "nim_csourcesHash=7f6681b4c4ccc0dc43fd256280be4c3ad3c773e5")
13:03:41Amun-Ragit clone --depth 1 --branch v2.2.4 (etc)
13:05:13FromDiscord<frankharwaldgmx.de_40301> I tried to & was looking around but it seems csources_vs only has a single branch, e.g. it's a flat repo so it's pointless trying to use a different csources_vs branch.
13:05:26FromDiscord<frankharwaldgmx.de_40301> (edit) "csources_vs" => "csources_v2"
13:05:37FromDiscord<frankharwaldgmx.de_40301> (edit) "csources_vs" => "csources_v2"
13:08:19FromDiscord<_cyberdot> Hey! Do you know if there is any way to pass a generic function as parameter of another proc/template?
13:08:51FromDiscord<_cyberdot> Using templates I could use the "untyped" type, but I want to force the argument to be any proc possible
13:09:06FromDiscord<_cyberdot> So I can emulate the Python decorators behaviour
13:09:31FromDiscord<_cyberdot> (edit) "possible" => "possible, not any code possible."
13:11:16FromDiscord<_cyberdot> My problem so far is that the the proc signature must match the parameter signature you create, didn't really find any notation to represent a universal proc
13:11:37FromDiscord<_cyberdot> Other than delving into macros, that is, but I want to avoid that unless absolutely needed
13:28:33FromDiscord<pmunch> In reply to @frankharwaldgmx.de_40301 "I tried to &": Any particular reason why you try to use `build_all.sh` manually? I believe choosenim works on both those targes
13:29:21FromDiscord<pmunch> @_cyberdot you should be able to have a template with an argument of type `proc` IIRC
13:31:43FromDiscord<pmunch> https://play.nim-lang.org/#pasty=ktSYxKiG
13:33:33FromDiscord<_cyberdot> Nice. Didn't notice you can just pass the proc type as an argument on a template. Thanks a lot for the help
13:57:48FromDiscord<frankharwaldgmx.de_40301> I tested using branch "version-2-2" cloned from git & it worked (is version 2.2.5). The earlier try that failed was the ".tar.xz" archive from the nighlies but also the same version (2.2.5), no idea why this one didn't work.
15:49:57FromDiscord<lainlaylie> In reply to @_cyberdot "Nice. Didn't notice you": itsh a typeclass https://nim-lang.org/docs/manual.html#generics-type-classes
16:00:17*beholders_eye quit (Ping timeout: 248 seconds)
17:06:00*beholders_eye joined #nim
17:10:45*beholders_eye quit (Ping timeout: 248 seconds)
17:12:14*beholders_eye joined #nim
17:13:13*jjido joined #nim
17:44:03FromDiscord<gokr> @pmunch Awesome thanks for Futhark, just merged our new Futhark based ORX wrapper to master! https://github.com/tankfeud/norx
18:08:25*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
18:30:56*anddam quit (Server closed connection)
18:31:14*anddam joined #nim
18:40:49FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=XZviHjea
18:42:56FromDiscord<tauruuuuuus> I believe you're missing a "." between the first operando and the bitand
18:42:59FromDiscord<tauruuuuuus> (edit) "operando" => "operand"
18:43:17FromDiscord<tauruuuuuus> sent a code paste, see https://play.nim-lang.org/#pasty=xtYmIbGd
18:43:20FromDiscord<tauruuuuuus> (edit) "https://play.nim-lang.org/#pasty=apztdzEz" => "https://play.nim-lang.org/#pasty=fmfwRRFX"
18:44:09FromDiscord<demotomohiro> `bitand` is not a binary operator.↵You can use only specific keywords and characters for operators.
18:45:10FromDiscord<demotomohiro> https://nim-lang.org/docs/manual.html#lexical-analysis-operators
18:51:14FromDiscord<TӨMΛ ☠> Oh so it like makes separate value of shared bits instead? I'm silly to not see `: T =` at the end of bitand proc
18:52:00FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=MyUrWtSX
18:52:08FromDiscord<threefour> Meaning you can't use the keyword `bitand` in between two operands. It has to be called like a function.
18:52:49FromDiscord<threefour> (edit) "keyword" => "identifier"
18:57:00FromDiscord<threefour> sent a code paste, see https://play.nim-lang.org/#pasty=oMldRXip
18:57:10FromDiscord<threefour> The first three usages are valid, the last one is not.
18:59:02FromDiscord<TӨMΛ ☠> I see, and yeah, I recall from my quick macro learning that there was a difference indeed↵It just got me confused because I wasn't aware it returns the value itself
19:03:49*beholders_eye quit (Ping timeout: 248 seconds)
19:05:29*beholders_eye joined #nim
19:18:35*ntat joined #nim
19:22:16FromDiscord<pmunch> In reply to @gokr "<@392962235737047041> Awesome thanks for": Oh cool! Love to see people getting use out of it!
19:48:48*ntat quit (Ping timeout: 252 seconds)
19:50:39*ntat joined #nim
20:06:57*ntat quit (Quit: leaving)
20:07:20*ntat joined #nim
20:15:27FromDiscord<.bobbbob> how come choosenim installs the compiler binaries and such in .choosenim, but then has separate executables in .nimble/bin that I assume somehow execute the other executables? Instead of links? or just adding the choosenim bin to the export?
20:16:01FromDiscord<.bobbbob> and it doesnt have atlas in the .nimble bin
20:20:26FromDiscord<.bobbbob> Im confused, if I want to use atlas should I link to the one in .choosenim, add .choosenim/.../bin to .profile, or install the atlas package?
20:43:01*beholders_eye quit (Ping timeout: 265 seconds)
20:49:53*ntat quit (Quit: Leaving)
20:59:09*redj quit (Ping timeout: 260 seconds)
21:24:33*jjido joined #nim
21:24:41*rockcavera joined #nim
21:49:43*CypherCat quit (Ping timeout: 265 seconds)
21:54:13FromDiscord<spotlightkid> @.bobbbob\: missing atlas is a know issue with choosenim\: https://github.com/nim-lang/choosenim/issues/80
21:55:19FromDiscord<spotlightkid> As a workaround you can link the one in `~/.choosenim/toolchains/nim-2.X.X/bin` to `~/.nimble/bin`.
21:55:45FromDiscord<spotlightkid> But then that won't be switched, of course, if you swithc nim version with choosenim.
21:57:15FromDiscord<spotlightkid> There is a new alternative for `choosenim` called `grabnim`\: https://codeberg.org/janakali/grabnim↵It's too early to say whether this will maybe replace choosenim, but it promises to address many of the shortcomings of choosenim.
21:58:47FromDiscord<spotlightkid> The reason that choosenim doesn't use symlink is that they were not widely supported on windows at the time choosenim was created and also there may be permission issues. But apparently these problems are no longer as relevant.
22:06:26FromDiscord<spotlightkid> @frankharwaldgmx.de_40301\: source distributions are missing an important build configuration file required by `build_all.sh`. this is probably not intended but, anyway, they need a different sequence of commands to bootstrap Nim. Or you just copy `config/build_config.txt` from the repo.
22:08:06*syl_ quit (Quit: C-x C-c)
22:15:47*syl joined #nim
22:17:03*CypherCat joined #nim
22:20:56*jkl quit (Server closed connection)
22:23:21*jkl joined #nim
22:46:57*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
23:07:54*pmp-p quit (Ping timeout: 252 seconds)
23:32:03*skippy8 quit (Quit: WeeChat 4.6.3)
23:34:05*pmp-p joined #nim