swift
swift copied to clipboard
WebAssembly support for the Swift programming language
### TODO: - [ ] Check core libraries and tools are compatible with the toolchain - [ ] JavaScriptKit - [ ] carton - [ ] Tokamak - [ ]...
Recently a lot of work on thread support has been done in WASI: https://github.com/WebAssembly/wasi-threads After our toolchain support threading, it will unlock offloading computationally heavy operations to threads. Here is...
Encounter some `Thread` related WASM error recently. ```swift import Foundation // Works on Ubuntu and macOS @inline(__always) func performOnMainThread(_ block: @escaping () -> Void) { if Thread.isMainThread { block() }...
Steps to reproduce: - Create a new package with `swift package init --type executable` - Add JavaScriptKit as a dependency. My **Package.swift** file is as follows: ``` // swift-tools-version: 5.9...
The new version of WASI specification is growing and recently got stable. The new version adds HTTP system interface and it unblock us to support networking features in Wasm port...
Currently, Swift on VSCode lacks cross-compilation support and it resulted in poor code completion and error reporting while editing code. ## To Do - [ ] Support Swift SDK-based cross...
## Description I'm not sure which behavior is the expected behavior, but it seems that the test executable requires external file access to run if it is built with the...
build wasm file is very big golang is 2mb+ rust is 20k+ this is 9.5mb
## Description The Swift compiler crashes when building a C target for `wasm32-unknown-wasi`. This issue doesn't seem to occur when building for other targets. ## Reproduction ```shell git clone https://github.com/kkk669/swiftwasm-no-prototype-example...
**Description** While trying to compile the same swift to wasm from both linux and macos, I noticed that some builds would fail depending on the host OS for the same...