| 01:26:05 | * | rockcavera quit (Remote host closed the connection) |
| 01:50:47 | * | rockcavera joined #nim |
| 01:59:13 | * | xet7 quit (Quit: Leaving) |
| 03:10:30 | * | rockcavera quit (Remote host closed the connection) |
| 04:37:51 | * | zero` quit (Ping timeout: 269 seconds) |
| 04:39:11 | * | zero` joined #nim |
| 05:34:42 | * | lucerne90 quit (Ping timeout: 265 seconds) |
| 06:50:28 | * | zero`_ joined #nim |
| 06:52:59 | * | zero`__ joined #nim |
| 06:53:39 | * | zero` quit (Ping timeout: 252 seconds) |
| 06:55:29 | * | zero`_ quit (Ping timeout: 241 seconds) |
| 08:06:27 | * | lucerne90 joined #nim |
| 08:44:40 | FromDiscord | <enthus1ast.> In reply to @riku5543 "Heya, I have a": do the client sends a line seperator? ↵In general, i would send then receive the ok.↵So that both ends send and read.↵this way you can detect disconnects |
| 08:45:54 | FromDiscord | <enthus1ast.> @aaronspeedy are you aware of https://github.com/enthus1ast/nimja for html generation? |
| 08:47:57 | FromDiscord | <enthus1ast.> tcp is weird ( https://www.youtube.com/watch?v=JRTLSxGf_6w ) |
| 10:15:23 | * | Jjp137 quit (Ping timeout: 242 seconds) |
| 10:55:30 | * | oisota quit (Quit: Ping timeout (120 seconds)) |
| 10:55:45 | * | oisota joined #nim |
| 11:09:17 | FromDiscord | <riku5543> In reply to @enthus1ast. "do the client sends": Okay thank you. Yeah I was sending the line separators, I guess a ping is fine haha |
| 11:18:38 | * | pmp-p quit (Quit: No Ping reply in 180 seconds.) |
| 11:19:59 | * | pmp-p joined #nim |
| 11:25:14 | * | Skippy8 joined #nim |
| 11:43:56 | * | maxycodon joined #nim |
| 11:46:15 | * | maxycodon left #nim (#nim) |
| 12:38:47 | * | tarzeau_ quit (Ping timeout: 260 seconds) |
| 12:49:40 | * | Skippy8 quit (Read error: Connection reset by peer) |
| 12:54:41 | * | Skippy8 joined #nim |
| 12:55:51 | * | tarzeau joined #nim |
| 13:27:24 | * | Skippy8 quit (Ping timeout: 245 seconds) |
| 13:29:37 | FromDiscord | <aaronspeedy> In reply to @enthus1ast. "<@487408241723179030> are you aware": Yes, but I wanted to write it simply in my code |
| 13:31:04 | FromDiscord | <aaronspeedy> https://media.discordapp.net/attachments/371759389889003532/1534916718604845167/screenshot-20260806-083037.png?ex=6a75de17&is=6a748c97&hm=6120608f7e63806cb9c093f587c865efa66bab8e2eefb9713bfd1574206bbd22& |
| 13:31:42 | FromDiscord | <aaronspeedy> https://media.discordapp.net/attachments/371759389889003532/1534916878475071519/screenshot-20260806-083123.png?ex=6a75de3d&is=6a748cbd&hm=c314166d121d9f1beeef19c16f9cca0982bf351f91560cb60d71749d3d34f717& |
| 13:32:59 | FromDiscord | <aaronspeedy> Don't get why you would use some weird templating language when you have metaprogramming in Nim |
| 13:35:47 | * | Skippy8 joined #nim |
| 13:44:10 | FromDiscord | <zumi.dxy> but i like html :( |
| 13:46:15 | FromDiscord | <leiserfg> imho it's not worthy unless the amount of dynamic stuff is way bigger than the static one, if you have any error it will be a pain to debug where it is |
| 13:46:40 | FromDiscord | <enthus1ast.> Well, you can copy and paste HTML... And also extend your template with a base template etc |
| 13:48:11 | FromDiscord | <enthus1ast.> And to be honest, i know html already, why should I learn another representation of html |
| 13:49:15 | FromDiscord | <enthus1ast.> Ah and it's static |
| 14:04:49 | FromDiscord | <aaronspeedy> You can do the same in this |
| 14:04:56 | FromDiscord | <aaronspeedy> This is basically HTML, but written in code |
| 14:05:02 | FromDiscord | <aaronspeedy> Good errors and everything |
| 14:05:50 | FromDiscord | <aaronspeedy> https://media.discordapp.net/attachments/371759389889003532/1534925465981030441/screenshot-20260806-090525.png?ex=6a75e63c&is=6a7494bc&hm=9f87a789272279d28efff234ba746a31a22e037d6ac56501c7cd90d4b2592620& |
| 14:07:03 | FromDiscord | <aaronspeedy> literally the only things are `html`, `attr`, `html_template`, `paste_body`, returning an HtmlTemplate, and accepting an HtmlTemplate into an `html` macro |
| 14:08:13 | FromDiscord | <aaronspeedy> And of course you can embed it in the usual constructs like for loops and everything |
| 14:09:11 | FromDiscord | <aaronspeedy> that is not specially handled, but rather a result of this being plain Nim code |
| 14:18:01 | FromDiscord | <aaronspeedy> My thing is also only 335 lines of code |
| 14:18:25 | FromDiscord | <aaronspeedy> vs nimja, which is close to 2,000 |
| 14:19:01 | Amun-Ra | l |
| 14:19:12 | Amun-Ra | wrong terminal ;) |
| 14:19:42 | FromDiscord | <aaronspeedy> holy crap this server is compromised |
| 14:26:32 | FromDiscord | <grotesquemalfeasance> rm |
| 14:27:36 | Amun-Ra | abort |
| 14:27:46 | FromDiscord | <nervecenter> In reply to @aaronspeedy "Don't get why you": Nim also has source code filters which are perfectly fine for HTML templating |
| 14:28:22 | FromDiscord | <nervecenter> (I was a big fan of Clojure Hiccup back in the day so I'm not opposed to metaprogramming or data structures for templating) |
| 14:35:09 | FromDiscord | <aaronspeedy> Woah, I didn't know that |
| 14:35:13 | FromDiscord | <aaronspeedy> That's awesome |
| 14:44:11 | * | Skippy8 quit (Ping timeout: 272 seconds) |
| 16:10:19 | FromDiscord | <abdulrahman.103> does nim have proper opencv bindings |
| 16:12:04 | * | Skippy8 joined #nim |
| 16:13:03 | * | Jjp137 joined #nim |
| 16:17:03 | FromDiscord | <abdulrahman.103> I liked the language but it seems bindings even for popular stuff are unmaintained |
| 16:20:51 | Amun-Ra | I wouldn't call opencv popular |
| 16:21:08 | Amun-Ra | (ymmv) |
| 16:21:50 | FromDiscord | <enthus1ast.> In reply to @nervecenter "Nim also has source": Yes, I've used those before but I've missed too many features and decided to write nimja. The work basically the same (and are in the same performance ballpark) |
| 16:22:07 | FromDiscord | <enthus1ast.> (edit) "The" => "They" |
| 16:24:36 | FromDiscord | <enthus1ast.> In reply to @aaronspeedy "": Ok and now do css 😉 |
| 16:24:49 | FromDiscord | <enthus1ast.> Or SVG or whatever might come |
| 16:24:57 | FromDiscord | <aaronspeedy> I did do it before |
| 16:25:10 | FromDiscord | <aaronspeedy> just had selector and context blocks |
| 16:25:14 | FromDiscord | <aaronspeedy> but I removed it |
| 16:25:27 | FromDiscord | <enthus1ast.> I mean templating css |
| 16:25:34 | * | Skippy8 quit (Ping timeout: 256 seconds) |
| 16:25:35 | FromDiscord | <aaronspeedy> it worked with templates |
| 16:26:19 | FromDiscord | <aaronspeedy> I rewrote the library, and then didn't have a need for it |
| 16:26:27 | FromDiscord | <aaronspeedy> but I might release it, and if people want they can add it |
| 16:26:49 | FromDiscord | <enthus1ast.> Oh I thought it was htmlgen |
| 16:26:53 | FromDiscord | <aaronspeedy> Nah |
| 16:26:56 | FromDiscord | <enthus1ast.> Nevermind then |
| 16:27:14 | FromDiscord | <aaronspeedy> htmlgen doesn't have templates |
| 16:27:36 | FromDiscord | <aaronspeedy> and also attributes are argument parameters instead of functions, which makes them harder to compose |
| 16:28:21 | FromDiscord | <enthus1ast.> Yes, that's what I mean. Ninja avoids this all, and might even be faster than all of this |
| 16:28:31 | FromDiscord | <enthus1ast.> (edit) "Ninja" => "Nimja" |
| 16:30:33 | FromDiscord | <aaronspeedy> I could see it being useful if you want something that works for lots of different formats |
| 16:30:36 | FromDiscord | <aaronspeedy> markdown and the like |
| 16:31:33 | FromDiscord | <enthus1ast.> Or wireguard, nginx, zone configs etc pp |
| 16:31:51 | FromDiscord | <aaronspeedy> yo that's crazy |
| 16:31:56 | FromDiscord | <enthus1ast.> I use it for everything, even as a strformat replacement, but I might be biased |
| 16:35:44 | FromDiscord | <nervecenter> In reply to @enthus1ast. "Yes, I've used those": I was previously using Nimja, but I'm not doing anything that requires too many gymnastics so, apologies, I decided to cut the dependency. |
| 16:36:07 | FromDiscord | <enthus1ast.> Yes I understand |
| 16:36:10 | FromDiscord | <nervecenter> I was using it pretty prolifically for our primary product |
| 16:37:29 | FromDiscord | <enthus1ast.> I also like to be as lean as possible for new projects |
| 16:38:10 | * | Skippy8 joined #nim |
| 16:40:53 | FromDiscord | <aaronspeedy> Can Nimja be used without creating new files? |
| 16:41:34 | FromDiscord | <aaronspeedy> In a """ block or whatever |
| 16:42:37 | * | Skippy8 quit (Ping timeout: 260 seconds) |
| 16:43:38 | * | zodman quit (Ping timeout: 265 seconds) |
| 17:10:20 | FromDiscord | <aaronspeedy> Nimja is super interesting, but, at a first glance, having explicit for and endfor like things might be limiting it |
| 17:10:50 | FromDiscord | <aaronspeedy> If you think about the different axis of composition |
| 17:11:48 | FromDiscord | <aaronspeedy> But I'm unsure since I don't have any experience with it |
| 17:58:23 | FromDiscord | <enthus1ast.> @aaronspeedy What are you thinking about? |
| 18:03:09 | FromDiscord | <declasy> Hi |
| 18:09:46 | * | Artea quit (Read error: Connection reset by peer) |
| 18:24:51 | * | Skippy8 joined #nim |
| 18:29:22 | * | Skippy8 quit (Ping timeout: 260 seconds) |
| 18:29:42 | * | Skippy8 joined #nim |
| 18:54:50 | FromDiscord | <abdulrahman.103> has anybody used sdl in nim? |
| 18:54:59 | FromDiscord | <abdulrahman.103> which bindings should i use |
| 18:55:17 | FromDiscord | <abdulrahman.103> there is official sdl2 and unofficial sdl3 |
| 19:08:07 | * | Skippy8 quit (Ping timeout: 264 seconds) |