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

Please put units on temperature values. Outside US this sounds like a story about fridge getting half way to boiling its contents.

GCC, clang and cmake had way more than 100 minor releases.

The version numbers are not comparable, because Rust bundles compiler, package manager, standard library in one release.

Additionally, Rust the language makes incremental changes stabilising individual features when they're ready, instead of bottling them up into rare grand releases. So number of releases doesn't tell you rate of change. It's like slicing pizza into smaller slices doesn't make a bigger pizza.


Stroustrup's list of objections sounds quite sensible to me: https://www.stroustrup.com/Contracts_fundamental_flaws.pdf

Agreed. I've not liked the contract setup for various reasons. It seems like the proponents of it are mostly there because it scratches an itch in PL PhD studies rather than being an actually useful feature.

I remain unconvinced as why this is a necessary feature over the already existing `assert` statements.


It is currently UB to have assertions enabled in some translation units and not in others. `contract_assert` avoids this. This behaviour seems more than worth it.

> The P2900 contracts failings:

>

> Unimplemented — GCC 16.1 (released 2026-04-30) ships it only as experimental

It will always be experimental before it is standardized, because before standardization the specification could change which means if it was not experimental, GCC had to maintain a standard-incompatible implementation.

Expecting a non-experimental implementation as a requirement for standardization is an impossible goalpost.


[flagged]


Does this contrast what anyone else has found, regarding usage in the wild?

At the end, it became very clear that some of the prose came from LLMs. It's a very short survey of other objections. I wonder why he/they reached for an LLM instead of writing it manually.

Because in circles like HN everyone is proudly telling how they burn Claude tokens?

You think Stroustrup's decision making is primarily decided by what's currently hype on HN?

LLM hype is very much stronger than the rest of HN hype.

Nice way to twist my words, I was replying to the usual paradox in HN to hype about LLMs to code, and complain about the same LLMs to write docs.

I don't think I was twisting your words?

    > > I wonder why he/they reached for an LLM instead of writing it manually.
    > Because in circles like HN everyone is proudly
    > telling how they burn Claude tokens?
Or was the "because" not meant to indicate that you're answering the question, were you instead using it as a different rhetorical device? I suppose that could make sense. I think it could've been written a bit more clearly. I really wasn't trying to twist your words.

Because it is now all the hype, and sites like HN is where the more technically minded folks usually hang around.

So more about the hype in itself and less about HN specifically.

I guess I could have added that part as well.

So yeah, I guess I got a bad reply there, sorry about that.


The paper sounds very, very much like Claude

> Not tried in major application domains — no shipping production codebase uses pre/post/contract_assert.

This line is where I realised it's Claude. Also note the emdashes.


Did people not read articles and books with em-dashes before LLMs? Why are we pretending nobody used them before? It's one of the first things people learn to typeset properly when learning LaTeX for the first time, not to mention so many books we grew up reading used them regularly.

I loved em-dashes --- I still do (as you can see, I'm partial to AP style ;)) But most people never understood the difference between hyphens, en-dashes and em-dashes in the first place. Or that The King's English uses en-dashes where US English uses em-dashes. Merriam-Webster has a short and amusing -- to me -- article on this topic [1]. So all kinds of "dashes" are rolled into the "em-dash is an AI tell" hysteria.

That LLMs use them all the time is also a good indicator that there are alot to be found in the training material.

[1] https://www.merriam-webster.com/grammar/how-to-use-and-under...


I routinely use em dashes. They are easy to type on Mac and Linux. Only Windows makes it a hurdle.

Nowadays it's also just Super-(Shift-)Hyphen on MS Windows.

Bjarne uses Microsoft Word (the style used in the document gives it away) and it auto-emdashes by default when you just type a normal -

That doesn't explain why the rest of the words are Claudish.

If you're using an OS newer than Windows XP, then the app window is going to be rendered by a GPU-based compositor anyway. It's going to exist in VRAM either way. CPU-based rendering will just do extra work to upload the pixels to VRAM.

I don't know about GPUI in particular, but it's possible to make GPU-based rendering use less VRAM by generating graphics with shaders on the fly instead of using pre-rendered sprites/bitmaps like it used to be done with CPU-based rendering (e.g. computed gradients and drop shadows, large text rendered straight from curves instead of a prerendered atlas)


Yeah, so why not use OS then for rendering and roll your own rendering pipeline?

because OSes have different UI toolkits with their own vendor lock-in, quirks, limitations, preferred languages, legacy baggage, and random bursts of "everything is now deprecated except the newest fad which will be deprecated next year" and "we're making everything flat and/or semitransparent!". Then most of the time the stock widgets are too basic to even support what Discord wants. This is an expensive PITA to develop and test for, and it's what lead app developers to run away to Electron.

They are (were), and the implementation was poor anyway - the transform is not dynamic, and not even progressive. It's just a high-latency legacy static templating engine you can't upgrade.

It's expected. Cargo has very conservative cache cleanup (once per month IIRC).

There's incremental compilation cache that generates lots of churn (although Rust's compilation unit is a crate, "queries" in the compiler are cached individually, creating many cache entries per function per type).

The other half of the disk space is debug info, because abstractions that optimize down to zero runtime code still carry all of their source-level debug info.

These can be adjusted in build profiles if you're ok with coarser debug info or less fine-grained caching.


Cargo has no cache cleanup for `target` on stable.

Supply line voltage is irrelevant. The car and charger negotiate and adjust power and voltage dynamically.

Charging stations typically also have on-site battery storage to have peak charging power that exceeds grid supply (and also because energy arbitrage is profitable).


Local codes might limit things, but that is unlikely.

Local codes for residential? I doubt anyone would be doing flash-charging at home. If you're referring to codes for charging networks, that would fall under industrial fixtures; and industrial codes allow for scarily-high-amperage wiring under a stricter regime than residential.

Industrial codes often only allow trained electricians to connect those high voltage wires. Even though it is fine, it is against the code to plug in that cable.

Flash charging delivers over a megawatt of power via a thick actively-cooled cable. This is for rapid charging stations along highways (equivalent of gas stations), not for a DIY install in your garage.

This is about needing a licensed electrician to connect that cable to your car when you are a that rapid charging station on the highway.

The letter of the law often says things like that.


You're imagining some absurd weirdness, like you never saw anyone use an EV. It's like needing a licensed explosives technician to fill up a gas car.

These chargers are already deployed and used in China and Norway. There are also tens of thousands of 400kW chargers all over the world, even in the USA. People use them every day. It's not a hypothetical.

For the user the connector is foolproof and even a child can plug it in (the cable isn't energised until the plug is locked, all pins are connected and temperatures are nominal). It's safer than plugging in US 110V household plug.


I am very well aware that the connector is foolproof. Hope the law was written years ago when nobody but trained electricians would even dream of touching anything more higher voltage than a US, than a standard household. All it takes is a few people who have an irrational hate of EVs, which we know a lot of those exist, and they will just apply the law and some of you can't charge your EV in a certain area at more than level 2.

The above has nothing to do about safety or how practical it is. It is about people who can apply the law to their twisted ends.


4 still shipped with buttons my mum could recognise.

Apple's design never recovered from the flattening of iOS 7.


You get stricter enforcement of public APIs and dependencies. You can't import anything you haven't declared as a dep, and cycles are impossible. Rustdoc by default shows only your intended public API.

OTOH if you have one crate with lots of modules, it's tempting to import anything anywhere and use pub(crate). Rustdoc needs to be configured to show private items if you want to see internal APIs.


Exactly. Being able to organize your code in a way that provides distinct responsibilities per crate is just good practice.

And then the ability to enforce a formalized layer between crates and the way that they assemble into your application (i.e. the public API) is powerful for comprehension and maintainability. I go as far as documenting each crate with its own README that presents it as a standalone component with usage instructions, much like an open source library, even if it's only ever used in a single system.


Cloudflare is all in on Rust, it's used everywhere by default, and C++ leftovers are being actively torn down.


Going all in on Rust doesn't have to mean you'll rewrite everyone's firmware drivers in Rust, nor does it mean rewriting everyone's OS in Rust or rewriting the platform on which Rust is compiling.


No, "CloudFlare going all in on Rust" means that the code they write and maintain is rewritten.


So they will remove LLVM from rustc and throw away V8?


It's just a matter of time.


Yeah, sure. Cranelift isn't making that much progress, and Google is in no hurry to RIIR V8.


As far as I know, someone outside Google rewrote the TypeScript compiler in a week in Rust, and according to the benchmarks, it’s better than the Go version. The same thing will happen here. There’s no time to wait for Google. Someone else will do it.


Someone also rewrote an entire certain JS runtime in Rust


Yes, and the TypeScript team said, thanks but no we not taking it.


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

Search: