24,506 karma · joined Apr 15, 2009 (17y ago) · 5,019 submissions
@mastodon.social/@kornel
comment 7h ago · link · parent
In the short term the two US AI behemoths will likely add "Don't crack GTA" to their system prompt and keep scaremongering that Chinese models haven't.
comment 1w ago · link · parent
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.
comment 2w ago · link · parent
comment 2w ago · link · parent
comment 2w ago · link · parent
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)
comment 2w ago · link · parent
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.
comment 2w ago · link · parent
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.
comment 2w ago · link · parent
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).
comment 1mo ago · link · parent
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.
comment 1mo ago · link · parent
ISO-BMFF container is bloated and needlessly complicated. AVIF decoders didn't even want to reuse existing MP4 libraries for it due to all the baggage it brings, and implemented their own minimal parsers.
AVIF would have been better off with a simple wrapper similar to RIFF/PNG or extending AV1's own OBU header (which for inexplicable reason gets its data duplicated inside the HEIF container and then implementations are required to verify that both copies agree!)
I hope AVIF will skip AV2. We don't need yet another almost-identical format to migrate to.
comment 1mo ago · link · parent
I've switched to Home Assistant and the same devices on the same network work instantly, as they should.
Apple is so terrible at this. They have nobody to blame: it's their system, their protocol (I have pre-Matter devices), their home hub, their certified devices.
Home Assistant with a pile of community-maintained python hacks runs circles around Apple.
comment 1mo ago · link · parent
The pool of C software worth rewriting is shrinking. There are the few too-big-to-rewrite projects that will never move, but everything else is either getting rewritten, or has more modern replacements already written directly in Rust.
I can't vouch for LLM-assisted rewrites. The results can be randomly dodgy regardless of what you're writing or rewriting. I suspect we'll get plenty more LLM rewrites anyway, and people will just compensate by sending LLMs hunting for bugs by brute force.
comment 1mo ago · link · parent
It's a typical C mindset that rewriting programs creates new bugs, because it takes years to "battle test" and shake bugs out of a C program. In my experience rewrites in Rust uncover latent bugs of C programs when they finally get checked lifetimes, useful type system, enforced error checking, etc.