| 00:01:44 | FromDiscord | <Elegantbeef> If you could make a minreproduction that'd be great |
| 00:05:11 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Elegantbeef "If you could make": Will try tomorrow |
| 01:48:57 | FromDiscord | <summarity> In reply to @summarity "A different question, when": To answer my own question: rST `raw` directives work, so I get my goal of embedding diagram markup (and more :D) in doc gen. https://media.discordapp.net/attachments/371759389889003532/1339412968965668894/image.png?ex=67aea108&is=67ad4f88&hm=c558bd756d8347756dc07f8a8731e6c74463333af253061427a8d884d965ee60& |
| 01:58:32 | * | rockcavera quit (Remote host closed the connection) |
| 02:02:01 | * | HER is now known as hernan604 |
| 02:11:44 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
| 02:14:40 | * | Lord_Nightmare joined #nim |
| 02:36:23 | * | SchweinDeBurg quit (Quit: WeeChat 4.6.0-dev) |
| 02:36:48 | * | SchweinDeBurg joined #nim |
| 02:47:39 | * | thunder joined #nim |
| 02:54:47 | * | hippodriver_ joined #nim |
| 02:57:22 | * | hippo quit (Ping timeout: 252 seconds) |
| 03:01:58 | * | thunder quit (Quit: Leaving) |
| 04:02:28 | * | hippodriver_ quit (Remote host closed the connection) |
| 04:02:46 | * | hippodriver_ joined #nim |
| 04:57:37 | * | hippodriver joined #nim |
| 04:57:53 | * | hippodriver_ quit (Read error: Connection reset by peer) |
| 05:23:24 | * | coldfeet joined #nim |
| 05:25:57 | * | ntat joined #nim |
| 06:09:12 | * | hippodriver quit (Read error: Connection reset by peer) |
| 06:09:16 | * | hippo joined #nim |
| 06:44:50 | * | ntat quit (Quit: Leaving) |
| 06:49:04 | * | coldfeet quit (Quit: Lost terminal) |
| 07:00:29 | * | PMunch__ joined #nim |
| 07:03:06 | * | PMunch_ quit (Ping timeout: 252 seconds) |
| 07:04:15 | * | ntat joined #nim |
| 08:08:00 | * | redj quit (Quit: No Ping reply in 180 seconds.) |
| 08:09:32 | * | redj joined #nim |
| 09:18:34 | * | coldfeet joined #nim |
| 09:38:09 | * | coldfeet quit (Quit: Lost terminal) |
| 10:04:12 | * | coldfeet joined #nim |
| 10:24:46 | * | coldfeet quit (Quit: Lost terminal) |
| 12:02:18 | * | ftajhii quit (Ping timeout: 252 seconds) |
| 12:31:10 | FromDiscord | <enthus1ast.> could it be that pcre (re) leaks memory? |
| 12:31:22 | FromDiscord | <enthus1ast.> it seems it never calls pcre_free on compiled regexes |
| 12:32:47 | FromDiscord | <enthus1ast.> and since nim markdown uses pcre it also leaks 🙂 |
| 12:45:23 | * | PMunch_ joined #nim |
| 12:47:11 | * | PMunch__ quit (Ping timeout: 244 seconds) |
| 12:52:29 | FromDiscord | <enthus1ast.> mh |
| 12:52:50 | FromDiscord | <enthus1ast.> i think the pcre wrapper is good, must be nim-markdown |
| 13:30:26 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Elegantbeef "Yes cause a vsbf": I think I found another bug? if a default value is set in an object, the unserializer will use the default value instead of the value in the file |
| 13:33:24 | FromDiscord | <System64 ~ Flandre Scarlet> Hummm seems it works, weird |
| 13:35:04 | FromDiscord | <System64 ~ Flandre Scarlet> Oh got it why, it's not VSBF related |
| 13:46:52 | * | hippodriver_ joined #nim |
| 13:46:52 | * | hippo quit (Read error: Connection reset by peer) |
| 13:52:57 | FromDiscord | <System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/1339595167677681785/2025-02-13_14-51-01.mp4?ex=67af4ab8&is=67adf938&hm=814e92ec939e4ed6f1979ea8fb63d83c7090b062881760d922a158f1d7172146& |
| 13:54:54 | FromDiscord | <nnsee> damn, that's dope |
| 14:32:26 | * | hippodriver_ quit (Quit: Leaving) |
| 15:07:26 | FromDiscord | <steschuser (steschuser)> hello o/↵is there an easy way to create a X509 CSR in Nim? |
| 15:25:52 | FromDiscord | <jabuci> I have no Mac but I want to add support to this OS too. How to check if the system is a Mac? Is it correct: `when defined(macosx):` ? |
| 15:57:00 | * | coldfeet joined #nim |
| 16:13:55 | FromDiscord | <demotomohiro> In reply to @jabuci "I have no Mac": https://github.com/nim-lang/Nim/blob/devel/lib/pure/os.nim#L618 |
| 16:16:36 | FromDiscord | <demotomohiro> In reply to @jabuci "I have no Mac": You can also use this const: https://nim-lang.org/docs/system.html#hostOS |
| 16:28:02 | * | coldfeet quit (Quit: Lost terminal) |
| 16:38:47 | FromDiscord | <nieznanymagnat> sent a code paste, see https://play.nim-lang.org/#pasty=DrHUGVGE |
| 16:56:22 | FromDiscord | <lainlaylie> that doesn't compile, your HSlice is missing its second generic parameter |
| 16:56:23 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=NLztMMxI |
| 16:57:09 | * | Guest60 joined #nim |
| 17:04:03 | FromDiscord | <nieznanymagnat> It does compile, if provided with a single parameter compiler assumes it's "homogeneous" slice type, from what I understand, compared to "heterogeneous" slice type which you described (at least for 2.2.0) https://media.discordapp.net/attachments/371759389889003532/1339643262247506062/image.png?ex=67af7783&is=67ae2603&hm=87112f5665cf3c9c88fe2124774291b021adb17d928e46d3b2597b6c3d6b2b2c& |
| 17:04:37 | FromDiscord | <lainlaylie> `HSlice[0..50]` does not compile. I tried it. |
| 17:04:59 | * | Guest60 quit (Quit: Client closed) |
| 17:05:05 | FromDiscord | <nieznanymagnat> Which Nim version do you have? |
| 17:05:34 | FromDiscord | <lainlaylie> what you have in the screenshot is different from the example you sent |
| 17:05:46 | FromDiscord | <lainlaylie> HSlice requires two generic parameters |
| 17:08:02 | FromDiscord | <nieznanymagnat> Oh, wait↵you're right. Sorry, I was writing the code at 3AM and forgot I made the change 😅 |
| 17:09:19 | FromDiscord | <nieznanymagnat> > `HSlice` by itself is just container for two values. it doesn't have any restrictions what these values are.↵But that pretty much answers my question↵So the answer is more metaprogramming |
| 17:09:26 | FromDiscord | <lainlaylie> on the other hand, `HSlice[0.0, 100.0]` seems to be treated as `HSlice[float, float]`↵in my opinion it ought not to compile |
| 17:09:51 | FromDiscord | <nieznanymagnat> (edit) "answers" => "explains" | "question↵So" => "issue↵So" |
| 17:10:27 | FromDiscord | <nieznanymagnat> (edit) "the answer is" => "to make it work I need" |
| 17:44:09 | FromDiscord | <solitudesf> In reply to @lainlaylie "on the other hand,": i think its a known issue that values demote to types in generic definitions |
| 17:48:17 | FromDiscord | <threefour> Ew |
| 18:05:31 | FromDiscord | <aintea> Is there a possibility that we will have do while loops in Nim ? |
| 18:06:38 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=PsgfgfUG |
| 18:07:10 | FromDiscord | <aintea> The first one is trivial to implement but it's not fun to implement it for each project that has to use it |
| 18:15:03 | FromDiscord | <aintea> Also do you guys know if fusion/matching is deprecated ? And if it is when will it be reprecated ? |
| 18:29:52 | FromDiscord | <solitudesf> In reply to @aintea "Also do you guys": does it not work? |
| 18:34:27 | FromDiscord | <hydr0nium> Haven't been using nim for a while. Is it still "considered" as a virus by windows defender? |
| 18:34:36 | FromDiscord | <hydr0nium> (edit) removed "as" |
| 18:34:44 | Amun-Ra | https://play.nim-lang.org/#pasty=lKLYMgoI |
| 18:53:07 | FromDiscord | <planetis_m> In reply to @aintea "The first one is": https://github.com/search?q=language%3ANim+template+until&type=code |
| 18:53:54 | FromDiscord | <planetis_m> there're a couple of ways to do this, the top examples have most of them. Although is it worth the effort? |
| 18:54:02 | Amun-Ra | until is closer to pascal's repeat/until than to C's do/while :) |
| 18:55:28 | FromDiscord | <planetis_m> hmm good point |
| 18:57:22 | * | beholders_eye quit (Ping timeout: 252 seconds) |
| 18:58:26 | FromDiscord | <planetis_m> That's the one I learned in high school "structured programming" course. No breaks/continue/returns either. fun |
| 19:00:22 | Amun-Ra | I remember no continue, breaks were fine |
| 19:29:35 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=lOyjNvsC |
| 19:29:45 | FromDiscord | <jabuci> sent a code paste, see https://play.nim-lang.org/#pasty=RzaqRTjC |
| 19:30:08 | FromDiscord | <janakali> (edit) "https://play.nim-lang.org/#pasty=WSTEUNnM" => "https://play.nim-lang.org/#pasty=aNgyFcoB" |
| 19:30:57 | FromDiscord | <jabuci> In reply to @hydr0nium "Haven't been using nim": That's Go 🙂 |
| 19:31:48 | FromDiscord | <aintea> In reply to @hydr0nium "Haven't been using nim": yes |
| 19:31:57 | FromDiscord | <aintea> a few weeks ago it was |
| 19:32:45 | FromDiscord | <aintea> In reply to @Amun-Ra "https://play.nim-lang.org/#pasty=lKLYMgoI": I'm talking about a proper dowhile |
| 19:33:03 | FromDiscord | <aintea> I know this is a trick and this is how I would implement a dowhile template |
| 19:34:57 | Amun-Ra | there's no built-in do-while |
| 19:50:52 | FromDiscord | <user2m> Hey guys I think I have a memory leak in my Nim web app. Can anyone point me to some good resources for a noob who's never debugged /profiled before? Reading online looks like I'll have to try different GC's and if that doesn't work use valgrind(?) . Plus I'm on windows for my dev environment so not great |
| 19:52:16 | FromDiscord | <hydr0nium> In reply to @aintea "yes": to bad I low the language |
| 19:52:18 | FromDiscord | <hydr0nium> (edit) "low" => "love" |
| 20:30:14 | FromDiscord | <aintea> In reply to @hydr0nium "to bad I love": it is only the compiler that is detected as a threat |
| 20:30:22 | FromDiscord | <aintea> the executables are not detected as threat anymore |
| 20:52:27 | FromDiscord | <.tokyovigilante> Hi, I'm trying to import the following C++ free function into nim from ImGUI: `IMGUI_IMPL_API bool ImGui_ImplOpenGL3_Init(const char glsl_version = nullptr);` as `proc ImGui_ImplOpenGL3_Init (glsl_version: cstring) {.importcpp: " ImGui_ImplOpenGL3_Init(@)".}` but am getting the following error: |
| 20:53:18 | FromDiscord | <.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=DGjYfsWu |
| 20:56:48 | FromDiscord | <.tokyovigilante> Using `cpp` or `c` compilation modes |
| 21:12:41 | FromDiscord | <hydr0nium> In reply to @aintea "the executables are not": awesome |
| 21:27:52 | FromDiscord | <aintea> In reply to @solitudesf "does it not work?": It does, but I've heard it was buggy since it was deprecated |
| 21:28:01 | FromDiscord | <aintea> and that I should use something like patty |
| 21:28:06 | FromDiscord | <aintea> but it seems to work fine |
| 21:41:47 | * | ntat quit (Quit: Leaving) |
| 21:51:08 | FromDiscord | <.tokyovigilante> sent a code paste, see https://play.nim-lang.org/#pasty=WGWcBFpJ |
| 21:51:27 | FromDiscord | <.tokyovigilante> (edit) "https://play.nim-lang.org/#pasty=DQfcInTd" => "https://play.nim-lang.org/#pasty=UwRKkgvc" |
| 21:51:47 | FromDiscord | <.tokyovigilante> If I compile in C mode I get a linker error despite compiling in the relevant C++ file |
| 22:05:54 | * | xutaxkamay quit (Ping timeout: 265 seconds) |
| 22:12:42 | FromDiscord | <planetis_m> In reply to @Amun-Ra "I remember no continue,": Well the variant we used had neither, you'd use flags for everything. Pen and paper only exams with an interpreter written in pascal available online. Still taught to this day. |
| 22:14:46 | FromDiscord | <planetis_m> It's structured programming after all, break is unstructured. |
| 22:19:01 | * | xutaxkamay joined #nim |
| 22:19:15 | * | disso-peach joined #nim |
| 22:54:14 | * | PMunch__ joined #nim |
| 22:57:30 | * | PMunch_ quit (Ping timeout: 268 seconds) |
| 23:07:24 | FromDiscord | <emanresu3> sent a code paste, see https://play.nim-lang.org/#pasty=JzLpjxqe |
| 23:10:09 | FromDiscord | <emanresu3> sent a code paste, see https://play.nim-lang.org/#pasty=NKgjLqrz |
| 23:16:58 | * | beholders_eye joined #nim |
| 23:42:56 | FromDiscord | <Elegantbeef> emanresu3 my understanding is that Nim's async file IO is really non async in a trench coat |
| 23:47:07 | * | beholders_eye quit (Quit: WeeChat 4.1.2) |
| 23:47:19 | FromDiscord | <.tokyovigilante> I've got around the issue with some of my C++ functions by using a shim header to add forward declarations, but still having issues where they reference incomplete types. |
| 23:48:03 | FromDiscord | <.tokyovigilante> ie i've got `proc ImGui_ImplSDL3_InitForOpenGL (window: ptr SDL_Window, sdl_gl_context: pointer): bool {.importcpp: "ImGui_ImplSDL3_InitForOpenGL(@)", header: "tsunami/renderer/cimgui/imgui/imgui_impl_forward.h".}` but then `ptr SDL_Window` seems to throw the linker: `@mtsunami@[email protected]:(.text+0x1426): undefined reference to `ImGui_ImplSDL3_InitForOpenGL(void, void)'` |
| 23:48:21 | FromDiscord | <.tokyovigilante> (edit) "ie i've got `proc ImGui_ImplSDL3_InitForOpenGL (window: ptr SDL_Window, sdl_gl_context: pointer): bool {.importcpp: "ImGui_ImplSDL3_InitForOpenGL(@)", header: "tsunami/renderer/cimgui/imgui/imgui_impl_forward.h".}` but then `ptr SDL_Window` seems to throw the linker: `@mtsunami@[email protected]:(.text+0x1426): undefined reference to `ImGui_ImplSDL3_InitForOpenGL(void, void)'`" => "sent a code paste, see https |
| 23:56:01 | FromDiscord | <emanresu3> oh I see, is it maybe like Python where `asyncio` also doesn't really do async file IO so you use a threadpool instead? |
| 23:56:30 | FromDiscord | <emanresu3> I see a `std/threadpool` module in the standard library |
| 23:57:39 | FromDiscord | <Elegantbeef> Think it's more suggested to use taskpools or malebolgia for a task pool need but yea that's my understanding |