Write Swift Offline in the Browser – Swift Interpreter and Wasm
Posted3 months agoActive3 months ago
swiftly.shTechstory
calmpositive
Debate
10/100
SwiftWebassemblyInterpreter
Key topics
Swift
Webassembly
Interpreter
The Swiftly.sh project allows users to write and run Swift code in the browser using a Swift interpreter and WebAssembly, sparking interest and discussion about its potential applications and limitations.
Snapshot generated from the HN discussion
Discussion Activity
Light discussionFirst comment
N/A
Peak period
2
0-1h
Avg / period
1.5
Key moments
- 01Story posted
Oct 2, 2025 at 12:34 AM EDT
3 months ago
Step 01 - 02First comment
Oct 2, 2025 at 12:34 AM EDT
0s after posting
Step 02 - 03Peak activity
2 comments in 0-1h
Hottest window of the conversation
Step 03 - 04Latest activity
Oct 2, 2025 at 1:36 AM EDT
3 months ago
Step 04
Generating AI Summary...
Analyzing up to 500 comments to identify key contributors and discussion patterns
ID: 45446342Type: storyLast synced: 11/17/2025, 12:09:46 PM
Want the full context?
Jump to the original sources
Read the primary article or dive into the live Hacker News thread when you're ready.
It's another project for writing Swift in the browser.
Its entirely free and runs offline directly from your browser - you dont need Xcode and it works on any device (Mac, windows, chromebook etc).
I have lots of ideas for where we can take this from saving and sharing snippets to ota code updates in apps.
if you're curious how it works I wrote up a lil detail linked in the footer on the site.
TLDR - its a custom Swift Interpreter written in Swift and compiled to wasm - it works in 2 parts:
1. a "Compiler" that transforms Swift code to a custom intermediary format 2. a VM that can evaluate the intermediary format at runtime
Supports core features (functions, closures, control flow, optionals, collections, string interpolation) - more coming soon.
Would love feedback on what you’d do with it or features you’d want next.