💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2022-02-19.txt captured on 2024-06-16 at 13:37:29.
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
[2022-02-19T01:33:18Z] <illiliti> https://github.com/illiliti/kiss-libdemi [2022-02-19T01:37:31Z] <illiliti> libevdev and mtdev are included because upstream doesn't have them [2022-02-19T01:37:34Z] <illiliti> wlroots, libinput, sway are patched [2022-02-19T02:35:31Z] <testuser[m]> Hi [2022-02-19T11:10:55Z] <soliwilos> illiliti: Nice! Would any project using libinput and wlroots need to be patched as well? [2022-02-19T11:35:50Z] <illiliti> no, just rebuilt [2022-02-19T11:42:31Z] <illiliti> but if project directly depends on libudev, then yes [2022-02-19T11:42:43Z] <illiliti> see sway for example [2022-02-19T11:42:56Z] <illiliti> https://github.com/swaywm/sway/pull/6825 [2022-02-19T11:47:49Z] <illiliti> btw, wlroots patch also supports mcf's libinput [2022-02-19T11:48:44Z] <illiliti> BUT, his libinput is linux-only and doesn't have support for quirks [2022-02-19T11:49:37Z] <soliwilos> Great work. :) [2022-02-19T11:51:06Z] <soliwilos> I will give it a try. [2022-02-19T11:54:36Z] <illiliti> do it! [2022-02-19T14:56:43Z] <testuser[m]> It has been many years since I shipped a memory bug in C++. It is just not a real worry for me. [2022-02-19T17:19:47Z] <midfavila> afternoon everyone. [2022-02-19T17:21:14Z] <testuser[m]> Hi [2022-02-19T18:30:21Z] <ehawkvu> slinux [2022-02-19T18:32:23Z] <sad_plan> is not shuf part of posix? [2022-02-19T18:33:04Z] <midfavila> not afaik [2022-02-19T18:33:25Z] <midfavila> dd bs=2 count=1 if=/dev/random 2>> /dev/null | od - | sed -ne 's& *& &gp' | cut -d ' ' -f2 [2022-02-19T18:33:25Z] <midfavila> this gets you a random number in a portable fashion [2022-02-19T18:33:57Z] <midfavila> you can use that with ls and sed to grab random elements of a list [2022-02-19T18:34:09Z] <midfavila> kind of a hackjob but it does work - I use it in my media player script [2022-02-19T18:34:16Z] <sad_plan> thought as much. that was an immensly long command to replace shuf :') but I was initially using it to randomly select a file in a directory [2022-02-19T18:34:25Z] <midfavila> :P [2022-02-19T18:34:42Z] <midfavila> you can reference my fpm script if you want - I use it to do exactly that [2022-02-19T18:34:51Z] <midfavila> https://git.sdf.org/midfavila/POSIX_Scripts [2022-02-19T18:34:56Z] <midfavila> obligatory shilling [2022-02-19T18:34:57Z] <sad_plan> nice [2022-02-19T18:35:40Z] <midfavila> I really need to rewrite it to use my rand one-liner instead of the entire pipeline [2022-02-19T18:35:53Z] <testuser[m]> Vro use awk [2022-02-19T18:36:14Z] <midfavila> i don't know awk yet lmao [2022-02-19T18:36:19Z] <sad_plan> I was initially just making a script to randomly select a wallpaper, and then set the wallpaper, in a loop, so it changed wallpaper every 5 minutes or so [2022-02-19T18:36:19Z] <midfavila> awk would probably be marginally better [2022-02-19T18:36:24Z] <midfavila> you could also potentially use bc [2022-02-19T18:36:35Z] <sad_plan> Im not that familiar with awk, but I can look into it [2022-02-19T18:36:40Z] <sad_plan> thought bc was only for math? [2022-02-19T18:36:46Z] <sad_plan> atleast thats what Ive used it for [2022-02-19T18:36:55Z] <midfavila> my bc implementation comes with a library that implements rand(), among other things [2022-02-19T18:36:58Z] <midfavila> just not sure if it's posix [2022-02-19T18:36:59Z] <sad_plan> arithmatic math or w/e it was called [2022-02-19T18:37:08Z] <sad_plan> aah [2022-02-19T18:37:11Z] <sad_plan> I dunno [2022-02-19T18:37:14Z] <midfavila> bc can be used for most floating-point calculations [2022-02-19T18:37:23Z] <midfavila> but it has some really unfortunate limitations [2022-02-19T18:37:28Z] <midfavila> for example, you can't have non-integer exponents [2022-02-19T18:37:40Z] <sad_plan> nice. I was going to make a math script for some bs at work, and figured Id use bc [2022-02-19T18:38:35Z] <midfavila> unfortunately it doesn't look like bc's standard library includes random number generators [2022-02-19T18:38:41Z] <sad_plan> just curious, why are you writng full paths to everything? i mean, sed, wc etc [2022-02-19T18:38:49Z] <sad_plan> intead of just writing wc -l [2022-02-19T18:39:07Z] <midfavila> because I wrote fpm in about fifteen minutes at 3AM a while ago [2022-02-19T18:39:18Z] <midfavila> and I don't make very good decisions when I'm tired [2022-02-19T18:39:22Z] <midfavila> i'm sure I had a reason originally [2022-02-19T18:39:35Z] <sad_plan> lol ok :p [2022-02-19T18:39:48Z] <midfavila> a lot of my scripts in that repo haven't been touched in months [2022-02-19T18:40:01Z] <midfavila> i'll probably rewrite them in rc soon [2022-02-19T18:41:08Z] <midfavila> ...oh, you know what it was? i bet that was when I still bothered to use aliases in my shrc [2022-02-19T18:41:14Z] <sad_plan> I see. Im just about starting to accumalate some scripts of my own. I really enjoy writing them once I sortof got the hang of writing scripts in general :p [2022-02-19T18:41:17Z] <sad_plan> why rc? [2022-02-19T18:41:24Z] <sad_plan> aaah, perhaps [2022-02-19T18:41:35Z] <midfavila> because rc is the most efficient and useable job control language I've found to date [2022-02-19T18:41:39Z] <midfavila> usable? w/e [2022-02-19T18:42:15Z] <midfavila> but yeah, rc can run in under 100kb of memory when statically linked on my system [2022-02-19T18:42:16Z] <sad_plan> but are they affected by your aliases? I never though they were really. unless you specify them in the scripts themselves [2022-02-19T18:42:45Z] <sad_plan> thats nice though. hows the speed? I mean, compared to other fast shells like ash, or dash i.e. [2022-02-19T18:42:54Z] <sad_plan> any difference at all?:p [2022-02-19T18:42:58Z] <midfavila> sh usually requires a few hundred, if not a couple megs [2022-02-19T18:42:58Z] <midfavila> and honestly it's been a while - I vaguely recall having conflicts where aliases or oneliners or *something* was giving me trouble [2022-02-19T18:43:17Z] <midfavila> as for speed, idk, i'd say rc is reasonably quick. i haven't done anything particularly intensive in it yet since I'm still learning the language [2022-02-19T18:43:31Z] <sad_plan> I actually did a speedtest for several shells once, and I didnt really find much difference that I would notice on a day to day basis anyway. even with bash vs dash :p [2022-02-19T18:43:38Z] <midfavila> maybe I'll have it recursively evaluate some factorials as a benchmark or something, compare that to dash/bash/etc [2022-02-19T18:44:15Z] <midfavila> actually that'd be interesting to see considering rc doesn't have arithmetic evaluation [2022-02-19T18:44:28Z] <sad_plan> ah ok. ive been curious about rc for some time, but I dont think Im going to start mess with it just yet tbh :p [2022-02-19T18:44:45Z] <midfavila> fair enough [2022-02-19T18:45:08Z] <midfavila> there's a variant of it called es with support for metaprogramming and garbage collection if you want something a little more powerful to mess with [2022-02-19T18:45:37Z] <midfavila> it doesn't have TCO though, unfortunately [2022-02-19T18:46:15Z] <sad_plan> I dont think I need anything in particular. I run dash as my sh, but zsh interactive shell. I have been planing to do a throurough test of oksh/mksh or something, as both are abit more slim to say the least.. [2022-02-19T18:46:28Z] <midfavila> yeah zsh is elephantine [2022-02-19T18:46:32Z] <sad_plan> I dunno what TCO is ybh :p [2022-02-19T18:46:33Z] <midfavila> only bash is larger iirc [2022-02-19T18:46:38Z] <midfavila> oh, tail-call optimization [2022-02-19T18:46:45Z] <sad_plan> perhaps fish too. [2022-02-19T18:46:56Z] <midfavila> if you write a function in a language that calls itself as the last thing it does, then the language can rewrite that as a loop internally [2022-02-19T18:47:12Z] <midfavila> helps prevent stack exhaustion [2022-02-19T18:47:20Z] <midfavila> mandatory in scheme, common in lisp, and gcc also supports it [2022-02-19T18:47:23Z] <sad_plan> I just find some of the bells and whissles on zsh quite usefull, so ive just gotten used to to. Ive gotten a fairly ok workflow with it, so Im a bit reluctant to switch :p [2022-02-19T18:47:37Z] <sad_plan> I see [2022-02-19T18:47:47Z] <midfavila> i've heard that from a lot of people. never really got that about zsh tbqh [2022-02-19T18:48:07Z] <midfavila> i stand by my belief that tab-completion for commands is a meme [2022-02-19T18:48:27Z] <midfavila> i guess there's oh-my-zsh themes but like [2022-02-19T18:48:30Z] <midfavila> use tput and hooks [2022-02-19T18:49:20Z] <sad_plan> I mean, Ive got this cdr thing, where it stores your last 20 dirs you visited, so you can just type cdr 5, and itll just hop to the 5th dir you where. or you can skip using cd, and just type the directory instead of cd first. [2022-02-19T18:49:34Z] <midfavila> oh, that's trivial to do in rc [2022-02-19T18:49:39Z] <midfavila> you can just keep appending to a list [2022-02-19T18:49:40Z] <sad_plan> the tab-completetion is what most people seem to enjoy the most, myself included [2022-02-19T18:49:47Z] <sad_plan> perhaps it is [2022-02-19T18:50:07Z] <sad_plan> if thats the case, my arguments for using zsh compared to other shells, falls apart rather quickly [2022-02-19T18:50:11Z] <midfavila> (dir1), have cd be an alias that calls cd and prepends dir2, (dir2 dir1), then so on and so forth [2022-02-19T18:50:23Z] <midfavila> (dir3 dir2 dir1), (dir4 dir3 dir2 dir1), and so on [2022-02-19T18:50:35Z] <midfavila> you could even access the elements of the list directly [2022-02-19T18:50:40Z] <sad_plan> I also use vi mode alot, or a vim buffer really. spawns a vim buffer so you can edit the command, and save and hit enter to run it [2022-02-19T18:50:48Z] <midfavila> so cd $dirs(5) [2022-02-19T18:51:05Z] <sad_plan> hm, doesnt sound so complicated when you put it that way [2022-02-19T18:51:08Z] <midfavila> it's not [2022-02-19T18:51:12Z] <midfavila> rc is *extremely* simple [2022-02-19T18:51:17Z] <sad_plan> I like simple [2022-02-19T18:51:27Z] <sad_plan> hence me using KISS :p [2022-02-19T18:51:46Z] <midfavila> >uses zsh [2022-02-19T18:51:46Z] <midfavila> pretty sus ngl [2022-02-19T18:51:55Z] <sad_plan> lol [2022-02-19T18:52:26Z] <midfavila> but yeah rc is nice. it's very consistent [2022-02-19T18:52:27Z] <sad_plan> oh, and while on the topic of 'sus' appearantly that meme distro 'amongOS', appearantly added crypto miners into the distro :p [2022-02-19T18:52:33Z] <midfavila> good [2022-02-19T18:52:46Z] <testuser[m]> Bruh that was for their html site and it was a dummy [2022-02-19T18:53:27Z] <midfavila> oh, another thing that I really like about rc: you can conjugate lists, and if the size of the lists are unequal, it's distributive [2022-02-19T18:54:08Z] <sad_plan> was it? I thought it was the actuall distro. I sortof just read the headlines tbh [2022-02-19T18:54:11Z] <sad_plan> nice [2022-02-19T18:54:15Z] <sad_plan> gotta try rc some day [2022-02-19T18:54:31Z] <testuser[m]> Headlines are poz [2022-02-19T18:54:35Z] <testuser[m]> Always check contents [2022-02-19T18:55:28Z] <midfavila> just don't scrool newsfeeds [2022-02-19T18:58:56Z] <sad_plan> I kinda know that, I just scrolled passed it while doing something else tbh :p