News for hackers. Stuff that matters.

afdbcreid

Re:Mathematics has changed. Let's act like it on Sunday November 01, 2026 @02:53PM (#50329100)
A single bug can usually allow you to prove anything you want. Saying that this is how the proofs were achieved is a totally different matter though, and probably incorrect.
Re:TCP Use-After-Free: CVE-2026-98432 / CVSS 9.8 on Sunday November 01, 2026 @09:37AM (#50326136)
I won't comment on your entire comment, but this:

> To make it fast you need simd, which implied using unsafe

Is just false. There are multiple safe SIMD libraries for Rust that can exploit the full SIMD potential. Only very rarely they require unsafe for maximum performance and only to avoid bound checks.

The problem here is experimental evidence, which is the general reason they focus on mathematics.
Re:SIMD-accelerated computer vision on a $2 microcontroller on Monday October 26, 2026 @05:45PM (#50251481)
No, the discussion at https://www.reddit.com/r/esp32/comments/1x3bmjh/ordering_esp... clarifies that the FCC ID was faked and the product was counterfeit.
Re:SIMD-accelerated computer vision on a $2 microcontroller on Monday October 26, 2026 @05:42PM (#50251432)
The original post and the following discussion at https://www.reddit.com/r/esp32/comments/1x3bmjh/ordering_esp... clarify that the devices ordered were likely counterfeit and one had a fake FCC ID, so it was illegal to buy them irrelevant to the new law and likely why they were seized.

So the conclusion is not necessarily "don't buy ESP", but "verify what you're actually buying".

Re:Attention people who think UB is fine on Saturday October 24, 2026 @01:41PM (#50223420)
Since undefined behavior is impossible, that means there are only two options.
Re:Google's Rust Style Guide on Saturday October 24, 2026 @01:06PM (#50223144)
Sure, but in this context, the meaning was clear to refer to the differences from C++.
Re:What's Getting Pwned on Thursday October 22, 2026 @04:52PM (#50200850)
I agree that the best leaders are devastating. /s
Re:Google's Rust Style Guide on Thursday October 22, 2026 @02:06PM (#50198968)
Java and C# did kill C++. They just did it only in places they were feasible. People forget that before them, it was very common to write application and even serve code in C++. Now Rust is targeting its remaining niche(s).
Re:Google's Rust Style Guide on Wednesday October 21, 2026 @07:50PM (#50189221)
Here's a tip most Rust users don't know about extension traits: if you put `#[rust_analyzer::prefer_underscore_import]` above your trait (and you're using rust-analyzer and not RustRover), autocompletion and the import assist will import the trait `as _` by default, which is very useful for extension traits.
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @05:30PM (#50187934)
> True, but there's no reason PGO can't eventually be implemented for native AOT.

It already is implemented, I believe. The thing I wondered is how NativeAOT could be faster, which is what GP claimed.

(Also, practically it should be slower because NativeAOT is based on the JIT and the JIT is worse at optimizing than LLVM).

You mean 200B?
Re:Google's Rust Style Guide on Wednesday October 21, 2026 @05:10PM (#50187677)
That means those are probably builders and not setters. Do they change an existing object or a newly-constructed or to-be-constructed object?
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @02:32PM (#50185470)
It does but only on the stack, known as `ref struct`. E.g. `Span<T>` is an interior pointer, and this is extremely common in modern C#.
Re:C++ futures part 1: The mental model on Wednesday October 21, 2026 @11:32AM (#50182728)
He writes regularly. Sometimes explaining C++, rarely explaining C#, sometimes historic stories, sometimes current stories, etc..
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @10:18AM (#50181462)
You can always not enable PGO of course. What I meant is that I don't expect NativeAOT to do better.
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @09:38AM (#50180764)
C# indeed does not have a catch-all ecosystem. But for some domains (servers, UI are a mess but also pretty good, CLI is plausible), it has a very good support. Like Java but nicer (this is subjective) and faster (this is not).
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @09:07AM (#50180300)
The most problematic missing feature for both C# and Go is interior pointers. But there are many others.
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @09:06AM (#50180278)
> and in some specific situations faster than Rust

I'm very curious to hear when? Because even the people that argue managed languages can be faster than unmanaged, say it because the JIT has better information at runtime. But NativeAOT cannot be better (and will be worse) than LLVM with PGO.

Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @08:59AM (#50180186)
Indeed, some parts are possible to strip. Some not.
Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @03:39AM (#50177301)
> ultimately everything is eventually possible against any given hardware.

Not everything, no. You can't run C# without the .NET runtime. Some parts of it are irreplaceable.

And the Rust optimizations to shrink binary size (see https://github.com/johnthagen/min-sized-rust) are commonly done in production when it matters, not just in WASM but also in embedded.

Re:C# now beats Rust on WASM size on Wednesday October 21, 2026 @03:16AM (#50177143)
C# doesn't (and can't) use WASM GC.

The comparison is unfair for other reasons (the C# runtime was optimized for WASM size and the Rust not, it's possible to be much smaller in Rust), but it's still cool.

Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @02:03AM (#50176648)
But not than assessment and controlled shutdown or access minimization. Turning off critical systems can result in deaths.
Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @01:05AM (#50176297)
If you tell them where the problem is (even rough code area) - I'm 99% sure they can, and have.

If you only tell them to find issues in PHP - the strongest models probably still can, although they might find different issues ;)

Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @01:02AM (#50176285)
If anyone can login, probably yes. If only trusted people can, probably no.
Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @01:01AM (#50176279)
Nice idea, but I don't think you would want e.g. your hospital to have their systems suddenly turn off.
Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @12:56AM (#50176253)
It's not "trivially exploitable". Two or three years ago, this would be a critical issue but require quite some expertise to exploit and exploits definitely wouldn't spread like that. LLMs are shaking the entire security industry.
Re:Upcoming Critical PHP Security Release on Wednesday October 21, 2026 @12:54AM (#50176235)
If you maintain a 9 figures business, I would recommend to not rely on that and shut it down or at least do more.
Re:Upcoming Critical PHP Security Release on Tuesday October 20, 2026 @11:14PM (#50175642)
Indeed, an attacker theoretically can access anything the PHP process has permission to access. However even without limiting permissions (also a good idea) that means the simple/published exploits won't work on your server, and there's a high chance criminals will look for other targets, assuming you're not targeted.

Older »