<< 21-03-2025 >>

00:16:40*modev joined #nim
00:20:05*modev quit (Client Quit)
01:01:44FromDiscord<m4ul3r> Is there a way to package a config.nims with a nimble library?
01:03:15FromDiscord<Robyn [She/Her]> In reply to @m4ul3r "Is there a way": No, what are you trying to do though?
01:03:38FromDiscord<Robyn [She/Her]> You might be able to achieve something similar if you share what you want to do
01:04:45FromDiscord<m4ul3r> Pass in a defines while using the library to toggle on passing stuff to the compiler when gcc is detected
01:05:56FromDiscord<Robyn [She/Her]> You can use the `{.define: whateverFlagHere.}` pragma
01:07:56FromDiscord<m4ul3r> define isn't a valid pragma, I'm just trying to avoid using passC pragma in hopes that a config.nims can be used
01:15:33FromDiscord<Robyn [She/Her]> In reply to @m4ul3r "define isn't a valid": I beg to differ: https://github.com/The-Ticking-Clockwork/NULID/blob/main/src/nulid.nim#L1
01:16:29FromDiscord<m4ul3r> probably because i used quotes, i see
01:16:55FromDiscord<Robyn [She/Her]> yeah i likely should of clarified that, my mistake
01:19:44FromDiscord<henrytheodore_4> sent a long message, see https://pasty.ee/nUSyyZFw
01:25:46FromDiscord<Robyn [She/Her]> <@&371760044473319454>
01:26:19FromDiscord<leorize> I was gonna ban that one from this side
01:26:27FromDiscord<leorize> but apparently discord is getting hit instead
01:30:18FromDiscord<Robyn [She/Her]> yep
01:57:23*tiorock joined #nim
01:57:23*rockcavera is now known as Guest6043
01:57:23*Guest6043 quit (Killed (lead.libera.chat (Nickname regained by services)))
01:57:23*tiorock is now known as rockcavera
01:59:31*tiorock joined #nim
01:59:31*tiorock quit (Changing host)
01:59:31*tiorock joined #nim
01:59:31*rockcavera is now known as Guest2544
01:59:31*tiorock is now known as rockcavera
02:02:19*Guest2544 quit (Ping timeout: 265 seconds)
03:08:26*rockcavera quit (Remote host closed the connection)
03:20:08FromDiscord<n0bra1n3r.nim> Hello again. Is there a way to `nimeval.Interpretter.callRoutine` an iterator in nimscript? Not exactly sure how this would work even if possible, just thought I'd ask
03:22:12FromDiscord<n0bra1n3r.nim> If not, next best thing would be a way to call an iterator one "loop" at a time, so I can call it from inside a proc, and call that proc multiple times
03:23:01FromDiscord<n0bra1n3r.nim> kind of like an equivalent of `std::iterator` in C++
03:24:07FromDiscord<n0bra1n3r.nim> (edit) ""loop"" => ""iteration""
03:24:59FromDiscord<Elegantbeef> It's best to make a proc that returns a bool and the value then just call it until the `bool` is false
03:25:06FromDiscord<Elegantbeef> You then can make a Nim `iterator`
03:31:40FromDiscord<n0bra1n3r.nim> Ya I was hoping that wasn't needed, I'm trying to avoid creating new types in the little DSL I'm making, doesn't look like I can avoid it for this case
04:32:39*fallback quit (Ping timeout: 260 seconds)
04:57:58*fallback joined #nim
05:13:35*ntat joined #nim
05:30:29*eagledot joined #nim
06:05:21*derpydoo joined #nim
07:40:52*termer_ quit (Remote host closed the connection)
07:41:21*termer joined #nim
07:54:53*ntat quit (Quit: leaving)
08:07:19*eagledot quit (Ping timeout: 260 seconds)
08:11:02*om3ga quit (Ping timeout: 244 seconds)
08:12:38*om3ga joined #nim
08:12:38*eagledot joined #nim
08:17:30*eagledot quit (Ping timeout: 272 seconds)
08:57:42*ntat joined #nim
09:59:47FromDiscord<Zoom> From what I recall from trying to change all strutils to openArray[char] it mostly worked, but for some cases it didn't and required some hacks and overloads
10:38:48*derpydoo quit (Quit: derpydoo)
10:45:21*Ekho quit (Remote host closed the connection)
11:04:46*Ekho joined #nim
12:04:16*ntat quit (Quit: leaving)
12:08:03*ntat joined #nim
12:30:32*ntat quit (Quit: leaving)
13:35:04*anddam quit (Ping timeout: 252 seconds)
13:48:10*anddam joined #nim
16:19:08FromDiscord<threefour> I'm trying to get a table of values with arbitrary types, which aren't known at compile time. The C solution is `void`. `ref void` and `ptr void` aren't allowed, so what's the solution in Nim?
16:23:52FromDiscord<demotomohiro> In reply to @threefour "I'm trying to get": It is a bit different from your question, but it would help: https://internet-of-tomohiro.pages.dev/nim/faq.en#type-how-to-store-different-types-in-seqqmark
16:25:44FromDiscord<lainlaylie> our `void` is `pointer`
16:33:57*ntat joined #nim
16:52:34*coldfeet joined #nim
17:29:12*coldfeet quit (Quit: Lost terminal)
18:40:26*andreas_ quit (Ping timeout: 268 seconds)
18:45:34FromDiscord<albassort> i keep getting this weird t yp
18:45:36FromDiscord<albassort> (edit) "t yp" => "type"
18:45:57FromDiscord<albassort> KeyValuePair[T,T] from a func that is supposed to return a Table
18:46:10FromDiscord<albassort> how can i convert this to a Table at compile time because it doesn't work with %
18:53:45*andreas_ joined #nim
19:23:16FromDiscord<albassort> i was being stupid
19:23:33FromDiscord<albassort> sent a code paste, see https://play.nim-lang.org/#pasty=NvAAvMrx
19:27:28FromDiscord<albassort> sent a code paste, see https://play.nim-lang.org/#pasty=PrycSeFz
19:28:05FromDiscord<nirokayyy> sent a code paste, see https://play.nim-lang.org/#pasty=bMadqlZp
19:28:15FromDiscord<nirokayyy> thanks in advance :D
19:28:34*GnuYawk quit (Quit: The Lounge - https://thelounge.chat)
19:29:02*GnuYawk joined #nim
19:29:16FromDiscord<nirokayyy> (edit) "https://play.nim-lang.org/#pasty=ZOKcBcck" => "https://play.nim-lang.org/#pasty=OehzydYC"
19:31:03FromDiscord<leorize> it's not possible
19:31:16FromDiscord<leorize> the list of pairs are hard-coded in the compiler, unfortunately
19:33:13FromDiscord<nirokayyy> damn, sad↵thank you for you fast response :)
20:02:01FromDiscord<Elegantbeef> You can use `{}` though
20:03:13FromDiscord<Robyn [She/Her]> Does GCC not provide asan?
20:03:26FromDiscord<leorize> it's a separate library if you want it
20:03:31FromDiscord<Robyn [She/Her]> Apparently it's built-in to GCC compilers \> 4.8
20:03:57FromDiscord<Robyn [She/Her]> Apparently it's built-in to GCC compilers \>= 4.8
20:04:03FromDiscord<leorize> for clang it's packed with compiler-rt, so you almost always get it when you install
20:11:57FromDiscord<Robyn [She/Her]> hm alright
20:12:18FromDiscord<Robyn [She/Her]> eh i dont usually use GCC anyway for my C dev so not my problem
20:59:11*Guest25 joined #nim
21:00:15*Guest25 quit (Client Quit)
21:10:25*ntat quit (Quit: leaving)
23:27:34*derpydoo joined #nim