<< 10-05-2025 >>

01:38:49*n|PhreakBSD joined #nim
01:43:01n|PhreakBSDHello not able to get nimble to work on freebsd , https://paste.debian.net/1373945/
02:06:45*n|PhreakBSD quit (Remote host closed the connection)
02:34:47FromDiscord<michaelb.eth> In reply to @n|PhreakBSD "Hello not able to": do any of the bsd certificate paths exist in your freebsd install?↵↵https://github.com/nim-lang/Nim/blob/59ceff4f1afdbc35cfc1dd679ca31369e71b3873/lib/pure/ssl_certs.nim#L40
02:34:48FromDiscord<janakali> @n|PhreakBSD, does your system have root certificate in one of these places?: `/etc/ssl/certs/ca-certificates.crt`, `/usr/local/share/certs/ca-root-nss.crt`, `/etc/ssl/cert.pem`, `/usr/local/share/certs`, `/etc/openssl/certs`↵from Nim source code at [lib/pure/ssl_certs.nim](https://github.com/nim-lang/Nim/blob/59ceff4f1afdbc35cfc1dd679ca31369e71b3873/lib/pure/ssl_certs.nim#L40C1-L54C4)
02:34:59FromDiscord<michaelb.eth> jinx
02:35:11FromDiscord<janakali> xD
02:40:32FromDiscord<janakali> @n|PhreakBSD, I think you need to install `security/ca-root-nss` package
03:15:45*rockcavera joined #nim
03:41:38FromDiscord<nixfreak> That was it thanks a lot
03:42:40*jinn6 quit (Ping timeout: 252 seconds)
04:09:57*jinn6 joined #nim
04:16:21*jinn6 quit (Ping timeout: 248 seconds)
04:33:19*jinn6 joined #nim
04:46:52*n|Phreak_ joined #nim
04:48:44*n|Phreak_ is now known as n|PhreakBSD
05:08:43*n|PhreakBSD quit (Quit: leaving)
05:57:00*skippy8 joined #nim
06:18:28*nils` quit (Ping timeout: 276 seconds)
06:46:02*fedorafan joined #nim
07:18:18*andy-turner joined #nim
08:25:35*alexdaguy joined #nim
08:43:40*przmk quit (Ping timeout: 244 seconds)
08:57:13*przmk joined #nim
09:14:24*nils` joined #nim
09:58:30*skippy8 quit (Quit: WeeChat 4.5.2)
11:14:00*andy-turner quit (Quit: Leaving)
12:14:58*andy-turner joined #nim
12:20:46*fedorafan quit (Remote host closed the connection)
12:44:18FromDiscord<wannabelokesh> Hi guys, I need a command that builds src/.nim all at once or at least all with the same command. ↵and put the final object file(s) inside one/build/ or one/out/ ↵Any idea how to do this? https://media.discordapp.net/attachments/371759389889003532/1370743249353838634/image.png?ex=68209ba1&is=681f4a21&hm=baa13c8a1100dbee36bee5787be37ecedf66ae63a518328bd078f15f2a35821b&
12:45:51strogon14https://nim-lang.github.io/nimble/create-packages.html
12:46:40FromDiscord<nnsee> you can change where nimble puts built binaries with the `binDir` option
12:47:03FromDiscord<nnsee> not really sure what you mean by "builds all .nim files" - as one binary or each their own?
12:47:14FromDiscord<nnsee> (edit) "not really sure what you mean by "builds all .nim files" - as one binary or each ... theirown" added "being" | "own?" => "own binary?"
12:48:14FromDiscord<nnsee> if it's the former, just define your main in `one.nim`. if it's the latter, use something like `namedBin` to point to which files you want to build
12:48:26FromDiscord<nnsee> https://github.com/nim-lang/nimble/blob/master/nimble-guide/docs/nimble-reference.md
12:51:13FromDiscord<wannabelokesh> sent a long message, see https://pasty.ee/fYuGBZPG
13:10:08*alexthegreat510 joined #nim
13:12:49*andy-turner quit (Quit: Leaving)
13:22:29*alexthegreat510 quit (Quit: Leaving)
14:05:39FromDiscord<wannabelokesh> sent a long message, see https://pasty.ee/fgMBchRv
14:11:12FromDiscord<wannabelokesh> Guys, this is NVIm's LspLog file. ↵Please help me out with this. https://media.discordapp.net/attachments/371759389889003532/1370765117842526208/image.png?ex=6820afff&is=681f5e7f&hm=016c82486e71f3ba10f1283ab3c7baa1e1566a82cb0053866a39bc0a05b3193a&
14:40:15FromDiscord<janakali> In reply to @wannabelokesh "just casually wanna ask": I have this as well, it appeared maybe a few weeks ago. It's either because of neovim v0.11 update or some changes in lspconfig. I hate this 'press Enter
14:43:33FromDiscord<janakali> you can check my dotfiles for `nvim-notify`, because it's a bit tricky to make it work with LSP: https://codeberg.org/janAkali/dotfiles/src/branch/main/config/nvim/after/plugin/notify.lua
14:46:38FromDiscord<janakali> this is a lot less obstructive and messages dissapear after seconds https://media.discordapp.net/attachments/371759389889003532/1370774034903597116/2025-05-10-224527_999x501_scrot.png?ex=6820b84d&is=681f66cd&hm=d610279152357c7ce8befb849f3cb5884ce21c696fab93756c0c7837ffcd975d&
14:58:09FromDiscord<wannabelokesh> are you sure these errors/warnings/messages I'm getting are totally ignorable?
15:00:25*alexdaguy quit (Ping timeout: 276 seconds)
15:11:15FromDiscord<aintea> yeah completely
15:11:27FromDiscord<aintea> in the worst case you won't have autocompletion
15:56:56*rez joined #nim
16:12:17*rez quit (Quit: much snoozes...)
17:09:41FromDiscord<devlop_gaming> Anyone know how to make changes from one computer visible on another when using github?
17:10:35FromDiscord<Elegantbeef> push then fetch
17:31:12FromDiscord<nnsee> In reply to @devlop_gaming "Anyone know how to": `push` to push your changes to github, `pull` to pull the changes from github to a local machine
17:31:52FromDiscord<nnsee> recommend setting up the fast forward config option as default for pulls
17:32:58FromDiscord<nnsee> makes it so local changes are automatically rebased when pulling instead of creating a separate merge commit
17:59:33FromDiscord<heysokam> I've never needed ff once yet. might be too much if he doesn't know how to push/pull comfortably just yet
18:00:12FromDiscord<nnsee> you don't ever "need" it, it's just nice to have for a cleaner history
18:00:47FromDiscord<heysokam> yeah, but I'm just pointing at git being obtuse for beginners, and an optional feature that is extra confusion for little gain, that's all
18:01:22FromDiscord<nnsee> i'd say the default behavior is more confusing but i get what you mean
18:08:15strogon14learning to use git is like the entry test for developers :)
18:08:51strogon14but I agree, its UX is less than stellar.
18:09:27FromDiscord<0xfab_10> In reply to @strogon14 "learning to use git": hm not really. I see it as a learn it when you need it thing
18:10:18FromDiscord<heysokam> In reply to @fabric.input_output "hm not really. I": do you really have the skill to even know that you need it when you are first learning?
18:10:18FromDiscord<Elegantbeef> Everyone needs VCS 😛
18:11:02FromDiscord<heysokam> it costed me 6months of code + life due to a hard drive failure to know "oh, I need this"... so, I don't know if that arguments holds very true
18:11:02strogon14I mean post-college level entry
18:11:06FromDiscord<0xfab_10> In reply to @heysokam "do you really have": that's why you talk to other devs about stuff
18:12:14strogon14or high school, I don't really know these anglo-saxon education institutions ;-)
18:12:22FromDiscord<heysokam> In reply to @fabric.input_output "that's why you talk": losing all your code is catastrophe, even more when new, and git prevents it↵I have to side with Ras on this
18:12:45FromDiscord<heysokam> should be one of the first things you learn, right after loops/variables/functions
18:13:59FromDiscord<0xfab_10> if you're talking just commit, push, pull stuff ig. learn git I understood as all the other stuff
18:14:31FromDiscord<heysokam> yea, the basics is what I believe Ras was talking about too
18:20:57*drewr joined #nim
18:21:13FromDiscord<leorize> I'll shill `jj` here\: https://steveklabnik.github.io/jujutsu-tutorial/
18:33:30*rez joined #nim
19:13:10*rez quit (Quit: much snoozes...)
19:21:16FromDiscord<heysokam> @ElegantBeef if I have a proc that says `proc thing (arg: SomeObj = global_state.someObj) :...`↵When is the `global_state` data resolved?↵Is it done once on first import, or dynamically on every call to the function?
19:21:34FromDiscord<Elegantbeef> On call
19:22:05FromDiscord<heysokam> so if I change the state, call, and change state, and call again... the second call gets the new data, correct?
19:22:22FromDiscord<Elegantbeef> Nim lets you do `proc doThing(a: (int, int) b = a[0]) = ...` so it has to be on call
19:22:28FromDiscord<Elegantbeef> It should if `global_state` is a runtime variable
19:22:30FromDiscord<Elegantbeef> You can always test
19:22:50FromDiscord<heysokam> it is yea. its a module-scope `var` variable
19:23:01FromDiscord<heysokam> imported from another file
19:39:05FromDiscord<nnsee> In reply to @Elegantbeef "Everyone needs VCS 😛": `code rev. 23 (final) version 2 (updated) (Copy).docx` is a VCS
19:40:36FromDiscord<0xfab_10> In reply to @Elegantbeef "On call": hm so nim could have scheme style `parameterize`
19:40:41FromDiscord<nnsee> i had a friend who unironically wrote python in a word document and copy-pasted it into the python console to run it, because, i quote, "that's how my professor taught it"
19:49:49FromDiscord<devlop_gaming> Weird I'm on the current version where I fixed the seg fault error now it's back??
19:55:10FromDiscord<devlop_gaming> Git is making things harder
20:01:45FromDiscord<Elegantbeef> @0xfab_10 Sure
20:11:39FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=UDBWldct
20:11:47FromDiscord<heysokam> jk, lol
20:12:04FromDiscord<heysokam> I'm getting that when passing a runtime var to the default. is that forbidden or something?
20:13:01FromDiscord<heysokam> (edit) "I'm getting that ... when`var`" added "error" | "var" => "`var`" | "default. is" => "default value of the function parameter↵is"
20:28:47*skippy8 joined #nim
20:30:57FromDiscord<heysokam> oh, I just found it. classing nim being unhelpful with locations at comptime↵i was calling the function like `const thing = thefn()` and that was setting the comptime requirement on the argument default value too
20:31:05FromDiscord<heysokam> (edit) "classing" => "classic"
20:43:54FromDiscord<Elegantbeef> Hey you trut me cause I'm right
20:43:59FromDiscord<Elegantbeef> trust even
20:44:17FromDiscord<Elegantbeef> The fact you're trying to use a runtime value at compile time is on you!
20:57:02FromDiscord<heysokam> true, but the fact that the compiler is pointing at the wrong location without a stacktrace is on the compiler 🙈
20:58:17FromDiscord<Elegantbeef> is line 45 `G.cfg`?
20:58:24FromDiscord<heysokam> yep
20:58:33FromDiscord<Elegantbeef> Right line to me 😄
20:58:43FromDiscord<Elegantbeef> It should show the static scope where the error occurs
20:58:54FromDiscord<Elegantbeef> So it should be like a generic/template expansion, but yea that's the right line
20:58:57FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=YimxJEEQ
21:00:16FromDiscord<Elegantbeef> I don't think the stdlib abstracts that for cross platform querying
21:00:32FromDiscord<heysokam> so its only for current host?
21:02:11FromDiscord<Elegantbeef> https://github.com/nim-lang/Nim/blob/6f5e5811fc876fb713ac34608b5a40b27c96d01f/compiler/platform.nim#L46 there is this you could likely import if you really wanted to
21:06:29FromDiscord<heysokam> useful to know, ty
21:15:14*rez joined #nim
21:20:02*rez quit (Quit: much snoozes...)
21:20:52*rez joined #nim
21:31:03*rez quit (Quit: much snoozes...)
22:23:07*skippy8 quit (Quit: WeeChat 4.5.2)
23:09:11*tiorock joined #nim
23:09:11*tiorock quit (Changing host)
23:09:11*tiorock joined #nim
23:09:11*rockcavera quit (Killed (osmium.libera.chat (Nickname regained by services)))
23:09:11*tiorock is now known as rockcavera
23:10:24*GnuYawk1 joined #nim
23:13:17*dza0 joined #nim
23:15:00*void09_ joined #nim
23:18:21*dza quit (*.net *.split)
23:18:23*CypherCat quit (*.net *.split)
23:18:23*void09 quit (*.net *.split)
23:18:23*GnuYawk quit (*.net *.split)
23:18:24*ursa-major quit (*.net *.split)
23:18:24*kasimir_ quit (*.net *.split)
23:18:24*dv^_^ quit (*.net *.split)
23:18:25*GnuYawk1 is now known as GnuYawk
23:20:42FromDiscord<aintea> sent a code paste, see https://play.nim-lang.org/#pasty=yYqesBhK
23:24:42*CypherCat joined #nim
23:24:42*ursa-major joined #nim
23:24:42*kasimir_ joined #nim
23:24:42*dv^_^ joined #nim
23:26:39FromDiscord<0xfab_10> nim should've had a `cond` thing instead of `if..elif..else` chain
23:26:59FromDiscord<0xfab_10> you can make it happen sure
23:27:08FromDiscord<0xfab_10> cuz macros and whatever
23:34:06FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=bZQGScmO
23:35:19FromDiscord<kapendev> Valid
23:35:26FromDiscord<kapendev> Elegant
23:35:31FromDiscord<kapendev> Beautiful