Hacker Newsnew | past | comments | ask | show | jobs | submit | brigade's commentslogin

Investigations were announced into whether Nvidia broke export controls, and into their accounting.

The guy in a position to kill those investigations directly telling the board "reinstate him and you won't have a problem from us" is pretty damn corrupt.


And that’s exactly why they’re so controversial. As adopted by the committee they do not do anything to provide memory safety.

The pushback from the final rejection got the committee to add the bare minimum that could help C++’s safety story.


To expand on this, my understanding is: the thing that held back approval (from the national bodies, not the committee itself) was that build configurations could turn off contract checks, which run at runtime, and still be standards-compliant. They wanted library authors to be able to write checks that will actually run, regardless of the build configuration of the person compiling!

So the “fix” was to let the author mark individual contracts as always enforced at runtime, with pre<enforced>. That, in turn, means a library’s key safety checks (bounds, null, etc.) can’t be silently dropped in a “loose” build configuration, which pushes things down a safer path.

Clunky IMO, but rather reasonable as a response to Rust!

It brings things closer to a world where: if you use these “safe” libraries, your program will stop rather than run unsafely, no matter how it was built.


While I don't doubt this makes C++ safer, it really has nothing to do with memory safety which is usually understood as a language-level guarantee, either through the type system (as in Rust), or through execution in a managed environment.

I think some increase in memory-safe outputs is a part of the 'memory safety story' of C++ regardless of whether this comes from type-level changes or improved constructs for memory safety.

Perhaps, a good way to describe the difference here is to clarify that contracts do not innately make C++ as a language more memory safe, but have plenty to do with the memory safety of C++ applications.


Agreed that it’s not memory safety in the language-guarantee sense. But it lets a library make a spatial-safety guarantee that holds regardless of how it’s compiled.

If I call safe_library::some_low_level_op(some_offset), the library can guarantee a bad offset terminates the program before any out-of-bounds access, and no build flag on my end can drop that check. That’s the same “safe API over unsafe internals, enforced at runtime” pattern Rust’s own standard library relies on for bounds.

What C++ still can’t do is stop me from bypassing that API with a raw pointer, or help at all with lifetimes. But it's useful in practice, not just in theory.


