Skip to content

Comment on Dart 3.4: WASM and Macros preview

Comments

I’m excited to see wasmgc in the browser - which should let a lot more languages compile to small, fast webassembly bundles.

What’s the state of wasmgc? Is it supported by the major browsers yet? How big are dart apps compiled to wasm?

What’s the state of wasmgc? Is it supported by the major browsers yet?

https://docs.flutter.dev/platform-integration/web/wasm#backg...

Chromium and V8 released stable support for WasmGC in Chromium 119. Note that Chrome on iOS uses WebKit, which doesn't yet support WasmGC. Firefox announced stable support for WasmGC in Firefox 120, but currently doesn't work due to a known limitation.

You can also check here: https://webassembly.org/features/

How big are dart apps compiled to wasm?

I just did `dart compile wasm main.dart -O4` with an empty dart file and got a 68k wasm file. That gzip's to 24K.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.