<< 11-09-2026 >>

00:17:33*rockcavera quit (Remote host closed the connection)
00:41:07*KawaiiSelbst quit (Read error: Connection reset by peer)
00:42:07*rockcavera joined #nim
00:42:13*KawaiiSelbst joined #nim
02:46:46FromDiscord<zkopt_> In reply to @litlighilit "just use \`const\` or": you can't use table for const
02:48:08FromDiscord<zkopt_> var with {.compileTime.} paragma is right answer↵↵I solve that problem with var and {.compileTime.} paragma
02:49:02*rockcavera quit (Remote host closed the connection)
04:16:45*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
04:28:51*deavmi quit (Read error: Connection reset by peer)
04:37:21*deavmi joined #nim
05:01:17*SchweinDeBurg joined #nim
05:03:10FromDiscord<Tóth Alfréd> I think it's more like a mix of Pascal and Rust with the syntax being very similar to Python↵(@xenthial)
05:48:19FromDiscord<amun0666> In reply to @zkopt_ "var with {.compileTime.} paragma": You can use table for const
05:48:20FromDiscord<amun0666> .
05:51:34FromDiscord<amun0666> sent a code paste, see https://paste.rs/yoeDR
06:13:28*sdothum quit (Ping timeout: 259 seconds)
06:26:31*sdothum joined #nim
06:41:39FromDiscord<Laylie> no code, no error message, no description of what they're trying to do, very difficult to help
06:43:27FromDiscord<b0rsuk> In reply to @Amun-Ra "in what sense?": `Nim = 1/2 C`, therefore `2 Nim = C`.↵People talk a lot about C in this server. Long ago I finished C exercises bundled with my copy of `C Programming Language` (K&R), but I don't think it's enough to make me a better Nim programmer.
06:45:21FromDiscord<amun0666> And `2 == C / Nim`
07:45:31*hygo joined #nim
07:57:17FromDiscord<b0rsuk> This message confused me for several minutes.↵It says `for split`, but it's actually getting the correct type (a string) for the split function. What it really means is the function should return a string. And if I put a dollar in front of the line, I get no error (function logic is incomplete though). https://media.discordapp.net/attachments/371759389889003532/1547878685707866153/but_expected.png?ex=6aa505dc&is=6aa3b45c&hm=1b00568470b
07:58:09FromDiscord<b0rsuk> No, it's getting `seq[string]` from `split`.
09:41:04*Jhonny2x4 quit (Quit: Jhonny2x4)
09:41:17*Jhonny2x4 joined #nim
10:30:00FromDiscord<amun0666> In reply to @b0rsuk "`Nim = 1/2 C`,": You can program in Nim like you did in C. I usually try to use as many low level functions as possible.
10:41:40FromDiscord<b0rsuk> In reply to @amun0666 "You can program in": Is there anything in the stdlib for benchmarking? We both know you can't program C style without benchmarking.
10:43:17FromDiscord<b0rsuk> It surprises me the "Nim for C programmers" document doesn't mention benchmarking 🙂
10:48:10FromDiscord<amun0666> Hmm, I almost never benchmarked any of my C programs… 😉
11:01:27*beholders_eye joined #nim
12:58:19FromDiscord<ghazalialshafi> In reply to @b0rsuk "It surprises me the": There is a famous lib in nim to do it : https://github.com/treeform/benchy
13:52:10FromDiscord<b0rsuk> In reply to @ghazalialshafi "There is a famous": It's third party, so you can't use it on exercism.org for example
13:52:41FromDiscord<b0rsuk> And it would be tempting to do so because it encourages you to try at least a couple of programming languages.
13:53:22FromDiscord<b0rsuk> The attitude I sense from C and Rust programmers is Benchmark Driven Development.