HNHacker News
TopNewBestAskShowJobs

ben-schaaf

4,396 karma · joined November 11, 2015

submissionscomments
ben-schaaf··on Why Linux is not ready for the desktop, the final edition
> A statically compiled app that used Xorg won’t run on many Linux distributions at the moment.

Not a single major distribution doesn't ship Xwayland by default. The entire gaming community relies on X11 continuing to work, just like they rely on x86 libraries to stick around.

> A statically compiled app that used Jack for audio might have problems running on PipeWire.

A statically compiled app that uses Jack for audio might have problems running on Pulseaudio/ALSA/OSS. Jack's never a thing that's generally available, so claiming it's a backwards compatibility issue is nonsense. If your application requires Jack, then you need to ship it.

Note that you'll also have issues on Windows and Mac because Jack - unsurprisingly - is not installed by default on those platforms either.

> A statically compiled app from 2012 that used PolicyKit for authorization might not work today when asking for sudo. Everyone’s moved on to polkit.

If you used policykit correctly you should have either used the dbus protocol, or the command line utilities. These are the APIs for userspace and they haven't changed since 2012.

ben-schaaf··on How to lose a fortune with one bad click
Considering their profit is on the order of 100 billion, providing proper customer support does actually seem entirely realistic.
ben-schaaf··on Antimatter production, storage, control, annihilation applications in propulsion
Here's some further calculations for a 1G space ship: https://math.ucr.edu/home/baez/physics/Relativity/SR/Rocket/.... 3.6 years to Proxima Centauri if you want to stop.
ben-schaaf··on Common misconceptions about compilers
> For example, minijava-cpp is a MiniJava compiler written in C++ which has some pretty heavy code in it. It compiles in ~0.7s in my laptop, while linking all these separate files takes much longer.

I can't reproduce this result at all. Using compile.sh it takes my 7950x 0.9s to compile the whole project. A quick meson/ninja setup took 0.8s from a clean build directory, and just 0.043s to link using gnu-ld. Using faster linkers yields even better results: 0.025s for gold and 0.013s for mold. I'm curious how you got your results?

> SQLite, too, compiles everything into a single .c program.

It takes my computer 25 seconds to compile sqlite when making incremental changes. My work's similarly sized C++(!) repo links 3 executables in 0.07s using mold.

I'm having a really hard time seeing how unity builds could possibly be faster. Maybe with an exceedingly terrible linker or spinning rust?

ben-schaaf··on A common urban intersection in the Netherlands (2018)
When I rode an ebike in the Netherlands I still frequently got overtaken by people on omafietsen. It was the mopeds using the bike paths that were causing problems.
ben-schaaf··on A common urban intersection in the Netherlands (2018)
> Why not have an actual barrier or curb and places to get on/off?

There actually commonly is a barrier; a gentle curve between the foot path and bike path, with the bike path being lower. The bike path is also red asphalt making it visually distinct.

ben-schaaf··on A common urban intersection in the Netherlands (2018)
I always find this argument really funny because I wholeheartedly agree that taxes should be relative to the usage/damage of roads. But when you actually look at the numbers pretty much anywhere in the world it's always the cars and trucks being subsidised by the rest of the population.

YES, PLEASE let me pay for only bicycle infrastructure, I hate having to pay for your car.

ben-schaaf··on Australia's 3G Shutdown – Why your 4G/5G Phone is now Blocked
That's only partially true for recent iPhones. Even the latest ones don't have LTE band 71 support outside of certain countries. North American iPhone 11s don't have LTE band 28 support and so are getting banned.
ben-schaaf··on Australia's 3G Shutdown – Why your 4G/5G Phone is now Blocked
Tell that to the 8 million or so yearly tourists who now at minimum can't make emergency calls even on brand new top-of-the-line phones due to regional modem differences.
ben-schaaf··on Australia's 3G Shutdown – Why your 4G/5G Phone is now Blocked
Hardly just an Android issue. North American bought iPhones don't work - these can also end up as refurbished models sold locally. This doesn't just affect grey market imports but also tourists.
ben-schaaf··on Cargo Airships Are Happening
A partial list: https://en.wikipedia.org/wiki/List_of_airship_accidents.

The list of Zepplins is also enlightening: https://en.wikipedia.org/wiki/List_of_Zeppelins

ben-schaaf··on Cargo Airships Are Happening
Reading that article I see no proposed solutions to this sail problem. They mention wind as an issue for delivery times but not safety. There's also no acknowledgement that the "scaling law" that makes building huge airships lucrative also makes these problems worse.
ben-schaaf··on Germany's 49-euro ticket resulted in significant shift from road to rail
And these comparisons often exclude externalities like carbon emissions, pollution from tires and brakes, road accident costs, noise pollution and the cost of suburban sprawl.
ben-schaaf··on Offline UX Patterns
Not being logged in is not a retryable error.
ben-schaaf··on Sony, Ubisoft scandals lead to California ban on deceptive digital goods sales
> Mentally it's not too difficult to throw $60 at a digital "Buy" button, but it's much harder to throw those $60 at a "Get access" button.

