| 00:00:02 | * | marcus quit (Remote host closed the connection) |
| 00:00:44 | * | marcus joined #nim |
| 00:04:34 | * | SchweinDeBurg quit (Read error: Connection reset by peer) |
| 00:08:17 | FromDiscord | <Robyn [She/Her]> Hey @treeform I think I've found a bug in your JSON parser maybe |
| 00:08:52 | FromDiscord | <Robyn [She/Her]> I've confirmed the JSON I have well formed but your parser seems to dislike it |
| 00:09:13 | FromDiscord | <Robyn [She/Her]> I can send the JSON file (it's pretty large) in your DMs so you can confirm locally |
| 00:09:14 | * | SchweinDeBurg joined #nim |
| 00:28:01 | FromDiscord | <treeform> In reply to @battery.acid.bubblegum "Hey <@107140179025735680> I think": Does it parse with std/json? |
| 00:28:19 | FromDiscord | <treeform> does it parse without hooks? |
| 00:28:59 | FromDiscord | <treeform> does it parse with https://github.com/guzba/sunny ? |
| 00:40:41 | * | lumidify_ joined #nim |
| 00:44:47 | * | marcus quit (*.net *.split) |
| 00:44:47 | * | cm quit (*.net *.split) |
| 00:44:47 | * | bgupta quit (*.net *.split) |
| 00:44:47 | * | lumidify quit (*.net *.split) |
| 00:51:01 | * | cm joined #nim |
| 00:51:01 | * | bgupta joined #nim |
| 00:54:20 | * | meinside- joined #nim |
| 00:56:49 | * | meinside quit (Ping timeout: 256 seconds) |
| 00:59:25 | * | marcus joined #nim |
| 02:26:48 | FromDiscord | <Robyn [She/Her]> In reply to @treeform "Does it parse with": not at my pc now but i can test those tomorrow |
| 04:02:54 | FromDiscord | <lamabamadong_33783> What's the best way to install Nim presently? |
| 04:03:20 | FromDiscord | <lamabamadong_33783> I'm on mac |
| 05:11:45 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 05:32:25 | FromDiscord | <lainlaylie> In reply to @.tokyovigilante "I'm working through vkguide.dev,": you probably need parentheses around the body (after =>) |
| 06:41:43 | FromDiscord | <kiloneie> In reply to @lamabamadong_33783 "What's the best way": Maybe using homebrew, i am using that on linux atm, though it's not yet on the latest version. |
| 06:42:36 | FromDiscord | <kiloneie> (edit) "atm, though" => "atm. Yesterday it wasn't, but today" | "not yet on" => "matching" | "latest version." => "latest." |
| 07:01:41 | * | tiorock joined #nim |
| 07:01:41 | * | tiorock quit (Changing host) |
| 07:01:41 | * | tiorock joined #nim |
| 07:01:41 | * | rockcavera is now known as Guest3095 |
| 07:01:41 | * | Guest3095 quit (Killed (silver.libera.chat (Nickname regained by services))) |
| 07:01:41 | * | tiorock is now known as rockcavera |
| 07:11:44 | FromDiscord | <kiloneie> In reply to @kiloneie "Wat...": Adding {.global.} to var `self` fixed it. Though, sometimes it doesn't let me make {.global.} variables, and i don't understand why(sorry, no example, but it was within the same proc). |
| 07:21:05 | FromDiscord | <lainlaylie> just make sure you know what global actually does |
| 08:21:55 | FromDiscord | <kiloneie> https://nim-lang.org/docs/manual.html#pragmas-global-pragma |
| 08:22:29 | FromDiscord | <kiloneie> I think i understand, i just need a normal top-level variable, but im cheating a little with the pragma, on it's placement. |
| 08:24:13 | FromDiscord | <kiloneie> If there is more to it, some side-effects, do tell me. If they are bad enough, i will just make normal variables... |
| 08:33:42 | * | lumidify_ is now known as lumidify |
| 08:45:47 | Amun-Ra | the only side effect is non atomic read and write at the same time, if you don't use threads you're probably fine |
| 08:50:50 | FromDiscord | <tauruuuuuus> In reply to @lamabamadong_33783 "What's the best way": Install xcode↵Clone nim and checkout latest release tag↵Run ./build_all.sh↵Add nim/bin and ~/.nimble/bin directories to path |
| 08:59:20 | Amun-Ra | iirc from the shell: run xcode-select --install |
| 09:00:31 | * | hygo quit (Quit: WeeChat 4.6.3) |
| 10:16:28 | FromDiscord | <lamabamadong_33783> In reply to @tauruuuuuus "Install xcode Clone nim": Thanks |
| 10:17:37 | FromDiscord | <aethrvmn> Very good, how do you add new services? Is it like sysvinit where you just add a new script in the folder or do you use custom config like systemd?↵(@wakanakisarazu) |
| 10:18:45 | FromDiscord | <aethrvmn> gtabnim (https://codeberg.org/janakali/grabnim.git)↵(@lamabamadong_33783) |
| 10:18:52 | FromDiscord | <aethrvmn> grabnim (https://codeberg.org/janakali/grabnim.git) |
| 10:45:00 | FromDiscord | <tauruuuuuus> In reply to @lamabamadong_33783 "Thanks": FYI that will actually work on any platform (minus the xcode bit), you just need a c compiler installed there |
| 11:24:10 | FromDiscord | <wakanakisarazu> In reply to @aethrvmn "Very good, how do": It doesn't have service support yet, but it will be where it will read script files from /kasane/tetorc/teto.d and run them |
| 11:24:20 | FromDiscord | <wakanakisarazu> We will be using the runlevel approach |
| 11:31:18 | FromDiscord | <wakanakisarazu> sent a long message, see https://pasty.ee/uiSkmfGZ |
| 12:11:35 | * | przmk quit (Remote host closed the connection) |
| 12:12:11 | * | przmk joined #nim |
| 12:31:12 | * | SchweinDeBurg joined #nim |
| 13:20:17 | FromDiscord | <nocturn9x> In reply to @wakanakisarazu "How is my init": fun! |
| 13:20:38 | FromDiscord | <nocturn9x> <https://git.nocturn9x.space/nocturn9x/nimd> |
| 13:20:44 | FromDiscord | <nocturn9x> I also experimented with writing an init |
| 13:20:55 | FromDiscord | <nocturn9x> I didn't bother finish the config file parsing but the rest all works :) |
| 13:25:22 | FromDiscord | <nocturn9x> or rather, it has no way to parse service files |
| 13:25:24 | FromDiscord | <nocturn9x> the config is parsed |
| 13:31:01 | FromDiscord | <wakanakisarazu> Epic, I'll take a look |
| 13:32:44 | FromDiscord | <wakanakisarazu> Apache 2↵Can I include it in my init? I would love to fork it and integrate it, as my init is more of a service manager, i'll credit you, this looks nice af |
| 13:50:58 | FromDiscord | <nocturn9x> I mean |
| 13:51:01 | FromDiscord | <nocturn9x> you don't even need to ask me |
| 13:51:04 | FromDiscord | <nocturn9x> the license allows it :) |
| 13:51:56 | FromDiscord | <nocturn9x> it is extremely simple FYI |
| 13:52:03 | FromDiscord | <nocturn9x> but I'm of the opinion that inits should be just that |
| 13:52:25 | FromDiscord | <nocturn9x> it can start stuff on an alpine linux VM just fine-- never tested it on bare metal though |
| 13:52:51 | FromDiscord | <nocturn9x> some things I wanted to implement are also missing |
| 13:52:58 | FromDiscord | <nocturn9x> it doesn't actually check the runlevels directory |
| 13:53:04 | FromDiscord | <nocturn9x> that would've been implemented with the config parsing |
| 13:53:08 | FromDiscord | <nocturn9x> but I just lost motivation ig |
| 13:53:17 | FromDiscord | <nocturn9x> In reply to @nocturn9x "it doesn't actually check": but the runlevels are implemented, logic-wise |
| 13:53:26 | FromDiscord | <nocturn9x> it also has dependency resolution |
| 13:53:43 | FromDiscord | <nocturn9x> one of the things that I wanted to get right, instead of going down the runit route of "just restart stuff until it works lmao" |
| 14:58:30 | FromDiscord | <amun0666> Anything's better than systemd. 😉 |
| 15:59:58 | FromDiscord | <kiloneie> In reply to @Amun-Ra "the only side effect": Okay, thanks. I will keep that in mind, and only use them for quick testing of things/debugging. |
| 16:07:36 | FromDiscord | <kiloneie> Can i make it so, that a proc returns a bool, but i don't need to use ? |
| 16:13:15 | Amun-Ra | kiloneie: add pragma {.discardable.} |
| 16:13:39 | Amun-Ra | proc theproc(): bool {.discardable.} = … |
| 16:15:23 | FromDiscord | <wakanakisarazu> In reply to @nocturn9x "it is extremely simple": Ty |
| 16:16:11 | FromDiscord | <nocturn9x> In reply to @amun0666 "Anything's better than systemd.": hah, true! |
| 16:16:13 | FromDiscord | <nocturn9x> OpenRC gang |
| 16:18:47 | FromDiscord | <kiloneie> In reply to @Amun-Ra "<@398205119583485964>: add pragma {.discardable.}": Are you sure it's not an experimental thing ? I will search on this... https://media.discordapp.net/attachments/371759389889003532/1434215100960735403/Screenshot_2025-11-01_17-18-17.png?ex=69078466&is=690632e6&hm=0381dcc4fe2cadbab4f4ce6ddbd98314a5248aa22017588fd1879ab2565d3ffe& |
| 16:21:09 | FromDiscord | <kiloneie> In reply to @Amun-Ra "<@398205119583485964>: add pragma {.discardable.}": (deleted my previous) it doesn't work for templates <.<.↵But, this is awesome! |
| 16:24:42 | FromDiscord | <Robyn [She/Her]> In reply to @battery.acid.bubblegum "not at my pc": @treeform can't test with Sunny but std/json works perfectly |
| 16:24:49 | FromDiscord | <Robyn [She/Her]> also tested without hooks |
| 16:26:13 | FromDiscord | <treeform> If std/json work for you then jsony should as well, plz open a bug? |
| 16:28:26 | FromDiscord | <Robyn [She/Her]> In reply to @treeform "If std/json work for": o7 but the data is really big, not sure how to narrow it down |
| 16:52:00 | * | beholders_eye joined #nim |
| 17:03:45 | * | ainema joined #nim |
| 17:58:50 | * | ainema left #nim (#nim) |
| 18:41:37 | FromDiscord | <ajusa> sent a code paste, see https://play.nim-lang.org/#pasty=wzPGbWXc |
| 18:49:51 | Amun-Ra | extract? |
| 19:01:53 | FromDiscord | <lainlaylie> = move them to their own module |
| 19:15:02 | FromDiscord | <Elegantbeef> @ajusa I believe you're fighting the fact there is a `on` in system |
| 19:15:11 | FromDiscord | <Elegantbeef> Change the name of the `on` template to `doOn` and it works |
| 19:15:48 | FromDiscord | <Elegantbeef> This can be confirmed with `import system except on` |
| 21:20:18 | * | Guest89 joined #nim |
| 21:21:12 | * | Guest89 quit (Client Quit) |
| 21:32:37 | * | hygo joined #nim |
| 21:49:27 | FromDiscord | <ajusa> In reply to @Elegantbeef "<@102899813149855744> I believe you're": thanks as always beef. The error message seemed to have nothing to do with that so I was losing my mind |
| 21:49:50 | FromDiscord | <Elegantbeef> Nim symbols are funny |
| 21:51:46 | FromDiscord | <nasuray> In reply to @Elegantbeef "Nim symbols are funny": They always make me chuckle |
| 22:48:11 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=nWarhAEQ |
| 22:50:07 | FromDiscord | <TӨMΛ ☠> (edit) "https://play.nim-lang.org/#pasty=YTEZZxII" => "https://play.nim-lang.org/#pasty=YGCSpakW" |
| 23:08:13 | * | beholders_eye quit (Quit: WeeChat 4.6.3) |
| 23:20:59 | FromDiscord | <aethrvmn> Isnt this multiple inheritance essentially? |
| 23:38:20 | FromDiscord | <systemblue2010> please say someword to me who are making AES with Nim before exam |
| 23:38:29 | FromDiscord | <systemblue2010> (edit) "please say someword to me who are making AES with Nim before exam ... " added "oneday" |
| 23:44:34 | FromDiscord | <ajusa> In reply to @toma400 "Can you make something": https://github.com/alaviss/union |