| 00:00:27 | * | gabreal quit (Ping timeout: 246 seconds) |
| 00:02:57 | * | gabreal_ quit (Client Quit) |
| 00:03:16 | * | gabreal joined #nim |
| 02:10:26 | * | rockcavera quit (Remote host closed the connection) |
| 02:59:37 | * | nmz joined #nim |
| 03:23:47 | nmz | for line in file.lines: echo line, prints an extra line, whats a way to not get that extra '\n' at EOF? |
| 03:33:39 | * | gabreal quit (Remote host closed the connection) |
| 03:34:00 | * | gabreal joined #nim |
| 03:41:00 | * | gabreal quit (Ping timeout: 245 seconds) |
| 04:07:30 | * | Goodbye_Vincent1 quit (Ping timeout: 256 seconds) |
| 04:31:54 | * | gabreal joined #nim |
| 04:36:00 | * | gabreal quit (Ping timeout: 245 seconds) |
| 05:17:02 | * | Goodbye_Vincent1 joined #nim |
| 06:43:08 | * | mrinsane quit (Ping timeout: 268 seconds) |
| 07:13:40 | Amun-Ra | echo always print additional new line |
| 07:14:09 | Amun-Ra | looks like the last line is whitespace only |
| 07:15:02 | Amun-Ra | prints* |
| 07:15:22 | Amun-Ra | check write in std/syncio |
| 10:01:13 | * | ftajhii quit (Ping timeout: 265 seconds) |
| 10:56:52 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 11:03:00 | * | SchweinDeBurg joined #nim |
| 11:39:51 | * | Mister_Magister_ joined #nim |
| 11:40:31 | * | SchweinDeBurg quit (Ping timeout: 264 seconds) |
| 11:41:07 | * | Mister_Magister quit (Ping timeout: 264 seconds) |
| 11:42:13 | * | SchweinDeBurg joined #nim |
| 11:42:56 | * | Mister_Magister_ is now known as Mister_Magister |
| 14:08:27 | * | beholders_eye joined #nim |
| 14:59:24 | nmz | Without any of the functions returning the delimiter as well it can't be done easily, you'd have to read everything by hand |
| 15:00:53 | nmz | and AFAICS all of the readline functions discard the delimiter |
| 15:03:32 | nmz | doing a simple sedlike call like echo hi | sed 's/^/ /' is not possible, plus you're adding an extra newline in everything, yikes. |
| 15:58:34 | * | mrinsane joined #nim |
| 16:01:21 | FromDiscord | <aintea> for shell echo you have `echo -n` availible to print without a newline or `printf`↵↵In Nim 2, you might want to look at `stdout.write` |
| 16:35:04 | nmz | the problem isn't the echo, its reimplementing the sed command above |
| 16:36:17 | FromDiscord | <aintea> In reply to @nmz "for line in file.lines:": can you try to fill your file with `echo -n "content"` ? |
| 16:36:32 | FromDiscord | <aintea> My guess is that you get a newline because of your editor adding one |
| 16:36:53 | FromDiscord | <aintea> vim does that, VSCode did last time I used it |
| 16:38:00 | nmz | huh? |
| 16:38:29 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=icGQeqtP |
| 16:38:48 | FromDiscord | <aintea> Just to make sure I understand your problem well |
| 16:40:52 | nmz | I may not have been clear, The program should behave the same as { sed 's/^/ /' }, therefore { echo hello | nimprogram } and { printf hello | nimprogram } should behave exactly as replacing nimprogram with sed |
| 16:41:15 | FromDiscord | <aintea> Oh I see |
| 16:41:29 | FromDiscord | <aintea> So then what do you have issues with trying to reproduce a sed command |
| 16:42:20 | nmz | AYe |
| 19:27:43 | FromDiscord | <cobaltdsc4102> sent a code paste, see https://play.nim-lang.org/#pasty=GpqVTzAH |
| 19:27:52 | FromDiscord | <cobaltdsc4102> (edit) "https://play.nim-lang.org/#pasty=RFSNUFAT" => "https://play.nim-lang.org/#pasty=qhrzpHYV" |
| 19:28:02 | FromDiscord | <cobaltdsc4102> Both compiled with `-d:release -d:strip --opt:speed` |
| 19:28:14 | FromDiscord | <cobaltdsc4102> (edit) "https://play.nim-lang.org/#pasty=OkdHRBne" => "https://play.nim-lang.org/#pasty=ujATNYLJ" |
| 19:29:08 | FromDiscord | <cobaltdsc4102> `nim c` using Clang has similar performance to nlvm, wonder why it's that much slower than gcc |
| 19:32:15 | Amun-Ra | I don't see clang timing |
| 19:44:50 | FromDiscord | <cobaltdsc4102> sent a code paste, see https://play.nim-lang.org/#pasty=ONyAcuIc |
| 19:51:30 | Amun-Ra | weird, are you sure that's not a debug build? |
| 20:25:21 | * | zodman quit (Quit: WeeChat 4.8.1) |
| 20:26:11 | * | zodman joined #nim |
| 21:09:21 | FromDiscord | <cobaltdsc4102> That was on my laptop, and yeah it was compiled with `-d:release` |
| 21:29:36 | FromDiscord | <gesee37> @asviest I just understood what was a render graph.↵It's pretty simple to make it with Cruise.↵Since it already provides a DAG and safe concurrent access + my current command buffer and resource management system |
| 21:29:44 | FromDiscord | <gesee37> Seems pretty doable |
| 21:29:51 | FromDiscord | <gesee37> Fairly easily |
| 21:32:14 | * | rockcavera joined #nim |
| 21:37:17 | FromDiscord | <asviest> In reply to @gesee37 "<@437324912991010817> I just understood": So, from what I understand, he uses a DAG for plugins, while the render graph operates with concepts like render passes, framebuffers, and input/output resources. Usually, a command buffer creates a render pass, and then the render pass populates the framebuffer. That's pretty much it. The difficulty of implementing it in practice isn't in the idea itself, but in the specif |
| 21:40:42 | FromDiscord | <gesee37> In reply to @asviest "So, from what I": Welllll I guess it's done then.↵I run and a low end computer so I can't use vulkan, metal, opengl 3.3+ etc↵So I can make a generic render graph but the implementation for a powerful API is still impossible for me |
| 21:41:18 | FromDiscord | <gesee37> Except you wanna play with SDL or openGL 3.1- |
| 21:51:09 | FromDiscord | <asviest> In reply to @gesee37 "Welllll I guess it's": That's an issue, but I think zink exists as a workaround: https://docs.mesa3d.org/drivers/zink.html |
| 21:54:40 | FromDiscord | <asviest> I was wrong, it opengl -> vulkan |
| 21:59:45 | FromDiscord | <gesee37> Welp 😅 |
| 22:00:05 | FromDiscord | <gesee37> Guess someday if I'm lucky I will be able to do that |
| 22:06:21 | FromDiscord | <nnsee> In reply to @cobaltdsc4102 "That was on my": godbolt it |
| 22:08:17 | FromDiscord | <nnsee> you'll have to use the generated C code, not the Nim source, as you can't select C compilers with Nim source, it just defaults to gcc |
| 22:09:48 | FromDiscord | <nnsee> but by simply looking at the numbers, i'd say gcc calculates the result at compile time. you should make it accept N from the CLI or something to make it not do that |
| 22:10:14 | FromDiscord | <nnsee> (edit) "N" => "n (for the fibonacci func)" |
| 22:16:12 | * | xet7 quit (Remote host closed the connection) |
| 22:18:02 | FromDiscord | <cobaltdsc4102> In reply to @nnsee "but by simply looking": Ohhh i've been hearing about that |
| 22:18:11 | FromDiscord | <cobaltdsc4102> Wonder why clang doesn't move it to comptime |