Better HN
topnewbestaskshowjobs
Log inSign up

yoshuaw

682 karma · joined Sep 8, 2014 (12y ago) · 180 submissions

Be kind to people, be ruthless to systems.

Concurrent Computing ←

Programming Language Design ←

WebAssembly and Rust ←

u(๑╹ᆺ╹)

Submissions

comment 1mo ago · link · parent

Return Type Notation (RTN) I believe is the big one blocked by the new solver. This is the primitive that makes it possible to add bounds to futures returned by async functions. This should look something like: `where <T as Trait>::method(..): Send`.

This is one of two remaining features needed to make Async Functions in Traits (AFITs) practical. Dyn dispatch support being the other missing feature, though that isn't blocked by the new solver.

2.

Hyperlight 0.17.0(hyperlight.org ↗)

2 points · by yoshuaw · 3mo ago · discuss

3.

WASI 0.3.1(github.com ↗)

2 points · by yoshuaw · 3mo ago · discuss

comment 4mo ago · link · parent

Niko Matsakis (T-Lang) has since also published a post on only-bounds: https://smallcultfollowing.com/babysteps/blog/2026/06/09/onl.... Sized hierarchy, Move, and Forget/Leak all share the same fundamental compat issues, so we're all pretty motivated to solve the underlying problems in a way that enables all the other features to be built on top.

comment 4mo ago · link · parent

You're right that this is an important issue. I wrote a post explaining this in some detail, so at the very least we avoid having the same problem with generator functions:

https://blog.yoshuawuyts.com/gen-auto-trait-problem

comment 4mo ago · link · parent

One of my favorite quotes on this topic is:

"Type systems are just the parts of formal verification we've figured out how to make fast."

comment 4mo ago · link · parent

I thought this was a good explainer on what In-toto is, when to use it, and how it's different from e.g. Sigstore:

https://nesbitt.io/2026/05/24/signing-is-for-the-bad-days.ht...

comment 4mo ago · link · parent

Sodium-ion batteries are now also finally coming to market (CATL Naxtra) [1]. This gives me a lot of hope for the future.

[1]: https://www.electrive.com/2026/06/26/catl-targets-up-to-2000...

comment 4mo ago · link · parent

My favorite base 10 clock is Neralie: http://wiki.xxiivv.com/site/time.html

> The Neralie clock has two groups of 3 digits, called the beat & the pulse. A beat contains 1000 pulses, and equivalent to 86.4 seconds. A day is 1000 beats, or a million pulses.

comment 5mo ago · link · parent

Worse specs? Sure. Worse value? I don't think so. Worse accuracy? Perhaps not either.

A price of 30 EUR makes this sensor really easy to pick up. For the same price as one Aranet (~180 EUR) the typical household can place a sensor in every room of the house. Which provides far more accurate readings for the whole house than just one high-end sensor in one room.

comment 5mo ago · link · parent

This is just days after EU courts ruled private jet construction counts as a "green investment": https://www.reuters.com/business/environment/eu-court-says-p...

comment 5mo ago · link · parent

Mozilla is currently prototyping this in the browser [1] and measured 45% reduced overhead compared to calling DOM APIs through JS glue. The Chrome team has also expressed their interest. That's not a guarantee it will ever land of course; but I'm cautiously optimistic we'll get there eventually.

[1]: https://hacks.mozilla.org/2026/02/making-webassembly-a-first...

comment 5mo ago · link · parent

Seconding this. Writing .wast files by hand is kind of fun as a novelty, but it's in no way something I'd want to maintain interfaces in.

Declarative interfaces via the WIT format are so much more readable in comparison; I'm really happy that's the direction we took for the component model.

comment 5mo ago · link · parent

Thank you!

comment 5mo ago · link · parent

Hey everyone, we just published the announcement post for WASI 0.3 on the Bytecode Alliance blog:

https://bytecodealliance.org/articles/WASI-0.3

The current link is just the release notes and covers only the interface-level changes. The announcement post goes into more detail on what's new in WASI 0.3, how it differs from WASI 0.2, and includes examples.

comment 5mo ago · link · parent

If you want compilers to be able to natively target browsers and access the browser DOM APIs, then you need to define some kind of contract between browsers and compilers on how to call APIs in one from the other. That is what the Wasm Component Model provides.

Perhaps some people are happy to keep the status quo where each call between Wasm and the browser needs to roundtrip through a JS glue layer. But personally I'm excited about a future where that is no longer needed.

comment 6mo ago · link · parent

I'm personally quite excited for Matter Casting. I haven't actually looked into the details of casting protocol itself, but I've been really enjoying my Matter devices at home and would love for my screens and speakers to integrate with the standard as well.

comment 8mo ago · link · parent

I've found old buildings to have generally worse air quality than newer buildings because of a lack of mechanical ventilation.

