News for hackers. Stuff that matters.

LarsKrimi

Re:Switch Lowering in GCC on Saturday October 31, 2026 @08:21AM (#50315471)
Okay. Good point, that is quite a bit shorter than I first thought of

A rough benchmark of a version of that against the original shows it to be close to twice as fast for unpredictable input with GCC (4.5 ns vs 2.72 ns) on my old machine. With predictable input where x values often are the same the original version is quicker

    int sparse_8_jump(int x, int val) {
        unsigned int idx = (unsigned int)x >> 3;
        if (idx > 5)
            return 0;
        if (x & 7)
            return 0;
        
        switch (idx) {
            case 0:
                return f0(val);
            case 1:
                return f1(val);
            case 2:
                return f2(val);
            case 3:
                return f3(val);
            case 5:
                return f4(val);
            default:
                return 0;
        }
    }
Re:Switch Lowering in GCC on Saturday October 31, 2026 @06:03AM (#50314563)
> The switch in sparse_8 could be simplified by dividing x by eight before the jump. Interestingly, gcc doesn't find this simplification.

It could not because that would ensure that 7 values for each case would be handled by function calls instead of the default case - 0/8 is 0, but 3/8 is also 0

Re:`123456' password used in Danish CPR data breach on Saturday October 10, 2026 @06:47AM (#50031584)
There are some unconfirmed rumors going that the maximum password length for the API was 8 characters...
Re:`123456' password used in Danish CPR data breach on Saturday October 10, 2026 @06:27AM (#50031464)
Privatization

It was run by DXC Technology, the Danish branch of a US software house.

When doing a contract on such programs the Danish government must take the cheapest offer by rule

Re:Denmark Data Breach Exposes 8.8M People's Personal Data on Monday October 05, 2026 @06:09AM (#49962885)
When you change your address you can click a checkbox saying you want a protected name/address. This means that companies that have you as customers/clients won't be able to get the new address, mail won't be redirected, etc

I did it accidentally during my last move and it was a pain in the behind

And it expires after a year by default so it feels rather pointless

Re:Denmark Data Breach Exposes 8.8M People's Personal Data on Monday October 05, 2026 @05:55AM (#49962777)
Altman at it again?
Re:Ukraine Can't Stop Russia's Jet-Powered Shahed Drone on Wednesday September 30, 2026 @02:21PM (#49912480)
More moving parts would mean a much more complex system which would heighten maintenance cost and likely lower successful interceptions per working system significantly.

I'm sure the Ukrainians can draw two curves and see where they intercept

Opposite for me. Late 30s but I drink more or the same.

But I don't drink my go-to Zinfandel anymore as it has a big ass flag printed on the box. It's embarrassing feeling the cashier's judgemental gaze. They know I'm a drunk of course but I don't want them thinking I support the US

Tell the wine makers to stop putting that flag on there and maybe exports may pick up again

Re:Rails World 2026 Opening Keynote [video] on Thursday September 24, 2026 @06:21PM (#49837536)
I guess it's the only con that will take money to have DHH give a keynote about some sycophantic BS
I'm curious what you think that may be.

The situation you're imagining is one of a global all encompassing depression caused by a single government.

Not unthinkable, but the Americans would feel that deeply. Do you think they want to?

We agree that China won't care long term. They cannot lose in the current setup

In my view the worst that can happen for China is that Trump gets limited by anything. He's hurting US relations more than he's hurting China short or long-term. Relations take longer to build than trade

"Don't interrupt your opponent when they're making a mistake"

Stability and sanity is not happening whether the conflicts stop in Yemen+Hormuz or not. At that point it's just going to go back to tarriff wars and new terror campaigns that the US admin will start somewhere else
Re:Paint.NET Adds Experimental Wine/Linux Support on Tuesday September 01, 2026 @05:35AM (#49519847)
It uses Direct2D which most of the post is about.

They added the support by slopping a Direct2D emulation layer together.

Re:Tailcat – Like netcat, but over Tailscale’s data plane on Wednesday August 26, 2026 @06:29PM (#49456802)
Neat idea in its core but its still tailscale underneath

The only thing that convinces me that tailscale isn't a CIA op is how badly it works for real uses

I don't think many will.

But I think they should. Not only for the practical reason, but because it leads to better software in my opinion

Limitations foster creativity. Abundance kills innovation.

In my company: - All computers are refurbished and at least 10 years old. - Cloud deployments use Hetzner or self hosted machines. - All hardware in general is a bit dodgy. Our main CI/CD setup is on a very unreliable network with varying availability and bandwidth

It can be annoying once in a while but it reflects our customers reality. And it catches a lot of usability and performance bugs that we wouldn't otherwise catch

I can only recommend it

Great thing the US regime can just make a computer their scapegoat. It wasn't the navy or the air force who just fired the weapons, or the commander in chief who ordered it.

It was actually Grok who mistakenly included the girls school

Not concerning at all

Congratulations to the US. I'm sure it must be nice to have a trillionaire

I wish my country had a trillionaire. That would give my day to day life meaning

Re:Gemma 4 12B: A unified, encoder-free multimodal model on Thursday June 04, 2026 @07:35PM (#48406114)
It seems very good at understanding human language clues even in a 4-bit (Q4_K_S) model, similar in feel to E4B but a great incremental improvement.

Interesting for my 8GB VRAM system, but the system RAM requirement seems to balloon quickly, and it starts misspelling words. Also token/s drops off quickly it seems

Re:NSA using Anthropic's Mythos for cyber attacks on Thursday June 04, 2026 @07:17PM (#48405973)
This feels like a stupid idea, but it's not my tax money being wasted on it (yet).

An AI being used for offensive purposes would be so easy to counter due to Brandolini's Law. A much simpler AI could probably easily create dumb honey pot systems that looked like real systems with holes in them to lead more advanced and expensive systems on a wild goose chase.

Suddenly an AI creating security vulnerabilities is a core part of a future cyber defence strategy. Surely someone must be doing that already

It's not about the US vs Iran.

It's Iran turning the strait into a wedge between US and the rest of their previous partners. The US has enough oil for themselves, but the hurt is felt everywhere else. And the cause of that hurt points in one direction (the US)

Elon is a true genius, up there with Euler and Feynman. So when things don't go perfectly with his initial idea surely it must be a conspiracy to get him down
Re:France Moves to Break Encrypted Messaging on Sunday May 10, 2026 @12:43AM (#48081073)
Maybe just search for it and pick a source you trust. Take the search term "kill people based on metadata" and no noise comes up, just tons of articles about General Hayden's interview and related
Re:The Onion to Take over InfoWars on Thursday April 23, 2026 @05:56AM (#47873882)
What would instead have been a reasonable punishment?

Either he truly believed that the kids at Sandy Hook were actors, or he was using it as part of his grift and making money of it.

As far as I can tell he has not reversed his stance on it

That's the funny thing of course. I don't understand who this show really is for
Re:Building a SaaS in 2026 Using Only EU Infrastructure on Sunday April 12, 2026 @06:06PM (#47745069)
I'm a resident of a country regularly mentioned by the commander in chief who has recently bombed a head-of-state and his family with AGM-114 Hellfire missiles, and captured the head of state of a neighbouring state by military means.

All without congressional approval. And apparently without the US population knowing about it.

Why risk using US tech?

It costs more, and the people running it likely may not be my friends

Re:Building a SaaS in 2026 Using Only EU Infrastructure on Sunday April 12, 2026 @03:21PM (#47743367)
I can tell you why. It's not the cost (even though it certainly helps)

For my company it's about the "pulling the plug" usecase. We create a SaaS product for semi-critical infrastructure - we don't need 99% uptime but more than a few hours and it's problematic.

Sure, most cloud/VPS providers have sites in the US as well, but worst case only those places would be affected if the US decided to do a Special Military Operation on Greenland for example.

Re:Show HN: Is Hormuz open yet? on Thursday April 09, 2026 @06:10AM (#47701580)
It's impossible to know right now. Some are saying Pakistan messed up by not specifying properly to both sides what would constitute a cease fire. And US (Israel's proxy) is probably a bit unreliable in how their military command and political leadership separately interpreted the agreements as well

/S trying to highlight how stupid it sounds when you try to retrofit sense into this conflict

Re:Aegis – open-source FPGA silicon on Sunday April 05, 2026 @06:07AM (#47647842)
This project seems to have a serdes block which seems to wrap whatever is in the PDK. Didn't look too far down but from a cursory glance it looked like it was built for an internal clock of 50 MHz (clock default to 20 ns) with an oversampling of 8: 400 MHz

If those numbers are at all right it puts it in useful territory. Very much so for a first spin

For a first spin it looks overall pretty useful. The only nitpick I have would be that `operation` on the DSP tile should be from fabric instead of config (hardcoded in bitstream) otherwise I don't see a convenient way of resetting the accumulator(?)

I believe you are correct that the list pricing from manufacturers is higher in the US.

But my understanding is that this is due to the PBMs punishing manufacturers for lowering the list price. Lower list price means less profit for the PBMs for the discount they negotiate

What happened to letting the free market work it's magic? Has America changed to communism recently without telling anyone?

Jk ofc. But the ones scamming Americans are American middlemen - the PBMs.

With this change the regime is just proving that it will not fix problems caused by their rich friends but rather pass the bill onto the manufacturers

Older »