Bridging async Swift to sync C: Four Functions to Use Apple's LLM from Any Language
Apple’s Foundation Models framework (macOS 26) provides access to a ~3B parameter LLM that runs on-device, for free, with no API key. But here’s the catch: it only speaks Swift. And not just any Swift — Swift async. Is your tooling in Python? No bindings. Rust? Nope. A shell script? Forget it. The cheapest LLM in the world (literally free) is trapped behind two barriers: the language and the concurrency model. ...