Better HN
topnewbestaskshowjobs
Log inSign up

pornel

24,506 karma · joined Apr 15, 2009 (17y ago) · 5,019 submissions

https://kornel.ski

@mastodon.social/@kornel

Submissions

comment 7h ago · link · parent

I'm worried that an overreaction profit-disrupting stunts like this could get reverse engineering banned (even more than DMCA's fig leaf for DRM). That would be a huge loss of freedom.

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 5d ago · link · parent

I'm now only buying devices that work locally with Home Assistant, or dumb devices that I can stick esp32 into.

I've learned my lesson from a pile of e-waste by manufacturers who stopped updating their apps and killed their cloud services.

comment 1w ago · link · parent

A story about a fridge that broke so badly would have been worth of HN front page.

comment 1w ago · link · parent

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

comment 1w ago · link · parent

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.

comment 2w ago · link · parent

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

comment 2w ago · link · parent

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.

comment 2w ago · link · parent

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)

comment 2w ago · link · parent

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.

comment 2w ago · link · parent

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.

comment 2w ago · link · parent

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.

comment 2w ago · link · parent

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.

comment 2w ago · link · parent

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).

comment 1mo ago · link · parent

4 still shipped with buttons my mum could recognise.

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

comment 1mo ago · link · parent

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.

comment 1mo ago · link · parent

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

comment 1mo ago · link · parent

v4 was a worse overthinker. 4.1 mostly fixed that. It still prefers to plan everything before making a single file change.

If I'm impatient I switch to Luna for a single turn just to get it started and let DS continue.

comment 1mo ago · link · parent

Excuse me, Hole of America.

comment 1mo ago · link · parent

The container is useless. Files based on a newer codec won't display anyway.

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

And alternative rendering methods like Commanche's voxel weren't doable on the GPU for a long time.

comment 1mo ago · link · parent

Off-loads sample mixing to the sound card. Computers of that era were slow enough that doing 44100 additions per second was expensive (IIRC quake had 8Khz samples anyway).

comment 1mo ago · link · parent

HomeKit is so painfully slow and flaky.

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

DeepSeek has very good bang for the buck if you're paying API prices.

comment 1mo ago · link · parent

1:1 rewrites from C are perfectly doable. You can use C FFI and rewrite function by function, bug for bug, while checking snapshot tests. I've converted a few libraries this way, before AI. I caught C bugs this way, and then was able to further refactor and improve the Rust version. In the end, I'm super happy with the results and I'm never touching autotools or cmake again!

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 been over 10 years since Rust 1.0 was released, and C programmers still see it as a new fad. Yet, the same article mentions, but fails to connect the dots, that even the large slow-moving corporations bankrolling the foundation have already adopted Rust and are leaving C as fast as they can.

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.

comment 1mo ago · link · parent

Lack of conscience is a unique advantage.

comment 1mo ago · link · parent

but who's using it? Where are the hordes of SPARC users craving cutting-edge software?

comment 1mo ago · link · parent

Is it actually any different hardware?

They're advertising is as a Siri thing, but obviously it doesn't run any AI locally. What new hardware does it need to make an HTTP request?

comment 1mo ago · link · parent

UK typically uses air-to-water heat pumps with convection radiators. The passive radiators are useless for cooling, and condensation on pipes in walls can be a problem.
12345
168