This is especially true when a large number of games do have a buy button. "Get access" stands out as not being the same as buying when you've bought the rest of your game library.

ben-schaaf··on Rewriting Rust
Note that entr doesn't recursively watch for file changes. It has a list of files it watches for changes, but this list isn't amended when new files are added. Fundamentally that's a fairly small subset of proper recursive file watching. In terms of just watching files a better project to compare against is https://github.com/inotify-tools/inotify-tools.
ben-schaaf··on No more blurry fonts in Linux (2023)
Font rendering is absolute garbage on macOS since they removed subpixel-antialiasing. Everything is a blurry mess unless you have a high-dpi display (and even then it's pointlessly worse).
ben-schaaf··on Apple adds feature that tries to "autocorrect" file extensions, and fails
In my original comment I put "feature" in quotes. I do think a change was intended, it's just not working as it should.
ben-schaaf··on Swimmable Cities
It's literally the first thing in the list of foundational values.

> 1. The Right to Swim

> Safe, healthy and swimmable waterways should be accessible to all people.

ben-schaaf··on Comfy, the 2D rust game engine, is now archived
> Rust doesn't do quick and dirty, and will complain about code quality even when game devs don't even plan to keep the code.

The problem might just be an aversion to using quick and dirty solutions. Rust does a good job of making it feel wrong to write code that's not production ready, but there's nothing stopping you from using unsafe wherever you want.

ben-schaaf··on Intel: New Core Ultra Processors Deliver Breakthrough Performance
Performance per watt and battery life are only somewhat related. For laptops idle and sleep power usage are far more important. For example the AMD AI 300 chips have better performance per watt than Snapdragon X Elite but have worse battery life.
ben-schaaf··on Box64 and RISC-V in 2024: What It Takes to Run the Witcher 3 on RISC-V
ARM64 has approximately 1300 instructions.
ben-schaaf··on Linux Pipes Are Slow
HN generates ~20k page views over the course of a day with a peak of 2k/h: https://harrisonbroadbent.com/blog/hacker-news-traffic-spike.... At ~1MB per page load - not sure how accurate this is, I don't think it fully loaded - this static blogpost requires 0.55MB/s to meet demand. An original raspberry pi B (10mpbs ethernet) on the average french mobile internet connection (8mbps) provides double that.

I don't mean this as a slight to anyone, I just want to point out the HN "hug of death" can be trivially handled by a single cheap VPS without even breaking a sweat.

ben-schaaf··on Writing a Rust compiler in C
I'm curious as to why you need to bootstrap at all? Why not start with adding the OS/kernel as a target for cross-compilation and then cross-compile the compiler?
ben-schaaf··on Pragtical: Practical and pragmatic code editor
Immediate mode is the way a rendering API works. Most glyph rendering works by blitting from a buffer, regardless of how they design the API.
ben-schaaf··on Bun v1.1.22
Note Bun is a runtime environment using the JavaScriptCore engine from WebKit/Safari. Node uses V8 (chrome) which was a little faster in benchmarks last I checked. Where Bun claims performance is in all the system APIs like reading a file, running a http server, etc.
ben-schaaf··on A personal music streaming server that works
Beatport is the other place I buy from. Unfortunately if it's not on bandcamp or beatport the only remaining place is itunes.
ben-schaaf··on Zed on Linux Is Here
Note that Sublime Text always prompts for each unsaved file in cases where their content could be lost. We heavily prioritize issues with data loss. That being said I still wouldn't recommend keeping important stuff unsaved, really they should be fully backed up like everything else important.
ben-schaaf··on Framework Laptop 13 Deep Dive: A laptop webcam with smartphone technology
It's using S0 instead of S3 sleep, losing ~1% an hour.
ben-schaaf··on Framework Laptop 13 Deep Dive: A laptop webcam with smartphone technology
I'm just running ubuntu 24.04. After following their guide battery life is pretty great, GNOME has fractional scaling under both Wayland and X11, the fans do get loud under full load but not otherwise, it doesn't suspend like older laptops but it does always work, touchpad is great, haven't had wifi issues and the sound isn't too bad.

I've seen numerous people complaining about battery life, fractional scaling or sound that just didn't follow the guides. For instance there's a bios setting for linux audio compatibility.

Note this is a fw16 without the GPU.

← PreviousPage 9 of 34Next →