ChanServ changed the topic of #kisslinux to: Unnofficial KISS Linux community channel | https://kisscommunity.org | post logs or else | "Seek simplicity but distrust it" -- Alfred North Whitehead
<noocsharp> only a masochist would try to implement POSIX
<midfavila> i never said I wasn't a masochist
<phoebos> midfavila: getopt(3)
<midfavila> yeah, I know that that exists now
<phoebos> also, i'm [slowly] doing the same, albeit with different approaches to you
<midfavila> a userland? nice
<midfavila> i need to do some work on my implmentation of yes
<phoebos> lol
<midfavila> it could use a buffer instead of a loop to produce more output per syscall...
<phoebos> is yes in SUS
<phoebos> why do you need yes to be fast
<midfavila> it's in posix which is a subset of SUS
<midfavila> and yes is good as a benchmark
<phoebos> it's not in POSIX
<midfavila> or for generating lots and lots of garbage data quickly
<midfavila> uh
<midfavila> i'm 99% sure yes is posix
<midfavila> well shit, I guess it's not
<midfavila> fuck me I guess
<noocsharp> a good start to implementing posix would be to figure out what is posix
<bibliocar> um, cat /dev/rand
<phoebos> ^
<phoebos> how often do you use yes anyway
<midfavila> fairly often
<phoebos> what for
<midfavila> as in "multiple times a day"
<midfavila> i use it to forcefully initialize my laptop's cellular modem
<midfavila> through eldritch devfs magic
<phoebos> ok. why not something like cat /dev/rand
<midfavila> anyway, i've just been consulting s/ubase and the posix manpages
<midfavila> and /dev/random can be fine for producing binary data, but sometimes I don't want that
<midfavila> sometimes I specifically want to output a fuckton of a single string
<phoebos> while : ; echo y; done
<midfavila> significantly less efficient
<phoebos> like 500KiB/s, which is a little bit faster than my eyes can go
<phoebos> i still don't understand why you need something faster
* midfavila shrugs
<midfavila> you don't need to understand. it's just a personal preference.
<noocsharp> the lisp guy is concerned about the performance of yes now?
<bibliocar> yes was the first terminal command I learned. I had to turn off my computer because I didn't know ctrl-z
<midfavila> >implying lisp isn't a performant language
<midfavila> i'll literally fight you
<midfavila> meet me in the mcdonalds parking lot after class, nerd
<noocsharp> find me a lisp that can produce a faster yes than c, without writing your own compiler
<phoebos> lisp io haha
<phoebos> anyway, man 1p for posix
<phoebos> regcomp and regexec are really nice
<phoebos> made writing a basic grep(1) super easy
<midfavila> i'm willing to argue that because most if not all major operating systems today are written primarily in C and would therefore have a lower runtime overhead than programs written in other, non-native languages, that's not a fair comparison, noocsharp. even still, in terms of just speed, SBCL is likely competitive
<midfavila> yeah I know how to reference the posix manpages
<midfavila> there's also stalin scheme
<midfavila> but idk if that would even run on modern systems
<noocsharp> runtime overhead has nothing to do with what language the system is written in
<noocsharp> you could write a kernel in lisp, and c programs would still run faster, because c is easier to translate to machine code
<noocsharp> you can't construct functions on the fly in c
<noocsharp> you can in lisps, and this has runtime overhead
* midfavila shrugs fair enough then
<midfavila> anyway, even if lisp isn't going to beat C in some, or even many contexts regarding raw speed, it has other advantages that I consider valuable enough to negate the speed penalty in my limited experience, such as its simpler syntax and superior support for functional programming
<bibliocar> https://opencores.org/projects/igor what if lisp is the machine language?
<noocsharp> well if you wrote c for the underlying risc isa, it would probably be faster
<noocsharp> but that's an interesting project
<midfavila> there've been a few implementations of lisp in hardware over the years other than lispms
<bibliocar> sorry, I was making a joke. I don't know what functional programming is?
<midfavila> functional programming is, as I understand it, a programming paradigm in which the global state of variables doesn't change
<midfavila> once a value is bound to a variable it doesn't change
<midfavila> so things like while(x < 10){foo();x++} are impossible
<midfavila> instead you would need to write a recursive function that calls itself in order to iterate. that's a fairly simple example, but it illustrates the core concept, I think
<bibliocar> but rewriting things in memory is fairly trivial?
<midfavila> it's not about performance
<midfavila> it's about mechanical simplicity
<noocsharp> midfavila: i think you can do something like your while example in lisp
<midfavila> functional, recursive procedures are often slower than their iterative counterparts, but once you understand them, it can sometimes be much easier to work with
<midfavila> and yes, you can, very easily
<midfavila> because lisp isn't a functional language
<noocsharp> no i mean a literal translation
<midfavila> oh. well, i mean, considering there's a loop construct, yeah
<noocsharp> you can modify variable values
<midfavila> but I don't use it
<midfavila> admittedly I have much less experience in Lisp than C as of late, which I need to correct...
<phoebos> i started trying to do advent of code in scheme
<phoebos> it's been difficult
<phoebos> haven't had time over the last couple of weeks either
<midfavila> if you're not used to lisp then I imagine it would be
<midfavila> i should probably take a crack at AoC
<midfavila> feel like I'd get filtered pretty early though
<noocsharp> i'm trying to get my language to a point where i can do advent of code in it
<midfavila> that would be pretty cool
<phoebos> that is cool
<midfavila> do AoC in bc
<dilyn> do AoC in MtG trading cards
midfavila is now known as midfavila-away
phinxy32 has joined #kisslinux
phinxy is now known as Guest5498
phinxy32 has quit [Client Quit]
Guest5498 has quit [Ping timeout: 256 seconds]
bibliocar has quit [Remote host closed the connection]
Tom10 has joined #kisslinux
<Tom10> I am running into ruby compiling issue (I need it for webkitgtk): https://pastebin.com/2yr3Mshx is anyone else running into this issue?
<dilyn> that paste doesn't include the actual error
<dilyn> try updating to the latest version (3.0.3?)
<dilyn> i had an issue building ruby earlier today and bumping fixed it for me lol
<Tom10> Thank you! Bumping fixed it lol
midfavila-away is now known as midfavila
soliwilos has quit [Ping timeout: 276 seconds]
mobinmob has joined #kisslinux
prestonpan has joined #kisslinux
<prestonpan> hey
<Tom10> hi
<prestonpan> having some problems where after installation of kiss linux and I reboot, grub works fine until I try loading the kernel. It hangs on "loading linux 5.15.8 ..."
<prestonpan> and i'm using uefi and followed the installation guide on kisslinux.org
<Tom10> hello I had the same problem earlier in my case it were my gpu drivers, try setting nomodeset kernel boot parameters and see if it boots correctly. If it does then it's probably your gpu drivers
<prestonpan> that makes sense, i'll try chrooting back into the install rn
<prestonpan> only thing is my gpu does not have proprietary drivers, is it still possible to face the same problem as you when that is the case?
<Tom10> Yes, my gpu is rx 550 and I use amdgpu drivers which are open source
<Tom10> I had to include the firmware for my gpu directly into the kernel, the gentoo wiki explains how to https://wiki.gentoo.org/wiki/AMDGPU#Incorporating_firmware
<prestonpan> cool, i'll try setting some boot parameters then
<prestonpan> I could probably just do it temporarily first
<prestonpan> still hangs after I add `nomodeset` to boot parameters :(
<prestonpan> heavily unlucky
<prestonpan> that is to be expected I think because my friend also had the same problem and he said that it had something to do with grub
<prestonpan> he installed kiss 6 months ago so he couldn't help me
<Tom10> try compiling the kernel with a big configuration, make sure you enabled support for video drivers stuff, your filesystems and such
<testuser[m]> Hi
<midfavila> hey testuser[m]
<midfavila> i'd suggest stealing a configuration from something like puppy linux if you were going to try that approach
<prestonpan> i'll try recompiling my kernel
<prestonpan> i just used the default configuration initially
Tom10 has quit [Quit: Connection closed]
phinxy has joined #kisslinux
mahmutov has joined #kisslinux
Featyre has joined #kisslinux
Denshi has joined #kisslinux
mahmutov has quit [Ping timeout: 260 seconds]
Denshi has quit [Quit: Denshi]
<Featyre> I made a patch, however I could get the patch to work will build file
<Featyre> It just said file not found
<Featyre> Nvm I need to add it to sources
sereg has joined #kisslinux
<acheam> midfavila: want to hear something atrocious?
<Featyre> I did it, I finally got cryptsetup 2.4.2
<Featyre> Working under POSIX shell only using kiss without bash
<Featyre> Well I had to use illiliti's script and my patch to work but I will upload the repo to GitHub eventually
gtms has joined #kisslinux
mobinmob has quit [Quit: Connection closed for inactivity]
<acheam> nice
<noocsharp> what's atrocious acheam?
sereg has quit [Ping timeout: 240 seconds]
<noocsharp> i'll tell you what's atrocious
<noocsharp> the shear amount of built-in functions that zig has
<noocsharp> sheer*
ZombieChicken has joined #kisslinux
Featyre has quit [Read error: Connection reset by peer]
ZombieChicken has quit [Quit: WeeChat 3.3]
Featyre has joined #kisslinux
bibliocar has joined #kisslinux
<bibliocar> So, on the topic of a 2d api for graphics cards, it seems openvg is very nice, and was at one time part of gallium. Could probably shrink mesa down to a size that only supports gallium drives, openvg, and va-api(video acceleration)
bibliocar has quit [Client Quit]
<Featyre> I found out that tinyramfs-git from kiss-community has issues
<Featyre> I fixed it up
Featyre has quit [Read error: Connection reset by peer]
soliwilos has joined #kisslinux
Featyre has joined #kisslinux
Featyre has quit [Read error: Connection reset by peer]
Featyre has joined #kisslinux
sereg has joined #kisslinux
dnv has joined #kisslinux
<phoebos> Featyre: consider creating an issue or emailing the maintainer
<Featyre> I'm considering since I am planning to restart my KISS install
<Featyre> If I do, I'd be sure to upload my repo before formatting the partition
dnv has quit [Quit: dnv]
Featyre has quit [Read error: Connection reset by peer]
mahmutov has joined #kisslinux
randomuser8348 has joined #kisslinux
dnv has joined #kisslinux
soliwilos has quit [Remote host closed the connection]
an3223 has quit [Ping timeout: 276 seconds]
an3223 has joined #kisslinux
randomuser8348 has quit [Remote host closed the connection]
dilyn has quit [Quit: Connection closed]
sad_plan has joined #kisslinux
<sad_plan> o/
<midfavila> acheam sure i guess
<midfavila> try to keep it brainlet level
<midfavila> didn't sleep last night
<phinxy> GCC compiled firefox with software rast performed poorly with -O2, but -O3 made 720p play back, just.  Could not manage to get clang to compile firefox, weird. Tried 92.0 and 94.0, the error was: https://termbin.com/chxv
<phinxy> Trying to get the ancient GPU to function under firefox is a dead end, I think mozilla dropped opengl2.0 support in favor for 3.0.  swaywm recognizes the gpu though.  http://termbin.com/e9ax
sad_plan_ has joined #kisslinux
sad_plan has quit [Read error: Connection reset by peer]
bibliocar has joined #kisslinux
dilyn has joined #kisslinux
<dilyn> phinxy: export CFLAGS="$CFLAGS -I/usr/include/c++/v1" should fix it iirc
<phinxy> Would a alternative c++ standard library have to be installed for clang or does it use the same as GCC?
<dilyn> perhaps for building with clang to 'just work', i'm not sure
<dilyn> such an export doesn't have to be done on wyverkiss, which makes me think it's a "using clang with libstdc++" thing
<dilyn> which seems wrong, but I'm uncertain what the details are which would make it so:(
bibliocar has quit [Quit: GrumpyChat v. 1.0.0. Such client. WOW. Much quit. https://github.com/grumpy-irc/grumpy]
dnv has quit [Quit: dnv]
soliwilos has joined #kisslinux
ella-0_ has joined #kisslinux
ella-0 has quit [Ping timeout: 240 seconds]
dilyn has quit [Quit: Connection closed]
sereg has quit [Ping timeout: 256 seconds]
sad_plan_ has quit [Quit: nyaa~]
bibliocar has joined #kisslinux