HNHacker News
TopNewBestAskShowJobs

flohofwoe

23,650 karma · joined October 15, 2013

submissionscomments
flohofwoe··on Why the Bronze Age Collapsed
Aztec warriors were not European peasants though . They were highly skilled and well equipped. They didn't have steel blades (except what they captured from the invaders), but their obsidian "swords" were not that much worse in the hands of a skilled fighter. Plus the European handguns were not that reliable and accurate yet to be all that useful except for showing off. If the first shot missed (assuming it didn't misfire) there was no time for another. And guns need a steady supply of powder and bullets, which Cortez didn't have most of the time since he was also at odds with the governor of Cuba.

There's also plenty of accounts from the early days of Cortez' invasion where the Spaniards had a very hard time against the indigenous warriors even when the Spaniards were not largely outnumbered.

flohofwoe··on Why the Bronze Age Collapsed
The idea that the Spaniards were gods didn't hold very long. The Aztecs even sent body parts of captured and killed Spanish soldiers (and their horses) to display in cities and villages for the propaganda effect (see: they are not gods they bleed and die like everybody else).

In the end the defeat of the Aztecs was decided just as much by politics as by violence.

Also it's not like Cortez won every battle, they were even catastrophically defeated in the "night of tears". Coming back from that defeat wouldn't have been possible without indigenous allies and their thousands of skilled and well-equipped warriors fighting on Cortez' side against the Aztecs even after Cortez was driven out of Tenochtitlan (and not to mention logistic support which was probably even more important).

flohofwoe··on OpenDLSS: A Vulkan Reimplementation of Nvidia's DLSS 5 Neural Rendering Network
Almost 8ms on 1080p resolution seems extremely expensive, does the original also eat into the rendering budget as much?
flohofwoe··on SDF vs. MSDF vs. Slug: GPU Text Rendering
Slug doesn't use "bitmap" font data but more like parameter lookup tables in storage buffers, pre-processed from TTF files. The lookup data can of course also live in textures (so that it works in WebGL), but using those textures as "poor-man's storage buffers", e.g. fetching the data directly without filtering.

The pixel shader is indeed quite complex compared to SDF:

https://github.com/floooh/sokol-samples/blob/8afa83928ce1870...

flohofwoe··on SDF vs. MSDF vs. Slug: GPU Text Rendering
Tbf, the Github repo doesn't look particularly 'sloppy' to me, more like some mild AI assistance. There's several months of fairly regular looking git history, a couple of commits with an LLM disclaimer for python bindings, and two llm-context files.

https://github.com/AlphaPixel/slughorn

flohofwoe··on SDF vs. MSDF vs. Slug: GPU Text Rendering
The details are in Eric's post here:

https://terathon.com/blog/decade-slug.html

The timeline basically checks out, maybe it simply took the patent office over a year to process the patent application?

flohofwoe··on SDF vs. MSDF vs. Slug: GPU Text Rendering
Here's a simple Slug rendering example on top of sokol_gfx.h:

via WebGPU backend: https://floooh.github.io/sokol-webgpu/slug-sapp.html

via WebGL2 backend: https://floooh.github.io/sokol-html5/slug-sapp.html

There's quite a bit of helper code plus stb_truetype.h and stb_ds.h under the hood to parse TTF files and crunch the TTF curve data into the runtime format expected by the Slug shader (this stuff should better go into an offline asset pipeline tool):

https://github.com/floooh/sokol-samples/blob/master/libs/slu...

...the actual text rendering code is also taking a couple of shortcuts, e.g. no kerning, no right-to-left, and also no text shaping.

There's also a new and complete text rendering stack by Mikko Mononen called Skribidi (AFAIK not based on Slug though):

https://github.com/memononen/Skribidi

...the list of external dependencies is a bit scary for a small self-contained sample though (Harfbuzz, SheenBidi, libunibreak, etc...), but that basically shows that proper international text rendering is really damn hard, even when trying to simplify the code as much as possible.

flohofwoe··on Testing WebGPU data layouts with Facet
FWIW, there's a WebGPU extension which 'harmonizes' uniform buffer struct layout with other address spaces, but currently it's only implemented in Chromium-based browsers:

Ticket: https://github.com/gpuweb/gpuweb/issues/4973

Caniuse: https://caniuse.com/?search=uniform_buffer_standard_layout

The std140-style layout restrictions are basically a leftover when GPUs used vec4 "register tables" for uniform data.

flohofwoe··on macOS Golden Gate Is a Buggy Mess
The most glaring regression in macOS 27 for me is random audio popping/crackling in the Spotify client, otherwise it's mostly fine tbh.

It's such an obvious issue that I'm wondering whether I'm the only one experiencing it or whether Apple users just don't use Spotify or whether Spotify simply doesn't test on macOS (and as such I have no idea where even to write a ticket, the macOS Feedback app doesn't even have a category for problems in non-Apple applications).

flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
Damn right! But I doubt the Flying Spaghetti Monster cares much about the indiviual rights of Canadian truckers (https://www.spaghettimonster.org/).
flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
The word "government" seems to be used differently depending on language and country.

For instance in Germany, the specific words "Bundesregierung" (Federal Government, or just short "government") and "Landesregierungen" (State Governments) explicitly describe the "executive part" of the "political system".

The Federal and State Parliaments are the "legislative part" and the courts are the "judiciary part" (with the "Federal Constitutional Court" at the top). This whole idea of strict separation of power is the most important foundation of the German political system.

When talking about "the government" in Germany, people mean the institutions of the executive (mainly the chancellor and ministries, sometimes also including the president, but never the parliaments and courts).

And tbh, I would also have a hard time describing the US Democratic Party as the "current US government" just because they're sitting in the Congress.

flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
A poor analogy for democratic countries (spot on for Putin and his merry band of oligarchs though).
flohofwoe··on Digital Audio on the ZX Spectrum's 1-Bit Beeper
Another Speccy game with digitized speech is Chase HQ:

https://youtu.be/yjrbcLm78I8?si=GMIqDdL31hq4ik72&t=87

Although tbf apparently that's done via the AY sound chip of the 128k, which is a lot easier than through the on/off beeper of the 48k since the AY can do digitized audio via CPU-driven volume modulation.

flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
From what I can read on various news sites, not even LePenn blamed the government directly. All those cases were either business decisions of companies who can freely decide who they want as customers, or quickly overturned as unlawful by judges.

It would be good if you did at least a minimal amount of due diligence before spreading misinformation (but I guess spreading misinformation is the whole point).

flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
The idea of "change through trade" mostly worked great (see most former socialist European countries), but sometimes not at all (see Russia and more recently the US), and China is kind of in the middle of both extremes and may swing to either side in the future.
flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
The important point is that courts have the power to overrule unconstitutional or unlawful government decisions.
flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
Some basic googling would tell you that:

1. the AfD thing was the decision of individual banks, not of the German government. Basically, in a free world companies can decide who they want to do business with.

2. the Canadian trucker "debanking" was quickly resolved because the Canadian justice system did their job and overruled the unlawful "emergency" government order

flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
Germany for instance? Google "Bundesverfassungsgericht". I don't think such a separated checks and balances system is all that unusual in democratic countries. A major task of a "proper" justice system is to keep the government in check.
flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
The tricky thing these days is trying to figure out whether messages like this are coming from Russian or MAGA bots ;) In any case, good work comrade! Here's your potato / Trumpcoin. Now back into your troll cave.
flohofwoe··on US sanctions force The Netherlands off Microsoft and toward alternative NixOS
Concrete examples to verify such claims please? Also in civilized countries such things are decided by the justice system, not the government (which to the surprise of many simple minded people - like a certain US president and his fanbase - is independent from the government).
flohofwoe··on Coding is not solved
...and what's your point? Github isn't exactly a beacon of performance or robustness in recent months...
flohofwoe··on Coding is not solved
Different words for the same thing. The idea that "coding" is just turning a spec into source code without any engineering decisions to be made was always laughable, for that to happen the spec would need to be as detailed as the source code (of course the whole idea that spec and code are separate things doesn't make a lot of sense).
flohofwoe··on Klassik Revives the KDE 3 Desktop on Modern Plasma 6
> I doubt people under 25 years old today...

I think that really depends on whether they use PCs at all, and what for. I wouldn't dare to generalize people's habits based on age (the American "Gen*" labels never made much sense, and is usually downright discriminatory in both directions).

E.g. one result of the downward spiral of desktop UIs is that at least a lot of devs seem to have moved back to the command line, and the most hilarious thing of all is that the most modern tools (e.g. LLM frontends like Claude Code) are 1980s style TUIs. e.g. that's how bad the modern graphical user interfaces are failing us, we have to bring back half a century old UI technologies ;)

flohofwoe··on We Should Be Able to Change Our Languages
I think it will be more like the various religious schisms in history. When mapping it to Christianity, I'm just not sure yet whether the AI bros will be Catholic, Protestant, or American Evangelical weirdos (currently tending towards the latter).
flohofwoe··on On caring for user data: NeoVim caused Vim undo files to be deleted
Vanilla vim sure, no problem. But try to add syntax highlighting and code completion plugins.
flohofwoe··on Klassik Revives the KDE 3 Desktop on Modern Plasma 6
> KDE on the other hand, for some reason feels to me like going back to windows 98.

...which tbh is a good thing, because the Windows desktop of that time was pretty much the peak of the desktop UI paradigm, with actual research going into the UX instead of 'whims and vibes' like today (I would pick Win2k though since it had a much more solid technological foundation than Win95/98).

KDE has found its own way since it was a mere Windows desktop copy though (e.g. it's much better now - even more visually consistent - than both modern Windows and macOS). But unlike GNOME, KDE never abandondend what made it great.

flohofwoe··on On caring for user data: NeoVim caused Vim undo files to be deleted
IIRC vim became really slow with the combination of large source files (thousands of lines of code) and language server plugins (e.g. code completion and live error squiggles).
flohofwoe··on We Should Be Able to Change Our Languages
Forth is essentially built around that idea and while not a flop it also didn't exactly take the world by storm. The problem is that every Forth codebase is so extremely personalized that it only makes sense to its author.
flohofwoe··on C's Flexible Integer Sizes Were Not a Design Mistake
> Nope, they were mostly written in Assembly.

I was there, Gandalf ;)

(and note how I specifically wrote "dominant high level language", not "dominant language", since assembly coding was indeed very relevant on those machines, for UI apps 100% assembly was quite rare though, and hybrid C/ASM seems to have been more common).

flohofwoe··on C's Flexible Integer Sizes Were Not a Design Mistake
My point is that C's popularity quickly outgrew the popularity of UNIX, especially during most of the 1990s before Linux made UNIX accessible to us "PC peasants". Most 1990s PC games were written in C, and C was also the dominant high level language on 16/32 bitters like the Amiga or Atari ST.
← PreviousPage 6 of 34Next →