<< 22-12-2025 >>

00:38:40FromDiscord<kapendev> FYI he did the same thing in the Dlang server.
00:39:32FromDiscord<kapendev> Got a warning in the V server too.
00:40:28FromDiscord<Buckwheat> no offense since I know this is a Discord server that just happens to have IRC and Matrix bridges, but do Discord people really have this much free time to do this kind of thing???
00:53:00FromDiscord<leorize> nope, discord just has a lot more users
01:09:27*Jjp137 joined #nim
01:11:49*Mister_Magister quit (Quit: bye)
01:14:35*Mister_Magister joined #nim
03:10:27FromDiscord<mjsdev> https://www.youtube.com/watch?v=hfMslCLDzJM
03:13:10FromDiscord<mjsdev> @xtrayambak ^
03:38:50*xet7 joined #nim
04:48:43*xet7 quit (Read error: Connection reset by peer)
04:50:39*xet7 joined #nim
05:24:58FromDiscord<xtrayambak> In reply to @mjsdev "<@498088092406644736> ^": that's neat. I'm currently working on a new project (a Wayland-first terminal emulator in Nim) and neo seems to mostly be holding up, and I'm fairly surprised at that.
05:28:35*xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
05:28:49*xutaxkamay joined #nim
05:29:40FromDiscord<mjsdev> Nice, got a repo anywhere?
05:39:15*elijahr joined #nim
05:40:19*elijahr quit (Client Quit)
06:32:58*xet7 quit (Quit: Leaving)
06:48:40*adigitoleo quit (Read error: Connection reset by peer)
06:48:50*adigitoleo joined #nim
08:29:44FromDiscord<TӨMΛ ☠> A silly question maybe, but. If you have condition that checks multiple things through `and` (e.g. `if A and B and C and D`), is not meeting `A` returning whole condition immediately, or does it work through next parts of the condition anyway?↵(as in, does it optimise or does it not?)
08:30:06FromDiscord<Elegantbeef> Short circuiting happens yes
08:45:35FromDiscord<wakanakisarazu> sent a long message, see https://pasty.ee/kPhtagzG
09:30:01FromDiscord<aethrvmn> Hey, I think the main one is parallelism of processes and please please use something more sane that systemd's syntax for services↵(@wakanakisarazu)
09:32:18FromDiscord<nnsee> what's wrong with systemd's syntax?
09:37:40FromDiscord<aethrvmn> It's too much and I must constantly reference the source of truth (LLMs)
09:37:52FromDiscord<finnt730> In reply to @kapendev "FYI he did the": they did it in the Minecraft Forge (the modloader) server as well↵gave them a hard kick↵likely a account turned into a bot account
09:37:52FromDiscord<aethrvmn> Skill issue I know but it's a gripe I have
09:46:36FromDiscord<aethrvmn> @nnsee for reference, `dinit` has a much more sane syntax
09:46:46FromDiscord<aethrvmn> https://wiki.artixlinux.org/Main/Dinit
09:53:23FromDiscord<nnsee> In reply to @aethrvmn "It's too much and": ... why not just `man`?
09:53:33FromDiscord<nnsee> i've found the systemd man pages to be, on average, very good
09:55:49FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=LEVLifmp
10:00:28FromDiscord<aethrvmn> I am lazy, so I get an LLM to write the service↵(@nnsee)
10:02:41FromDiscord<nnsee> i mean i feel like systemd makes writing a basic service really easy so i've never found myself reaching for LLMs - however i do admit i've used LLMs to suggest hardening options etc. i like my services to have a happy face in `systemd-analyze security`
10:14:35FromDiscord<wakanakisarazu> In reply to @aethrvmn "Hey, I think the": Sure
11:04:52FromDiscord<aethrvmn> I have two happy faces running this (I didnt know this existed)↵(@nnsee)
11:05:15FromDiscord<aethrvmn> Too bad I can't do much because Nix handles the services automagically
11:07:15FromDiscord<aethrvmn> At least this is the work laptop so it's not very important for me (I am a mercenary)
12:14:30FromDiscord<saint._._.> In reply to @aethrvmn "I have two happy": What are happy faces?
15:22:07FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=wApkdVwa
16:30:29*SchweinDeBurg joined #nim
16:34:16*SchweinD1 joined #nim
16:35:13*SchweinDeBurg quit (Ping timeout: 260 seconds)
16:38:32*SchweinD1 quit (Ping timeout: 240 seconds)
16:40:51FromDiscord<litlighilit> nope, imo.The only thing I'd do is to do some improvement to your original implementation↵(@mjsdev)
16:41:29FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=MPvEVwyd
16:41:43FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=KIxcnmRH
16:41:57FromDiscord<mjsdev> Because I want common logic for all exceptions, then specific logic for specific types
16:42:59FromDiscord<Buckwheat> @wakanakisarazu)
16:43:12FromDiscord<Buckwheat> I want you to do more with less, because less is more, and the genius appreciates simplicity
16:45:05FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=AqOSzhVY
16:46:07FromDiscord<mjsdev> Then I need to write a template every time the common logic changes
16:46:15FromDiscord<litlighilit> I often use things like this (using template) for Nim's `case` stmt↵(as it lacks `fallthrough`)
16:46:42FromDiscord<mjsdev> like, in this case I'm printing failure, in other cases I may need to do something else.
16:47:20FromDiscord<litlighilit> IMO better than using `if` after `except`↵(@mjsdev)
16:47:41FromDiscord<litlighilit> as it remains me of another lang
16:48:15FromDiscord<mjsdev> What's the issue with if after an except?
16:49:24FromDiscord<litlighilit> emm, just things about code style (and IMO a little about performace)
16:49:41FromDiscord<litlighilit> do as u like
16:51:32FromDiscord<litlighilit> btw, if for every exception there're globalRaiseHook and localRaiseHook↵(@mjsdev)
16:52:49FromDiscord<litlighilit> ref https://nim-lang.org/docs/system.html#globalRaiseHook↵----------↵So maybe the answer shall be yes (I used to take your requirement condition too serious)
16:52:54FromDiscord<mjsdev> I'm less concerned with performance than with more rapid development. I can always optimize later if that shows to be a bottle neck.
16:53:49FromDiscord<mjsdev> Yeah, that one is probably a bit much given it's global.
16:55:23FromDiscord<litlighilit> yes, and the `localRaiseHook` is also global, whose `local` just means thread-local
17:44:57FromDiscord<__nycto__> Looks like https://nimble.directory might be down -- does anyone know where to report a bug report for that?
18:20:47FromDiscord<wakanakisarazu> In reply to @Buckwheat "> "\>what would y'all": I got my prototype down to 18kb once, so I will try make a `-d:embedded` option which cuts out everything but basics
18:26:05FromDiscord<Buckwheat> it's not just about the file size, it's also about the internals that matters to me↵(@wakanakisarazu)
18:26:34FromDiscord<Buckwheat> I'd love to see more init systems for Linux systems that are far more strict towards their POSIX compliancy
18:27:21FromDiscord<Buckwheat> I really like the UNIX mentality of doing one thing and doing said one thing very well
18:35:29Amun-Racough systemd cough ;)
18:35:50FromDiscord<Buckwheat> bleh
18:37:42Amun-Rableh²
18:39:25FromDiscord<Buckwheat> if waka can actually make an init system that can rival something like sinit or runit, I might become insane enough to once more try building Gentoo with Plan 9 utils, clang, musl, and said init system
19:10:28FromDiscord<aethrvmn> I used sysvinit when I ran LFS and that was good also although I went pretty bare bone
19:10:29FromDiscord<aethrvmn> dinit is ok, even if cpp
19:10:30FromDiscord<Buckwheat> well, you know me better than like 99.99% of people in here so... you know what I want out of an init system let alone my whole OS hehe
19:13:00FromDiscord<aethrvmn> Yes but then you should write your own and it's just a .ini parser that calls stuff using sh like Ken intended
19:13:49FromDiscord<Buckwheat> don't tempt me...
20:27:44FromDiscord<wakanakisarazu> In reply to @Buckwheat "if waka can actually": Sure, I can do this
20:27:55FromDiscord<wakanakisarazu> Parsecfg will really come in clutch here
21:49:45FromDiscord<Robyn [She/Her]> https://hst.sh/lowevifida.properties LLMs to generate a parser combinator is very fun
21:50:05FromDiscord<Robyn [She/Her]> Was generated by Gemini 3's 'Thinking' mode, with minor tweaks by me
21:50:26FromDiscord<Robyn [She/Her]> (`experimental/results` is a Nimskull but just ignore that, shhhh)
22:45:16FromDiscord<Buckwheat> again, as long as it's simple and does even less while still providing a clean init interface, you win↵(@wakanakisarazu)
22:46:50FromDiscord<Buckwheat> you won't win me with "look, it can do this, this, that, and even make your toast!", you'll win me with "it's the fewest lines of code to simply run some things at startup with the most basic system for adding a new service faster than you can say 'Hot Pockets'."
22:47:19FromDiscord<Buckwheat> honestly I'm rooting for you
22:58:36FromDiscord<aethrvmn> sent a code paste, see https://play.nim-lang.org/#pasty=fQiXZrUX
22:59:01FromDiscord<aethrvmn> Labwc has this structure for it's own autostart
23:02:19FromDiscord<aethrvmn> it's all ogre
23:02:19FromDiscord<Buckwheat> it's stuck in labwc
23:02:20FromDiscord<Buckwheat> smuggy.png https://media.discordapp.net/attachments/371759389889003532/1452798441897070684/smuggy.png?ex=694b1f7c&is=6949cdfc&hm=9e99057265a6152b1ddd6cbe62c174ebe3ee7870afda21177dd3cb2c05f22b5f&
23:59:36FromDiscord<litlighilit> which has to be placed under `~/.config/labwc/autostart`