<< 22-10-2025 >>

00:13:49*ftajhii quit (Ping timeout: 264 seconds)
00:14:49FromDiscord<Elegantbeef> @DetermiedNim1 Magics are implemented in the compiler and where they're handled is not centralized cause they require different behaviour for each magic
00:19:24FromDiscord<DetermiedNim1> ahh ok
00:19:53FromDiscord<DetermiedNim1> mainly im wondering how `compiles` works
01:30:58FromDiscord<nevillegg> In reply to @Elegantbeef "<@758738754100920383> Magics are implemented": Who are these bots
01:49:31*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
01:50:17*SchweinDeBurg joined #nim
01:55:19FromDiscord<nasuray> Beep boop beef
02:30:42FromDiscord<Elegantbeef> @nasuray yes my son and or daughter?
02:35:23FromDiscord<nasuray> I wish I could be a bot in main, but alas this room is just too damn old
02:43:21FromDiscord<demotomohiro> In reply to @determiedmech1 "How exactly does `compiles`": git clone Nim source code and run `git grep -i "mcompiles"`.
02:44:14FromDiscord<DetermiedNim1> 😭
02:56:46*rockcavera quit (Remote host closed the connection)
05:37:28FromDiscord<aethrvmn> In reply to @nevillegg "Who are these bots": Nim is so good that we have BOTs that have accomplished self-consciousness
05:38:09FromDiscord<Elegantbeef> I looked at a mirror and barked for hours this morning
06:01:11*cornfeedhobo quit (Read error: Connection reset by peer)
06:04:17*cornfeedhobo_ joined #nim
06:13:22*beholders_eye quit (Ping timeout: 244 seconds)
06:18:39*cornfeedhobo_ is now known as cornfeedhobo
07:08:39*cornfeedhobo quit (Remote host closed the connection)
07:13:16*cornfeedhobo joined #nim
07:58:02FromDiscord<tauruuuuuus> sent a code paste, see https://play.nim-lang.org/#pasty=YeHHRkkb
08:05:49FromDiscord<tauruuuuuus> nvm I'm just stupid, the key type was wrong lol
08:30:50FromDiscord<nevillegg> In reply to @aethrvmn "Nim is so good": šŸ˜‚
08:30:53FromDiscord<nevillegg> so funny
08:48:54FromDiscord<alehander92> hey guys: if one doesn't use the re module/call its functions: it doesn't matter that `pcre` is not linked in this case, right?
09:14:20Amun-Raright
09:18:38FromDiscord<lainlaylie> also nre i think?
09:54:46FromDiscord<kiloneie> I asked this a few days ago, i don't need it, but it's still in my head:↵`myTuple: tuple[x: int = 5, y: int = 10]` this doesn't seem to do anything, because you are supposed to do `= (x: 5, y: 10)`. My question is, why can i do code 1, and if it actually does anything ?...
09:58:38*SchweinDeBurg quit (Ping timeout: 244 seconds)
10:00:29*SchweinDeBurg joined #nim
11:06:41*tmpod quit (Remote host closed the connection)
11:06:42*noeontheend quit (Remote host closed the connection)
11:06:42*robertmeta quit (Remote host closed the connection)
11:06:43*ursa-major quit (Remote host closed the connection)
11:06:43*johuck quit (Remote host closed the connection)
11:06:43*mronetwo quit (Remote host closed the connection)
11:06:44*casaca quit (Remote host closed the connection)
11:06:44*Freneticks quit (Read error: Connection reset by peer)
11:06:44*adigitoleo quit (Read error: Connection reset by peer)
11:06:46*zie quit (Remote host closed the connection)
11:33:11*Ekho quit (Ping timeout: 244 seconds)
11:45:25*vsantana joined #nim
11:58:32FromDiscord<tauruuuuuus> my guess is that the same parsing strategy is used there as it is used for `proc` parameters, but there the default values are then used, whilst in named tuples they are not
11:58:34FromDiscord<tauruuuuuus> but it is a guess
12:19:24*robertmeta joined #nim
12:19:26*casaca joined #nim
12:19:28*zie joined #nim
12:19:28*adigitoleo joined #nim
12:19:30*ursa-major joined #nim
12:19:30*noeontheend joined #nim
12:19:31*tmpod joined #nim
12:19:31*mronetwo joined #nim
12:19:32*Freneticks joined #nim
12:19:32*johuck joined #nim
12:24:46*Ekho joined #nim
12:30:38FromDiscord<kiloneie> What would cause, only a single instance in a sequence, the last one to be detected by AABB collision detection, and not the rest ?
12:34:28FromDiscord<kiloneie> In reply to @kiloneie "What would cause, only": I made it work though. My brain sucks at these...
14:47:31FromDiscord<kiloneie> Sequence `del` vs `delete`, which one is faster ? I don't care about the order.
15:00:19FromDiscord<kiloneie> Actually, i prefer how `delete` works...
15:17:41FromDiscord<nasuray> In reply to @kiloneie "Sequence `del` vs `delete`,": https://nim-lang.org/docs/system.html#delete%2Cseq%5BT%5D%2CNatural
15:18:24FromDiscord<nasuray> Says it on the tin
15:20:21FromDiscord<tauruuuuuus> nicest RTFM
15:20:48FromDiscord<mitranim> Interesting way of deleting from a sequence
15:23:33FromDiscord<kiloneie> In reply to @tauruuuuuus "nicest RTFM": Whats RTFM ?
15:25:04FromDiscord<kiloneie> Also, what the hell, if you put ## into a template, and it's 4 spaces indented, it's an ERROR !
15:25:07FromDiscord<kiloneie> O,O
15:26:26Amun-Ra## is not an ordinary comment, you can't start block with it
15:28:51FromDiscord<kiloneie> I know it's documentation comment, been using it a lot. Why can it cause an error though ?
15:30:45Amun-Rabecause you started a new indented block with it
15:31:55FromDiscord<tauruuuuuus> In reply to @kiloneie "Whats RTFM ?": I think this may become a bit too meta if I answer
15:34:02Amun-Raread the fucking manual, here
15:34:27Amun-RaI'm not native, english words do not have the same weight as for natives
15:34:34Amun-RaI mean for me
15:36:13FromDiscord<tauruuuuuus> not native either, but I do have google šŸ˜›
15:36:47Amun-Ra:>
15:43:32FromDiscord<kiloneie> In reply to @nasuray "https://nim-lang.org/docs/system.html#delete%2Cseq%": Oh, i read that, and my eyes saw O(1) operation for both(second one was refering to the other one)... my bad.
16:12:11FromDiscord<janakali> In reply to @kiloneie "Sequence `del` vs `delete`,": I like how it's easy to intuit and remember: `del` is short (fast), `delete` is longer (slower) and spelled properly, because it does things properly (doesn't change the order)
16:30:37*beholders_eye joined #nim
16:42:32FromDiscord<systemblue2010> In reply to @Amun-Ra "I'm not native, english": use google or browser translater ↵I use translater first and I see english words one more
17:47:03*beholders_eye quit (Ping timeout: 252 seconds)
17:54:02FromDiscord<systemblue2010> hey guys I fix sha 1 code
17:54:11FromDiscord<systemblue2010> but I don't know how I fix it
17:54:33FromDiscord<systemblue2010> i just migrate my stream hash code to one time hash's processing part by template
17:54:43FromDiscord<systemblue2010> I love nim's template programming
17:55:01FromDiscord<systemblue2010> I will use less proc or func and use more template
18:07:26FromDiscord<systemblue2010> and i hate immutable variable↵variable must be changable↵immutable variable must use in limited parts like length, runtime-constant
18:07:43Amun-Rathe less mutable vars the better
18:08:42Amun-Ratemplates are fine, but they are working on code copy/paste mechanism rather then code reuse
18:10:57Amun-Ramodel*
18:16:53FromDiscord<tauruuuuuus> I see we're getting philosophical today
18:43:04*beholders_eye joined #nim
19:01:03FromDiscord<saint._._.> In reply to @Amun-Ra "templates are fine, but": How do you replace procs with templates?
19:01:30FromDiscord<saint._._.> Does he mean like using templates instead of abstraction?
19:01:55FromDiscord<saint._._.> Like instead of abstraction for a refactor for reuse
19:02:03FromDiscord<saint._._.> @systemblue2010
19:05:47FromDiscord<systemblue2010> In reply to @saint._._. "How do you replace": I made two hash implement↵first is onetime sha-1
19:05:52FromDiscord<systemblue2010> second is stream sha-1
19:05:59FromDiscord<systemblue2010> onetime sha-1 works well
19:06:07FromDiscord<systemblue2010> but stream sha-1 works wrong
19:06:16FromDiscord<systemblue2010> (edit) "works" => "worked"
19:06:21FromDiscord<systemblue2010> (edit) "works" => "worked"
19:06:33FromDiscord<systemblue2010> so I made template with onetime sha-1's processing parts
19:06:45FromDiscord<systemblue2010> and I use that template in stream sha-1 code
19:06:47FromDiscord<systemblue2010> and it fixed
19:09:19FromDiscord<nasuray> In reply to @systemblue2010 "I will use less": luckily templates have no footguns!
19:09:32FromDiscord<nasuray> (edit) "In reply to @systemblue2010 "I will use less": luckily templates have no footguns! ... " added "/s"
19:11:49FromDiscord<Elegantbeef> Mouse traps and templates have something in common, you should almost never reach for them
19:12:27FromDiscord<Elegantbeef> This screams as one of those cases where you're using templates to bypass language semantics you don't want to learn
19:18:48Amun-Rayou can't use single pass sha-1 calculating proc for multiple passes
19:19:25Amun-Rasha-1 hashes plaintext bit length in the last step and it's done only once
19:33:46FromDiscord<saint._._.> In reply to @Elegantbeef "This screams as one": Why is this bad? It seems cool
19:34:09FromDiscord<Elegantbeef> Cause templates are not procedures
19:34:19FromDiscord<Elegantbeef> They do not have the same semantics and they should not be the defaultly used
19:34:35FromDiscord<saint._._.> Why not though
19:34:55FromDiscord<saint._._.> What are the bad effects of this
19:35:02FromDiscord<mitranim> The concrete answer is that with procedures, you get sensible type errors, while with templates, you get harder to debug cryptic messages
19:35:09FromDiscord<Elegantbeef> Cause their different semantics make code that is less reusable as they rely on the instantiation scope to match what they expect
19:35:34FromDiscord<saint._._.> In reply to @mitranim "The concrete answer is": Interesting
19:44:28*vsantana quit (Ping timeout: 246 seconds)
20:22:16*vsantana joined #nim
20:55:58*termer quit (Quit: ZNC 1.8.2+deb2ubuntu0.1 - https://znc.in)
20:56:28*termer joined #nim
21:21:51*vsantana quit (Ping timeout: 256 seconds)
21:39:27*rockcavera joined #nim
22:52:52*LuckyMan joined #nim
23:05:51*LuckyMan left #nim (Adeus)
23:17:27*beholders_eye quit (Ping timeout: 256 seconds)
23:29:55*tiorock joined #nim
23:29:55*rockcavera is now known as Guest2103
23:29:55*Guest2103 quit (Killed (erbium.libera.chat (Nickname regained by services)))
23:29:55*tiorock is now known as rockcavera