HNHacker News
TopNewBestAskShowJobs

flohofwoe

23,650 karma · joined October 15, 2013

submissionscomments
flohofwoe··on GIMP Development Update
...and all of that can be done much simpler and faster with regular for-loops and if-statements. The additional database complexity only pays off when you need to do that over millions of items with complex filtering rules or dependencies.
flohofwoe··on GIMP Development Update
The problem with using database blobs for load/save is that you usually need a full database client in the application. SQlite advertises that use case, but it is complete overkill. You never need to run any sort of complex SQL query on an image file format for instance. Using XML+ZIP in this day and age is also a strange decision, but at least that way the data is inspectable with unzip, a text editor and an image viewer (assuming they use a standard image format to store the raw pixel data).
flohofwoe··on GIMP Development Update
No that would be an early 1990s file format ;)

1999 is exactly right for the start of the XML hype, everything had to be XML, it would single handedly solve the software crisis (after OOP failed to do that) because everything would be able to talk to everything!

flohofwoe··on Ask HN: Do you know of any company that went back to hand-written code?
You're thinking too small! It's all about building entire apps autonomously from 10 lines of a blurry "do what I mean" spec /s
flohofwoe··on Ask HN: Do you know of any company that went back to hand-written code?
I think we're way past this point tbh, software development is just the latest area that's being "bullshittified" ;)

(also let's be honest, building yet another CRUD app - eg what 99% of software devs actually do, is not "creating value" - with or without AI)

flohofwoe··on Ask HN: Do you know of any company that went back to hand-written code?
Shitting out lots of code faster was already possible before (just hire more interns who do it for free heh) the question is at what quality and is more code in less time really the biggest problem in professional software development that had to be solved?

LLMs can be very useful for all sorts of things, but large scale code generation is IMHO the least interesting use case. And even when LLMs are successfully used for code generation, I feel like progress has been reset to the early 60s and people are now rediscovering all the failed software development approaches (eg "spec-driven" is pretty much the equivalent of "waterfall", I'm now waiting for UML diagrams to make a comeback as the next big thing with an "agentic engineering" label slapped on ;)

Classic interactive "vibecoding" with quick turnaround times (but much quicker than now please, don't make me wait and let me slip out of the flow) might actually turn out to be the most useful way to build software with LLMs (or let's better say "prototypes"). Because everything else currently looks like we're building up too much bureaucracy around the software development process again, and just in time when we finally got rid of that shit (now we have that absurd amount of .md files in pseudo-human-language as "skills", "rules", "context", "memory", ...) like it was common in the 70s when the work was split between "software architects" who only do the high level design, and "implementers" who only bake that design into code. This was obviously a stupid idea and I don't know why the "AI bros" seem to be so keen on repeating that mistake.

Every approach that builds a "human language specification" that's separate from source code written in a much more precise programming language is doomed to fail (eg the code is the spec!), and that's nothing new, we've known this for decades, but that brain virus of "upfront software architecture" always keeps creeping back into the minds of people at the first opportunity.

flohofwoe··on Ask HN: Do you know of any company that went back to hand-written code?
But that's obviously exactly what the employer expects, I don't see the problem tbh ;)
flohofwoe··on In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace
The US didn't have a (successful) private aerospace company in the 1970s either (AFAIK). The whole thing was simply too early to be a realistic business.

It's not that the private sector gave up entirely though (e.g. see https://isaraerospace.com/), but of course it's incredibly hard to enter a market that's dominated by a handful heavily subsidized and state/military-sponsored companies (and that includes SpaceX).

But I have a feeling that at least the braindrain from Europe towards the US will not be quite as extreme in the future as it was in the last 90 years.

Also:

> I really wish German industry had a little more willpower

I think it's less about company willpower but about (investment) money, and of course every idea must make business sense. That whole balancing act between 'must quickly become a viable business' versus 'how much investment money is available to burn on failed experiments' happens on a much smaller scale in Europe compared to the US (and a lot of European investment money is being burned in the US instead of Europe, and this clearly would need to change first).

flohofwoe··on In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace
> nobody uses the old definition because it's no longer WW2

These are Cold War terms (post WW2). And for the Cold War era it makes sense to use the original meaning.

IMHO the term "3rd world country" shouldn't be used in the first place when talking about the time after the early 1990s though. It's misleading and the "modern" meaning comes with a hefty whiff of implied racism/colonialism.

flohofwoe··on In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace
It's quite literally the "western definition" of Third World:

https://en.wikipedia.org/wiki/Third_World

Do you think the Soviets would have called the US aligned countries "First World"? ;)

