00:34:16 | FromDiscord | <Riley Wood's> Hello guys DM is open |
00:36:34 | * | beholders_eye quit (Ping timeout: 272 seconds) |
00:42:17 | * | tiorock joined #nim |
00:42:17 | * | rockcavera is now known as Guest1907 |
00:42:17 | * | Guest1907 quit (Killed (iridium.libera.chat (Nickname regained by services))) |
00:42:17 | * | tiorock is now known as rockcavera |
00:44:25 | * | tiorock joined #nim |
00:44:25 | * | rockcavera is now known as Guest2910 |
00:44:25 | * | tiorock is now known as rockcavera |
00:47:07 | * | Guest2910 quit (Ping timeout: 252 seconds) |
01:18:31 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=OuqtaZXu |
01:19:35 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=YQsWRzIu |
01:20:50 | FromDiscord | <zumi.dxy> ah, right |
01:20:54 | FromDiscord | <Elegantbeef> https://github.com/beef331/nimtrest/blob/master/staticcases.nim#L81-L92 uses a macro to make this actually use of branches |
01:21:13 | FromDiscord | <zumi.dxy> good ol' if statement |
01:22:03 | FromDiscord | <zumi.dxy> I could probably yoink that |
01:23:55 | FromDiscord | <Elegantbeef> Though if you're just using an enum and mapping it to a value use a fricken array |
01:27:29 | FromDiscord | <zumi.dxy> well I did want to use it as a template to instantiate functions at compiletime↵where one of its arguments is runtime :p |
01:27:47 | FromDiscord | <Elegantbeef> Uh huh |
01:27:51 | FromDiscord | <zumi.dxy> (edit) "its" => "the functions'" |
01:27:55 | FromDiscord | <Elegantbeef> Have you considered using generics? |
01:29:08 | FromDiscord | <zumi.dxy> actually I could probably just use a tuple :p |
01:29:25 | FromDiscord | <zumi.dxy> not really generics related |
01:29:39 | FromDiscord | <Elegantbeef> Well it is you have a static value you want to use a specific procedure |
01:29:40 | FromDiscord | <Elegantbeef> Sounds like a generic |
01:32:03 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=MNmQALRm |
01:33:34 | * | xutaxkamay quit (Ping timeout: 272 seconds) |
01:35:42 | * | rockcavera quit (Remote host closed the connection) |
01:42:16 | * | xutaxkamay joined #nim |
02:06:51 | * | tokyovigilante_ joined #nim |
02:07:54 | * | tokyovigilante quit (Ping timeout: 252 seconds) |
02:07:55 | * | tokyovigilante_ is now known as tokyovigilante |
02:09:08 | FromDiscord | <.bobbbob> sent a code paste, see https://play.nim-lang.org/#pasty=CuXIPdgG |
02:09:39 | FromDiscord | <Elegantbeef> I'm like 90% certain that's not what a dependant type is |
02:09:53 | FromDiscord | <.bobbbob> oh yeah nvm |
02:09:58 | FromDiscord | <Elegantbeef> There is no reliance on runtime values there |
02:10:07 | FromDiscord | <Elegantbeef> That's just a generic proc generator |
02:10:40 | FromDiscord | <.bobbbob> does it count as first class types or does it convert it to a generic proc under the hood/ |
02:10:43 | FromDiscord | <.bobbbob> (edit) "hood/" => "hood?" |
02:14:58 | FromDiscord | <Elegantbeef> It has to instaniate it |
02:15:00 | FromDiscord | <Elegantbeef> instantiate even |
02:17:30 | FromDiscord | <.bobbbob> sent a code paste, see https://play.nim-lang.org/#pasty=zygicsbL |
02:17:37 | FromDiscord | <.bobbbob> to be clear I dont want to actually do this |
02:17:59 | FromDiscord | <Elegantbeef> typedescs cannot be returned from procedures |
02:18:03 | FromDiscord | <Elegantbeef> Only templates |
02:18:29 | FromDiscord | <.bobbbob> hmm strange that it compiles then |
02:18:51 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=XNuKdbcu |
02:18:54 | FromDiscord | <Elegantbeef> Works fine |
02:19:19 | FromDiscord | <.bobbbob> yeah but templates are cheating 😛 |
02:19:38 | FromDiscord | <Elegantbeef> I mean it doesn't compile |
02:19:54 | FromDiscord | <Elegantbeef> `tst2(int)` has no type which is wrong |
02:20:43 | FromDiscord | <Elegantbeef> Well procs are not useful in anything that they cannot return so you have to use a template or macro |
04:07:19 | * | PMunch__ joined #nim |
04:09:58 | * | PMunch_ quit (Ping timeout: 244 seconds) |
04:52:45 | FromDiscord | <user2m> In reply to @battery.acid.bubblegum "<@419925691832991754> Have you tried": Never even heard of that I'll look into it now! Any links you can point me to? |
06:17:36 | * | ntat joined #nim |
07:24:03 | FromDiscord | <Riley Wood's> sent a long message, see https://pasty.ee/GkXiHztA |
08:20:11 | * | Zevv left #nim (#nim) |
09:25:10 | FromDiscord | <nirokayyy> sent a code paste, see https://play.nim-lang.org/#pasty=fithJrRb |
09:56:37 | * | ntat quit (Quit: Leaving) |
09:56:40 | * | beholders_eye joined #nim |
10:03:49 | FromDiscord | <nnsee> In reply to @nirokayyy "looks cool, but i": maybe a stupid question but aren't you basically still writing html except with a slightly different syntax |
10:04:11 | FromDiscord | <nnsee> especially that css... that's just css wrapped in tinfoil, no? |
10:05:17 | * | Guest38 joined #nim |
10:07:21 | * | Guest38 quit (Client Quit) |
10:11:40 | FromDiscord | <nirokayyy> In reply to @nnsee "maybe a stupid question": yup xD↵but i hate the HTML syntax, and this also allows me to modify it with Nim code and such |
10:23:40 | FromDiscord | <nirokayyy> my main motivation was to forego repeating myself constantly in HTML↵i can make a proc to do thst for me and call it multiple times with diffetent argscto modify the generated content |
10:43:19 | FromDiscord | <heysokam> In reply to @nirokayyy "looks cool, but i": are you aware of [taggy](https://github.com/treeform/taggy) ?↵syntax is much cleaner, imo |
10:44:16 | FromDiscord | <odexine> > ⚠️ This library is still in development and is NOT ready to be used. ⚠️ |
10:44:45 | FromDiscord | <heysokam> sure, but it does like 90% of everything needed already, like every treeform library that he publishes |
10:45:44 | FromDiscord | <heysokam> also, it can still be used as a reference for how to not need procs for achieving the goal, since procs are what is polluting that example's syntax |
11:06:57 | FromDiscord | <Robyn [She/Her]> In reply to @user2m "Never even heard of": Pass `-fsanitize=address` to your C compiler and that's all you need to enable it |
11:07:08 | FromDiscord | <Robyn [She/Her]> https://github.com/google/sanitizers/wiki/addresssanitizer |
11:43:26 | * | FromDiscord quit (Remote host closed the connection) |
11:43:39 | * | FromDiscord joined #nim |
11:44:29 | * | FromDiscord quit (Remote host closed the connection) |
11:44:42 | * | FromDiscord joined #nim |
11:50:04 | Amun-Ra | most compiler do not require passing *san -llibs |
11:50:09 | Amun-Ra | compilers* |
12:22:00 | FromDiscord | <nirokayyy> sent a code paste, see https://play.nim-lang.org/#pasty=DXvKbjse |
12:24:04 | FromDiscord | <nirokayyy> [the static generator here](https://github.com/treeform/taggy?tab=readme-ov-file#static-html-generator) looks undeniably awesome though, my library does not do that |
12:37:30 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "most compiler do not": yeah i said that aha |
12:47:16 | Amun-Ra | Robyn: I see, I rarely read the whole backlog ;) |
13:42:27 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "Robyn: I see, I": i mean, in the same message :p |
14:00:04 | * | PMunch_ joined #nim |
14:02:26 | * | PMunch__ quit (Ping timeout: 252 seconds) |
14:14:52 | * | beholders_eye quit (Quit: WeeChat 4.1.2) |
14:32:07 | * | ntat joined #nim |
14:50:46 | FromDiscord | <enthus1ast.> Im always a little torn when I see DSLs that generate html.↵And I often find it more cumbersome to edit this instead of "normal" html. I also -steal- copy and paste examples etc that I then have to convert to those dsls |
14:51:19 | FromDiscord | <enthus1ast.> Also editor support is so good for editing html these days |
14:52:03 | FromDiscord | <enthus1ast.> I basically have to relearn what I already know |
14:54:27 | PMunch_ | I'm with you there |
14:54:51 | PMunch_ | DSLs for HTML sound like a good idea, but the second you need to copy paste someone elses snippet it falls apart.. |
14:55:50 | * | beholders_eye joined #nim |
14:56:24 | PMunch_ | I've been thinking about writing something similar to CouchCMS for Nim. Basically HTML templates with some special syntax, then the server parses that and creates a website with a database and a dashboard for creating new "posts" based on what your special fields where |
15:08:58 | * | PMunch_ quit (Quit: Leaving) |
15:15:59 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in) |
15:17:00 | * | xutaxkamay joined #nim |
16:08:48 | * | ntat quit (Quit: Leaving) |
17:56:14 | * | jkl quit (Quit: Gone.) |
18:00:13 | * | jkl joined #nim |
18:16:03 | FromDiscord | <nervecenter> Doesn't Nimja accomplish this? |
18:27:26 | * | coldfeet joined #nim |
18:30:29 | * | ntat joined #nim |
18:44:30 | * | coldfeet quit (Quit: Lost terminal) |
20:21:56 | * | Jjp137_ joined #nim |
20:22:19 | * | Jjp137 quit (Ping timeout: 252 seconds) |
20:22:46 | * | pbsds35 quit (Quit: Ping timeout (120 seconds)) |
20:23:18 | * | pbsds35 joined #nim |
20:48:23 | FromDiscord | <__jont__> Does Nimble maintain any download metrics for its packages? Download count per version, for example |
20:52:28 | FromDiscord | <spotlightkid> The nimble packages are decentralized. Only the package index is a central location. nimble downloads packages directly from the upstream locations (usually using git). |
20:53:43 | FromDiscord | <__jont__> Yeah, figured that may have been the case. Wasn't sure if the centralized index kept track of traffic in any publicly accessible way |
20:57:11 | FromDiscord | <spotlightkid> The index is just a big JSON file. AFAIK there are now requests for individual packages.↵There's the web search on nimble.directory, but that's not what nimble does. |
20:57:19 | FromDiscord | <spotlightkid> The index is just a big JSON file. AFAIK there are no requests for individual packages.↵There's the web search on nimble.directory, but that's not what nimble does. |
20:57:52 | FromDiscord | <user2m> In reply to @PMunch_ "DSLs for HTML sound": I use dekao and just wrote a cgpt template prompt to convert from HTML to dekao |
21:04:11 | FromDiscord | <afonso.lima> sent a code paste, see https://play.nim-lang.org/#pasty=dnOvnBOv |
21:04:23 | FromDiscord | <afonso.lima> (edit) "https://play.nim-lang.org/#pasty=NECiound" => "https://play.nim-lang.org/#pasty=StgOhVJh" |
21:14:41 | FromDiscord | <pmunch> Possible indeed. The problem is just that the `text` identifier is mangled on macro expansion for hygiene reasons. If you just add `{.inject.}` after the identifier your above code works fine. |
21:17:31 | FromDiscord | <afonso.lima> sent a code paste, see https://play.nim-lang.org/#pasty=GEhvrGAj |
21:18:47 | FromDiscord | <Elegantbeef> Stop using a macro for when a template works! |
21:21:17 | FromDiscord | <afonso.lima> In reply to @Elegantbeef "Stop using a macro": Sure. That example is just a simplified version of a macro on the actual code. |
21:29:00 | FromDiscord | <Elegantbeef> Are you actually doing any introspection on the passed in code? |
21:40:16 | * | rockcavera joined #nim |
22:09:43 | * | ntat quit (Quit: Leaving) |
23:33:44 | * | tiorock joined #nim |
23:33:44 | * | tiorock quit (Changing host) |
23:33:44 | * | tiorock joined #nim |
23:33:44 | * | rockcavera is now known as Guest7186 |
23:33:44 | * | Guest7186 quit (Killed (erbium.libera.chat (Nickname regained by services))) |
23:33:44 | * | tiorock is now known as rockcavera |
23:35:50 | * | tiorock joined #nim |
23:35:50 | * | tiorock quit (Changing host) |
23:35:50 | * | tiorock joined #nim |
23:35:50 | * | rockcavera is now known as Guest4288 |
23:35:50 | * | Guest4288 quit (Killed (osmium.libera.chat (Nickname regained by services))) |
23:35:50 | * | tiorock is now known as rockcavera |