HackerTrans
トップ新着トレンドコメント過去質問紹介求人

yoshuaw

656 カルマ登録 12 年前
Be kind to people, be ruthless to systems.

Concurrent Computing ←

Programming Language Design ←

WebAssembly and Rust at Microsoft ←

u(๑╹ᆺ╹)

投稿

Hyperlight WASM: Fast, secure, and OS-free

opensource.microsoft.com
234 ポイント·投稿者 yoshuaw·昨年·86 コメント

コメント

yoshuaw
·21 時間前·議論
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...
yoshuaw
·一昨日·議論
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.
yoshuaw
·9 日前·議論
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.
yoshuaw
·11 日前·議論
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...
yoshuaw
·先月·議論
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...
yoshuaw
·先月·議論
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.
yoshuaw
·先月·議論
Thank you!
yoshuaw
·先月·議論
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.
yoshuaw
·先月·議論
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.
yoshuaw
·2 か月前·議論
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.
yoshuaw
·3 か月前·議論
I've found old buildings to have generally worse air quality than newer buildings because of a lack of mechanical ventilation.
yoshuaw
·4 か月前·議論
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...
yoshuaw
·5 か月前·議論
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.
yoshuaw
·5 か月前·議論
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.
yoshuaw
·5 か月前·議論
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.
yoshuaw
·6 か月前·議論
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.
yoshuaw
·6 か月前·議論
> 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`.
yoshuaw
·6 か月前·議論
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...
yoshuaw
·7 か月前·議論
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...
yoshuaw
·8 か月前·議論
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...