<< 18-03-2026 >>

00:56:03*mrinsane joined #nim
02:07:36*rockcavera quit (Remote host closed the connection)
03:13:33*tokyovigilante joined #nim
05:40:35*mrinsane quit (Ping timeout: 244 seconds)
08:22:56*beholders_eye joined #nim
09:36:28*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
09:45:29*SchweinDeBurg joined #nim
15:15:28*mrinsane joined #nim
15:21:45*mrinsane quit (Ping timeout: 248 seconds)
15:43:56*mrinsane joined #nim
15:59:28*krunsh joined #nim
16:08:16*joast quit (Quit: Leaving.)
16:16:09*joast joined #nim
16:22:34FromDiscord<nocturn9x> also, nope
16:22:40FromDiscord<nocturn9x> In reply to @janakali "<@523555920265871380> you can workaround": doesn't work!
16:22:43FromDiscord<nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=AFeEEnJl
16:23:22FromDiscord<nocturn9x> if you wanna try on the real thing, you can clone [this](<https://git.nocturn9x.space/heimdall-engine/heimdall>) and try with `make bench VERBATIM_NET=1 EVALFILE=../networks/files/laevateinn-v2-verbatim.bin`
16:23:35FromDiscord<nocturn9x> idk what specifically about this setup is making it angry
16:23:48FromDiscord<nocturn9x> the nim code is fine, the problem is the C output
16:24:53FromDiscord<nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=FivSvTYo
16:25:21FromDiscord<nocturn9x> but if I do `network = cast[ptr Network](cast[ptr UncheckedArray[byte]](VERBATIM_NET_DATA))[]` it doesn't work?
16:25:26FromDiscord<nocturn9x> wouldn't that be equivalent=
16:25:28FromDiscord<nocturn9x> (edit) "equivalent=" => "equivalent?"
16:25:50FromDiscord<nocturn9x> hmm if I make `temp` a `const` the error reappers
16:26:00FromDiscord<nocturn9x> so it's something about how nim is generating the C code if it inlines the constant
16:26:01FromDiscord<nocturn9x> _weird_
16:48:32Amun-Ranocturn9x: I'll test it tomorrow
16:48:42FromDiscord<nocturn9x> thanks :)
16:48:51FromDiscord<nocturn9x> right now I can get away with using `let temp`
16:48:56FromDiscord<nocturn9x> but really weird that it breaks like this
16:49:17Amun-Rathat's the way I'd do it