Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
"why is all this functionality in pid 1, why not split it out and have it talk some sort of socket protocol like unix apps do"

*creates separate daemon, uses private unix socket connection to talk to pid 1*

"wtf is all this dbus junk"

seriously the dbus here is just a serialization protocol. it was standardized before msgpack and if there was a json parser in pid1 you would be complaining about that too

Adbot
ADBOT LOVES YOU

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
unless you think that the way that things should talk to pid1 would be, like, inotify and the filesystem in which case hoo boy if youve ever used that even once you know it basically never works lmao

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
ah yes, that famous example of perfect design and true un-warty-ness, unix

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
its even goofier than that.

after kdbus died out, kay sievers and harald hoyer went and did varlink, which replaces the custom serialization with json and removes almost all useful parts of dbus. then kay quit red hat and i think they now just make music gadgets full-time, so harald's the only one working on varlink now and it's kinda dead.

david herrman and tom gundersen did bus1 which broke a lot of dbus stuff but they plan on putting it back with dbus-broker kinda, i'm not sure the latest state of bus1

i think theres a third ipc project somewhere too, can't remember where it is.



basically all of this is an attempt at working around the insane lack of good ipc & messaging primitives in the kernel. kdbus was a really good attempt and would have worked if it wasnt for groups of uninformed completely misunderstanding the system and making large, repeated harassment campaigns

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

Notorious b.s.d. posted:

kdbus didn't make very much sense as a set of primitives, and it wasn't faster or notably better than userspace dbus

the goal was to eliminate a large number of race conditions, and it did that just fine. the goal wasn't purely speed, it was to build a comprehensive ipc system where you don't have the problem "pids can get reused so theres tons of TOCTOU bugs and security issues". not a slight against dbus, it's impossible to do in userspace correctly, and still is to the best of my knowledge

the interface it exported was very minimal and was basically a new set of ipc primitives based on device nodes. google said they could easily replace binder with it.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
oh, pidfds were accepted? hell yea, that's a nice way to beat the race then

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

eschaton posted:

dbus is just Mach messaging reimplemented poorly outside the kernel by people who don’t know their history

that's not what any of this lol

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
it also seems like part of it is that people are using unsupported system configurations because if you use all of the correct versions of the libraries together theres no problem, but distros just toss in whatever junk they found on the shelf and unsurprisingly it doesnt work

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
X11 has had a DPI property that it read from edid, but it was global to the server and didn't work with multi monitor. In practice the value got hardcoded to something like 96 in the mid-2000s. XRandR could also parse edid and export them as output properties but they were never used in any toolkits afaik.

None of this has any bearing on "hi-DPI" because nobody ever scaled their windows based on it. It wouldn't make sense to.

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
multiple people have tried to make "structured shells" a thing to various degrees of unsuccess. plain text sucks as an interface but we're gonna be grepping and cutting and awking until the day we die

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

ratbert90 posted:

rofl.

“We submitted a 620kb patch and the kernel maintainers were mean and said it wasn’t easy to review! KERNEL MAINTAINERS ARE MEAN!!!” :argh:

apparently kernel devs are so bad at their jobs they cant even review 10k loc for a robust filesystem implementation

no wonder all new development happens in weird band-aids and they keep making syscalls to fix the mistakes of the ones added just last year because code has to be submitted in baby portion sizes

Adbot
ADBOT LOVES YOU

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe

ratbert90 posted:

What if you don’t want Xorg, cups, or alsa at all because it’s embedded?

lol so you are somehow cursed and need to run the jvm on something without enough memory to run alsa

good luck. have you tried time travel back to the late 90s, when jazelle was a thing?

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply