Skip to content
View asaptf's full-sized avatar

Block or report asaptf

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
asaptf/README.md

Andrey Sapunov

I wrote an operating system in Swift. It serves its own website: swiftos.tech.

Software engineer in Barcelona. I build AI tooling in Swift, because AI doesn't have to speak Python, and I write books that explain hard things (LLMs, quantum computing) to programmers, with code that runs.

142★ on the OS · two books, on LLMs and on quantum computing · two HackerNoon top stories

Start here

Books

How LLMs Work: From Zero to Your Own Transformer Tokens, embeddings, attention and training, built up from nothing. Every example is runnable Swift tested on a Mac, not pseudocode. EN: Kindle · paperback · Google Play | ES: amazon.com · amazon.es | Code: EN · ES · RU

Not Faster, Just Different Quantum computing for programmers: how a quantum computer really works, and when you don't need one. No physics degree, no mysticism. The code runs on a laptop, then on a real IBM quantum processor, and the book ends with a quantum simulator written from scratch in Swift. EN: Amazon | ES: amazon.es · amazon.com | RU: Google Play | Code: EN · ES · RU Companion: quantum-visual-sim, a circuit simulator where amplitudes are arrows that split, turn and cancel. 1–8 qubits, Bloch sphere, export to Qiskit and OpenQASM 3.

Open source

Project What it is
swift-os An OS from scratch in Embedded Swift for 64-bit ARM. MMU-isolated processes, SMP, a pure-Swift TCP/IP stack with TLS, sshd. Runs nginx over HTTPS and Node.js 24 with npm, boots on real hardware. A learning project, not production.
swift-extract Instructor for Swift. Declare a type, point it at a PDF, photo or text, get back a typed, validated instance. Any LLM: Apple Intelligence, MLX, llama.cpp, OpenAI, Anthropic, Gemini.
swift-adapt On-device LoRA personalization for iOS and macOS. Trains an adapter locally and promotes it only if it passes a statistical test against the current one. 100 steps on Qwen3-4B in 15 s on an M5 Pro. Openly unfinished.
swift-language-models A textbook you can run: n-gram, hand-built autograd, a GPT on MLX, then RAG. Companion to the LLM book.
NeuralBASIC Learn neural networks by poking them in the browser. Live decision boundaries, five chapters, a Socratic AI tutor that never pastes the answer.

Writing

Apps

  • TabletBasic (source): a QuickBASIC 4.5-style IDE for iPhone, iPad and Mac, with a BASIC interpreter written from scratch in Swift.
  • Voice Agent Builder: the product side of the voice-to-voice article.
  • DosMac: a native home for DOS software on Mac and iPhone. Early dev preview.
  • Everything else: App Store · Google Play

Elsewhere

By day I'm a software engineer at Cledara.

Questions about SwiftOS, on-device models or either book? Write to me on LinkedIn.

HackerNoon · LinkedIn · swiftos.tech

Pinned Loading

  1. swift-os swift-os Public

    A real operating system written from scratch in Embedded Swift for 64-bit ARM: MMU-isolated processes, capability-based security, an in-kernel pure-Swift TCP/IP stack — and it runs nginx, Node.js a…

    Swift 142 7

  2. swift-language-models swift-language-models Public

    From-scratch language models in Swift: n-gram, neural autograd, a MLX GPT, and RAG.

    Swift 14 2

  3. swift-extract swift-extract Public

    Typed structured extraction from PDFs, photos & text via any LLM — Instructor for Swift, document-first

    Swift 34

  4. swift-watermark-remover swift-watermark-remover Public

    On-device multi-pass text watermark remover for Apple Silicon (Swift + MLX)

    Swift 1

  5. swift-adapt swift-adapt Public

    On-device LoRA personalization for iOS and macOS. Trains, evaluates and rolls back adapters locally — no server, no Python.

    Swift 1

  6. quantum-visual-sim quantum-visual-sim Public

    A visual quantum circuit simulator in the browser: watch amplitudes split, turn and cancel. Companion to the book Not Faster, Just Different.

    TypeScript