HNHacker News
TopNewBestAskShowJobs

kirbyfan64sos

412 karma · joined March 9, 2015

submissionscomments
kirbyfan64sos··on Porting my JavaScript game engine to C for no reason
Had to log in to my rarely-used HN account to mention that I had played Biolab Disaster over and over again years back but lost track of it and forgot the name. Kinda wild to find it again by sheer luck!
kirbyfan64sos··on Figma’s Journey to TypeScript
Do note that Zod is a bit of an outlier in how slow it can make type checking, e.g. https://dev.to/nicklucas/typescript-runtime-validators-and-d... one of the tests hits nearly 300ms, but no other library even touches 100ms.
kirbyfan64sos··on Google assigns a CVE for libwebp and gives it a 10.0 score
Remember when the primary purpose of flatpak's shared runtimes was so that libraries like libwebp are not actually bundled per-application? libwebp in the runtimes has been patched with a fix for over a week.
kirbyfan64sos··on Flatpak is not the future (2021)
These docs are a bit sparse and more for debugging some very specific things. If all you want is a stack trace:

- You can use `flatpak install --include-sdk --include-debug THE-APP` to install the SDK and debug info for an app - Then `flatpak-coredumpctl -m MATCH THE-APP` will use coredumpctl to open the matching coredump inside the corresponding SDK's gdb

kirbyfan64sos··on Cloudflare Registrar now supports .dev domains
Worth noting that Porkbun still uses CF for the actual DNS nowadays: https://lowendspirit.com/discussion/4602/porkbun-ns-moving-t...
kirbyfan64sos··on Firefox has surpassed Chrome on Speedometer
Chrome tends to be built with a rather slow and stringent set of optimization extras like PGO that people tend to leave off in Chromium builds.
kirbyfan64sos··on Lima: A nice way to run Linux VMs on Mac
I want to point out that Lima also works on Linux, and it's super useful there for development scenarios where a container just doesn't cut it.
kirbyfan64sos··on OpenGL 3.1 on Asahi Linux
This gets mentioned basically every time. The gist is that:

- OpenGL is a much easier target to support, in terms of having a functional desktop. Remember, hardware-accelerated apps have been runnable on Asahi for months now, while Vulkan support is still a while away. - Most of the work being done is common to OpenGL and Vulkan, so it's not exactly a ton of wasted effort.

kirbyfan64sos··on Plane: Open-Source Alternative to Jira
Check out Taiga: https://www.taiga.io/

By the creators of Penpot, free plan is basically only missing premium support. Not sure about the login though...there seem to be some plugins for it, not sure how that works with the hosted version?

kirbyfan64sos··on Mozilla stops Firefox fullscreen VPN ads after user outrage
Yes, because Brave is the model of ethics! Oh, wait a sec...
kirbyfan64sos··on America will soon see a wave of bank mergers?
This falls apart a bit when you consider that several larger banks did try to prop up First Republic for a bit, specifically because:

> the FDIC is funded by banks and receives no appropriations from Congress

So banks going down can certainly cause other banks money, too.

That being said, the "significant discount" is usually because, when you acquire the assets, you also acquire the bank's liabilities, and AIUI roughly speaking you're paying the difference between what you gain and what you lose in the process. More specifically, the FDIC helped fund JP Morgan's acquisition of First Republic because, if JP Morgan simply acquired the assets & liabilities directly, they would not be enough liquidity for it to be safe.

I.e. acquiring a smaller bank has some advantages but also some downsides, and it also destroys trust in the system which hurts the big banks too...so it's not really something that's exclusively beneficial and definitely not worth trying to trigger intentionally.

kirbyfan64sos··on Pedagogical Downsides of Haskell
I feel like the hard part is that, if you dive in early on with imperative-style code, it's really easy to try and do everything else the imperative "style" too...until you can't, or you run into some weird behavior stemming from how IO works, at which point you just end up super confused.

Starting without IO makes sure that you actually start to "get" how the language functions, so that once you jump into IO, the weird parts and how to mix it in with the logic written elsewhere makes a lot more sense.

kirbyfan64sos··on Acropalypse: Windows Save File API is defective by design
Indeed, and the document portal seems to have built-in support for atomic writes by first writing to a temporary file and then renaming it (https://github.com/flatpak/xdg-desktop-portal/blob/main/docu...), so it should be possible to avoid this scenario altogether.
kirbyfan64sos··on Previous: A NeXT Computer Emulator
Worth noting that, from what I gathered, a lot of dislike towards Ventura's new UI is often less the style and more just various inconsistencies / strange behavior in their execution of it.
kirbyfan64sos··on Linux desktop leaders unite behind Flathub app store. Here's why
There should certainly be more tooling around finding these things out, but one thing worth noting is that you can `flatpak uninstall --unused` to remove old, unused runtimes (the runtime environments for apps).
kirbyfan64sos··on Linux desktop leaders unite behind Flathub app store. Here's why
I actively use both Nix and Flatpak, and my perspective is that they're tuned for different purposes:

- Flatpak doesn't require apps to be rebuilt when the runtime changes, whereas Nix would require a rebuild. This is, of course, an intentional selling point for Nix: you don't have to worry about keeping track of ABIs and the like. This is, however, less fun when you have to update a large amount of applications for little reason. - When using flakes, it's easy to end up with a lot of extra disk usage because of a proliferation of different nixpkgs versions. Flatpak's runtimes help avoid this, since apps target a runtime version and can run under any individual commit for that version. - Flatpak has a massive amount of internal infra for sandboxing that would take a moderate effort to reproduce elsewhere. - This also means that running Flatpaks always involves new user namespaces; this can't just use environment variables like Nix does. - Flatpak's entire setup is more tuned towards GUI applications, with support for stuff like swapping out the graphics drivers. (nixOS can ofc do this, but you need nixGL otherwise.) - Flatpak has support for downloading non-redistributable files at install time and placing them in the same location as the application's main files. - Flatpak's summaries that it downloads from the server are much smaller than nixpkgs checkouts. - Flatpak dedups individual files across apps.

Really, it's just that Flatpak prefers keeping the build process and usage simpler to focus the energy on sandboxing, leading to design decisions like the more straightforward runtime/app split (easier for a user to understand / manage) and all of the built-in extras for graphical applications. Nix has a significantly more complex UX but is infinitely more flexible and also far better suited for development environments.

If your thought is "most of this isn't structural", that wouldn't be incorrect: there is no reason that:

- building flatpaks couldn't use a more nix-like model - nix couldn't add sandboxing and summary support on top

Heck, you could probably build a Flatpak from a Nix derivation, if you figured out how to separate the "runtime" and "app" parts. But at the end of the day, every tool has some limited degree of development bandwidth, and as-is, Flatpak and Nix just optimized that bandwidth for different targets.

kirbyfan64sos··on The Determinate Nix Installer
Does the multi-user mode work on SELinux-enabled systems and, if not, is it possible to install in single-user mode? The default installer's multi-user mode doesn't work with SELinux enforcing (https://github.com/NixOS/nix/issues/2374), and I didn't see a flag for enabling single-user mode when I used `install --help`. (There are some projects to make SELinux support work like https://github.com/dnkmmr69420/nix-with-selinux, but it's not clear to me if that would even work with this installer in particular.)
kirbyfan64sos··on Podman 4.4
Podman has a Docker-compatible service API, so you can use it via docker-compose.
kirbyfan64sos··on U.S. accuses Google of abusing monopoly in ad technology
Afaik it's more of a general push by the new heads of the FTC & DoJ's antitrust division.
kirbyfan64sos··on Ask HN: Self-hosting in 2023: Nextcloud on Linode, or...?
Gonna give another rec to DigitalOcean, we use it for work as well and haven't had any major issues.
kirbyfan64sos··on GitHub Sponsors will stop supporting PayPal
Orwell was literally a self-described proponent of democratic socialism.
kirbyfan64sos··on X Window System Basics (2014)
> X runs on so many more platforms than Wayland [...] Python3 is strictly an improvement on every platform, I don't think they're analogous because there really is no good reason to keep Python2 around

X runs on more platforms than Wayland because...it was ported to them. Just like things use Python 3 because they were ported to it.

This is also understating the reach of X I think: it's widely used in the embedded world, is seeing increasing support in BSDs, and has even been used on macOS (https://github.com/owl-compositor/owl). People have even used it to embed an entire compositor inside a GTK app (https://github.com/alexlarsson/wakefield).

That isn't to say that libwayland has a lot of Linux-isms in it, but afaik they're not really structural as much as there is lack of interest to generalize things more. Heck, the protocol-oriented architecture would even make it easier for anything Linux-esque to be removed in favor of alternative protocols.

kirbyfan64sos··on Systemd-coredump: CVE-2022-4415: local information leak
systemd-coredump is honestly incredibly useful. Any time an application randomly crashes in the background, you can easily pop it in a debugger to look through the backtrace without having to re-run it. Very handy for when the crashes are not easily reproducible, or you didn't expect something to fail and are not sure how to make it fail again.
kirbyfan64sos··on Server stats say movetodon.org reached a new record of 49k users yesterday
It's because most of the servers are not nearly on the level of setup that a normal large-scale social network would probably need...which in turn is also because a lot of them have been run by hobbyists and the like, which in turn is also because no one ever needed to scale it this high before.
kirbyfan64sos··on Vocaloid 6
Given how many problems V5 incurred, I wonder how V6 compares, but also how its reception is going to be...
kirbyfan64sos··on Sudo: Heap-based overflow with small passwords
Rust came out in 2015, a year after the first release of Flatpak (back when it was still called xdg-app) in 2014. The ecosystem was also much smaller; some very necessary things for working nicely on Linux that exist now like zbus (the prominent async-compatible D-Bus library) wouldn't be a thing for several more years.

RH does have an interest in Rust, used in projects such as Stratis. It's just that the Linux dev ecosystem has been very C-reliant for a long time, and a massive amount of binding and other ecosystem work is still happening to make this possible.

*EDIT:* and the reason I mention Rust specifically is that, in these types of lower-level projects, a lot of things can start to get hairy very quickly in higher level languages. Things like some namespace APIs very much wanting to be run on a single thread, or trying to maintain performance when you're intercepting and examining every D-Bus message, or even just when you want your functionality to be in a reusable core library.

kirbyfan64sos··on ZincSearch – lightweight alternative to Elasticsearch written in Go
I'm immediately interested in that this seems to be aiming at being API compatible, which means it could in theory be used as an ES replacement for self-hosting services that hard-depend on ES?
kirbyfan64sos··on An X11 apologist tries Wayland
I've used it successfully several years ago, it was a bit rough around the edges but already worked well; I'd imagine that's only improved since.
kirbyfan64sos··on Why Fix Kubernetes and Systemd?
I'm interested to hear if there are any plans for sending file descriptors over local gRPC, which afaik isn't really possible right now but is something D-Bus does easily.
kirbyfan64sos··on Using WebTransport
HTTP/2 Server Push is largely just a "bonus" on HTTP/2, and removing it isn't exactly going to break a ton of things. Any chance you're thinking of server-side events, which are still supported?
Page 1 of 3Next →