A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://swiftwasm.github.io/swiftwasm-book/ below:

Introduction - Swift and WebAssembly

Introduction - Swift and WebAssembly
  1. 1. Introduction
  2. 2. Getting Started
    1. 2.1. Installation
    2. 2.2. Porting code
    3. 2.3. Creating a browser app
    4. 2.4. JavaScript interoperation
    5. 2.5. Concurrency
    6. 2.6. Multithreading
    7. 2.7. Testing your app
    8. 2.8. Visual Studio Code
    9. 2.9. Debugging
    10. 2.10. Troubleshooting
  3. 3. Examples
    1. 3.1. Importing function
    2. 3.2. Exporting function
    3. 3.3. Example projects
  4. 4. Contribution Guide
    1. 4.1. How to build the toolchain
Swift and WebAssembly Introduction

Welcome to the SwiftWasm Documentation!

SwiftWasm is an open source project to support the WebAssembly target for Swift.

The goal of this project is to fully support the WebAssembly target for Swift and to be merged into the upstream repository.

WebAssembly is described on its home page as:

WebAssembly (abbreviated as Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.

We use LLVM as a compiler backend to produce WebAssembly binaries. Our resulting binaries also depend on WASI, which is a modular system interface for WebAssembly. WASI is mainly required to compile Swift Standard Library.

Important note

In 2024, Apple introduced Swift Embedded. While both projects benefit from each other, it is important to understand that they are different targets at the build phase, consequentially with different sets of abilities. Embedded Swift very limited but can produce small binaries. Example.

Project Status

All compiler and standard library changes have been upstreamed to the official Swift repository, and the upstream CI is now testing WebAssembly targets.

The remaining works are:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4