# Swift for Wasm Q3 2025 Updates

**URL:** <https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956>\
**Category:** Swift for WebAssembly\
**Created:** [September 4, 2025, 9:51am UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956 "2025-09-04T09:51:12Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![7ombie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/7ombie/32/36317_2.png) [@7ombie](https://forums.swift.org/u/7ombie)\
**Post date:** [September 18, 2025, 1:34pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/21 "2025-09-18T13:34:15Z")

</div>

Thank you, @kateinoigakukun and @Max_Desiatov. That makes sense.

I normally write WebAssembly by hand (using WAT) and interop with JavaScript directly (just for performance, manual memory management etc), so never needed anything from libc.

> Additionally, you don't pay for what you use with Embedded Swift. With full optimizations unused WASI imports are removed from the final binary, so If you need only a heap allocator and nothing else, you'll technically get a WASI-less binary even with a WASI triple.

Makes perfect sense. Thanks again.

---

<div class="post-metadata">

**Author:** ![7ombie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/7ombie/32/36317_2.png) [@7ombie](https://forums.swift.org/u/7ombie)\
**Post date:** [September 18, 2025, 1:36pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/22 "2025-09-18T13:36:54Z")

</div>

Swift's Wasm backend doesn't (officially) support the Web??

---

<div class="post-metadata">

**Author:** ![Max\_Desiatov](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/max_desiatov/32/20654_2.png) [@Max\_Desiatov](https://forums.swift.org/u/Max_Desiatov)\
**Post date:** [September 18, 2025, 1:48pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/23 "2025-09-18T13:48:37Z")

</div>

It does support browser use cases if that's what you're referring to. As you'll probably end up using JavaScript bridging for that anyway, I'd recommend checking out [the corresponding JavaScriptKit tutorial](https://swiftpackageindex.com/swiftwasm/JavaScriptKit/0.36.0/tutorials/javascriptkit/hello-world).

---

<div class="post-metadata">

**Author:** ![7ombie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/7ombie/32/36317_2.png) [@7ombie](https://forums.swift.org/u/7ombie)\
**Post date:** [September 18, 2025, 2:10pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/24 "2025-09-18T14:10:52Z")

</div>

Nice! I must have misunderstood @kateinoigakukun when they said:

> You can still use `wasm32-unknown-none-wasm` target for that purpose, although we don't actively support it

I thought they were referring to the browser.

Thank you, @Max_Desiatov. I'll read the JS tutorial today (I need to study the WebGPU example as well).

Are you familiar with [WASM-4](https://github.com/aduros/wasm4) (the fantasy console)? I'd like to explore using Swift in a similar way, but creating a bespoke 'console' for each game (kinda like a fantasy arcade machine), using regular Web APIs to implement the various 'helper chips' (for rendering sprites, audio etc).

I'll look into it some more. Thanks again.

---

<div class="post-metadata">

**Author:** ![sliemeobn](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sliemeobn/32/27698_2.png) [@sliemeobn](https://forums.swift.org/u/sliemeobn)\
**Post date:** [September 18, 2025, 2:11pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/25 "2025-09-18T14:11:03Z")

</div>

> [@7ombie](#):
>
> Swift's Wasm backend doesn't (officially) support the Web??

> **[Flappy Swift](https://sliemeobn.github.io/flappy-swift/)**

> **[Swiftle](https://sliemeobn.github.io/elementary-dom/)**

using official toolchains, running officially in official browsers. are you not entertained?

---

<div class="post-metadata">

**Author:** ![7ombie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/7ombie/32/36317_2.png) [@7ombie](https://forums.swift.org/u/7ombie)\
**Post date:** [September 18, 2025, 2:11pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/26 "2025-09-18T14:11:56Z")

</div>

@sliemeobn - Epic! Thanks.

---

<div class="post-metadata">

**Author:** ![Max\_Desiatov](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/max_desiatov/32/20654_2.png) [@Max\_Desiatov](https://forums.swift.org/u/Max_Desiatov)\
**Post date:** [September 18, 2025, 3:39pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/27 "2025-09-18T15:39:02Z")

</div>

> [@7ombie](#):
>
> Nice! I must have misunderstood @kateinoigakukun when they said:
> 
> > You can still use `wasm32-unknown-none-wasm` target for that purpose, although we don't actively support it
> 
> I thought they were referring to the browser.

We don't actively support `wasm32-unknown-none-wasm` in a sense that you can't do much when using it without a lot of effort for the reasons stated above: you won't have classes or basic collections working without an allocator, `Set` and `Dictionary` won't work without RNG etc.

If you provide your own libc, use it at your own risk. In turn, when using that in the browser, you'll have to provide your own host imports implementation to replace existing WASI shims. At that point everything's so custom I wouldn't really recommend it. Whatever goes wrong in the process of setting it up would be much harder to debug than the existing WASI setup you get out of the box.

---

<div class="post-metadata">

**Author:** ![7ombie](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/7ombie/32/36317_2.png) [@7ombie](https://forums.swift.org/u/7ombie)\
**Post date:** [September 18, 2025, 4:05pm UTC](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956/28 "2025-09-18T16:05:12Z")

</div>

> [@Max\_Desiatov](#):
>
> We don't actively support `wasm32-unknown-none-wasm` in a sense that you can't do much when using it without a lot of effort for the reasons stated above: you won't have classes or basic collections working without an allocator, `Set` and `Dictionary` won't work without RNG etc.

I see. Thanks. I wasn't getting that. Thank you for your patience. I need to just dive in, and use it.

[Previous page](https://forums.swift.org/t/swift-for-wasm-q3-2025-updates/81956.md?page=1)
