| 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:39 | FromDiscord | <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:10 | FromDiscord | <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:23 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=akgpiIfZ |
| 17:04:28 | FromDiscord | <_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:39 | FromDiscord | <mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=hGfHmWmP |
| 17:39:28 | FromDiscord | <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:37 | FromDiscord | <Robyn [She/Her]> In reply to @mjsdev "Seems to work with": oh... painful |
| 20:48:01 | FromDiscord | <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:26 | FromDiscord | <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:12 | FromDiscord | <mjsdev> Why is it painful, tho? |
| 21:46:02 | FromDiscord | <mjsdev> Having the option to do dynamic expression parsing with a pre-defined scope seems pretty useful for other use-cases. |
| 21:47:48 | FromDiscord | <Robyn [She/Her]> In reply to @mjsdev "Having the option to": wait I don't think I get it |
| 22:07:07 | FromDiscord | <mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=BxfbHJcR |
| 22:07:48 | FromDiscord | <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:37 | FromDiscord | <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:21 | FromDiscord | <mjsdev> nimja works by parsing templates and effectively transpiling them to nim code that gets compiled with the app. |
| 22:10:55 | FromDiscord | <mjsdev> I want an app/backend that's fully compiled, and a front-end that's almost fully dynamic. |
| 22:12:02 | FromDiscord | <mjsdev> HTML/CSS/JS problem, I should be able to hotfix it in prod, without a redeploy. |
| 22:13:05 | FromDiscord | <mjsdev> And I should be able to dev it without recompiling my app. |
| 22:39:01 | * | mahlon quit (Ping timeout: 264 seconds) |
| 23:15:35 | FromDiscord | <_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:06 | FromDiscord | <mjsdev> I believe Karax is using JS backend? |
| 23:29:36 | FromDiscord | <mjsdev> Yeah, I don't want front-end rendered templates. |
| 23:29:50 | FromDiscord | <mjsdev> I want back-end rendered templates, with HTMX. |
| 23:33:36 | FromDiscord | <mjsdev> Nims occasional (when you want it) and definite (when you don't want it) use of converters is annoying. |
| 23:36:57 | FromDiscord | <mjsdev> Maybe it's something to do with the generic return type |
| 23:52:07 | FromDiscord | <_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:38 | FromDiscord | <mjsdev> Right, but then presumably those templates are compiled 😛 |
| 23:52:57 | FromDiscord | <mjsdev> like nimja (and all the other templating engines) |
| 23:53:59 | FromDiscord | <mjsdev> I want a back-end rendered template that is runtime interpreted. |