<< 26-10-2025 >>

00:00:22*SchweinDeBurg joined #nim
00:14:32FromDiscord<aethrvmn> Yeah, I need to do some improvements to the devShell but rn this is it↵(@nasuray)
00:14:36FromDiscord<aethrvmn> 1000000447.jpg https://media.discordapp.net/attachments/371759389889003532/1431798129841143829/1000000447.jpg?ex=68feb96b&is=68fd67eb&hm=e2e385113a7edc748801b7fc02da0b3e6c0ba9ab8525a98b9577528abbbfe928&
00:41:04FromDiscord<heysokam> In reply to @demotomohiro "`pointer` and `cstring`.": true, thank you ✍️
00:50:48*Jjp137 quit (Quit: Leaving)
00:55:05FromDiscord<systemblue2010> hey guys why Nim discord server don't have tags...
00:55:19FromDiscord<systemblue2010> (edit) "tags..." => "tag..."
00:56:19FromDiscord<systemblue2010> zig has tag, odin has tag too ↵and the C#, Java, Go, Elixir, .NET has tags too(even it is not official )
00:56:48FromDiscord<Elegantbeef> Nim's community engagement is near 0
00:57:39FromDiscord<systemblue2010> if we don't have boost and ↵how about writting Nim discord link in discord profile's about me
00:58:32FromDiscord<systemblue2010> how about mention everyone and suggesting everyone to write Nim discord link in discord profile
01:12:57FromDiscord<nasuray> In reply to @aethrvmn "Yeah, I need to": Hmm what is not working with nimble and nixpkgs? I only use nimble (via nixpkgs) in local mode. But it should work with a global nimble path
01:13:34FromDiscord<nasuray> In reply to @aethrvmn "Yeah, I need to": Also if it's useful to you I wrote https://github.com/daylinmorgan/nim2nix
01:14:58*Jjp137 joined #nim
01:41:57*SchweinDeBurg quit (Ping timeout: 252 seconds)
01:43:36*SchweinDeBurg joined #nim
02:00:24*greaser|q_ quit (Changing host)
02:00:24*greaser|q_ joined #nim
02:00:29*greaser|q_ is now known as GreaseMonkey
02:07:02FromDiscord<lousp4521> In reply to @aethrvmn "Yeah, I need to": wait, it's a bot?
02:07:08FromDiscord<lousp4521> llm?
02:07:12FromDiscord<lousp4521> or a human?
02:07:22FromDiscord<lousp4521> 🤔
02:07:34FromDiscord<Elegantbeef> A large language human
02:08:02FromDiscord<lousp4521> In reply to @Elegantbeef "A large language human": bruh
02:08:07FromDiscord<lousp4521> how it works?
02:08:16FromDiscord<Elegantbeef> Sis, it's just a bridge
02:08:36FromDiscord<lousp4521> In reply to @Elegantbeef "Sis, it's just a": yea, I know. How it works?
02:08:53FromDiscord<Elegantbeef> You send a message into the void that gets picked up by a webhook that sends it to matrix
02:08:58FromDiscord<Elegantbeef> Rinse and repeat for the inverse
02:09:20FromDiscord<lousp4521> interesting
02:09:26FromDiscord<lousp4521> but why?
02:09:43FromDiscord<Elegantbeef> Cause discord is proprietary shitware
02:10:22FromDiscord<lousp4521> In reply to @Elegantbeef "Cause discord is proprietary": Understandable have a great day 👍
02:51:18FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=GnvLNurw
02:52:57FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=RlUhVjDN
02:56:14FromDiscord<heysokam> well, whatever mysterious error I triggered, `var declarations :string= @[]` fixed it just as mysteriously 🤷‍♂️
02:57:05FromDiscord<heysokam> `:seq[string]=` rather
02:58:10*SchweinDeBurg quit (Ping timeout: 256 seconds)
02:58:23FromDiscord<aethrvmn> Its probably something to do with the LD\_LIBRARY\_PATH; I should spend tomorrow to try and fix it tbh, but ye, since 99% of the people will not be running nix, I try to make my devShells part of my main flake, so I can do nix develop and then use them/write code like any other non-nix user↵(@nasuray)
02:59:19FromDiscord<aethrvmn> This + last week I managed to get the last friend I had on discord to join signal so I dont need discord anymore
03:00:21FromDiscord<Elegantbeef> @aethrvmn yea but now you need signal
03:00:33FromDiscord<Elegantbeef> That's like stubbing your toe just cause your toe isn't bruised
03:00:45*SchweinDeBurg joined #nim
03:01:54FromDiscord<aethrvmn> Wym?
03:02:01FromDiscord<heysokam> @ElegantBeef Do you happen to know what `TNodeKind` is used for `PNode`s that contain a `bool` variable?↵There seems to be no `nkBoolLit` 🤔
03:02:14FromDiscord<Elegantbeef> I don't like signal much more than discord
03:02:48FromDiscord<Elegantbeef> `nkBoolLit` should be it
03:03:10FromDiscord<Elegantbeef> You can always read nimscripters; vmconversions module
03:03:41FromDiscord<heysokam> https://media.discordapp.net/attachments/371759389889003532/1431840679138426930/image.png?ex=68fee10c&is=68fd8f8c&hm=1f3493b06206db0c33b746faf8d574237af59750d2906819cb72ac64f0a80457&
03:03:54FromDiscord<heysokam> in `nodekinds.nim`
03:03:56*SchweinDeBurg quit (Read error: Connection reset by peer)
03:04:04FromDiscord<heysokam> There is no `nkBoolLit`
03:04:38FromDiscord<Elegantbeef> `nkIntLit`
03:04:46FromDiscord<aethrvmn> Eh, it's foss, and the pqc stuff is pretty gucci too, a bit annoying you can host your own server but better than the proprietary ones, and the client is much better than matrix/xmpp for my non technically inclined friends/family
03:04:53FromDiscord<Elegantbeef> Everything is mapped here https://github.com/beef331/nimscripter/blob/master/src/nimscripter/vmconversion.nim
03:05:41FromDiscord<aethrvmn> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/1431840955706900531): Eh, it's foss, and the pqc stuff is pretty gucci too, a bit annoying you cant host your own server but better than the proprietary ones, and the client is much better than matrix/xmpp for my non technically inclined friends/family
03:06:25FromDiscord<heysokam> In reply to @Elegantbeef "`nkIntLit`": But `nkIntLit` does not `PNode.render` to `true/false` with its `intVal` 🧩
03:06:58FromDiscord<nasuray> In reply to @aethrvmn "Its probably something to": If you weren't aware there are some patches to Nim on nixos that affect dlopen, could be related
03:07:02FromDiscord<Elegantbeef> So then `ident` of the value, but that's not right
03:07:30FromDiscord<Elegantbeef> @aethrvmn yea it's mildly better than discord but if memory serves it requires using a phone number as an ID
03:07:58*SchweinDeBurg joined #nim
03:08:39FromDiscord<heysokam> Its definitely not right
03:09:21FromDiscord<heysokam> How does the parser even handle `true/false` expressions if it doesn't even have a `nkBoolLit`? so confused
03:09:23FromDiscord<Elegantbeef> I mean `nkIntLit` is what the VM and compiler uses
03:10:14FromDiscord<Elegantbeef> It uses `nkIntLit` with `0` or `1`
03:10:29FromDiscord<heysokam> So you are saying that `true/false` are completely gone after the raw parser pass? How are they typechecked then?
03:10:47FromDiscord<Elegantbeef> They get the `PType` that points to `bool`
03:11:28FromDiscord<heysokam> But they need to be parsed first
03:13:17FromDiscord<heysokam> What I'm doing is manually creating the data structure that the parser would generate with the first raw parsing pass when finding `var thing :bool= true`
03:13:52FromDiscord<heysokam> Are they `ident` and then changed after typechecking or something?
03:14:18FromDiscord<Elegantbeef> I don't know I've never even looked at the parser
03:26:22FromDiscord<heysokam> @ElegantBeef `nkIdent` worked. that's super confusing
03:26:40FromDiscord<heysokam> I guess because they are keywords they are considered `ident`? 🤷‍♂️
03:27:54FromDiscord<Elegantbeef> They're idents cause they're idents
03:29:16FromDiscord<heysokam> but they are literal values used as expressions that are treated as `ident`
03:29:40*SchweinDeBurg quit (Ping timeout: 246 seconds)
03:30:48FromDiscord<heysokam> I just don't understand the reasoning, is what I mean↵Whatever the reasoning is _(probably not what I said, but that's the point, since I don't really get the idea)_
03:31:24FromDiscord<heysokam> And worried about using them incorrectly, and then finding more mysterious issues down the line
03:31:36*SchweinDeBurg joined #nim
03:32:43FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=sazUqFze
03:36:08*SchweinDeBurg quit (Ping timeout: 256 seconds)
03:36:38FromDiscord<heysokam> Oh, now that I see that... I tried writing`proc nil () = ...` earlier and it did not let me...↵and there is a `nkNilLit` node kind 🤔↵Maybe that's why?
03:37:48*SchweinDeBurg joined #nim
03:42:22*SchweinDeBurg quit (Ping timeout: 256 seconds)
03:44:01*SchweinDeBurg joined #nim
04:21:34FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=aNYCbafx
04:23:48FromDiscord<heysokam> nvm, as soon as I asked I found `std/strutils escape()`
04:30:37FromDiscord<systemblue2010> sent a long message, see https://pasty.ee/eskdsXar
04:32:22FromDiscord<heysokam> @systemblue2010 marketing has been discussed and a persistent issue for years↵Nobody in the team is willing to take the lead on promoting, it seems
04:33:07FromDiscord<systemblue2010> really?
04:33:16FromDiscord<systemblue2010> why Nim developers use nim but not promote it?
04:34:06FromDiscord<systemblue2010> then what blog site does global developers use?
04:34:12FromDiscord<heysokam> My best guess is that they don't like marketing? 🤷‍♂️ but no clue really
04:34:31FromDiscord<heysokam> In reply to @systemblue2010 "then what blog site": They don't blog, simply
04:35:10FromDiscord<systemblue2010> does developers not use blogs?
04:35:28FromDiscord<systemblue2010> I heard many developer found technology stacks in blgos
04:35:49FromDiscord<heysokam> Nobody in the current dev team is good at (or likes) PR, as far as I know
04:36:27FromDiscord<systemblue2010> um... then I will try promoting
04:36:32FromDiscord<heysokam> But you should ask on GitHub if you want to actually reach them
04:36:50FromDiscord<heysokam> Pretty sure there is (or has been) an open issue about the topic
04:37:53FromDiscord<Elegantbeef> Hey they're pretty good at negative PR↵(@heysokam)
04:39:55FromDiscord<heysokam> fair
05:11:00FromDiscord<kcvinker5420> sent a code paste, see https://play.nim-lang.org/#pasty=sCPSSvbj
05:12:02FromDiscord<Elegantbeef> Works just fine
05:57:19FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=FdrfXRkb
06:15:16FromDiscord<Laylie> I can only reproduce that error on ancient Nim (1.6.20)↵(@kcvinker5420)
06:16:30FromDiscord<kcvinker5420> In reply to @Laylie "I can only reproduce": Thanks for trying, IIRC, my compiler version is 2.2, let me check that.
06:57:42FromDiscord<heysokam> Is there something similar to `nim check` but without doing any semantic checks on the file? 🤔
07:03:50*derpydoo joined #nim
07:29:31FromDiscord<pmunch> In reply to @systemblue2010 "<@&371760044473319454> > **The": Please don't ping the mod team for stuff like this..
08:08:10*derpydoo quit (Quit: derpydoo)
08:18:30*SchweinDeBurg quit (Ping timeout: 252 seconds)
08:19:19FromDiscord<kiloneie> Is there a way to string -> identifier at runtime ?
08:20:14*SchweinDeBurg joined #nim
08:24:16FromDiscord<aethrvmn> You mean uuid?↵(@kiloneie)
08:25:53FromDiscord<kiloneie> I am trying to do this `result.add parseExpr("discard " & $entity.name & "Main.events()")` or the same in any way, and since it's not known at compile time... i don't know.
09:03:40*SchweinDeBurg quit (Ping timeout: 256 seconds)
09:05:27*SchweinDeBurg joined #nim
09:33:22FromDiscord<systemblue2010> In reply to @pmunch "Please don't ping the": yes sorry
09:40:47FromDiscord<kiloneie> In reply to @kiloneie "I am trying to": Idk, seems impossible, giving up on this approach...
09:54:14FromDiscord<kiloneie> In reply to @kiloneie "Idk, seems impossible, giving": Oh man, the solution to what i wanted, was so SO simple...
10:22:25*beholders_eye joined #nim
10:24:17*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
10:26:57*beholders_eye quit (Ping timeout: 256 seconds)
10:28:50*ehmry joined #nim
11:13:00FromDiscord<pmunch> niwIdentNode?
11:13:20FromDiscord<pmunch> (edit) "niwIdentNode?" => "newIdentNode?"
11:35:06*zero` joined #nim
11:59:54*SchweinDeBurg quit (Ping timeout: 256 seconds)
12:01:39*SchweinDeBurg joined #nim
12:07:50*SchweinDeBurg quit (Ping timeout: 256 seconds)
12:08:51*SchweinDeBurg joined #nim
12:10:30FromDiscord<kiloneie> No, what i was trying to do, isn't possible at runtime, and the solution was as easy as, just put the module.proc calls, to, another module, wrapped in another proc.
13:28:02*SchweinDeBurg quit (Ping timeout: 240 seconds)
13:30:17*SchweinDeBurg joined #nim
13:34:42*SchweinDeBurg quit (Ping timeout: 240 seconds)
13:36:30*SchweinDeBurg joined #nim
13:41:07*SchweinDeBurg quit (Ping timeout: 244 seconds)
13:42:43*SchweinDeBurg joined #nim
13:47:30*SchweinDeBurg quit (Ping timeout: 265 seconds)
13:52:39*SchweinD1 joined #nim
13:56:15*beholders_eye joined #nim
14:18:38*tiorock joined #nim
14:18:38*tiorock quit (Changing host)
14:18:38*tiorock joined #nim
14:18:38*rockcavera is now known as Guest8379
14:18:39*Guest8379 quit (Killed (uranium.libera.chat (Nickname regained by services)))
14:18:39*tiorock is now known as rockcavera
14:20:40*SchweinD1 quit (Ping timeout: 246 seconds)
14:45:37*beholders_eye quit (Ping timeout: 264 seconds)
15:13:39FromDiscord<deadly_moves> sent a long message, see https://pasty.ee/nMiYSHOW
15:22:19FromDiscord<amadaluzia> Do mjolnir bans have an effect on discord
15:35:33FromDiscord<kiloneie> What am i missing for a second case statement ? https://media.discordapp.net/attachments/371759389889003532/1432029890747564092/Screenshot_2025-10-26_16-34-56.png?ex=68ff9143&is=68fe3fc3&hm=844bfc2b62a4b1490f52b73b04e3920bb3c6573e632197d0ae287bd372b748f3&
15:45:58FromDiscord<kiloneie> Apparently, i shouldn't try using `type` <.<
15:54:14FromDiscord<mitranim> This sort of thing is why keywords are evil
15:54:33FromDiscord<kiloneie> It only told me, invalid indentation... <.<...
16:05:31FromDiscord<aethrvmn> You could add backticks to type↵(@kiloneie)
16:09:24FromDiscord<heysokam> In reply to @kiloneie "What am i missing": Idiomatic is to call/name the value kind↵You could also use typ or \`type\`
16:09:53FromDiscord<kiloneie> I've already settled on setupType.
16:10:29FromDiscord<heysokam> Just giving you the alternatives you see the most often
16:20:42FromDiscord<kiloneie> Huh ? https://media.discordapp.net/attachments/371759389889003532/1432041256317616329/Screenshot_2025-10-26_17-20-33.png?ex=68ff9bd9&is=68fe4a59&hm=6e791162f02714395efb6be1b1a78880cbec3e2f90e0840b3db89bd97f71f70d&
16:32:20FromDiscord<heysokam> In reply to @kiloneie "Huh ?": are you doing `yourObject.kind = otherKind` on a variant object?
16:35:05FromDiscord<kiloneie> Yes
16:41:55FromDiscord<heysokam> afaik, you cannot change variant objects to be other objects. they are meant to be static
16:42:31*Guest52 joined #nim
16:42:34*Guest52 quit (Client Quit)
16:42:34FromDiscord<heysokam> maybe someone else has better insights, but I believe that's the case
16:42:55FromDiscord<kiloneie> Well, i compiled with that flag, and it works...
16:43:22FromDiscord<kiloneie> i am only changing the value at compile-time
16:43:41FromDiscord<kiloneie> since it's a value, everything has
16:44:24FromDiscord<kiloneie> I could replace it with a simple bool, for default or manual for now, but i wanted to copy cat GameMaker with it's default, manual and automatic...
16:44:47FromDiscord<kiloneie> Or something...
16:45:12FromDiscord<heysokam> In reply to @kiloneie "i am only changing": you could have a `const` variable that is assigned from a `static` block then
16:45:48*krunsh joined #nim
16:45:59FromDiscord<kiloneie> I am guessing, that compile flag will not work in the future ?
16:46:14FromDiscord<heysokam> That's what it says, yea
16:47:51FromDiscord<kiloneie> Idk, it's just this, im too hungry to think... https://media.discordapp.net/attachments/371759389889003532/1432048088679452752/Screenshot_2025-10-26_17-47-26.png?ex=68ffa236&is=68fe50b6&hm=07750320e9bd410f8b9e1fb84ed73ca6fd894526c18f0b028fe947e0fdd186fa&
16:56:15*ainema joined #nim
17:05:05FromDiscord<janakali> In reply to @kiloneie "Huh ?": you can only choose kind of case object on initialization, e.g. `var o = Object(kind: somekind)`↵↵Because case objects are unions, when you change kind - fields will all get scrambled. It's essentially casting.
17:41:02*beholders_eye joined #nim
17:41:47FromDiscord<TӨMΛ ☠> In reply to @nasuray "Relying on nimblePath can": I tried that last time and it yielded me most weird errors↵Will probably try this in another repo in the future but this game was meant to be quick shot at gamedev (with goal to actually finish in few months) so I cut corners whenever it benefits the project :>
19:15:54*ainema left #nim (#nim)
22:37:08*krunsh quit (Read error: Connection reset by peer)
23:03:51FromDiscord<tomaate7> Where’s the Portuguese chat? It’s missing
23:21:01*krunsh joined #nim
23:33:49*xet7 joined #nim
23:43:52*xet7 quit (Quit: Leaving)