| 00:08:03 | * | lucasta joined #nim |
| 00:38:43 | * | azimut quit (Remote host closed the connection) |
| 00:39:49 | * | azimut joined #nim |
| 01:06:11 | * | azimut quit (Ping timeout: 255 seconds) |
| 01:08:39 | * | azimut joined #nim |
| 01:14:31 | * | nanxiao joined #nim |
| 01:47:29 | FromDiscord | <ricky> In reply to @jmgomez "<@208199869301522432> you can also": NUE 😍 |
| 02:37:45 | FromDiscord | <Dudugz> sent a code paste, see https://play.nim-lang.org/#ix=4sLZ |
| 02:38:15 | FromDiscord | <Elegantbeef> No clue about mim |
| 02:38:16 | FromDiscord | <Elegantbeef> Nim there are many |
| 02:38:22 | FromDiscord | <Dudugz> (edit) "https://play.nim-lang.org/#ix=4sLZ" => "https://play.nim-lang.org/#ix=4sM0" |
| 02:38:46 | FromDiscord | <Dudugz> (edit) "https://play.nim-lang.org/#ix=4sM0" => "https://play.nim-lang.org/#ix=4sM1" |
| 02:38:51 | FromDiscord | <Dudugz> lmao, mistype |
| 02:39:05 | FromDiscord | <Elegantbeef> https://github.com/Glasses-Neo/OOlib exists for instance |
| 02:39:09 | FromDiscord | <Dudugz> Hm, I googled it but didn't find anything about it |
| 02:39:14 | FromDiscord | <Dudugz> Sure i'll check it |
| 02:39:41 | FromDiscord | <Elegantbeef> https://github.com/jjv360/nim-classes also exists |
| 02:41:19 | FromDiscord | <Dudugz> In reply to @Elegantbeef "https://github.com/jjv360/nim-classes also exists": This looks so much better and clean |
| 02:41:26 | FromDiscord | <Dudugz> Thx Beef |
| 02:47:17 | NimEventer | New Nimble package! cron - Library to ease writing cron-like programs, see https://github.com/c-blake/cron |
| 03:09:41 | * | lucasta quit (Remote host closed the connection) |
| 03:16:37 | * | nanxiao quit (Quit: Client closed) |
| 03:18:18 | * | nanxiao joined #nim |
| 04:03:13 | * | rockcavera quit (Remote host closed the connection) |
| 04:09:40 | FromDiscord | <Dudugz> sent a code paste, see https://play.nim-lang.org/#ix=4sMl |
| 04:09:57 | * | azimut quit (Remote host closed the connection) |
| 04:10:26 | * | azimut joined #nim |
| 04:15:10 | FromDiscord | <Dudugz> taking out the --choosenimDir option solved it tho, I kept Nim's folder in my D: |
| 04:23:13 | * | nanxiao quit (Quit: Client closed) |
| 05:06:31 | * | nanxiao joined #nim |
| 05:56:17 | * | nanxiao quit (Quit: Client closed) |
| 06:20:21 | NimEventer | New thread by arnetheduck: Upcoming `Result` review - comments and thoughts welcome!, see https://forum.nim-lang.org/t/10076 |
| 06:21:05 | * | nanxiao joined #nim |
| 06:48:38 | * | azimut quit (Ping timeout: 255 seconds) |
| 07:03:52 | * | kenran joined #nim |
| 07:35:12 | FromDiscord | <Dudugz> sent a code paste, see https://play.nim-lang.org/#ix=4sMO |
| 07:35:50 | FromDiscord | <Dudugz> It would be possible maybe if we had access to the memory address of the value, but I don't know how nim handles memory sometimes the value can have its address changed. |
| 07:36:26 | FromDiscord | <Elegantbeef> A hash is the closest to a uid per value |
| 07:39:25 | FromDiscord | <Dudugz> hmm, sure |
| 07:58:14 | NimEventer | New thread by miran: This month in Nim: March 2023, see https://forum.nim-lang.org/t/10077 |
| 08:04:57 | FromDiscord | <demotomohiro> An address is unique id. |
| 08:05:24 | FromDiscord | <demotomohiro> !eval var a = 1; echo a.addr.int |
| 08:05:42 | FromDiscord | <Elegantbeef> Though that only works for non constant values |
| 08:05:49 | FromDiscord | <Elegantbeef> Since you cannot get an addr of a constant in Nim |
| 08:06:24 | NimBot | Compile failed: <no output> |
| 08:12:30 | FromDiscord | <Rika> You have to cast the address |
| 08:32:39 | FromDiscord | <demotomohiro> !eval var a = 1; echo cast[int](a.addr) |
| 08:33:39 | NimBot | Compile failed: <no output> |
| 08:37:57 | FromDiscord | <Elegantbeef> Playground is down right now |
| 08:38:45 | * | junaid_ joined #nim |
| 08:39:15 | FromDiscord | <BobBBob> does enum always use int(64) or does it use the smallest integer size itll fit in? |
| 08:39:23 | * | nanxiao quit (Quit: Client closed) |
| 08:39:24 | FromDiscord | <Elegantbeef> Smallest that fits |
| 08:39:43 | FromDiscord | <BobBBob> ah good |
| 09:01:50 | FromDiscord | <Dudugz> 🤔 I have no idea why, putting 512 as the read size and sending a smaller packet than that using buffered newAsyncSocket makes it read forever. If I put 1 it reads everything. Is there any way to know the size of the packet that will be received? |
| 09:06:04 | FromDiscord | <Dudugz> sent a code paste, see https://paste.rs/TUu |
| 09:06:28 | FromDiscord | <Dudugz> (edit) "https://play.nim-lang.org/#ix=4sNa" => "https://play.nim-lang.org/#ix=4sN9" |
| 09:06:50 | FromDiscord | <Dudugz> (edit) "https://play.nim-lang.org/#ix=4sN9" => "https://play.nim-lang.org/#ix=4sNb" |
| 09:07:03 | * | nanxiao joined #nim |
| 09:07:25 | FromDiscord | <Dudugz> (edit) "https://play.nim-lang.org/#ix=4sNb" => "https://play.nim-lang.org/#ix=4sNc" |
| 09:10:36 | * | grimlavik joined #nim |
| 09:17:48 | FromDiscord | <Dudugz> I think that in this case there is no way, back to unbuffered sockets. Unfortunately there is no exact size pattern I can follow. The socket must be able to receive any data of any size. |
| 09:43:17 | FromDiscord | <demotomohiro> TCP can be used correctly without knowing how TCP work?↵https://stackoverflow.com/questions/17446491/tcp-stream-vs-udp-message |
| 09:46:31 | * | nanxiao quit (Quit: Client closed) |
| 10:07:47 | * | junaid_ quit (Remote host closed the connection) |
| 10:17:28 | * | nisstyre quit (Ping timeout: 252 seconds) |
| 10:19:02 | * | nisstyre joined #nim |
| 10:23:15 | FromDiscord | <wiga> Any idea of what's happening with nimble.directory? |
| 10:23:24 | FromDiscord | <wiga> Its seems down |
| 10:23:42 | FromDiscord | <federico3> looking |
| 10:23:48 | FromDiscord | <wiga> https://media.discordapp.net/attachments/371759389889003532/1093481169959534592/Screenshot_20230406_062439_com.brave.browser.jpg |
| 10:24:37 | FromDiscord | <wiga> My dad told me that a day ago, it was using only http |
| 10:24:44 | FromDiscord | <wiga> And not https |
| 10:25:10 | FromDiscord | <wiga> Maybe its only on brave that its blocked when its no more https |
| 10:25:58 | FromDiscord | <Phil> Out of curiosity, under the hood, do all languages use curl to send http requests? |
| 10:26:47 | FromDiscord | <wiga> Some use winhttp |
| 10:28:45 | FromDiscord | <Phil> In reply to @wiga "Maybe its only on": Appears to mostly just be the SSL cert expiring |
| 10:28:53 | FromDiscord | <wiga> Yea |
| 10:29:18 | FromDiscord | <wiga> Bring ssl back😔 ✊ |
| 10:35:56 | FromDiscord | <xTrayambak> sent a code paste, see https://play.nim-lang.org/#ix=4sNC |
| 10:38:55 | * | nanxiao joined #nim |
| 10:39:41 | FromDiscord | <xTrayambak> In reply to @wiga "Maybe its only on": Nope, it happened to me with Firefox too. I was scratching my head for a few minutes. |
| 10:40:05 | FromDiscord | <wiga> In reply to @xTrayambak "Nope, it happened to": Oh alright |
| 10:40:26 | FromDiscord | <wiga> Hope things get back to normal in a few |
| 10:40:54 | FromDiscord | <amadan> In reply to @Isofruit "Out of curiosity, under": Nim doesn't (when using the standard library) |
| 10:42:35 | FromDiscord | <wiga> Any library for graphql? |
| 10:43:08 | FromDiscord | <wiga> I have an API and i wanna use graphql but I don't necessarily want to rewrite it in elixir |
| 10:43:52 | FromDiscord | <wiga> Nvm found one |
| 10:44:32 | * | nanxiao quit (Quit: Client closed) |
| 10:49:40 | FromDiscord | <federico3> @wiga\: nimble.directory is fixed, thanks |
| 11:02:16 | * | xaltsc quit (Ping timeout: 265 seconds) |
| 11:11:55 | FromDiscord | <Phil> TBH I'm not entirely sold on graphql |
| 11:12:02 | FromDiscord | <Phil> Does it make life easier? |
| 11:12:33 | FromDiscord | <jmgomez> hey @ringabout when trying to compile the sources Im getting `Error: system module needs: isObj` does it ring a bell? |
| 11:12:34 | FromDiscord | <Phil> I know the concept and videos about it, it just feels like in the end it's an abstraction over a REST interface that you'll still need to fine tune often enough that it gets complicated |
| 11:16:43 | FromDiscord | <wiga> In reply to @federico3 "<@795785229699645491>\: nimble.directory is fixed,": :nice: |
| 11:17:12 | FromDiscord | <Phil> In reply to @federico3 "<@795785229699645491>\: nimble.directory is fixed,": Thanks for fixing ! |
| 11:17:23 | FromDiscord | <wiga> Hesshesssail |
| 11:17:48 | FromDiscord | <wiga> In reply to @Isofruit "Does it make life": I wanna try it |
| 11:18:05 | FromDiscord | <wiga> Syntax looks sexy to me |
| 11:18:40 | * | xet7 quit (Remote host closed the connection) |
| 11:19:09 | * | grimlavik quit (Quit: Client closed) |
| 11:20:24 | * | xet7 joined #nim |
| 12:05:27 | FromDiscord | <demotomohiro> In reply to @xTrayambak "Does anyone know why": You can use `staticRead` to read file at compile time:↵https://nim-lang.org/docs/system.html#staticRead%2Cstring |
| 12:06:37 | FromDiscord | <ringabout> In reply to @jmgomez "hey <@658563905425244160> when trying": Did you remove the nimcache of the compiler and use the latest compiler? |
| 12:07:28 | * | jmdaemon quit (Ping timeout: 252 seconds) |
| 12:19:15 | FromDiscord | <jmgomez> In reply to @ringabout "Did you remove the": yes on the nimcache, what do you mean with the latest compiler? |
| 12:20:23 | FromDiscord | <ringabout> Depending on the commit of the csource, choose different compilers. |
| 12:20:46 | FromDiscord | <ringabout> Btw, you need to remove bin/nim if there is one. |
| 12:21:03 | FromDiscord | <ringabout> As to the nimcache, it is the nimcache of compiler building. |
| 12:21:11 | FromDiscord | <ringabout> (edit) "Btw, you need to remove bin/nim ... if" added "as well" |
| 12:21:49 | FromDiscord | <ringabout> In reply to @ringabout "Depending on the commit": For example, use devel compiler to compile the latest source. |
| 12:23:04 | FromDiscord | <jmgomez> it may be that then, let me check because I see csources_v2 empty so it may be a submodule? |
| 12:23:34 | FromDiscord | <ringabout> What's your command to build from source? |
| 12:23:52 | FromDiscord | <jmgomez> `./build_all.bat` |
| 12:24:43 | FromDiscord | <ringabout> You need csource_v2. It's weird that it wasn't downloaded. |
| 12:25:04 | FromDiscord | <ringabout> https://github.com/nim-lang/csources_v2 |
| 12:26:22 | FromDiscord | <jmgomez> ohh It may be because it has been a while since I dont update it (more than 4 months). Let me see if that makes it work |
| 12:35:02 | * | Notxor joined #nim |
| 12:36:23 | FromDiscord | <jmgomez> yeah that was it, thank you for your help @ringabout! |
| 12:58:27 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4sO3 |
| 13:01:26 | FromDiscord | <jmgomez> hmm Im seeing it's an old flag but it triggers for the first time now |
| 13:03:15 | FromDiscord | <jmgomez> ok, there is an open issue already for it: https://github.com/nim-lang/Nim/issues/13047 |
| 13:03:31 | * | rockcavera joined #nim |
| 13:05:08 | FromDiscord | <jmgomez> now modules cant be named the same? like if I have engine/namea and core/namea it complains |
| 13:13:56 | FromDiscord | <ringabout> Always?↵(@jmgomez) |
| 13:15:01 | FromDiscord | <ringabout> You need to rename the module like `import core/namea as cnamea`. |
| 13:15:08 | FromDiscord | <jmgomez> you mean that it always was the case? |
| 13:15:31 | FromDiscord | <ringabout> What's Nim version? |
| 13:15:58 | FromDiscord | <jmgomez> 1.9.3 latest commit from a bit the hash is (814d3e6818b6c4ed976818ecf525a599502e080e) |
| 13:16:25 | FromDiscord | <jmgomez> Im just making sure NUE works for 2.0 before it gets released |
| 13:16:51 | FromDiscord | <Rika> I’m pretty sure it was always the case |
| 13:18:18 | FromDiscord | <jmgomez> Im importing a bunch of modules "dynamically" and can be a coincidence. But never had this issue with 1.6.x Let me get back to 1.6.13 and see if the issue persists |
| 13:18:40 | FromDiscord | <jmgomez> (which dynamically I mean that the names can vary depending on the UE setup) |
| 13:19:54 | FromDiscord | <ringabout> There was a bug, but I have fixed it => |
| 13:20:14 | FromDiscord | <ringabout> https://github.com/nim-lang/Nim/pull/21500 |
| 13:25:30 | FromDiscord | <jmgomez> I moved to that commit to make sure it was applied but still happening |
| 13:27:01 | * | lucasta joined #nim |
| 13:27:42 | FromDiscord | <jmgomez> do you happen to know when it was introduced? |
| 13:28:47 | * | Notxor quit (Quit: Leaving) |
| 13:31:08 | FromDiscord | <ringabout> You might try 1.6.6 |
| 13:31:18 | FromDiscord | <jmgomez> that works for sure |
| 13:33:00 | FromDiscord | <jmgomez> I moved behind (https://github.com/nim-lang/Nim/commit/fd76c004794e1cd163450465fa6e493735e6dee4) so I can do `koch temp` but getting ` 'wDynamic_cast' should be: 'wDynamicCast'` |
| 13:34:13 | FromDiscord | <ringabout> nope for me↵> Error: redefinition of 't1'; previous declaration here: C:\Users\blue\Documents\GitHub\Nim\test9.nim(1, 12) |
| 13:34:18 | FromDiscord | <ringabout> With 1.6.6 |
| 13:34:28 | FromDiscord | <ringabout> For `import fizz/t1, buzz/t1` |
| 13:36:02 | FromDiscord | <jmgomez> I just moved into 1.6.13 and it works fine |
| 13:36:10 | FromDiscord | <jmgomez> (not that, the particular issue in NUE) |
| 13:36:38 | FromDiscord | <jmgomez> a couple of weeks ago (when I found that other issue with the generation of the cpp) it was working in 2.0 too |
| 13:37:38 | FromDiscord | <jmgomez> will double check that |
| 13:44:15 | FromDiscord | <jmgomez> yeah, it works fine there. Will try to do a bisect |
| 13:53:36 | FromDiscord | <jmgomez> In reply to @ringabout "https://github.com/nim-lang/Nim/pull/21500": so did a bisect and that's the first offending commit |
| 14:06:35 | FromDiscord | <jmgomez> or are you just saying that it shouldnt work and you made sure of that in that commit? |
| 14:07:22 | FromDiscord | <jmgomez> (just saw menduist comment) |
| 14:08:16 | FromDiscord | <jmgomez> if that's the case I think I will stay in 1.6.13 for a while and probably fork the compiler for NUE.. |
| 14:17:02 | FromDiscord | <ringabout> In reply to @jmgomez "or are you just": I don't think it should work. If there is a runnable test case, we might find the real problem why it works in 1.6.6 but not on devel. |
| 14:18:05 | FromDiscord | <jmgomez> Not just 1.6.6 it works in 1.6.13 |
| 14:19:33 | FromDiscord | <jmgomez> Stock nue generates around 100 modules.. it can be 200 or more. I just cant fight against collisions since it will also imply changing naming convensions |
| 14:19:50 | FromDiscord | <jmgomez> (edit) "convensions" => "conventions" |
| 14:20:05 | FromDiscord | <ringabout> I mean there is a regression between 1.6.6 and 1.6.8 => https://github.com/nim-lang/Nim/issues/21496 So ideally the devel might keep the consistent behaviour as the 1.6.6 |
| 14:21:19 | FromDiscord | <ringabout> The case mentioned by Menduist doesn't work in 1.6.6 so it won't work on devel. |
| 14:23:13 | FromDiscord | <ringabout> Namely, the single statement `import fizz/t1, buzz/t1` doesn't work in 1.6.6. Nether should the devel. |
| 14:23:24 | FromDiscord | <jmgomez> But it does work in 1.6.13, isnt it? |
| 14:24:22 | FromDiscord | <ringabout> In Menduist's case, that's a regression so it happens to work since 1.6.8 as Menduist said. |
| 14:24:34 | FromDiscord | <ringabout> (edit) "happens" => "happened" | "since" => "after" |
| 14:24:44 | FromDiscord | <ringabout> (edit) "1.6.8" => "1.6.6" |
| 14:24:55 | FromDiscord | <jmgomez> Not sure about his case, but I just tested it and it works in 1.6.13 just fine |
| 14:26:29 | FromDiscord | <ringabout> Yeah, if it doesn't work with 1.6.6 as well, it might be a regression, which requires a test case. |
| 14:26:38 | FromDiscord | <ringabout> (edit) "doesn't work" => "works" |
| 14:28:15 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4sOq |
| 14:28:21 | FromDiscord | <jmgomez> (edit) "https://play.nim-lang.org/#ix=4sOq" => "https://paste.rs/oHp" |
| 14:29:15 | FromDiscord | <ringabout> If It doesn't work with 1.6.6, it is most likely nope. |
| 14:29:53 | FromDiscord | <jmgomez> That's unfortunate but why 1.6.6. and not 1.6.13? |
| 14:30:35 | FromDiscord | <ringabout> Because someone made a mistake and let the case work in 1.6.12, which shouldn't. |
| 14:30:49 | FromDiscord | <Dudugz> I think that even in other languages importing a namespace with the same name generates conflict, after all it is ambiguous which of the two to use |
| 14:31:17 | FromDiscord | <jmgomez> In reply to @ringabout "Because someone made a": I see. Let me check 1.6.6 then |
| 14:34:56 | * | jmdaemon joined #nim |
| 14:37:50 | FromDiscord | <jmgomez> Yeah, it doesnt work :/ |
| 14:38:29 | FromDiscord | <ringabout> Does it work for your project? |
| 14:39:03 | FromDiscord | <ringabout> (edit) "it" => "1.6.6" |
| 14:40:01 | FromDiscord | <jmgomez> I dont think it does cant test because there are flags that doesnt exist |
| 14:40:53 | FromDiscord | <ringabout> Yeah, then it might be a feature request instead of an issue. |
| 14:41:16 | FromDiscord | <jmgomez> and do you think it will make it? |
| 14:41:28 | FromDiscord | <jmgomez> I mean, I can try to implement it myself if that's the case |
| 14:42:07 | * | azimut joined #nim |
| 14:42:41 | * | qwestion joined #nim |
| 14:42:41 | FromDiscord | <jmgomez> but it's a bit of work to rework the bindings so they dont collide and also breaks the convention which is to respect the UE module name.. |
| 14:43:02 | FromDiscord | <jmgomez> I split them in the past (after 1.6) to improve comp times |
| 14:44:28 | FromDiscord | <ringabout> Probably.↵Another workaround is to ship a nimble file for these files. |
| 14:44:48 | FromDiscord | <ringabout> (edit) "a" => "separate" | "file" => "files" |
| 14:46:27 | FromDiscord | <ringabout> Probably, I create a feature request here => https://github.com/nim-lang/Nim/issues/21620 |
| 14:46:34 | FromDiscord | <ringabout> (edit) "a feature request" => "an issue " |
| 14:48:11 | FromDiscord | <jmgomez> thanks! |
| 14:48:37 | FromDiscord | <System64 ~ Flandre Scarlet> Is Nim 2 stable enough? |
| 14:55:45 | * | arkurious joined #nim |
| 15:05:46 | * | kenran quit (Remote host closed the connection) |
| 15:16:17 | FromDiscord | <Phil> For webdev? Imo yes, for stuff that makes more extensive use of lower level features I can't say, though I would be leaning towards no-ish as there are still some showstoppers |
| 15:16:58 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Isofruit "For webdev? Imo yes,": And for gamedev? |
| 15:17:27 | FromDiscord | <Phil> I don't do gamedev, I wouldn't know the featureset customarily used there |
| 15:17:58 | FromDiscord | <Phil> I'd assume maybe you might run into issues, but I wouldn't expect them to be major |
| 15:18:08 | FromDiscord | <System64 ~ Flandre Scarlet> Ah alright |
| 15:20:08 | FromDiscord | <System64 ~ Flandre Scarlet> I ask that because I don't want to make my program randomly crashing and stuff |
| 15:20:40 | FromDiscord | <Phil> I don't think you'll run into random crashes either way |
| 15:20:58 | FromDiscord | <Phil> I'd more expect suddenly compilation issues appearing out of nowhere when updating the devel branch |
| 15:21:29 | FromDiscord | <System64 ~ Flandre Scarlet> Oh alright↵And should I upgrade now or stay on 1.6.4? |
| 15:21:58 | FromDiscord | <Phil> Depends on your dependencies. I personally use devel, but I need some on the fixes on there and am happy to act as a bit of a beta tester |
| 15:22:24 | FromDiscord | <Phil> And I personally upgraded a lot of the dependencies that I use that weren't nim 2.0 read |
| 15:22:26 | FromDiscord | <Phil> (edit) "read" => "ready" |
| 15:22:42 | FromDiscord | <Phil> (edit) "And I personally upgraded a lot of the dependencies that I use that weren't nim 2.0 ready ... " added "(norm, ndb aka lowdb, tinypool etc.)" |
| 15:56:13 | * | koltrast_ quit (Ping timeout: 268 seconds) |
| 16:52:58 | * | Notxor joined #nim |
| 17:18:05 | * | def- quit (Quit: -) |
| 17:18:53 | * | def- joined #nim |
| 17:27:50 | FromDiscord | <Nilts> What is the conf setting for custom highlight classes in nim rstgen? |
| 17:36:10 | FromDiscord | <Nilts> guess there is none :P |
| 17:39:11 | FromDiscord | <Nilts> ok, how would i disable highlight? |
| 17:39:17 | FromDiscord | <Nilts> for rstgen |
| 17:40:00 | * | Phil[m]1 left #nim (#nim) |
| 17:53:34 | FromDiscord | <federico3> Angluca (Pixeller)\: thanks for developing tigr. If you are interested there's a dedicated matrix room for Nim gamedev |
| 18:01:40 | FromDiscord | <Nilts> Server seems ded |
| 18:01:55 | FromDiscord | <Nilts> How do I disable highlight in rstgen? |
| 18:02:07 | * | Notxor quit (Quit: Leaving) |
| 18:02:42 | FromDiscord | <ShalokShalom> @Phil https://docs.aws.amazon.com/prescriptive-guidance/latest/architectural-decision-records/adr-process.html↵↵Plays nicely into document driven development |
| 18:02:49 | FromDiscord | <ShalokShalom> (edit) "document" => "documentation" |
| 18:06:31 | FromDiscord | <Nilts> In reply to @not logged in "How do I disable": ill just ask on the forum |
| 18:09:48 | NimEventer | New thread by Nlits: How to disable highlighting in nim rstgen, see https://forum.nim-lang.org/t/10078 |
| 18:11:20 | FromDiscord | <Nilts> Bruh, 3 channels for the same announcements |
| 18:15:06 | * | lucasta quit (Remote host closed the connection) |
| 18:17:04 | FromDiscord | <System64 ~ Flandre Scarlet> sent a long message, see http://ix.io/4sPy |
| 18:22:40 | FromDiscord | <Nilts> In reply to @System64 "I am in the": do you mean contest? And which contest |
| 18:23:01 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @not logged in "do you mean contest?": Contest yeah↵From my school |
| 18:23:59 | FromDiscord | <Nilts> In reply to @System64 "Contest yeah From my": Your lucky to have a school that even has programming contents |
| 18:24:09 | FromDiscord | <Nilts> (edit) "contents" => "contests" |
| 18:25:30 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @not logged in "Your lucky to have": Thanks↵Programming contests are fun! |
| 18:26:10 | FromDiscord | <Nilts> In reply to @System64 "Thanks Programming contests are": My school does not even have a class for programming other then a class for the very very basics |
| 18:27:05 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @not logged in "My school does not": Oh no :/↵This is sad |
| 18:27:20 | FromDiscord | <Nilts> ik 😢 |
| 18:31:58 | * | kenran joined #nim |
| 18:32:43 | FromDiscord | <Phil> Sick !↵And congratz for getting there!↵(@System64 ~ Flandre Scarlet) |
| 18:45:12 | * | lucasta joined #nim |
| 18:49:29 | FromDiscord | <enthus1ast> the only logging library that can log to syslog (by default) seems to be chronicles or? |
| 18:51:56 | FromDiscord | <enthus1ast> i'm building a debian pkg from one of my programs (just for fun and learning) and i want to test good practices |
| 18:52:59 | FromDiscord | <enthus1ast> or better, how you would log on a linux system? \:) |
| 18:59:34 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Phil "Sick ! And congratz": Thanks! |
| 19:27:07 | * | lucasta quit (Remote host closed the connection) |
| 19:27:14 | * | koltrast joined #nim |
| 19:43:05 | * | azimut quit (Ping timeout: 255 seconds) |
| 19:50:44 | * | azimut joined #nim |
| 20:03:14 | FromDiscord | <enthus1ast> I'll go with this for now\: https://github.com/enthus1ast/nimLoggingPosix |
| 20:09:37 | termer | has anyone here done any performance testing between asyncdispatch and chronos |
| 20:10:14 | termer | I've been working on adding async stream support to httpx and I've noticed really bad performance when I add async/await and Futures into the mix |
| 20:10:59 | FromDiscord | <Andreas> In reply to @termer "I've been working on": AFAIK i read smth. on the chronos site, they claimed to be faster. |
| 20:11:28 | termer | My performance dropped nearly down to the speed of asynchttpserver once I added and async interface so I'm thinking that's the reason why |
| 20:12:40 | termer | I'll have to take a more serious look into chronos because this is really ridiculous |
| 20:14:16 | FromDiscord | <Elegantbeef> @elcritch\: I do have to ask, what doesnt work about passing `--path:"$nim"`? |
| 20:26:32 | * | def- quit (Quit: -) |
| 20:30:17 | * | def- joined #nim |
| 20:30:17 | * | def- quit (Client Quit) |
| 20:30:45 | * | def- joined #nim |
| 20:36:12 | FromDiscord | <pybokeh> Do I need to run "finish.exe" or can I opt not to? If latter, what do I need to do manually to complete the installation? |
| 20:39:07 | FromDiscord | <Phil> finish.exe? Wha? |
| 20:40:15 | FromDiscord | <Elegantbeef> It's a part of the installation process for Choosenim iirc |
| 20:40:42 | FromDiscord | <Phil> Ohhhh... yeah no clue, I do Linux for it makes my life easier |
| 20:44:59 | FromDiscord | <pybokeh> I guess I can install into WSL and then I can create executables that will run on Windows host? |
| 21:05:01 | * | kenran quit (Remote host closed the connection) |
| 21:18:16 | * | def- quit (Quit: -) |
| 21:18:42 | * | def- joined #nim |
| 21:20:54 | * | om3ga quit (Quit: Bye) |
| 21:21:28 | * | om3ga joined #nim |
| 21:31:43 | FromDiscord | <Daniel Belmes> In reply to @pybokeh "I guess I can": I believe so. There's cross compilation compilers available for C. |
| 21:49:59 | FromDiscord | <pybokeh> OK so I sudo apt-get install build-essentials and mingw-64 then did nim c --cpu:amd64 --os:windows --app:console hello.nim but got following error: Fatal Error: windows.h: No such file or directory. |
| 21:51:02 | FromDiscord | <pybokeh> To test my mingw is working correctly, I did create a simple C application and compiled it using mingw and it created an .exe that I copied over to my Windows host and it ran ok. |
| 21:51:33 | FromDiscord | <pybokeh> But for some reason, when trying to compile for Windows 10 64-bit, it can't find the windows.h file |
| 21:52:10 | FromDiscord | <pybokeh> (edit) "But for some reason, when trying to compile ... for" added "nim application" |
| 21:58:07 | FromDiscord | <elcritch> In reply to @Elegantbeef "<@703717429230174229>\: I do have": what for? I've lost the context |
| 22:05:22 | * | def- quit (Quit: -) |
| 22:10:34 | * | rockcavera quit (Read error: Connection reset by peer) |
| 22:10:54 | * | rockcavera joined #nim |
| 22:10:55 | * | rockcavera quit (Changing host) |
| 22:10:55 | * | rockcavera joined #nim |
| 22:16:00 | FromDiscord | <Elegantbeef> Instead fo `requires compiler` you can pass `--path:"$nim"` to use the compiler api that's shipped with the compiler |
| 22:19:09 | FromDiscord | <Hourglass [She/Her]> How would you guys recommend converting ints to base64 values? |
| 22:19:15 | FromDiscord | <pybokeh> Meh, I gave up on nim in Ubuntu WSL. Looks like for nim on Windows, I can forego executing finish.exe and just manually update my PATH to include the bin folders of nim and mingw. All working now. |
| 22:19:32 | FromDiscord | <Hourglass [She/Her]> I'm trying to use the stdlib but it is a pain and I am doing so many casting hacks which I probably shouldn't do |
| 22:20:27 | * | ltriant quit (Ping timeout: 248 seconds) |
| 22:20:51 | * | lucasta joined #nim |
| 22:21:24 | * | ltriant joined #nim |
| 22:22:21 | FromDiscord | <jmgomez> In reply to @pybokeh "Meh, I gave up": last time I tried it worked. But what problem do you have with regular Nim in windows? |
| 22:22:22 | FromDiscord | <Dudugz> Why do you need to convert int to base64? And that in the end would be a string |
| 22:22:52 | * | def- joined #nim |
| 22:23:29 | FromDiscord | <Hourglass [She/Her]> In reply to @Dudugz "Why do you need": I'm making my own format kinda like snowflakes, so I wanna encode a 64 bit timestamp, and be able to parse it later |
| 22:23:51 | FromDiscord | <Dudugz> sent a code paste, see https://paste.rs/GaE |
| 22:24:12 | FromDiscord | <Hourglass [She/Her]> Then that'd be much larger than I'd want |
| 22:24:35 | FromDiscord | <Dudugz> Oh, hmm |
| 22:25:10 | FromDiscord | <pybokeh> In reply to @jmgomez "last time I tried": nim on windows: The issue is if I try to run finish.exe, my anti-virus flags it on my personal computer. I already got flagged on my work machine last year, so trying to avoid that by using Ubuntu WSL and install nim there and compile Windows executables from within Ubuntu. But I am getting that error where it can't find the windows.h header file. |
| 22:25:14 | FromDiscord | <Hourglass [She/Her]> `MTY4MDgxOTg4NC40MDU4ODg=` that'd be one part of the ID |
| 22:25:43 | FromDiscord | <Dudugz> I have a bytearray that converts int to 4 bytes but the problem is that it is not possible to use int64 unless someone implements support |
| 22:26:10 | FromDiscord | <Hourglass [She/Her]> But my format is `timestamp|sequence|generatorId|randomness`, which wouldn't work nicely |
| 22:26:17 | FromDiscord | <Hourglass [She/Her]> In reply to @Dudugz "I have a bytearray": Oh? |
| 22:26:41 | FromDiscord | <Hourglass [She/Her]> Tbf I could probably implement the code myself, but I want it to be fast, since this would be used for a chat application |
| 22:27:12 | FromDiscord | <pybokeh> According to ChatGPT, to create Windows exe in Ubuntu WSL, I have to install Windows SDK, which seems too much of a hassle. So decided to go back to native windows nim and see if I can forego not running finish.exe. I asked what exactly finish.exe does, but no1 replied. So I just guessed that it just adds the "bin" folders to PATH. So I did that manually. Now everything works ok. |
| 22:27:49 | FromDiscord | <jmgomez> ah gotcha, but yeah Windows.h it's on the sdk that you can get by installing the vs community tools |
| 22:28:24 | FromDiscord | <pybokeh> Yup, but I saw the installation instructions and what I have to do afterwards and I was like "nope!" |
| 22:28:33 | FromDiscord | <jmgomez> I dont know how the antivirus can flagged it based of it's compiler on win vs lin but you can try to switch the compiler on win |
| 22:29:05 | FromDiscord | <Dudugz> https://github.com/dark-mice/core/blob/main/src/core/bytearray.nim#L36↵↵This codebase is out of date so don't worry, it was in the experimental phase, I'll release core v3 on Monday with improvements in code quality. |
| 22:29:35 | FromDiscord | <Dudugz> In reply to @Hourglass, When the Hour Strikes "Tbf I could probably": I use it on servers to package data... So |
| 22:30:48 | FromDiscord | <Dudugz> I refactored this whole library but I didn't have time to refactor the ipc, there were many changes, corrections and improvements in readability and quality |
| 22:31:05 | FromDiscord | <pybokeh> Yeah I saw on reddit that latest version of nim doesn't get flagged on anti-virus, so decided to give it a go again. But to be safe, tried on personal machine, but finish.exe got flagged. Not sure if core devs could look into that or gave up on that. |
| 22:31:36 | FromDiscord | <pybokeh> It was windows defender btw |
| 22:32:44 | FromDiscord | <pybokeh> but looks like its all good since I can forgo not running finish.exe and just manually update my PATH |
| 22:32:48 | FromDiscord | <Hourglass [She/Her]> In reply to @Dudugz "https://github.com/dark-mice/core/blob/main/src/cor": Ah thanks! |
| 22:36:12 | FromDiscord | <Dudugz> Np |
| 22:39:04 | FromDiscord | <Dudugz> I didn't have time to commit the new code, it's embarrassing to show this repository in the current situation lol. As I said on Monday I'll be committing all the changes. |
| 23:17:23 | FromDiscord | <demotomohiro> sent a long message, see http://ix.io/4sQr |
| 23:24:53 | FromDiscord | <pybokeh> In reply to @demotomohiro "`finish.exe` is a program": Thanks! Hmmm, looks like I have problem with work machine when installing packages using nimble. Getting the 'ol can't find SSL certificate |
| 23:25:42 | * | FromDiscord quit (Remote host closed the connection) |
| 23:25:55 | * | FromDiscord joined #nim |
| 23:26:41 | FromDiscord | <pybokeh> Tried workarounds per ChatGPT. I even manually downloaded the .pem file via browser. |
| 23:26:59 | FromDiscord | <pybokeh> (edit) "Tried workarounds per ChatGPT. I even manually downloaded the .pem file via browser. ... " added " Still getting SSL cert error." |
| 23:28:07 | FromDiscord | <pybokeh> But don't get this problem with personal machine. I'm sure corporate VPN or network is blocking somehow. |
| 23:29:29 | FromDiscord | <demotomohiro> In reply to @pybokeh "Thanks! Hmmm, looks": That ssl error might be fixed by installing openssl using your installed package manager. |
| 23:32:58 | FromDiscord | <pybokeh> You mean just do: nimble install openssl? Tried that but got error: Failed to verify the SSL certificates for https://github.com/nim-lang/packages/raw/master/packages.json |
| 23:33:21 | FromDiscord | <pybokeh> (edit) "certificates" => "certificate" |
| 23:34:19 | FromDiscord | <demotomohiro> In reply to @pybokeh "You mean just do:": Install openssl using scoop or msys2. |
| 23:34:34 | FromDiscord | <pybokeh> I don't have admin rights |
| 23:35:27 | FromDiscord | <demotomohiro> Both scoop and msys2 supports Nim and gcc. Also contains Openssl executable and dlls. |
| 23:37:22 | FromDiscord | <demotomohiro> It seems scoop doesnt requires admin https://github.com/ScoopInstaller/Install#typical-installation |