HNHacker News
TopNewBestAskShowJobs

ben-schaaf

4,396 karma · joined November 11, 2015

submissionscomments
ben-schaaf··on The Tabs vs. Spaces war is over, and spaces have emerged victorious
To quote the linux kernel style guide:

> Tabs are 8 characters, and thus indentations are also 8 characters.

Yes, tabs are used for alignment as well.

To quote the OpenBSD style guide:

> Indentation is an 8 character tab.

The GTK source code uses tabs when the number of spaces for indentation >=8. This goes against their coding-style document, but if you don't have tabs set to 8 you'll find the indentation broken.

git is the same: although it prescribes tabs if you don't set the width to 8 you'll find broken alignment everywhere.

ben-schaaf··on Developing our position on AI
That's what an E-Bike is. If the motor is doing all of the work it's called a motor cycle.
ben-schaaf··on AMD CEO sees chips from TSMC's US plant costing 5%-20% more
By all accounts I can find Itanium performance was good, perhaps even great when writing assembly. It seems to reinforce the point that ISA doesn't really matter.

But let's be clear: Of course ISA matters. It's just as trivial to make a bad ISA as it is a bad syntax. But does the ISA of modern superscalar processors matter? Probably a bit, but certainly not a whole lot.

ben-schaaf··on Electric cars produce less brake dust pollution than combustion-engine cars
They also use the electric motor(s) for braking, but instead of going into a battery it goes into a bank of resistors.
ben-schaaf··on The borrowchecker is what I like the least about Rust
Indeed, this is strictly worse than rust. The object is alive but in an invalid state, so using it is a bug but not one the compiler catches. In the worse case the move is only destructive for larger objects (like SSO), so your tests can pass and you've still got a bug.
ben-schaaf··on Evaluating the Effectiveness of Memory Safety Sanitizers
Sanitizers aren't just for C/C++. Rust, go, D all have at least asan support.
ben-schaaf··on Serving a half billion requests per day with Rust and CGI
That really has nothing to do with the choice to use CGI. You can just as well use rust with Axum or Actix and get a fully threaded web server without having to fork for every request.
ben-schaaf··on Game publishers respond to Stop Killing Games claim it curtails developer choice
It's called bg3_dx11.exe. BG3 doesn't have dedicated servers, one player hosts and the others connect to them. It (obviously) works on LAN, no internet connection required.
ben-schaaf··on Why is the Rust compiler so slow?
> II’d argue that a single unity blob with one compiler invocation isn’t a fair comparison and that when you made a token effort to configure the unity build you saw a 2x speed up.

Most certainly an unfair comparison; I did not know that "unity build" also referred to a hybrid setup. I've only seen people advocate for a single translation unit approach, and that's always just plain slow.

Personally I'll almost always prefer faster incremental compilation; thankfully my work's clean builds only take 30 seconds.

> I’d also love to see what raddbg would be like if we split it into even 4 compilation units

Should be a minimum of 32x faster just building in parallel with our hardware ;)

Unfortunately raddbg suffers from unity-build-syndrome: It has headers but they're missing definitions, and .c files are missing includes.

ben-schaaf··on Why is the Rust compiler so slow?
> If you want to see the difference download unreal engine and compile the editor with and without unity builds enabled.

UE doesn't use a full unity build, it groups some files together into small "modules". I can see how this approach may have some benefits; you're trading off a faster clean build for a slower incremental build.

I tested compiling UnrealFrontend, and a default setup with the hybrid unity build took 148s. I noticed it was only using half my cores due to memory constraints. I disabled unity and upped the parallelism and got 182s, so 22% slower while still using less memory. A similarly configured unity build was 108s, so best case is ~2x.

On the other hand only changing the file TraceTools/SFilterPreset.cpp resulted in 10s compilation time under a unity build, and only 2s without unit.

I can see how this approach has its benefits (and drawbacks). But to be clear this isn't what projects like raddbg and sqlite3 are doing. They're doing a single translation unit for the entire project. No parallelism, no incremental builds, just a single compiler invocation. This is usually what I've seen people mean by a unity build.

> My experience has been the polar opposite of yours - similar size rust projects are an order of magnitude slower than C++ ones. Could you share an example of a project to compare with?

I just did a release build of egui in 35s, about the same as raddbg's release build. This includes compiling dependencies like wgpu, serde and about 290 other dependencies which add up to well over a million lines of code.

Note I do have mold configured as my linker, which speeds things up significantly.

ben-schaaf··on Why is the Rust compiler so slow?
Every claim I've seen about unity builds being fast just never rings true to me. I just downloaded the rad debugger and ran the build script on a 7950x (about as fast as you can get). A debug build took 5s, a release build 34s with either gcc or clang.

Maybe it's a MSVC thing - it does seem to have some multi-threading stuff. In any case raddbg non-clean builds take longer than any of my rust projects.

ben-schaaf··on Framework Laptop 12 press reviews are live and Framework Laptop 13 in-stock
I haven't had any issues with Wifi. A family member replaced theirs with an Intel chip to fix an issue; turns out reception was just bad and not the wifi chip.

That brings me to my second point: if the wifi chip's what's holding you back there's nothing stopping you from replacing it.

ben-schaaf··on Fairphone 6 is switching to a new design that's even more sustainable
My original plan was to jump to a Linux phone (PinePhone Pro), but that hasn't really worked out software wise. FuriLab's FLX1 seems to hold some promise regarding Linux, but they're having trouble shipping. HMD has some offerings with the right features, but software support is lacking. So my current plan is to stick with my FP3 until it becomes unusable.

I love FairPhone's vision, and I think they do a pretty good job executing it. There's certainly room for improvement, but I've been really happy with my purchase. I also think removing the headphone jack was a direct betrayal of their ideals.

ben-schaaf··on Fairphone 6 is switching to a new design that's even more sustainable
Nope, not once. It's been dropped plenty of times and had both the screen and battery replaced.
ben-schaaf··on Fairphone 6 is switching to a new design that's even more sustainable
I guess if you're not familiar with fairphones products my comment's pretty meaningless, sorry. The parent comment implied that manufacturers stopped having all the listed features after 2016, but fairphone was still doing all that up until 2021. That's why I bought their phone. Then they removed the headphone jack in the 4, and now they're removing tool-less battery/sim replacement. That's why I won't be buying another one; I'll be keeping my FP3 until modern web bloat makes it entirely unusable (which I can only do because fairphone keeps their update promises).
ben-schaaf··on Fairphone 6 is switching to a new design that's even more sustainable
FairPhone used to be a manufacturer still doing the right things. My FP3 has all of that, including an official guide for unlocking the bootloader. At least they've kept their promises regarding updates, because I won't be buying their newer phones.
ben-schaaf··on I will do anything to end homelessness except build more homes (2018)
You don't need an incentive, you can just build it. Not everything that's good needs to make money.
ben-schaaf··on Framework Laptop 12 review
It's definitely been different on desktop for me. My computer's been ship of thesiussed twice over, but even when I changed the case,PSU,MB,CPU,cooler that one time the GPU and storage stayed. I've changed CPU 4 times and GPU 5 times over the past >15 years.
ben-schaaf··on Bzip2 crate switches from C to 100% Rust
Of course no one uses systems, tools and files created before 2025!
ben-schaaf··on Seven replies to the viral Apple reasoning paper and why they fall short
Writing things down and reading them back is quite literally the only thing LLMs do.
ben-schaaf··on Rendering Crispy Text on the GPU
GPUs don't have infinite vertex/pixel drawing capabilities. Rendering text directly is simply more expensive. Yes, you can do it, but you'll be giving up a portion of your frame budget and increasing power usage for no real benefit.
ben-schaaf··on Human coders are still better than LLMs
Again, there were people just as sure about crypto as you are now about AI. They dismissed criticism because they thought the technology was impressive and revolutionary. That it was science fiction come true and only going to continue to improve. It's the exact same hype-driven rhetoric.

If you want to convince skeptics talk about examples, vibe code a successful business, show off your success with using AI. Telling people it's the future and if you disagree you have your head in the sand, is wholly unconvincing.

ben-schaaf··on Human coders are still better than LLMs
Frankly I disagree that LLMs value is immediate. What I do see is a whole lot of damage it's causing, just like the hype cycles before it. It's fine for us to disagree on this, but to say I'm burying my head in the sand not wanting to accept "the future" is exactly the same hype-driven bullshit the crypto crowd was pushing.
ben-schaaf··on Human coders are still better than LLMs
Friendly reminder that people like you were saying the exact same thing about metaverse, VR, web3, crypto, etc.
ben-schaaf··on Sublime Text Build 4200 and Future Plugin Changes
Python 3.8 has been available since the release of ST4 and will be getting replaced by 3.13 as stated in the blogpost.
ben-schaaf··on Watching AI drive Microsoft employees insane
IANAL. It's my understanding that this hasn't been determined yet. It could be under public domain, under the rights of everyone whose creations were used to train the AI or anywhere in-between.

We do know that LLMs will happily reproduce something from their training set and that is a clear copyright violation. So it can't be that everything they produce is public domain.

ben-schaaf··on The Windows Subsystem for Linux is now open source
Do you believe the 600+ people with the same problem here: https://github.com/microsoft/WSL/issues/4197
ben-schaaf··on Bike-mounted sensor could boost the mapping of safe cycling routes
Unless there's enough distance to the bike lane every parked car in a row of parked cars is a potential hazard. It's even got it's own name: dooring.
ben-schaaf··on Can you trust that permission pop-up on macOS?
> It might also be a push to get developers to publish on the App Store (where Apple can be more sure (hopefully) that the apps are safe).

Apps on macOS need to be signed and notarised. Apple has the exact same capability to scan for malicious behaviour and revoke your keys regardless of how you publish. We all know the real reason they want to push apps towards the app store.

ben-schaaf··on Office is too slow, so Microsoft is making it load at Windows startup
> and it's not even the fastest editor, iirc it uses Python under the hood

The majority of the app is written in C++. Python is used for plugins.

← PreviousPage 7 of 34Next →