HNHacker News
TopNewBestAskShowJobs

flohofwoe

23,650 karma · joined October 15, 2013

submissionscomments
flohofwoe··on Felix Rieseberg Homepage
Hmm, here (macOS + Chrome) it starts with 'Sound off', says even so in the bottom right corner.
flohofwoe··on Felix Rieseberg Homepage
Interesting, I find the 'mood' very cozy and welcoming. There's nothing nicer than a warm, dimly lit room with a computer (or in this case VCR) when it's cold and rainy outside :)
flohofwoe··on Felix Rieseberg Homepage
Native apps are not automatically more responsive or less bloated. Look at Xcode or Visual Studio vs VSCode. Performance is mainly the result of how much effort you want to put into optimization.
flohofwoe··on Citroen revives the 2CV for an electric age
Most likely European vs American perspective? E.g. put an old and new Mini next to each other and it's almost unbelievable how tiny the original Mini actually is. While when you see a vintage US 'street cruiser' in a European city it's longer and wider than most modern cars.
flohofwoe··on Incident with Actions, Pull Requests and Issues
Maintaining Windows and macOS self hosted GH (or GL) runners is a hassle I really don't want to deal with anymore (been there done that).
flohofwoe··on Hackers activate automatic defrosting in supermarket fridges across Europe
May sound like nitpicking, but the Baltic states are Europe both geographically and organizationally (eg members of the EU).
flohofwoe··on Hackers activate automatic defrosting in supermarket fridges across Europe
Yes it was more of a rhetorical question, e.g. maybe we need to rethink that whole idea of plugging everything into the internet and instead go back to air-gapped "local area networks".

It also wouldn't be a big deal when a supermarket employee makes an old-fashioned phone call (gasp!) to the refrigerator service company when some red light starts blinking ;)

flohofwoe··on Hackers activate automatic defrosting in supermarket fridges across Europe
Ukraine did a spectacular job to stop the full-scale invasion in the initial hours, days and weeks when there wasn't much international help yet though (and I guess from that moment on the war didn't go quite according to plan from the Russian PoV).
flohofwoe··on Hackers activate automatic defrosting in supermarket fridges across Europe
Of course the bigger question is why a refrigerator is even a "connected device".
flohofwoe··on Hackers activate automatic defrosting accross European supermarket fridges
Never underestimate the stupidity and irrationality of autocratic governments. Putin also decided to invade Ukraine after all even though he should have known better.
flohofwoe··on 3rd Yandex Cloud Data Center Was Hit
"What air defense doing?" is apparently still an unsolved riddle.
flohofwoe··on Atari Falcon
Just a money-grab of the current Atari label owner, that company has nothing to do with the original Atari (which basically disolved in the mid-90s, with the label landing in the bargain bin of dead home computer brands - and since then the Atari trademark has been sold multiple times to ever more shady 'investors').
flohofwoe··on Atari Falcon
The Falcon was the only Atari ST model which would turn my head as an Amiga user :) Shame that it had such a short life though.
flohofwoe··on Cloudflare acquires Deno
I heavily prefer scripting in Typescript over Python (nowadays at least). I'm also not a big fan of how Python is developing since around the 2 => 3 compatibility break tbh.
flohofwoe··on Cloudflare acquires Deno
Please explain what exactly is the problem with installing dependencies on demand compared to an 'npm install -g bla', 'brew install bla' or 'apt install bla'? It requires exactly the same amount of trust and is the the same thing under the hood, just that it happens automatically on first invocation of a script.
flohofwoe··on Cloudflare acquires Deno
"deno run" also just strips the types. The type checker is 'opt-in' now.

Don't know what Bun does though.

flohofwoe··on Cloudflare acquires Deno
I don't want the install step. That's redundant. Just a .ts script I can run via `deno run bla.ts` and which directly pulls in any dependency it needs from the web.
flohofwoe··on Cloudflare acquires Deno
Only when you have no control over the version you're pulling in, but the semver resolution works as expected. Also we're talking about small standalone 'shell scripts', not 'real projects'. Think 'bla.sh', just with a .ts extension. Deno is really great for such small helper scripts.
flohofwoe··on Reducing undefined behavior in the C language
I don't know what to expect tbh, and I'm also even fine with the current behaviour :)

AFAIK the C committee is on the right track though. Start with collecting and classifying all mentions of UB in the standard (IIRC it's somewhere around 200 items), then decide what to do with each of those. A lot of the UB items are completely silly ancient artifacts which can easily be clarified (like the "no newline at the end of a source file").

Then there's probably quite a few items that can become implementation defined behaviour instead.

And only then decide what should happen to the remaining UB items that are actually important for optimization, maybe require a new 'checked mode' which turns those cases into runtime errors.

Also I think the "nasal demons" problem needs to tackled somehow (e.g. the thing that a compiler is allowed to do anything in the presence of UB) - obviously this is the trickiest part, and in reality there's hardly any C program which doesn't contain UB.

flohofwoe··on Cloudflare acquires Deno
> ...pretty much any functionality provided to deno is available for node as well.

Unfortunately Node still can't do something like this out of the box (AFAIK at least):

    import { Bla } from "npm:bla@^5";
Such direct imports are basically the killer feature of Deno for simple standalone tooling scripts in otherwise non-JS/TS projects, e.g. it made TS a perfect replacement for Python even without a "batteries included" standard library.

Deno also has a builtin TS type checker, linter, formatter, test runner with coverage support, package manager, language server etc etc... In node these are all separate (and often 3rd-party) tools.

flohofwoe··on Cloudflare acquires Deno
I just migrated that project away from Python to TS :D (cries in corner).
flohofwoe··on Yandex Takes a Second Data Center Hit in 48 Hours
It is, or at least it's expected that Russian companies get their own air defense:

https://www.themoscowtimes.com/2026/05/28/russia-lets-privat...

flohofwoe··on Cloudflare acquires Deno
To summarize my feelings: Shit!

Deno's ability to import directly from a package registry or even git repo in a standalone TS script without requiring a package.json or similar 'meta-data' file was actually really nice for shell scripting stuff. AFAIK node.js still can't do anything similar?

flohofwoe··on Reducing undefined behavior in the C language
Well you can't have your cake and eat it too ;)

> Dead code removal is unexpected by the programmer, because programmer does not write dead code.

Of course it is expected, because the optimizations leading to dead code are fundamental for the performance you get out of a release-mode binary (and that's also true for languages with less UB like Rust btw).

When you have a function:

    static int add(int a, int b) {
        return a + b;
    }
And you call that function with const parameters:

    int c = add(2, 3);
Then you want that entire function call to be removed and "folded" into its result 5, and when this was the only place the function was called, you'd also want the actual function to be removed from the binary (because what's the point of lugging code around in the binary that's guaranteed to never be executed).
flohofwoe··on Reducing undefined behavior in the C language
> "high level assembly"

That's already a fundamentally wrong assumption :) With today's compilers, C is a high level language like all the others. The optimizations happening to C code are not fundamentally different than for any other compiled high level language.

> We should discourage the usage of C in application programming and prod application developers towards memory safe languages like Rust or Go.

No that's rubbish, just as it would be rubbish trying to 'discourage' people from writing programs in assembly code or any other programming language.

Ultimately, guaranteeing "safety" is the job of the sandbox your untrusted code is running in (e.g. the browser, operating system or VM).

The only difference between Rust and any "unsafe" language should be that one fails already at compilation time and the other at runtime (because the sandbox killed your rogue process).

E.g. if an operating system is exploitable because it allows untrusted programs to leak out of the sandbox, then that problem must be fixed in the operating system.

flohofwoe··on Reducing undefined behavior in the C language
You can get that behaviour (mostly) already today by simply not enabling optimizations.

The resulting performance difference is basically the price to pay for such a 'strict' compiler which translates the input source code straight into machine code instructions without attempting to simplify the output code via inlining, constant folding and dead code removal.

flohofwoe··on Reducing undefined behavior in the C language
> If I wrote some code, I expect it to be present in the binary.

That's oversimplified. If after inlining and constant folding an if-condition turns out to be always true or false I would definitely expect that the compiler removes the dead branch.

This type of optimization is the base for the fabled "zero-cost-abstraction" (which isn't only a C++ thing, C code depends on it just as much), and removing those optimization would seriously tank peformance in any non-trivial codebase.

flohofwoe··on Reducing undefined behavior in the C language
First we need to reduce the UB zoo because the types of UB in the C standard go all over the place (from "no newline at end of file" to "oops, this specific UB combined with this specific code compiled on this specific version of this specific compiler with these specific compile options leaks execution into the next function").

Also AFAIK the point where UB causes 'runtime disruption' is way after the C frontend in the optimizer passes, e.g. much too late for issuing compilation warnings even if the UB situation could be detected (because as far as I understand the problem, the breakage happens mainly because of unexpected 'spooky actions at a distance' between different optimizer passes, e.g. a specific optimizer pass doesn't even notice that it broke the code).

You can get runtime errors for a lot of serious UB problems via UBSAN though of course (at the cost of some performance).

flohofwoe··on Show HN: Quake ported to safe Rust, playable in browser
All commits in the project are from Claude. What's fun or to be learned from that?

It's of course everybody's personal choice, and it's nice for an experiment to figure out what Claude can do. But why go on HN and brag about a project entirely created by Claude when literally everybody else can do the same thing without lifting a finger?

flohofwoe··on Show HN: Quake ported to safe Rust, playable in browser
> But C isn't as nice to work with.

Only in your opinion :)

← PreviousPage 4 of 34Next →