<< 06-07-2025 >>

00:07:21*thunder joined #nim
00:31:38*SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev)
01:29:04*SchweinDeBurg joined #nim
04:27:37*amadaluzia quit (Quit: ZNC 1.10.0 - https://znc.in)
04:31:54*thunder quit (Remote host closed the connection)
06:01:51*thunder joined #nim
06:49:48*thunder quit (Killed (NickServ (GHOST command used by metasintactic)))
06:49:53*metasintactic joined #nim
06:50:30*metasintactic is now known as thunder
06:53:40*andy-turner joined #nim
06:54:17*thunder quit (Remote host closed the connection)
07:18:11*ntat joined #nim
07:43:32FromDiscord<morgan (ping with reply)> so i tried out using treeform's nim template, and it's failing on the docs action with no info
07:44:17FromDiscord<morgan (ping with reply)> it is private, but the other actions run fine (well they did after fixing the import in the empty tests file)
07:45:25FromDiscord<morgan (ping with reply)> anyone ran into this before?
07:54:30*jjido joined #nim
08:07:03*skippy8 joined #nim
08:23:11*nils` quit (Quit: nils`)
09:12:21*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
10:21:02FromDiscord<spotlightkid> @morgan (ping with reply)\: Does `src/${{ github.event.repository.name }}.nim` exist?↵When I used that workflow, I put the actual input and output files names in the workflow, because that naming convention didn't fit.↵https://github.com/SpotlightKid/nim-sndfile/blob/master/.github/workflows/docs.yml↵(I also updated some action versions.)
10:23:22*tokyovigilante quit (Remote host closed the connection)
10:26:30*tokyovigilante joined #nim
12:43:29*ntat quit (Ping timeout: 248 seconds)
12:44:07*ntat joined #nim
12:47:10*amadaluzia joined #nim
14:14:40*nils` joined #nim
14:24:22*andy-turner__ joined #nim
14:26:46*andy-turner quit (Ping timeout: 252 seconds)
15:01:24FromDiscord<lainlaylie> hardcoded main file path 😬
15:01:33FromDiscord<lainlaylie> needs to parse nimble dump instead
15:18:46*beholders_eye joined #nim
15:52:29*switchy quit (Ping timeout: 245 seconds)
15:53:20*andy-turner_ joined #nim
15:53:44*andy-turner__ quit (Read error: Connection reset by peer)
15:53:50*switchy joined #nim
16:00:53*andy-turner__ joined #nim
16:03:12*andy-turner_ quit (Ping timeout: 252 seconds)
16:15:29*beholders_eye quit (Ping timeout: 260 seconds)
16:19:59*beholders_eye joined #nim
16:32:13*andy-turner__ quit (Quit: Leaving)
16:38:14*deega joined #nim
16:49:08*beholders_eye quit (Ping timeout: 245 seconds)
17:00:00FromDiscord<spotlightkid> KISS
17:03:57FromDiscord<odexine> long time no see, im prolly about to use nim again. i think i need a refresher on what's happened the past year or something...
17:28:39*beholders_eye joined #nim
17:37:55FromDiscord<morgan (ping with reply)> In reply to @spotlightkid "<@277133333773811712>\: Does `src/${{ github.event.": no, but it looked to be the same setup for some other library. ill probably just change that tho. should work fine with the out set
17:39:29FromDiscord<spotlightkid> @odexine\: Not too much, I believe. Araq's ben busy with the Nim 3 (Nimony) rewrite.
17:39:41FromDiscord<odexine> i see
17:45:45*jjido joined #nim
17:48:20FromDiscord<Laylie> yeah, i meant the original template should either make the user explicitly set their main module or detect it accurately, instead of assuming it to be src/
17:48:34FromDiscord<Laylie> yeah, i meant the original template should either make the user explicitly set their main module or detect it accurately, instead of assuming it to be src/github repo name
18:22:18FromDiscord<bxiwbbd> sent a code paste, see https://play.nim-lang.org/#pasty=JSwINtHk
18:22:37FromDiscord<bxiwbbd> (edit) "https://play.nim-lang.org/#pasty=ntwSwGWU" => "https://play.nim-lang.org/#pasty=yhctyzjL"
18:27:34FromDiscord<spotlightkid> `-g` means "install globally", i.e. not only in the project.↵In nimble that's the default, i.e. the package is installed for the current user. Binaries (or links to them) will be placed in `~/.nimble/bin`. Add that dir to your `PATH`.
18:30:44FromDiscord<Robyn [She/Her]> In reply to @odexine "long time no see,": :o really?
18:31:09FromDiscord<odexine> In reply to @battery.acid.bubblegum ":o really?": Not very likely but I might
18:31:58FromDiscord<Robyn [She/Her]> In reply to @odexine "Not very likely but": aw...
18:32:13FromDiscord<odexine> Right now it’s a consideration
18:32:26FromDiscord<bxiwbbd> In reply to @spotlightkid "`-g` means "install globally",": Yes, that’s what I’m asking—does Nimble have a way to install binaries globally, like npm’s -g flag, so I can run them directly from the command line? Or do I have always to move the binaries to a directory in my PATH manually?
18:33:28FromDiscord<bxiwbbd> (edit) "asking—does" => "asking — does" | "asking — doesNimble have a way to install binaries globally, like npm’s -g flag, so I can run them directly from the command line? Or do I ... have" added "always" | removed "always"
18:33:49FromDiscord<aintea> Or just add `$HOME/.nimble/bin` in your path
18:33:55FromDiscord<spotlightkid> @bxiwbbd\: No, I just told you what you should do\: add the `~/.nimble/bin` to your `PATH`.
18:34:22FromDiscord<spotlightkid> Then use `nimble install <foo>` as normal.
18:34:48FromDiscord<bxiwbbd> In reply to @aintea "Or just add `$HOME/.nimble/bin`": Why isn't it done by default like npm? 🤷🏻‍♂️
18:36:57FromDiscord<Elegantbeef> Not everything is NPM
18:39:44FromDiscord<spotlightkid> Installing things system-wide, i.e. under `/usr(/local)` requires root privileges. Nim packages should not need to be installed as root, installing them as a normal user is just fine.↵Installing things into system dirs is the domain of distribution packages.
18:40:02FromDiscord<yg0068> Hi guys, I can't find any results of `koch test` on nim-lang prs. What's wrong with me?
18:42:14FromDiscord<bxiwbbd> It does make it more user-friendly though...
18:42:38FromDiscord<Elegantbeef> How is it any more user friendly
18:42:40FromDiscord<spotlightkid> How does having to use `sudo` make things more user-friendly?
18:42:42FromDiscord<Elegantbeef> Eitherway you need to add the npm path to your path
18:43:21FromDiscord<bxiwbbd> No, I'm saying if nimble provided a way to do it
18:43:50FromDiscord<Elegantbeef> Do you even have multiple users on your PC?
18:44:48FromDiscord<bxiwbbd> Why will I have multiple users on my pc? So no (?)
18:45:10FromDiscord<Elegantbeef> So there is not much real benefit to installing system wide 😄
18:45:44FromDiscord<Elegantbeef> Assuming you're using linux you do actually have root aswell as your user account
18:46:36FromDiscord<bxiwbbd> In reply to @Elegantbeef "Eitherway you need to": This isn't true
18:46:54FromDiscord<bxiwbbd> I never had to do it
18:51:44*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
18:56:20FromDiscord<spotlightkid> `npm install -g ` installs to under `/usr` or `/usr/local` (on unix), and `/usr/bin` and `/usr/local/bin` is usually already in the `PATH`.↵But you'll need `sudo` to use `-g`.↵Unless you're on Windows, then `npm` will install to sth like `C:\Users\<username>\AppData\Roaming\npm` and you'll probably need to add that to your `PATH` as well. I can't test on Windows, so I can't be sure, but I don't see how it would work there without
18:57:47FromDiscord<spotlightkid> sent a code paste, see https://play.nim-lang.org/#pasty=onwVrvxm
19:05:48*beholders_eye quit (Ping timeout: 245 seconds)
19:13:36FromDiscord<bxiwbbd> In reply to @spotlightkid "`npm install -g `": I believe if you install nodejs through the official windows Installer or through `pkg`, it automatically configs the paths. Global installs through npm just worked automatically for me (I never use sudo, nor did i know how to configure path before using nimble)
19:15:39FromDiscord<spotlightkid> `sudo` is a unix-only thing.
19:16:02FromDiscord<lainlaylie> the best way to add a directory to path depends on which os youre on, even the specific distribution in some cases, what shell is being used, user preference, etc, so i think it's fine that nimble doesn't bother with it by default. it takes 2 seconds to do manually anyway
19:17:19FromDiscord<bxiwbbd> In reply to @spotlightkid "`sudo` is a unix-only": How will I be aware of that, i never used to 😹
19:17:31FromDiscord<bxiwbbd> (edit) "to" => "it"
19:18:59FromDiscord<spotlightkid> If you're on Windows you don't need to.
19:20:02FromDiscord<leorize> fwiw there's sudo on Windows now
19:30:18*jjido joined #nim
19:52:07*beholders_eye joined #nim
20:37:57*amadaluzia quit (Quit: ZNC 1.10.0 - https://znc.in)
20:40:49*ntat quit (Quit: leaving)
20:44:26*skippy8 quit (Quit: WeeChat 4.6.3)
20:45:53*deega quit (Remote host closed the connection)
20:46:59FromDiscord<.bobbbob> are consts that store dynamic memory still saved in the heap at runtime?
20:48:45FromDiscord<Robyn [She/Her]> In reply to @.bobbbob "are consts that store": consts that store dynamic memory? you have an example?
20:49:22FromDiscord<Robyn [She/Her]> it's likely that whatever is in a constant would be inlined at comp time, since it'd be evaluated on the VM but not too sure