There was a recent discussion about the C++ contracts, and one of the top comments [0][1] in it was that, well, there are already assertion libraries (especially after C++20's concepts) that already do all of that, and better.

[0] https://news.ycombinator.com/item?id=50361334

[1] https://news.ycombinator.com/item?id=50361455


And I really do not like the idea that some third-party library that happened to use decides that I can't turn off a expensive check that would never be triggered in the real world.

Now if the contract was instead, it must be proved at compile time I'd be for that. I don't know if theorem checkers are good enough to pull that off.


I don't have a problem with this, library writers are free to design any way they want. If this requires expensive checks, that's a library design choice, and users are free to choose a different library if that's not what they want.

And what if those "expensive" checks are done with an if () {} instead?

How can you know it will never be triggered in the real world? Isn’t that the entire point of this? To catch those bugs and prevent things from going off the rails and continuing on?

If you know it will never happen, what’s the point of the feature?


You're aware that third-party library developers have always been able to put all sorts of expensive runtime checks in their code which can't be turned off, right?

But why do you need a new language feature for that?

If statements can do guaranteed enforcement of bounds och null checks.


> The pushback from the final rejection got the committee to add the bare minimum that could help C++’s safety story.

What they added is no different in practice to what contracts already were before. If a compiler adds `-fno-contracts` then they will not be enforced, which was already the case.

But hey, if it helps C++ make it past the ISO process then it will have been a value-added change even though it's not actually any different.


> But hey, if it helps C++ make it past the ISO process then it will have been a value-added change even though it's not actually any different.

If the feature is irredeemably broken as opponents claim to be, what does a glorified rehearsal session changed?

I think this outcome is the worst outcome possible. Contracts proponents seem to have doubled down and hell bent on playing a game of political chicken. It's plausible the same proposal will be rejected again on the same grounds, with the same string of personal attacks that followed it.


> If the feature is irredeemably broken as opponents claim to be, what does a glorified rehearsal session changed?

That’s just it, it’s not. It’s not less broken than C++ already is, but that version of C++ already is here and it’s called Rust.

> Contracts proponents seem to have doubled down and hell bent on playing a game of political chicken.

Looks opposite from my end. I don’t know what about this has made it B.S.’s bête noire, but the politicking has all happened outside of and after the technical discussions resolved.

I don’t even plan to use contracts and I’m pretty disgusted by the efforts by anti-contracts people who would prefer to blow up C++ than to see a vote go opposite their personal preference.

> It's plausible the same proposal will be rejected again on the same grounds

I almost hope it does, and we can get ISO out of C++ entirely and just leave it with a WHATWG-style governance instead run by gcc/clang/MSVC.


> That’s just it, it’s not. It’s not less broken than C++ already is,

Your comment makes no sense.

> (...) but the politicking has all happened outside of and after the technical discussions resolved.

Evidently that's false. The contracts proponents have routinely ignored any feedback about technical problems plaguing the proposal. There is a string of papers documenting extensively the flaws in the proposal, one of them published somewhat recently that remains ignored, and the fact that contracts proponents have been purposely ignoring feedback to force push a broken feature says volumes about the ordeal.

And then there's the smear campaign and all personal attacks following the proposal rejection. Have you not noticed how contracts proponents avoided any discussion on the technical problems plaguing the discussion and instead focused on a smear campaign based exclusively on personal attacks directed at a single person?

> I almost hope it does, and we can get ISO out of C++ entirely and just leave it with a WHATWG-style governance instead run by gcc/clang/MSVC.

False dilemma. The choice is not between this nonsense we are seeing coming out of contracts and a fabricated scenario you made up. The choice is between this nonsense we see with contracts and simply removing contracts from C++26 so that either their problems are worked out or removed altogether. This is quite simple.


There are plenty of USB hubs with built-in NICs behind the hub, that can achieve full ethernet bandwidth. I even have a hub with a built-in RTL8156 and it achieves 2.4 gbps. And a separate RTL8156 plugged into a random hub also hits that.

So it certainly seems possible to have an additional device in the signal path.


Not all hubs and computers are equal here. Having experienced this with RTL8153, the combination of the Studio Display and ARM MacBooks is especially bad. Using an Intel MacBook with the display, or a different USB hub instead of the display, gets the full NIC bandwidth.

Fair enough, but I still wouldn’t say that he monitor is at fault. It’s probably not operating outside the USB specification in any way, even if it takes longer to forward messages than other hubs. It may even be multiple hubs, internally.

It’s really the NIC’s fault because its buffer is too small to handle a little extra latency.


> because the issues don’t start at 1 gig

Actually, the speed of gigabit Ethernet adapters are also known to cut 60% behind a studio display. TBH I assumed it was because USB ECM sucks and NCM (which RTL8156 implements) was supposed to fix it.


You can adjust the speed of both, you don't have to use the default of whatever library versions you're using. My cjxl defaults to 2x more CPU than avifenc's default, but I can make it 30x more or 480x less; libaom certainly lets you waste a lot more CPU than libjxl, if that's what you want.

I don't know if anyone has published an encode time / quality comparison of the various encoders. It'd have to be recent to include this year's libaom image optimizations.


The format is widely supported, but I'd be very surprised if linear HDR becomes widely supported outside of image editors. JPEG-XR supported fp32 linear HDR way earlier anyway, and no one cared because no one cares about linear HDR after editing.

Also AVIF supports up to 12 bits.


> I'd be very surprised if linear HDR becomes widely supported outside of image editors

I added support to ThreeJS last month because Chrome supports linear Jpeg XL with the experimental flag on. The other browsers are expected to follow:

https://threejs.org/examples/webgpu_loader_jpegxl


AVIF supports a higher resolution at 2^32-1 pixels per dimension, vs JPEG-XL's 2^30-1 pixels. But really it doesn't matter since something is going to impose an arbitrarily smaller limit on either before letting you try to allocate more RAM than any computer can address. Yes, plenty of comparison websites confuse AV1 limits (sometimes AV1 profile limits!) with AVIF limits.

For arbitrary planes, AVIF calls them auxiliary images. Unless you mean encoding non-RGB data to start with like how DNG uses JPEG-XL. At which point you're outside the scope of any standard interpretation of JPEG-XL data.


You know those data brokers and skip tracers like Acxiom and Epsilon that merge all the government databases like property records or USPS change of address notifications with private databases like all the contact lists every random app wants you to upload?

They probably did a fuzzy merge and your number (or a number typo'd to yours) got associated with some random old lady.

That's how I got on the lists of all the scummy PACs targeting elderly voters that Adam Bonica called out recently. I only figured it out because the cash for homes cold contacts trying to lowball his house will actually respond.


STOP to a 10DLC number should block further texts from that specific number at a carrier level, regardless of whether the campaign honors its 10DLC requirements. At least, until it’s recycled to a new campaign.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: