[-] [email protected] 3 points 24 minutes ago

A reminder: Google added support for and then subsequently dropped JPEGXL support in Chrome. Fuck Google.

[-] [email protected] 3 points 14 hours ago

Type-safe lipstick :)

[-] [email protected] 4 points 17 hours ago

To offer a differing opinion, why is null helpful at all?

If you have data that may be empty, it's better to explicitly represent that possibility with an Optional<T> generic type. This makes the API more clear, and if implicit null isn't allowed by the language, prevents someone from passing null where a value is expected.

Or if it's uninitialized, the data can be stored as Partial<T>, where all the fields are Optional<U>. If the type system was nominal, it would ensure that the uninitialized or partially-initialized type can't be accidentally used where T is expected since Partial<T> != T. When the object is finally ready, have a function to convert it from Partial<T> into T.

[-] [email protected] 2 points 22 hours ago

With powered hubs and balanced tree topology, you can split a single root controller into 4^5^ endpoints. Your motherboard being able to support that many devices and the shared bandwidth might be a problem, but it's theoretically possible to survive off of a single USB port.

[-] [email protected] 14 points 23 hours ago

It seems pretty obvious to me at this point that the DNC would rather lose than have an actual progressive win.

It's not in their interests to let a progressive win. Just like their counterpart, the DNC takes a shit ton of ~~bribery~~ donations from ~~corporations~~ lobbyists. Bringing in a progressive who would reform the system or push back against pro-corporate policies is biting the hands that feed them.

[-] [email protected] 3 points 23 hours ago

I'm mad that Biden and the Democratic leadership seems to have put their own interests above the interest of the ~~party~~ people.

The interests of the party is the interests of the rich :)

[-] [email protected] 7 points 23 hours ago* (last edited 23 hours ago)

The system is set up in a way that the only viable options are between two evils, unfortunately. Under a FPTP system where the only good options are minority parties that won't win a single seat in their districts, you're left with the choice of voting for the lesser evil, or voting for your morals but increasing the risk of the greater evil winning.

It's a no-win situation.

[-] [email protected] 2 points 23 hours ago

The Democrat party is just as corrupt and bought out by corporations as the Republicans are, but at least they aren't trying to get the country to circle the drain as quickly.

[-] [email protected] 3 points 6 days ago

The problem is that they're trying to frame it as a better replacement for sudo when it's really not.

In some respects, it's safer by not using a setuid binary. In other respects, it massively increases the surface area by relying on the correctness of three separate daemons: systemd, dbus, and polkitd. If any one of those components are misconfigured, you risk an unauthorized user gaining root privileges.

With sudo, the main concern is the sudo process being exploited through memory safety bugs since it runs at root automatically.

Don't get me wrong, sudo has a lot of stupid decisions and problems. There's a ton of code in sudo for features that almost nobody uses, and there's bound to be bugs in there somewhere. It needs to be replaced with something simpler, but run0 is not that.

[-] [email protected] 8 points 1 week ago

If you're willing to admit that you're denigrating an operating system for having the same flaws as the one you prefer and are being a massive hypocrite in doing so, sure.

[-] [email protected] 1 points 1 week ago* (last edited 1 week ago)

You're thinking of operating systems that give unrestricted access to all parts of a computer that aren't memory or the camera. That would everything^1^, actually.

^1^ There's also Linux with properly-configured SELinux, but good luck with that on a distro that isn't focused on opsec.

view more: next ›

pivot_root

joined 11 months ago