WWDC24: Go small with Embedded Swift | Apple
Channel:Apple Developer · Length:22:17 · Published:2024-06-11 · Views:138063
Summary
An Apple WWDC24 session introducing Embedded Swift, a subset of Swift with no runtime that targets tiny microcontrollers. It demonstrates the idea on an off-the-shelf Matter smart home device.
Why HN recommends it
HN cites it as Apple's own explanation of why Embedded Swift exists and what it targets.
At WWDC24, we shared a session on embedded Swift, which is available on YouTube — HN, 2025
Programming language design · Compilers, interpreters & program analysis · Embedded systems & DIY electronics
Subtitles (excerpt)
Hello and welcome. My name is Kuba Mracek, and as you know, Swift is a powerful language that can be used to build applications both for Apple platforms and beyond. Today, we’re going to take it to new and exciting, but smaller, places — embedded devices. I’ll start by introducing Embedded Swift. Then I’m going to show you in a demo how it can be used to build something practical. I’ll go over how Embedded Swift is different from the Swift you use to write desktop and mobile applications, and finally I’ll share resources that you can explore to learn more. Let’s jump in! Today, you can use Swift to build many different types of software: You can target mobile devices, desktop computers, servers. In this session, we’re going to talk about using Swift in a new area: on embedded devices, which we are surrounded by in our daily lives — smart lights, thermostats, alarms, smart fans, music devices, light strips, and many other common gadgets are built using programmable microcontrollers. Today, I would like to show how you — as either a hobbyist or even a more serious developer — can use Swift to program these embedded devices. For that, we’re introducing Embedded Swift — a new compilation mode specifically suited for constrained embedded devices.
On Hacker News
Not for much longer, replacing it with Swift is one of the reasons why Swift Embedded subset came to be. "Why Embedded Swift" [VIDEO] — pjmlp, 2025-10
Of course! Tons of examples here: [LINK] At WWDC24, we shared a session on embedded Swift, which is available on YouTube: [VIDEO] More documentation on embedded Swift tooling here: [LINK] (Disclosure: I work at Apple.) — timsneath, 2025-02
Although opinions inside Apple about Swift vary, they seem to be investing in low level Swift for embedded, kernel use, and programming the “Secure Enclave” subsystem. They certainly have many opportunities to use it for headphones, AirTag, flash driver, etc, beyond the very believable but less embedded use in kernel/Secure Enclave. See also the wwdc session where they propose swift for building … — jitl, 2025-02
I don't see any benefit of using this over Rust, C or C++. I guess if you have been coding in swift your entire career, it's just one less language to learn if you decide to get into IoT note: even apple engineers hate Xcode, +1 for neovim ( [VIDEO] ) — xyst, 2024-06
Related videos
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- Rich Harris - Rethinking reactivity · You Gotta Love Frontend · 36:45
- 8-bit computer update · Ben Eater · 6:53
- Reverse emulating the NES to give it SUPER POWERS! · suckerpinch · 22:21
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- “Hello, world” from scratch on a 6502 — Part 1 · Ben Eater · 27:24
- William Byrd on "The Most Beautiful Program Ever Written" [PWL NYC] · PapersWeLove · 1:31:05
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51
- Brian Goetz - Stewardship: the Sobering Parts · ClojureTV · 1:03:30
- JavaScript: The Good Parts · Google TechTalks · 1:03:47