<< 08-11-2025 >>

00:58:51*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
01:14:30*SchweinDeBurg joined #nim
02:33:28*rockcavera joined #nim
05:14:39FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=ZirmxCMp
07:01:53*tiorock joined #nim
07:01:53*rockcavera is now known as Guest9514
07:01:53*Guest9514 quit (Killed (osmium.libera.chat (Nickname regained by services)))
07:01:53*tiorock is now known as rockcavera
12:25:56*beholders_eye joined #nim
12:48:17*xutaxkamay quit (Ping timeout: 244 seconds)
13:17:25*mahlon quit (Ping timeout: 264 seconds)
13:30:34*beholders_eye quit (Ping timeout: 265 seconds)
13:31:04*xutaxkamay joined #nim
13:47:10FromDiscord<kiloneie> In reply to @janakali "neat trick I found": There are so many cool things Nim can do, but they are buried by obscurity.↵That's a really cool way of giving `result` a conditional value...
16:30:23FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=akgpiIfZ
17:04:28FromDiscord<_nenc> In reply to @StarGazerM (Sun Yihao) "Is there any quasipattern": maybe https://github.com/nim-lang/ast-pattern-matching/tree/master
17:37:17*rockcavera quit (Remote host closed the connection)
17:37:39FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=hGfHmWmP
17:39:28FromDiscord<mjsdev> Basically working on a runtime dynamic language for simple expressions given a scope (no control structures or anything).
18:20:45*beholders_eye joined #nim
19:29:36*mahlon joined #nim
20:47:37FromDiscord<Robyn [She/Her]> In reply to @mjsdev "Seems to work with": oh... painful
20:48:01FromDiscord<Robyn [She/Her]> In reply to @mjsdev "Seems to work with": good luck, but why do you want that?
20:52:36*Arcar joined #nim
20:52:54*Arcar left #nim (#nim)
21:27:09*hygo quit (Quit: WeeChat 4.7.1)
21:44:26FromDiscord<mjsdev> In reply to @battery.acid.bubblegum "good luck, but why": I'm a web developer. Recompiling my application because I added a tailwind class to a template isn't working.
21:45:04*hygo joined #nim
21:45:12FromDiscord<mjsdev> Why is it painful, tho?
21:46:02FromDiscord<mjsdev> Having the option to do dynamic expression parsing with a pre-defined scope seems pretty useful for other use-cases.
21:47:48FromDiscord<Robyn [She/Her]> In reply to @mjsdev "Having the option to": wait I don't think I get it
22:07:07FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=BxfbHJcR
22:07:48FromDiscord<mjsdev> I want to be able to change the HTML in that template (classes, overall structure, etc), without having to recompile my entire application.
22:08:37FromDiscord<mjsdev> So long as the values in scope `users` (as provided elsewhere) and `foo` and `bar` (as set in the template) exist, all other HTML code in this, even the layout it extends, should be changeable without a recompile.
22:10:21FromDiscord<mjsdev> nimja works by parsing templates and effectively transpiling them to nim code that gets compiled with the app.
22:10:55FromDiscord<mjsdev> I want an app/backend that's fully compiled, and a front-end that's almost fully dynamic.
22:12:02FromDiscord<mjsdev> HTML/CSS/JS problem, I should be able to hotfix it in prod, without a redeploy.
22:13:05FromDiscord<mjsdev> And I should be able to dev it without recompiling my app.
22:39:01*mahlon quit (Ping timeout: 264 seconds)
23:15:35FromDiscord<_bluecapybara> In reply to @mjsdev "I want an app/backend": Doesn't Karax do this? You could have your front-end made in Karax using the JS backend and just send the file from the backend. You can add the attributes (like `class=""`) using the `tag(attribute = value)` syntax
23:29:06FromDiscord<mjsdev> I believe Karax is using JS backend?
23:29:36FromDiscord<mjsdev> Yeah, I don't want front-end rendered templates.
23:29:50FromDiscord<mjsdev> I want back-end rendered templates, with HTMX.
23:33:36FromDiscord<mjsdev> Nims occasional (when you want it) and definite (when you don't want it) use of converters is annoying.
23:36:57FromDiscord<mjsdev> Maybe it's something to do with the generic return type
23:52:07FromDiscord<_bluecapybara> In reply to @mjsdev "I believe Karax is": Karax works with the C backend too, and can provide the templates for HTMX. On the C backend works by emitting pure HTML
23:52:38FromDiscord<mjsdev> Right, but then presumably those templates are compiled 😛
23:52:57FromDiscord<mjsdev> like nimja (and all the other templating engines)
23:53:59FromDiscord<mjsdev> I want a back-end rendered template that is runtime interpreted.