| 00:11:11 | * | beholders_eye joined #nim |
| 00:14:18 | * | jkl__ quit (Ping timeout: 246 seconds) |
| 00:18:43 | * | jkl joined #nim |
| 00:41:57 | * | SchweinDeBurg quit (Quit: WeeChat 4.6.0-dev) |
| 01:02:59 | * | SchweinDeBurg joined #nim |
| 01:14:03 | * | beholders_eye quit (Quit: WeeChat 4.5.1) |
| 01:21:02 | * | disso-peach quit (Quit: Leaving) |
| 02:18:00 | FromDiscord | <madonuko> my program takes 1m15s for g++ to compile, so over |
| 02:31:17 | FromDiscord | <madonuko> very interesting, it takes like seconds to compile with `--backend=c` tho |
| 02:31:51 | FromDiscord | <madonuko> 50s vs 2s |
| 02:34:13 | * | thunder quit (Quit: Leaving) |
| 02:39:25 | FromDiscord | <madonuko> cursed but I think I need to figure out how to compile different parts of my project with different targets |
| 02:39:36 | FromDiscord | <madonuko> and then link them together manually |
| 03:01:23 | * | rockcavera quit (Remote host closed the connection) |
| 04:20:06 | FromDiscord | <madonuko> I'm confusion https://media.discordapp.net/attachments/371759389889003532/1348510701483982889/image.png?ex=67cfb9f5&is=67ce6875&hm=f275f58e9697b8c54224f5f11b2384c716838f04c2b07c761b9670479ba3d0fb& |
| 04:24:42 | FromDiscord | <Elegantbeef> you only need `--outDir:build` |
| 04:25:22 | FromDiscord | <Elegantbeef> But you also want `nimCacheDir` not `outDir` |
| 04:35:05 | FromDiscord | <eightbit_dboy> Oh yeah, forgot to post here about it, but I got my web anti-framework, `nerc`, thrown together: https://github.com/8bitprodigy/nerc |
| 04:35:30 | FromDiscord | <eightbit_dboy> Here's my own site as an example: https://8bit.frop.prof/ |
| 04:35:51 | FromDiscord | <eightbit_dboy> And here's the repo it's hosted in: https://github.com/8bitprodigy/frop-site |
| 04:46:08 | FromDiscord | <haoyu233> The nightly build of the Linux platform has not been updated for a while. |
| 04:46:57 | FromDiscord | <haoyu233> Last updated on February 28 https://media.discordapp.net/attachments/371759389889003532/1348517457328996453/image.png?ex=67cfc040&is=67ce6ec0&hm=76b1c0fc2029c62b80651c443c4a82b17427bc008a16b2676b1e16b24906a366& |
| 04:59:08 | FromDiscord | <madonuko> sent a code paste, see https://play.nim-lang.org/#pasty=RriypJdT |
| 04:59:25 | FromDiscord | <madonuko> but yeah the mysterious dest reigister bug https://media.discordapp.net/attachments/371759389889003532/1348520596673265694/image.png?ex=67cfc32c&is=67ce71ac&hm=aeeb7ff6a5f74044f43103b0b94eaaff3f9f34aa7a6eca2efcc952a40e21e012& |
| 04:59:55 | FromDiscord | <Elegantbeef> using `const` for a closure all likely |
| 05:00:39 | FromDiscord | <madonuko> doesn't look like it https://media.discordapp.net/attachments/371759389889003532/1348520908066787338/image.png?ex=67cfc376&is=67ce71f6&hm=44a34cf1851e2542915318c25f36505bcfddf55b026f307d96d914d3b65561d6& |
| 05:01:04 | FromDiscord | <Elegantbeef> Using static anywhere? |
| 05:01:16 | FromDiscord | <madonuko> nope |
| 05:02:00 | FromDiscord | <madonuko> yeah no idea why this happens |
| 05:02:16 | FromDiscord | <Elegantbeef> You have to be using the VM somewhere |
| 05:02:23 | FromDiscord | <madonuko> well it's nimscript so |
| 05:02:24 | FromDiscord | <madonuko> obviously |
| 05:02:30 | FromDiscord | <lainlaylie> In reply to @haoyu233 "Last updated on February": looks like the linux nightlies are failing to build, https://github.com/nim-lang/nightlies/actions/runs/13754743388/job/38460386897↵as usual, the answer is to ditch choosenim |
| 05:02:33 | FromDiscord | <Elegantbeef> Oh well there's your problem |
| 05:02:39 | FromDiscord | <madonuko> ok kill me |
| 05:02:45 | FromDiscord | <madonuko> kinda don't want to rely on python tho |
| 05:03:29 | FromDiscord | <Elegantbeef> How does `contains` not exist for nimscript? |
| 05:04:04 | FromDiscord | <Elegantbeef> At somepoint it just becomes easier to write Nim then compile Nim to compile Nim |
| 05:05:21 | FromDiscord | <madonuko> In reply to @Elegantbeef "How does `contains` not": it does uhh I was dumb |
| 05:06:15 | FromDiscord | <madonuko> In reply to @Elegantbeef "At somepoint it just": not the worst idea tbh |
| 05:06:45 | FromDiscord | <Elegantbeef> Nim compiles fast and then you can just write Nim and not walk around the mess that is nimscript |
| 05:09:52 | FromDiscord | <madonuko> me writing nim and compiling nim to an executable that runs nim to compile my actual nim code in order to avoid bad compile times with --backend:cpp |
| 05:10:06 | FromDiscord | <madonuko> my setup is so cursed |
| 05:10:52 | FromDiscord | <Elegantbeef> When I was doing the RPI pico stuff That's what I did practically |
| 05:11:02 | FromDiscord | <Elegantbeef> I had a build program to compile Nim to modify a cmake file that then called cmake |
| 05:11:20 | FromDiscord | <madonuko> ok you win |
| 05:11:41 | FromDiscord | <madonuko> why do you even have cmake in your nim project |
| 05:11:45 | FromDiscord | <Elegantbeef> To top it off to figure out which libraries to link it searched C files |
| 05:11:50 | FromDiscord | <Elegantbeef> Cause rpi pico's build system used cmake |
| 05:12:06 | FromDiscord | <Elegantbeef> I sure as shit was not replacing the cmake mess |
| 05:12:38 | FromDiscord | <madonuko> that's cursed and magical |
| 05:13:30 | FromDiscord | <Elegantbeef> Yea I did not like the premise of "Oh I want to use ADC so I have to go modify the cmake manually" |
| 05:13:55 | FromDiscord | <Elegantbeef> It worked then Djazz improved upon it turning it into just nimscript 😄 |
| 05:58:40 | FromDiscord | <janakali> In reply to @Elegantbeef "I sure as shit": just ask an LLM to rewrite it in Nimscript 😄 /s |
| 06:35:45 | FromDiscord | <madonuko> In reply to @Elegantbeef "Oh well there's your": so I wrapped everything in `proc main =` and it now magically works |
| 06:57:51 | * | ensyde quit (Ping timeout: 246 seconds) |
| 07:00:29 | * | ensyde joined #nim |
| 07:32:38 | * | MauGal joined #nim |
| 07:38:19 | FromDiscord | <Laylie> beef, your thoughts please\: https://github.com/nim-lang/Nim/pull/24759 |
| 07:58:57 | FromDiscord | <Elegantbeef> Laylie I finally get to say LGTM 😄 |
| 08:00:27 | FromDiscord | <Elegantbeef> Though one can also do `bind scanf` in the generic procedure |
| 08:06:36 | FromDiscord | <madonuko> https://media.discordapp.net/attachments/371759389889003532/1348567705787306044/image.png?ex=67cfef0c&is=67ce9d8c&hm=1ab406feae35bd10a482a408707ffd1edc614d8c471a8d71afd240aabd7f814e& |
| 08:06:47 | FromDiscord | <madonuko> took too much effort than anticipated tho |
| 08:30:15 | * | calciterichardst joined #nim |
| 08:30:47 | calciterichardst | hi |
| 08:31:44 | * | calciterichardst quit (Remote host closed the connection) |
| 09:48:31 | * | ntat joined #nim |
| 10:01:05 | * | ntat quit (Quit: leaving) |
| 10:12:00 | * | ntat joined #nim |
| 10:13:44 | * | greenOcean joined #nim |
| 10:17:46 | * | MauGal quit (Quit: MauGal) |
| 10:32:07 | * | ntat quit (Read error: Connection reset by peer) |
| 10:41:52 | * | ntat joined #nim |
| 10:52:22 | FromDiscord | <System64 ~ Flandre Scarlet> Hi! Is there a way to know the memory address of a ref object please? |
| 10:56:09 | * | beholders_eye joined #nim |
| 11:03:13 | * | GnuYawk6733 is now known as GnuYawk |
| 11:04:49 | * | beholders_eye quit (Ping timeout: 260 seconds) |
| 11:06:38 | FromDiscord | <Robyn [She/Her]> In reply to @sys64 "Hi! Is there a": `addr`? |
| 11:06:52 | FromDiscord | <Robyn [She/Her]> Oh wait that returns a ptr ref T |
| 11:07:58 | FromDiscord | <Robyn [She/Her]> I mean you could do `addr myRef[]` |
| 11:08:05 | FromDiscord | <griffith1deadly> sent a code paste, see https://play.nim-lang.org/#pasty=OWwEqckF |
| 11:08:30 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=JeDBDptF |
| 11:08:36 | FromDiscord | <Robyn [She/Her]> Not sure how Nim lays it out |
| 11:27:12 | * | ntat quit (Read error: Connection reset by peer) |
| 11:38:55 | * | greenOcean quit (Read error: Connection reset by peer) |
| 11:40:26 | * | ntat joined #nim |
| 11:52:04 | * | shrewd quit (Ping timeout: 245 seconds) |
| 12:08:32 | * | ntat quit (Quit: leaving) |
| 12:42:35 | * | tokyovigilante quit (Ping timeout: 272 seconds) |
| 12:42:50 | * | tokyovigilante joined #nim |
| 12:43:35 | FromDiscord | <nervecenter> What does the `~` operator do? Would there be any issue defining a template for `~=` as a floating point `isClose` sort of comparator? |
| 12:47:04 | * | tokyovigilante quit (Ping timeout: 245 seconds) |
| 12:47:24 | * | tokyovigilante joined #nim |
| 12:50:52 | * | ntat joined #nim |
| 13:04:20 | * | beholders_eye joined #nim |
| 13:08:14 | FromDiscord | <spotlightkid> @nervecenter\: `=~` is a template defined in the `std/re` module\: https://nim-lang.org/docs/re.html#18 |
| 13:13:00 | FromDiscord | <nervecenter> ah...never mind then |
| 13:38:35 | * | greenOcean joined #nim |
| 14:10:27 | FromDiscord | <fabric.input_output> In reply to @sys64 "Hi! Is there a": I think you can just cast it? |
| 14:12:40 | * | ensyde quit (Quit: WeeChat 4.5.2) |
| 14:28:19 | FromDiscord | <albassort> is there a parseInt which can read a float to an integer |
| 14:30:27 | Amun-Ra | as in it won't stop at the '.'? |
| 14:32:20 | Amun-Ra | https://play.nim-lang.org/#pasty=SCaHrmwp |
| 14:33:46 | Amun-Ra | if you have to parse all the float, parse float and make it int |
| 15:15:36 | * | greenOcean quit (Remote host closed the connection) |
| 15:44:56 | * | greenOcean joined #nim |
| 16:03:03 | FromDiscord | <nixfreak> Has anyone used Nim for setting up a blog ? I'm looking at nimib but trying to figure out how to compile multiple directories and sub directories when needed. Any examples would be great |
| 16:22:31 | FromDiscord | <nasuray> In reply to @nervecenter "ah...never mind then": You can still use it as a template however you'd like though. |
| 16:29:06 | * | greenOcean quit (Remote host closed the connection) |
| 16:31:04 | FromDiscord | <nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=XbCxOOHk |
| 16:31:05 | FromDiscord | <nocturn9x> :< |
| 16:31:09 | FromDiscord | <nocturn9x> (edit) "https://play.nim-lang.org/#pasty=IgaMGsQn" => "https://play.nim-lang.org/#pasty=fufGLypj" |
| 16:32:10 | FromDiscord | <nocturn9x> I need them to be `noSideEffect` because I want to call these from another `func` |
| 16:33:10 | FromDiscord | <nocturn9x> I could just do `{.cast(noSideEffect).}` but I find that uglu |
| 16:33:11 | FromDiscord | <nocturn9x> (edit) "uglu" => "ugly" |
| 16:33:16 | FromDiscord | <nocturn9x> was wondering if there's a safer option |
| 16:36:36 | FromDiscord | <solitudesf> In reply to @nocturn9x "I'm trying to do": you dont need to annotate them with nosideeffect, if the container is implying nosideeffect. and cast(noSideEffect) does the opposite. |
| 16:36:51 | FromDiscord | <nocturn9x> oh, okie |
| 16:37:15 | FromDiscord | <nocturn9x> hmm |
| 16:37:39 | FromDiscord | <nocturn9x> it works, thanks! |
| 16:37:54 | FromDiscord | <nocturn9x> FYI it also works with the cast pragma |
| 16:38:48 | FromDiscord | <solitudesf> im not sure what are you trying to do, but cast pragma overrides side-effect tracking. |
| 16:39:31 | FromDiscord | <nocturn9x> yes that was the point |
| 16:39:37 | FromDiscord | <nocturn9x> because I couldn't mark them as noSideEffect |
| 16:39:40 | FromDiscord | <nocturn9x> but they were, so |
| 16:39:41 | FromDiscord | <nocturn9x> yeah+ |
| 16:39:42 | FromDiscord | <nocturn9x> (edit) "yeah+" => "yeah" |
| 16:39:46 | FromDiscord | <solitudesf> but thats the opposite |
| 16:39:47 | FromDiscord | <nocturn9x> but your solution is better so I did that |
| 16:40:14 | FromDiscord | <solitudesf> you cast to noSideEffect when you want impure function to appear without sideEffect to effect tracker. |
| 16:44:07 | FromDiscord | <nocturn9x> that was my goal yeah |
| 16:44:20 | FromDiscord | <nocturn9x> I do it with gcsafe in a couple of places where I can't use gcsafe stuff |
| 16:56:44 | * | ntat_ joined #nim |
| 17:07:27 | * | coldfeet joined #nim |
| 17:11:22 | * | coldfeet quit (Client Quit) |
| 17:18:10 | * | scmutalisk quit (Remote host closed the connection) |
| 17:23:21 | * | ntat_ quit (Quit: leaving) |
| 17:27:49 | * | fallback quit (Ping timeout: 248 seconds) |
| 17:35:13 | * | ntat_ joined #nim |
| 17:41:57 | * | fallback joined #nim |
| 17:46:25 | * | ntat_ quit (Quit: leaving) |
| 17:54:54 | * | beholders_eye quit (Ping timeout: 244 seconds) |
| 18:26:31 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @fabric.input_output "I think you can": Works too |
| 18:55:15 | * | beholders_eye joined #nim |
| 19:30:26 | * | coldfeet joined #nim |
| 20:01:36 | * | ntat_ joined #nim |
| 20:02:09 | * | ntat quit (Ping timeout: 268 seconds) |
| 20:04:03 | * | ntat_ is now known as ntat |
| 20:28:34 | * | beholders_eye quit (Ping timeout: 244 seconds) |
| 20:29:17 | * | coldfeet quit (Quit: Lost terminal) |
| 20:30:23 | * | beholders_eye joined #nim |
| 21:00:36 | * | rockcavera joined #nim |
| 21:07:10 | * | GnuYawk quit (Quit: The Lounge - https://thelounge.chat) |
| 21:07:30 | * | GnuYawk joined #nim |
| 21:17:14 | * | ntat quit (Quit: Leaving) |
| 21:25:37 | * | beholders_eye quit (Quit: WeeChat 4.5.1) |
| 21:30:24 | * | rockcavera is now known as Guest9101 |
| 21:30:24 | * | tiorock joined #nim |
| 21:30:24 | * | Guest9101 quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
| 21:30:24 | * | tiorock is now known as rockcavera |
| 21:32:29 | * | tiorock joined #nim |
| 21:32:29 | * | tiorock quit (Changing host) |
| 21:32:29 | * | tiorock joined #nim |
| 21:32:29 | * | rockcavera is now known as Guest7064 |
| 21:32:29 | * | tiorock is now known as rockcavera |
| 21:35:06 | * | Guest7064 quit (Ping timeout: 252 seconds) |
| 21:42:13 | FromDiscord | <System64 ~ Flandre Scarlet> Is there a Lua binding with more recent version of Lua please? |
| 21:43:50 | FromDiscord | <Elegantbeef> futhark it yourself if there are not any recent bindings |
| 22:02:19 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#pasty=VBsgGGeq |
| 22:03:48 | FromDiscord | <Elegantbeef> did you import the file that includes `luaL_newState`? |
| 22:04:11 | FromDiscord | <Elegantbeef> Also isn't lua shipped as a dynamic library so you should have a library somewhere and don't need the static stuff |
| 22:04:42 | FromDiscord | <System64 ~ Flandre Scarlet> Even if I don't use --passL, it errors↵But the lib is installed on my computer |
| 22:05:19 | FromDiscord | <Elegantbeef> undefined reference means you're not linking the right file or library |
| 22:06:52 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Elegantbeef "undefined reference means you're": It should be the right file |
| 22:12:48 | FromDiscord | <System64 ~ Flandre Scarlet> Maybe it's because I should use clang instead of GCC? |
| 22:44:11 | FromDiscord | <System64 ~ Flandre Scarlet> Alright this is fixed↵But seems I can't access #define values? |
| 23:15:17 | FromDiscord | <System64 ~ Flandre Scarlet> https://media.discordapp.net/attachments/371759389889003532/1348796381732802771/image.png?ex=67d0c404&is=67cf7284&hm=bef2256b6b4b554b65006905aebe3afb993c97b1f50716190a797de1e10faa33& |
| 23:15:31 | FromDiscord | <System64 ~ Flandre Scarlet> I'm adding scripting in Kurumi-XP |
| 23:32:38 | FromDiscord | <zumi.dxy> lua? |
| 23:45:51 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @zumi.dxy "lua?": Yes |