💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2022-11-29.txt captured on 2024-05-12 at 16:01:23.

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

[2022-11-29T00:12:57Z] <trunc88> what the HECK
[2022-11-29T00:13:04Z] <trunc88> >compiling mpv
[2022-11-29T00:13:12Z] <trunc88> >-Dpulse=disabled
[2022-11-29T00:13:19Z] <trunc88> >ldd mpv
[2022-11-29T00:13:29Z] <trunc88> >libpulse.so.0 not found
[2022-11-29T01:13:51Z] <Torr> Ever compiled Mongodb?
[2022-11-29T01:14:21Z] <Torr> It's one damn slow process.
[2022-11-29T01:15:29Z] <trunc88> oh im sure thats way worse. mpv compiles quick, just trying to get it to work
[2022-11-29T01:15:50Z] <trunc88> i think its ffmpeg, need to compile that without pulse also
[2022-11-29T01:16:44Z] <trunc88> was trying to avoid compiling things like ffmpeg on this machine by using a binary distro, but here we are
[2022-11-29T01:18:10Z] <Torr> trunc88: Regarding Mpv, have u tried the Waf flag '    --disable-caca
[2022-11-29T01:19:07Z] <trunc88> first attempt failed right near the end so now trying on latest release rather than git master
[2022-11-29T01:19:59Z] <trunc88> i dont think i have caca
[2022-11-29T01:20:27Z] <Torr> Ops
[2022-11-29T01:20:36Z] <Torr> '--disable-pulse'
[2022-11-29T01:20:44Z] <trunc88> lol
[2022-11-29T01:21:01Z] <trunc88> i used meson with -Dpulse=disabled
[2022-11-29T01:21:43Z] <trunc88> i thought i might try waf but im almost positive its ffmpeg because i just tried running ffmpeg and it tells me libpulse wasnt found also
[2022-11-29T01:22:29Z] <Torr> I see
[2022-11-29T01:23:28Z] <Torr> Linux audio is such a mess. 
[2022-11-29T01:23:41Z] <Torr> Sndio brings it to shame.
[2022-11-29T01:24:07Z] <trunc88> yeah
[2022-11-29T01:24:59Z] <trunc88> ffmpeg is actually annoying to build on this because its a core 2 duo. glad i did decide to use a binary distro
[2022-11-29T01:26:17Z] <Torr> Be gentle on that machine.
[2022-11-29T01:26:51Z] <Torr> Which binary distro are u running?
[2022-11-29T01:27:31Z] <trunc88> Obarun, it seems pretty cool so far. just installed the other day
[2022-11-29T01:28:13Z] <trunc88> dont know of any better options
[2022-11-29T01:28:24Z] <Torr> It has its own init, right?
[2022-11-29T01:28:28Z] <Torr> 66 iirc
[2022-11-29T01:29:32Z] <trunc88> 66 is their set of scripts/programs they wrote to manage the s6 init system i think
[2022-11-29T01:29:59Z] <trunc88> looks like ffmpeg compile worked
[2022-11-29T01:30:23Z] <trunc88> and s6 is by the skarnet people
[2022-11-29T01:30:37Z] <Torr> Oh yeah
[2022-11-29T01:32:36Z] <trunc88> havent tried removing udev / dbus yet but i plan to
[2022-11-29T01:34:15Z] <trunc88> wow its still looking for libpulse
[2022-11-29T01:34:24Z] <trunc88> i hate everything
[2022-11-29T01:34:53Z] <Torr> Dbus is the most intrusive of all the crippy deps.
[2022-11-29T01:35:09Z] <Torr> Come on, don't despair lad.
[2022-11-29T01:35:27Z] <Torr> U can do it.
[2022-11-29T01:35:59Z] <trunc88> of course i can but i wanted this to be kinda easy not much fussing around recompiling everything type of deal
[2022-11-29T01:36:23Z] <trunc88> we're nearing the point that it would have been easier to just use kiss
[2022-11-29T01:36:54Z] <trunc88> i have no idea which ffmpeg deps i need to compile without pulse now
[2022-11-29T01:39:39Z] <Torr> Well, we're for a reason aren't we?...
[2022-11-29T01:41:18Z] <trunc88> yes, i was born with the sole purpose of removing satan from my own computer
[2022-11-29T01:42:08Z] * Torr sees Terry smirk on the background
[2022-11-29T01:42:31Z] <trunc88> RIP
[2022-11-29T01:45:43Z] <trunc88> i dont even understand how any of these ffmpeg deps would do it. shouldnt ffmpeg itself be the thing thats outputting to the sound device or whatever?
[2022-11-29T01:47:28Z] <Torr> No idea how Mpv communicates with the sound subsystem.
[2022-11-29T01:47:40Z] <trunc88> or am i really going to have to compile every decoder that ffmepg uses
[2022-11-29T01:48:11Z] <trunc88> redhat destroyed linux
[2022-11-29T01:48:16Z] <trunc88> im so mad
[2022-11-29T01:48:26Z] <trunc88> lol
[2022-11-29T01:50:02Z] <trunc88> i just wanted to watch ceephax acid crew music videos
[2022-11-29T01:52:22Z] <trunc88> i can go through my configure script and look at which libs i can compile w/o pulse but then idk what it got through autodetection
[2022-11-29T01:52:39Z] <trunc88> suppose i can use ldd for that 
[2022-11-29T01:53:18Z] <trunc88> could also disable all autodetection and manually enable what i want but thats super annoying with ffmpeg
[2022-11-29T01:55:37Z] <trunc88> how do i tell ffmpeg --disable-pulse and then its still like hhuhhh pulse not found
[2022-11-29T01:55:43Z] <trunc88> how is this real life
[2022-11-29T01:56:12Z] <trunc88> goes through the entire compile without caring
[2022-11-29T01:56:48Z] <trunc88> i should have been serious about learning to code
[2022-11-29T01:56:52Z] <trunc88> and saved the world
[2022-11-29T02:05:17Z] <Torr> Already staring at the abyss?
[2022-11-29T02:06:54Z] * trunc88 sigh
[2022-11-29T02:07:13Z] <trunc88> i might just install libpulse and call it a day
[2022-11-29T02:07:24Z] <trunc88> i really really dont want to though
[2022-11-29T02:08:11Z] <Torr> Ceephax Acid Crew has some fine music.
[2022-11-29T02:09:47Z] <trunc88> ye he's pretty great. released a new album last year, or 2020 maybe
[2022-11-29T02:15:27Z] <trunc88> i also just dont understand why it cant fall back to alsa, not like i didnt enable alsa
[2022-11-29T02:15:56Z] <trunc88> "cant find libpulse" fine, ignore it and use alsa
[2022-11-29T02:16:35Z] <trunc88> i dont think thats ffmpegs fault though i guess but idk
[2022-11-29T02:16:52Z] <Torr> It's not uncommon to have those options defined as 'ifdefs'.
[2022-11-29T02:17:26Z] <trunc88> for runtime or compile time? or both?
[2022-11-29T02:18:19Z] <Torr> Compile time.
[2022-11-29T02:19:18Z] <trunc88> well yeah im telling it not to look for pulse with --disable-pulse
[2022-11-29T02:20:06Z] <trunc88> but then at runtime it wont run without it
[2022-11-29T02:20:58Z] <trunc88> "we allow you to enable multiple sound systems but you need to have all of them installed in order for the program to start"
[2022-11-29T02:42:28Z] <trunc88> according to dude in #ffmpeg it should be fine with just --disable-libpulse
[2022-11-29T03:22:44Z] <trunc88> <redacted> trunc88: ffmpeg looks for libpulse for its own audio output stuff. if other libraries happen to link to libpulse that doesn't affect ffmpeg
[2022-11-29T03:22:56Z] <trunc88> <redacted> trunc88: looks like it's not checking for libpulse or compiling with libpulse
[2022-11-29T03:23:20Z] <trunc88> <redacted> so one of its dependencies must require it
[2022-11-29T03:24:15Z] <trunc88> anybody more knowledgeable than me able to tell me if this is a contradiction or not? kinda sounds like it to me
[2022-11-29T03:24:59Z] <Torr> Check the source, it's *the* way to learn that stuff.
[2022-11-29T03:25:15Z] <trunc88> <redacted> it is if any of the libraries that ffmpeg depends on links to it
[2022-11-29T03:25:30Z] <trunc88> oof defenite contradiction he uses the term "link" here again
[2022-11-29T03:26:05Z] <trunc88> tells me it doesnt matter, looks at my log, tells me it must be exactly what i said i thought it was
[2022-11-29T03:26:35Z] <trunc88> gotta love it
[2022-11-29T03:30:48Z] <trunc88> im not much of a programmer Torr, wish i had actually pursued that more earlier in my life
[2022-11-29T03:31:19Z] <trunc88> i did a little bit of java ina  high school class and some obj-c for a summer camp thing
[2022-11-29T03:33:18Z] <Torr> trunc88: U don't have to program, just to read the source.
[2022-11-29T03:35:21Z] <trunc88> i dont know the language though
[2022-11-29T03:44:41Z] <trunc88> wow i am big boy dumb
[2022-11-29T03:45:03Z] <trunc88> forgot to put /usr/local/lib into ld.so.conf
[2022-11-29T03:45:22Z] <trunc88> first guy didnt even think of that though
[2022-11-29T03:45:29Z] <trunc88> but neither did i
[2022-11-29T03:46:16Z] <Torr> Did it compile?
[2022-11-29T03:46:35Z] <trunc88> it was already compiling, but it runs now
[2022-11-29T03:47:40Z] <Torr> o/
[2022-11-29T03:48:03Z] <trunc88> ah yeah now i can watch some ceephax
[2022-11-29T03:50:45Z] <Torr> Leaving here, see ya
[2022-11-29T03:50:50Z] <trunc88> later
[2022-11-29T03:50:59Z] <trunc88> nice talking
[2022-11-29T03:51:03Z] <Torr> Later ^^
[2022-11-29T06:12:14Z] <Guest78> Hi
[2022-11-29T06:20:08Z] <Guest78> Does anyone use gkiss/wayland? Please share chromium/firefox binary
[2022-11-29T06:23:32Z] <testuser[m]> I'll send it in few hrs
[2022-11-29T06:24:05Z] <Guest78> Ok, thanks
[2022-11-29T06:42:35Z] <wael_> Hi
[2022-11-29T07:38:05Z] <wael[m]> illiliti: can you consider adding /etc/acpi/PWRF/00000080: poweroff to busybox acpid for easy no-configuration poweroff?
[2022-11-29T07:38:19Z] <virutalmachineus> I just installed a open source AI companion. What a time to be alive.
[2022-11-29T08:49:41Z] <testuser[m]> Guest78: 
[2022-11-29T08:50:40Z] <testuser[m]> https://file.io/ igL4W0PUNViP
[2022-11-29T08:50:48Z] <testuser[m]> or hxkfFryMdi3Q
[2022-11-29T09:08:44Z] <Guest37> testuser[m]: Thanks a lot!
[2022-11-29T10:23:31Z] <testuser[m]> Anyone here experienced with wireguard? Is there a way to enable wireguard just for a specific domain/ip?
[2022-11-29T10:23:48Z] <testuser[m]> ig AllowedIPs is relevant here but I'd rather not update the IP constantly
[2022-11-29T10:34:39Z] <aelspire> testuser: ip route tables should work if wg is visible as extra interface, but I haven't used wg
[2022-11-29T10:38:29Z] <testuser[m]> aelspire: yeah it makes wg0 interface
[2022-11-29T10:39:01Z] <testuser[m]> can you give an example for using iproute tables?
[2022-11-29T10:39:09Z] <aelspire> ok, one moment
[2022-11-29T10:40:11Z] <aelspire> basically you create table with some id and name, add desired ips to it and set wg0 iterface as default route for this table (maybe default will not work and You will need to manipulate it's metric)
[2022-11-29T10:40:23Z] <aelspire> but I'll find tutorial on net
[2022-11-29T10:41:37Z] <aelspire> http://linux-ip.net/html/routing-tables.html   -  this one is not very helpful I'm looking for better one
[2022-11-29T10:46:25Z] <aelspire> https://datahacker.blog/industry/technology-menu/networking/routes-and-rules/iproute-and-routing-tables
[2022-11-29T10:46:42Z] <aelspire> scroll down to creating tables for vpns
[2022-11-29T10:47:05Z] <aelspire> around line: "echo 1 vpn1 >> /etc/ip route2/rt_tables"
[2022-11-29T10:47:52Z] <aelspire> but I'm sure that I managed to achieve it without firewall
[2022-11-29T10:49:02Z] <aelspire> ok I found my notes: sudo ip rule add dport 49012 table test
[2022-11-29T10:49:30Z] <aelspire> this adds all traffic to destination port 49012 to table test
[2022-11-29T10:50:18Z] <aelspire>  /etc/iproute2/rt_tables here I added "200 test"
[2022-11-29T10:50:41Z] <aelspire> ip route add default dev wwp0s20u1u2i5 table test
[2022-11-29T10:51:40Z] <aelspire> this was using new this interface as default route for rules in table test
[2022-11-29T11:04:00Z] <aelspire> but I my case I just needed to use GSM modem to connect to internet and normal interface was used as intranet
[2022-11-29T11:04:52Z] <aelspire> if You want to use VPN and not to fallback to your normal interface if wg disconnect You will need to block it in firewall somehow
[2022-11-29T11:11:50Z] <Guest78> testuser[m]: Hmm, the file was deleted :(
[2022-11-29T11:12:24Z] <wael_> https://file.io/hxkfFryMdi3Q
[2022-11-29T11:13:14Z] <Guest78> "The transfer you requested has been deleted."
[2022-11-29T11:14:22Z] <wael_> oh
[2022-11-29T11:14:27Z] <wael_> ok then lets wait for the testuser
[2022-11-29T11:14:39Z] <testuser[m]> Guest78: it was delted cuz someone clicked the link
[2022-11-29T11:14:48Z] <testuser[m]> it only works once
[2022-11-29T11:14:50Z] <testuser[m]> wait
[2022-11-29T11:15:23Z] <testuser[m]> Guest78: create a dm with me
[2022-11-29T11:16:10Z] <Guest78> Hmm, I guess I downloaded it
[2022-11-29T11:16:31Z] <Guest78> testuser[m]: ok
[2022-11-29T11:19:44Z] <testuser[m]> Guest78: https://termbin.com/4nzo
[2022-11-29T11:21:26Z] <laksjdhd> Thanks again
[2022-11-29T11:21:36Z] <laksjdhd> (I couldn't register (I'm from a phone)
[2022-11-29T15:06:25Z] <Guest78> testuser[m]: A little silly question: do you mind if I use your binary in my repository?
[2022-11-29T15:08:17Z] <testuser[m]> which
[2022-11-29T15:08:21Z] <Guest78> firefox
[2022-11-29T15:09:22Z] <testuser[m]> which repository lol
[2022-11-29T15:09:31Z] <Guest78> ah
[2022-11-29T15:11:28Z] <Guest78> https://0x0.st/o0jH.txt
[2022-11-29T15:11:33Z] <Guest78> ;)
[2022-11-29T15:17:05Z] <wael[m]> nullcoder is a badass name why are you Guest78
[2022-11-29T15:17:32Z] <Guest78> I don't know :)
[2022-11-29T15:18:05Z] <nullcoder> Hi
[2022-11-29T15:18:10Z] <wael[m]> also make sure to use bin/ in your repository
[2022-11-29T15:19:10Z] <nullcoder> wael[m]: Yes, I know
[2022-11-29T15:27:11Z] <wael[m]> hell yea
[2022-11-29T15:27:14Z] <wael[m]> hello nullcoder
[2022-11-29T15:27:36Z] <nullcoder> Nice to meet you, wael
[2022-11-29T15:36:12Z] <phoebos> https://tmp.bvnf.space/b.c
[2022-11-29T15:36:17Z] <phoebos> find the bug
[2022-11-29T15:38:10Z] <phoebos> answer: struct textpair tp is on the heap for setup_sx, but is used for the callback in w[2], which gets used in MainLoop which is called from main
[2022-11-29T15:38:28Z] <phoebos> s/heap/stack/
[2022-11-29T15:38:41Z] <phoebos> so it's gone from the stack when it's needed
[2022-11-29T15:41:49Z] <phoebos> solution: static struct textpair tp
[2022-11-29T16:03:08Z] <trunc88> blargh, now i have to figure out my original trouble with ffmpeg
[2022-11-29T16:04:43Z] <testuser[m]> phoebos: how could anyone figure out that &tp is being stored by makebutton in global state without checking doc
[2022-11-29T16:15:15Z] <phoebos> obviously just find the relevant line in the library source
[2022-11-29T16:15:41Z] <sxirc> hi from my libsx IRC client
[2022-11-29T16:15:49Z] <midfavila>  post pics
[2022-11-29T16:16:06Z] <midfavila> you using an IRC library or just a couple routines you hacked together yourself?
[2022-11-29T16:16:50Z] <midfavila> https://github.com/sgerwk/pdftoroff
[2022-11-29T16:16:50Z] <midfavila> also, this is a really nice program
[2022-11-29T16:17:00Z] <phoebos> https://tmp.bvnf.space/Screenshot_20221129_161623.png
[2022-11-29T16:17:33Z] <midfavila> nice, dude
[2022-11-29T16:17:48Z] <phoebos> IRC library? no
[2022-11-29T16:18:09Z] * midfavila shrugs
[2022-11-29T16:20:12Z] <sxirc> need to figure out scrolling in a text widget
[2022-11-29T16:21:17Z] <midfavila> with a scrollbar or on content update?
[2022-11-29T16:21:31Z] <midfavila> or just with a scrollwheel proper?
[2022-11-29T16:21:45Z] <sxirc> :content update, ideally. currently writing to it causes it to jump up to the top
[2022-11-29T16:22:17Z] <midfavila> could always write a small routine to handle updating and jumping to bottom, then call that instead of just updating the contents of the text buffer directly... or something
[2022-11-29T16:22:17Z] <midfavila> idk
[2022-11-29T16:22:21Z] <midfavila> that's the naive approach
[2022-11-29T16:22:58Z] <sxirc> PRIVMSG #kisslinux :hmm
[2022-11-29T16:23:15Z] <midfavila> if i knew more about the athena widgets internally i'd have a better suggestion
[2022-11-29T16:23:43Z] <midfavila> i know there's an internal structure that textClass uses to keep track of its state... maybe you can just an element in that or whatever
[2022-11-29T16:23:49Z] * midfavila shrugs again
[2022-11-29T16:23:53Z] <sxirc> libsx also hides the routines which let you insert or delete text in arbitrary places. currently i'm having to read the whole contents, append the new line, and write it all back
[2022-11-29T16:24:02Z] <midfavila> rip
[2022-11-29T16:24:18Z] <midfavila> yeah the more i learn about sx the more i learn that i only really like it conceptually
[2022-11-29T16:24:35Z] <midfavila> if there was just a tad more freedom it'd be really nice
[2022-11-29T16:26:07Z] <sxirc> i've managed to use some Xt routines alongside libsx. I do like it, I'll see if I can use those xaw text routines still
[2022-11-29T16:26:22Z] <midfavila> go for it
[2022-11-29T16:28:24Z] <testuser[m]> <phoebos> "obviously just find the relevant..." <- bruh i mean just from the 10 lines u posted without knowing what the lib is
[2022-11-29T16:30:20Z] <phoebos> yeah sorry, I was pretty much talking to myself
[2022-11-29T16:30:26Z] <phoebos> https://git.bvnf.space/sxirc/
[2022-11-29T16:33:46Z] <midfavila> :DDDDDDDDDDDD
[2022-11-29T16:33:58Z] <midfavila> oh huh
[2022-11-29T16:34:07Z] <midfavila> a minimal IRC client doesn't take much does it?
[2022-11-29T16:34:59Z] <phoebos> tbf, this is really just a graphical fronted to nc
[2022-11-29T16:35:13Z] <phoebos> have to PRIVMSG #channel :msg and reply to PINGs
[2022-11-29T16:35:30Z] <midfavila> well, i figure that wouldn't be too hard to implement, honestly
[2022-11-29T16:35:43Z] <midfavila> if I knew more about... everything, I'd take a shot at implementing that stuff
[2022-11-29T16:35:52Z] <midfavila> having a prototype Athena client using sx would be neat
[2022-11-29T16:36:07Z] <midfavila> at least until I write my own and totally upstage you :^)
[2022-11-29T16:36:50Z] <phoebos> :v i know nothing but just hack together stuff for fun
[2022-11-29T16:37:12Z] <phoebos> but I know you need to understand *everything* before taking a shot
[2022-11-29T16:37:20Z] <midfavila> rip
[2022-11-29T16:37:58Z] <midfavila> idk i'm trying to get over that
[2022-11-29T16:38:48Z] <midfavila> aaa i can't decide if i wanna work on fetch or read the Xt manual
[2022-11-29T16:39:03Z] <midfavila> i should *probably* finish fetch
[2022-11-29T16:46:27Z] <phoebos> i've only skimmed and then used it for specific reference
[2022-11-29T17:05:45Z] <midfavila> nooooo you can't just refer to material 
[2022-11-29T17:05:50Z] <midfavila> you have to memorize it cover to cover!!!
[2022-11-29T17:06:00Z] <midfavila> otherwise you can't be a Real Programmer:tm:
[2022-11-29T17:11:29Z] <wael[m]> is pipefail a real thing in sh POSIX
[2022-11-29T17:13:18Z] <midfavila> "One justification for ignoring the contents of IFS upon entry to the script, beyond security considerations, is to assist possible future shell compilers"
[2022-11-29T17:13:18Z] <midfavila> where's my shell compiler, open group? where is it?
[2022-11-29T17:13:44Z] <testuser[m]> wael: no
[2022-11-29T17:14:29Z] <wael[m]> awh
[2022-11-29T17:16:20Z] <illiliti> pipefail will be posix soon
[2022-11-29T17:17:12Z] <midfavila> what is it?
[2022-11-29T17:19:54Z] <testuser[m]> illiliti: how many decades for it to be available everywhere 
[2022-11-29T17:20:47Z] <illiliti> test1 | test2
[2022-11-29T17:20:57Z] <illiliti> midfavila: with pipefail, test2 won't run if test1 failed
[2022-11-29T17:21:16Z] <midfavila> aah
[2022-11-29T17:22:37Z] <illiliti> testuser[m]: it is available already
[2022-11-29T17:24:24Z] <testuser[m]> fake
[2022-11-29T17:25:01Z] <illiliti> give me a shell name which does not support it
[2022-11-29T17:25:32Z] <aelspire> dash?
[2022-11-29T17:26:22Z] <illiliti> ok
[2022-11-29T17:26:37Z] <wael[m]> but is it byyy posixxxx
[2022-11-29T17:26:40Z] <wael[m]> cuz muh posix certificiations
[2022-11-29T17:26:59Z] <aelspire> ash is so much nicer than dash
[2022-11-29T17:27:46Z] <aelspire> but dash is fast, I like using dash as POSIX shell for scripts and fish as interactive shell
[2022-11-29T17:27:54Z] <testuser[m]> yash is so much nicer than ash
[2022-11-29T17:28:11Z] <testuser[m]> lol i like how 3 shells are just replacing 1 letter
[2022-11-29T17:28:18Z] <wael[m]> or adding
[2022-11-29T17:28:29Z] <testuser[m]> Replace with zwsp
[2022-11-29T17:31:13Z] <illiliti> i see there is a patch available in dash ml
[2022-11-29T17:31:22Z] <illiliti> https://www.spinics.net/lists/dash/msg02198.html
[2022-11-29T17:31:48Z] <midfavila> aelspire do you know of a standalone ash?
[2022-11-29T17:32:38Z] <aelspire> midfavila: I don't, probably
[2022-11-29T17:32:52Z] <midfavila> rip
[2022-11-29T17:32:54Z] <aelspire> currently I'm using busybox's ash on alpine and kiss
[2022-11-29T17:32:58Z] <aelspire> aah
[2022-11-29T17:33:01Z] <aelspire> that ash
[2022-11-29T17:33:09Z] <aelspire> precursor of dash?
[2022-11-29T17:33:14Z] <midfavila> yeah
[2022-11-29T17:33:27Z] <midfavila> afaik ash went from the BSDs and Minix to slackware, where it was picked up by debian
[2022-11-29T17:33:30Z] <aelspire> I haven't used it 
[2022-11-29T17:33:43Z] <aelspire> most cursed shell I had displeasure using is csh
[2022-11-29T17:33:49Z] <midfavila> fwiw i'm not talking about sash
[2022-11-29T17:34:00Z] <midfavila> which is, somewhat confusingly, not related to ash
[2022-11-29T17:34:09Z] <illiliti> busybox ash sucks
[2022-11-29T17:34:14Z] <midfavila> and yeah, csh is... unpleasant
[2022-11-29T17:34:24Z] <midfavila> ksh is much nicer
[2022-11-29T17:34:31Z] <aelspire> AFAIK current ash from busybox is fork of previous dash's version
[2022-11-29T17:34:38Z] <aelspire> but don't quote me on ti
[2022-11-29T17:34:43Z] <midfavila> feq
[2022-11-29T17:34:53Z] <testuser[m]> midfavila: u can just build busybox with ash enabled
[2022-11-29T17:36:22Z] <aelspire> currently I'm using ash/dash for speed I've lot of small scripts in my kakoune's config
[2022-11-29T17:36:38Z] <aelspire> and I can immediately tell when it's using bash…
[2022-11-29T17:37:24Z] <aelspire> dash is faster acording to some weird benchmark on net but I cannot tell difference
[2022-11-29T17:37:32Z] <aelspire> between ash and dash
[2022-11-29T17:40:17Z] <midfavila> testuser[m]: mmmmmmmmmeh
[2022-11-29T17:40:19Z] <midfavila> don't wanna
[2022-11-29T17:40:34Z] <midfavila> also i don't think i *can* build busybox right now, pff
[2022-11-29T17:41:12Z] <aelspire> Whats wrong with busybox?
[2022-11-29T17:41:48Z] <midfavila> i just personally don't like it. there's nothing wrong with it, strictly speaking
[2022-11-29T17:42:02Z] <aelspire> I've heard about toybox but i find busybox in sweet spot between completly sucklesss and comfortable for daily usage
[2022-11-29T17:42:15Z] <midfavila> i daily the suckless tools :p 
[2022-11-29T17:42:30Z] <illiliti> busybox is source of CVEs
[2022-11-29T17:42:38Z] <midfavila> they have their fair share of issues though, so i'm (very slowly) writing my own replacement
[2022-11-29T17:42:48Z] <aelspire> mhm, I didn't know
[2022-11-29T17:42:57Z] <illiliti> due to absolutely fucked codebase
[2022-11-29T17:43:06Z] <illiliti> look at their ash code
[2022-11-29T17:43:09Z] <midfavila> i haven't looked at their code myself
[2022-11-29T17:43:15Z] <illiliti> it's a mess
[2022-11-29T17:43:17Z] <midfavila> isn't surprising to hear it's gross
[2022-11-29T17:43:32Z] <midfavila> that's part of why i dislike suckless
[2022-11-29T17:43:36Z] <aelspire> I've tried to debug problem in gnu libc
[2022-11-29T17:43:36Z] <midfavila> their programs are hard to read
[2022-11-29T17:43:48Z] <aelspire> now no other code looks like mess for me…
[2022-11-29T17:43:51Z] <illiliti> busybox has nothing to do with suckless
[2022-11-29T17:43:58Z] <midfavila> yes, obviously
[2022-11-29T17:44:01Z] <midfavila> i'm drawing a comparison
[2022-11-29T17:44:33Z] <midfavila> my "fair share of issues" wrt: suckless tools was in part referring to their code style being hideously dense and hard to work with, at least imo
[2022-11-29T17:44:53Z] <midfavila> to hear that busybox is also hard to work with and "a mess" as you put it is a convenient hook to hang a comparison on
[2022-11-29T17:45:17Z] <aelspire> yeah, I usually prefer writing code in such way, so I'll know what it's doing after month…
[2022-11-29T17:46:51Z] <aelspire> but other programmers are found of ifdefs zigzags in code… 
[2022-11-29T17:47:01Z] <midfavila> ifdef users should be shot
[2022-11-29T17:47:03Z] <midfavila> change my mind
[2022-11-29T17:47:12Z] <illiliti> and typedefs
[2022-11-29T17:47:27Z] <midfavila> typedefs are fine in relation to structs and only structs 
[2022-11-29T17:47:39Z] <illiliti> needless obfuscation
[2022-11-29T17:47:48Z] <testuser[m]> typedef void******** ptr
[2022-11-29T17:48:00Z] <midfavila> a)
[2022-11-29T17:48:02Z] <midfavila> contrived example
[2022-11-29T17:48:05Z] <midfavila> b) 
[2022-11-29T17:48:08Z] <illiliti> function pointers are exception
[2022-11-29T17:48:14Z] <midfavila> you shouldn't have so many indirection levels in the first place
[2022-11-29T17:48:15Z] <midfavila> c)
[2022-11-29T17:48:19Z] <illiliti> otherwise typedef is harmful
[2022-11-29T17:48:25Z] <midfavila> it's a one-time thing
[2022-11-29T17:48:37Z] <testuser[m]> typedef is ok only for opaque structs 
[2022-11-29T17:48:38Z] <midfavila> you just say "hey what's that again?", grep for it, and it's done
[2022-11-29T17:48:40Z] <aelspire> and C++ should burn in hell
[2022-11-29T17:48:47Z] <midfavila> it's *significantly* less harmful than the CPP
[2022-11-29T17:48:57Z] <aelspire> I'm forced to use C++ and Qt in work
[2022-11-29T17:49:02Z] <midfavila> i'm sorry
[2022-11-29T17:49:16Z] <aelspire> and have seen my share of error messages longer than my code
[2022-11-29T17:49:34Z] <testuser[m]> Template moment
[2022-11-29T17:49:36Z] <aelspire> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138
[2022-11-29T17:49:43Z] <aelspire> look at this beauty
[2022-11-29T17:49:56Z] <midfavila> lmao
[2022-11-29T17:50:02Z] <midfavila> C++lets really be like this
[2022-11-29T17:50:19Z] <midfavila> hah, holy shit
[2022-11-29T17:51:46Z] <testuser[m]>  LOL
[2022-11-29T17:54:11Z] <aelspire> it's basically what is happening if everything is template
[2022-11-29T18:03:34Z] <aelspire> C++ took major role in convincing me that technology need to be scaled to human level again
[2022-11-29T19:02:38Z] <phoebos> midfavila: you may find my server_connect function useful for your fetch
[2022-11-29T19:02:48Z] <midfavila> probably!
[2022-11-29T19:03:03Z] <midfavila> i'll see if there's anything i can ~~steal~~ borrow for dial from it
[2022-11-29T19:03:33Z] <phoebos> hehe
[2022-11-29T19:04:19Z] <phoebos> i think i stole it pretty much verbatim from freeaddrinfo(3)
[2022-11-29T19:04:41Z] * midfavila nod-nods
[2022-11-29T19:05:02Z] <midfavila> i actually need to rewrite dial() to avoid a few unnecessary branches
[2022-11-29T19:05:13Z] <midfavila> as is i test for whether a TLS context is present too late
[2022-11-29T21:43:26Z] <wael_> whats an alternative to wc -L
[2022-11-29T21:52:37Z] <illiliti> longest=0; while read -r line; do longest=${#line}; done < file; echo $longest
[2022-11-29T21:53:08Z] <illiliti> oh wait
[2022-11-29T21:53:09Z] <phoebos> * if [ ${#line} -gt $longest ]; then ...
[2022-11-29T21:53:12Z] <phoebos> or awk
[2022-11-29T21:53:12Z] <illiliti> yes
[2022-11-29T21:53:22Z] <illiliti> posted wrong snippet
[2022-11-29T21:58:18Z] <illiliti> longest=0; while read -r line; do len=${#line}; longest=$((len > longest ? len : longest)); done < file; echo $longest
[2022-11-29T21:58:31Z] <illiliti> pure shell, no [
[2022-11-29T22:03:48Z] <phoebos> nice, i didn't know $(()) had the ternary operator
[2022-11-29T22:14:26Z] <illiliti> Dylan taught me
[2022-11-29T22:14:33Z] <illiliti> https://github.com/dylanaraps/pure-sh-bible#ternary-tests