comment 8mo ago · link · parent

For the past seven years I've been urging people to stop using `select!` in async Rust code and use dedicated structured control flow primitives instead. Correct use of `select!` cannot be guaranteed by the compiler [1], and so it's unsurprising it leads to bugs.

For the first example the better option would be to use the `race` operation [2]. For the second it would be better to use `ConcurrentStream` [3]. Many (but not all) of the issues people have with cancellation in async Rust can be improved with the advice: "don't use select!".

[1]: https://blog.yoshuawuyts.com/futures-concurrency-3/#issues-w...

[2]: https://docs.rs/futures-concurrency/latest/futures_concurren...

[3]: https://docs.rs/futures-concurrency/latest/futures_concurren...

comment 9mo ago · link · parent

The other side of the story here is also worth considering: native support in browsers provides a stable compile target for language toolchains. It'd be really nice if targeting the web from e.g. Kotlin, Swift, or Rust becomes just a matter of passing the right flag to the compiler.

comment 9mo ago · link · parent

I think it's less about unlocking new scenarios per se, and more about making existing scenarios better. If given the choice I'll generally prefer to write my code in Rust. But with native Wasm Component-based DOM bindings that same code will now run twice as fast.

comment 10mo ago · link · parent

This is the same author who found and reported ABI incompatibilities between clang and gcc: https://faultlore.com/abi-cafe/book/trophies.html — Given these incompatibilities have since been addressed, I think it's fair to say there were indeed issues with C.

comment 10mo ago · link · parent

A lot of us are our own instance admins, with our own accounts being the only accounts associated with our domains. I don't self-host though; I pay a dedicated hosting provider to handle this for me. This means I end up having a very similar relationship to my Mastodon provider as to my email- and cloud storage providers.

comment 10mo ago · link · parent

> I always forget the order of precedence for FnOnce/Fn/FnMut

The way I remember the ordering is by thinking about the restrictions the various Fn traits provide from a caller's perspective:

  1. FnOnce can only ever be called once and cannot be called concurrently. This is the most restrictive.

  2. FnMut can be called multiple times but cannot be called concurrently. This is less restrictive than FnOnce.

  3. Fn can be called multiple times and can even be called concurrently. This is the least restrictive.
So going from most to least restrictive gives you `FnMut: FnOnce` and `Fn: FnMut`.

comment 10mo ago · link · parent

If we're talking sanitation tech: I'm personally really excited by the further miniaturization of (far)-UVC light sources [1]. Far-UVC lamps deactivate airborne pathogens, but cannot penetrate the human eyes or skin making them generally safe to use.

Right now they do require rather bulky lamps (Krypton Chloride), but last I checked there had been promising advancements in producing far-UVC LEDs [2]. Which should make installation and deployment of far-UVC both more practical and economical in the future.

[1]: https://en.wikipedia.org/wiki/Far-UVC

[2]: https://ece.engin.umich.edu/stories/ece-spinout-company-ns-n...

comment 11mo ago · link · parent

I couldn't agree more. And in the rare cases where destructors do need to be created inline, it's not hard to combine destructors with closures into library types.

To point at one example: we recently added `std::mem::DropGuard` [1] to Rust nightly. This makes it easy to quickly create (and dismiss) destructors inline, without the need for any extra keywords or language support.

[1]: https://doc.rust-lang.org/nightly/std/mem/struct.DropGuard.h...

comment 1y ago · link · parent

The differences in regional prices are interesting to me. From a recent article comparing BYD's offerings [1]:

> The BYD Dolphin EV sells for the equivalent of around $16,500 in China, while in Germany, with the same battery pack, it’s over $37,400, or more than double the price. The Seal costs around $30,300 in China, while a similar version currently on sale in Germany is over $48,000. Reuters found Dolphin prices outside China between 39% and 178% higher, while those for the Seal ranged between 30% and 130% higher.

Affordable EVs are here already, though access to them is not evenly distributed.

[1]: https://insideevs.com/news/718036/byd-major-ev-markup-prices...

comment 1y ago · link · parent

Some anecdata from my kitchen, which has an air quality monitor positioned approx. 4 meters away from the stove:

- Most days when cooking PM2.5 doesn't exceed 5ppm.

- I accidentally burned some vegetable oil this week, and PM2.5 shot up to around 70ppm.

- I fried up pancetta a little too hot a few months ago, rendering the fat entirely, and both PM2.5 and PM10 went up to >999ppm.

comment 1y ago · link · parent

Aren't the entities who manage relays the ones who broker access to the network? E.g. if you subscribe to a relay, you must also subscribe to their moderation decisions.

Say if Bluesky (the company) bans someone, that person could still have the keys to their data, but their feeds will no longer be "re-broadcast" by that company's servers - right?

123456