The more 'correct' term for that modern/popular meaning of 3rd world is 'developing countries' (or in German "Entwicklungslaender"). But tbh, I have no idea when, how and why the transition from 'politically unaligned country' to 'underdeveloped country' happened in the modern popular opinion - the Wikipedia article has some ideas though - but tbh I would never have considered Cold Ware era Cuba or Vietnam to be "3rd world countries", and after 1990 the whole idea behind those "three worlds" has lost all meaning anyway, and especially after China had entered the chat.

Yugoslavia and Albania are more interesting cases though indeed, at least Yugoslavia tried to play both sides during the cold war, while Albania started as a very close Soviet ally but then moved towards China and then eventually ending up as completely isolationist.

Also as a clear example for a '2nd world despot' look at Romania's Ceausescu, and for examples of '1st world despots' look at Spain under Franco (easy to forget that Spain was a fascist dictatorship until the 1970s), or Chile under Pinochet.

flohofwoe··on In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace
Funny enough the uploader has made that video unavailable in Germany (OTRAG was a German company, the first private/commercial aerospace company about 3 decades before SpaceX).

Scott Manley has a video about them, and that's also available in Germany ;)

https://www.youtube.com/watch?v=ed4w4Cz5ccU

PS: GP probably meant this one (this is just the trailer of a German documentary from 2018):

https://www.youtube.com/watch?v=DXDdKuRANbc

flohofwoe··on In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace
My choice of words doesn't imply that only the 3rd world had despots, that's just what you want to read into it.

Back in the Cold War the 'division' of the world into power blocs was quite simple:

- 1st world: countries aligned with the USA

- 2nd world: countries aligned with the USSR

- 3rd world: independent countries that were neither aligned with the US nor USSR

E.g. in its actual meaning, 3rd world doesn't say anything about how rich or poor a country is, or about its form of government.

flohofwoe··on In 1962, Egypt's Missile Program Lost Its Key Scientist Without a Trace
Both cases remind me of Project Harp (https://en.wikipedia.org/wiki/Project_HARP). After the project was shut down by the US and Canada, the engineer behind it (Gerald Bull) decided to work for Saddam Hussein to build a "Babylon Cannon" which then caused Mossad to 'intervene' in 1990:

https://en.wikipedia.org/wiki/Gerald_Bull

I wonder how many similar but unknown cases there are involving former Soviet scientists and engineers trying their luck with 3rd world despots after the Soviet Union collapsed.

PS: just remembered that Willy Messerschmitt also ended up building a jet fighter for Egypt after the project was abandondend by Spain. Egypt then also eventually cancelled the project in 1969 though and instead decided to become close buddies with the Soviet Union - I wonder if that decision saved Messerschmitt from the same fate as Krug and Bull:

https://en.wikipedia.org/wiki/Helwan_HA-300

flohofwoe··on an ambiguity in C89 which will never be fixed
I'm not sure what the "which will never be fixed" part in the title is about, the problem was clearly fixed in C99 by removing the entire "misfeature" from the standard (e.g. GCC and Clang do error out both in C and C++ compilation mode).

My guess is that the implicit declaration was a leftover from a C predecessor (B?) and kept in C to simplify programming in hybrid B/C environments. Just a guess though.

flohofwoe··on an ambiguity in C89 which will never be fixed
Tbh I would be very surprised if `g++ -x c` and `gcc` use different language frontends.

One silly side effect of compiling C in C++ mode is that it forces you to cast from void pointers. E.g. the famous example of:

    bla_t* bla = (bla_t*)malloc(sizeof(bla_t));
That extra cast is just a silly and completely pointless C++-ism. It's only the tip of the iceberg though (another difference was zero-initialization with `{}` vs `{0}`, but that's harmonized now in C23 so that `{}` is also valid in C, but as soon as you want to use C99 designated init, the 'harmonization' ends).

One critical missing piece of C compilation mode was usually that the compiler didn't warn when using a wrong enum type, but that's also fixed by now (assuming `-Wall -Wextra`, but that should always be enabled anyway, otherwise you're just flying blind), e.g.:

https://www.godbolt.org/z/h5s4qWoTh

flohofwoe··on an ambiguity in C89 which will never be fixed
> Most people build C in g++ before gcc

That's not possible for 'standard C' though, only for the separate language that's called "the common subset of C and C++". E.g. it works more or less by accident for some specific C code that predates C99, but even that is built with C++ semantics (which has many subtle and some not-so-subtle differences to C semantics).

Instead of trying to build C in C++ mode, turn all the warnings to 11 (and also include warnings that aren't in -Wall -Wextra, like -Wsign-conversion).

flohofwoe··on The Indo-European Family Tree
Kinda funny that Bavarian is more distant from 'High German' than Yiddish :D (not exactly wrong though, Yiddish is easier to understand for any non-Bavarian than hardcore Bavarian).

There's at least a dozen local German dialects missing which are just as 'weird' as Bavarian though (PS: ok, all the main dialects spoken in the northern parts of Germany seem to be there, just in their own 'heritage node'), I guess Bavarian earned its own spot because it has the most speakers.

flohofwoe··on Thanks to social media, canned sardines are a scarcity on the supermarket shelf
> ...decline due to influencer marketing...

As terrible as the influencer scourge is for society, I somehow doubt that it was a 3 day social media fad a couple of weeks or months ago caused the collapse of ocean wildlife.

flohofwoe··on To save C, we must save ABI (2022)
Hmm yeah ok, because Linux distros and glibc apparently never cared about defining a proper system ABI outside of 'whatever gcc happens to do'.
flohofwoe··on To save C, we must save ABI (2022)
It's useful for closed-source developers who want to sell their libraries as precompiled binary blobs for static linking, but as soon as MSVC is involved that idea of "one library for different compilers" is out the window anyway ;)

For areas like application plugins via DLLs it's the OS ABI that matters.

flohofwoe··on To save C, we must save ABI (2022)
Rust basically would need to specify the interior memory layout of basic types like Result or Option. But to be pedantic, not even C has a standardized memory layout for structs, only some accidential common conventions that work for some types but not others
flohofwoe··on To Save C, We Must Save ABI (2022)
Compiler interoperability is the only ABI related problem area that's remotely in the scope for the C standard, but IMHO not even that (it's really not a problem that needs solving).

Ultimately any ABI discussions need to happen between CPU and OS vendors, compiler toolchains implement whatever comes out of those discussions.

flohofwoe··on To save C, we must save ABI (2022)
It was never really possible to compile a library with one C compiler and expect it to link against code produced by another C compiler, unless both compilers happen to agree on specific ABI details that are either defined outside the C standard or not at all.

And to be honest, this sort of compiler-specific ABI interoperability is a non-problem that doesn't need solving, it's at most relevant for software developers of closed source libraries who distribute the libraries as precompiled blobs. But those must be stamped out for different target-triples anyway.

flohofwoe··on To save C, we must save ABI (2022)
Sure, but the C standard is the wrong place to do anything about the "problem".

Also IIRC it was really only UNIX which had this "whatever our C compiler does" mishmash. On most other operating systems it was the other way around, C compilers had to implement whatever calling convention the OS already had defined before there even was a C compiler for that OS (for instance early Windows version used a PASCAL calling conventions, and others (CP/M, DOS, AmigaOS...) some random rules that were most convenient for handwritten assembly code).

PS: and yeah I know that other article (or rather: incoherent rant). It's basically a lot of barking up the wrong tree.

flohofwoe··on To save C, we must save ABI (2022)
He's writing from the perspective of a C and C++ standard contributor, and IIRC esoteric ABI details like this was what he happened to be obsessed with at the time (around 2022) :)
flohofwoe··on To save C, we must save ABI (2022)
It really hasn't much to do with C (e.g. there is no such thing as a "C ABI", and especially no such thing as a "standardized C ABI" - not sure if that's even a hot-take anymore).

ABIs are defined by CPU and operating system vendors. Those ABIs usually happen to be quite 'C friendly', but that's not a requirement (for instance the AmigaOS ABI was primarily meant to be used from handwritten assembly code, and Amiga C compilers had to adapt to those ABI rules or they wouldn't be able to call into the operating system DLLs).

flohofwoe··on To Save C, We Must Save ABI (2022)
Should have a (2022) in the title, not that anything has changed (AFAIK), but the sky didn't fall either ;)

In the end, OS/CPU combinations define ABIs, compiler toolchains (no matter what language) can't do much more then follow (if they want to be able to talk to the operating system at least). E.g. if one day operating systems implement stable Rust-friendly ABIs, then C compilers will have to adapt to those conventions instead.

flohofwoe··on Half of Europe's towns and villages have fewer residents than 60 years ago
These were all good things though? What are you're trying to get at? That Europe would have been better off under fascist or communist rule?
flohofwoe··on Triton: DirectX 11 Driver for QEMU
D3D11 is the by far most used 3D API on Windows (there are thousands of D3D11 games versus hundreds of D3D12 and much fewer Vulkan games), and most games don't actually have better performance with D3D12 or Vulkan anyway. So from a pragmatic 'bang for the buck' point of view, D3D11 both for the frontend and backend makes the most sense.
flohofwoe··on Triton: DirectX 11 Driver for QEMU
They look similar because both D3D12 and Vulkan have been 'influenced' by Mantle (Vulkan more strongly than D3D12 though).

Vulkan was released after both Metal and D3D12 btw.

← PreviousPage 11 of 34Next →