4 ms·
This sounds interesting! I didn't know browsers could execute Swift. Do you have any links to share of examples? (I don't see any examples in the documentation)
by drusepth 5y ago
This sounds interesting! I didn't know browsers could execute Swift. Do you have any links to share of examples? (I don't see any examples in the documentation)
- andreasley 5y agoBrowsers can't execute Swift code. The books are loaded directly into the Swift Playgrounds app. As for links, there are very few subscriptions published – and probably none yet that work with Swift Playgrounds 4.0.
- nexuist 5y agoIt's not executed in-browser, it runs in the Swift Playgrounds app. Think of it like an RSS feed that you can add to the app, and it'll show you new chapters of the book once they're published.
- nikooellegaard 5y agoIf you're interested in it you can compile swift to wasm (webassembly) which can run in the browser natively https://swiftwasm.org/ https://swiftwasm.org/ This won't be it executing editable Swift like on the website and it'll require some binding to send and receive data to the website but it will indeed be swift being executed on the website