Portfolio
Featured apps, libraries, and tools — organized by category.
Create stunning mathematical animations with a powerful GUI application. Microsoft Store compatible — no administrator rights required.
narrate("...") in a scene is voiced and merged into the video on renderCreated by: Yu Yao-Hsing
License: MIT License
LaTeX Engine: MiKTeX (or other LaTeX distribution, installed separately)
Format: MSIX Package, 25 MB
Platform: Windows 10+
A complete offline Python animation studio for iPad and iPhone, built on the Manim engine. Edit Python in a Monaco editor, render to MP4 via Apple VideoToolbox hardware encode, drop in LaTeX with busytex — entirely on-device.
ImageMobject snippetCreated by: Yu Yao-Hsing
App Store ID: 6764472686 (manimstudio)
Branch: manim_app/ios
Python: 3.14 (iOS arm64)
Editor: Monaco · Terminal: SwiftTerm + PTY
A full 3D studio for iPhone and iPad, built on Blender’s own engine. Blender’s bpy module is compiled into the app, so modeling, modifiers, sculpting, Grease Pencil drawing, animation and rendering run Blender’s real code on the device, under a touch-native SwiftUI and Metal interface. No account, no subscription, no cloud.
CPython 3.14 is embedded in the app and Blender’s bpy is imported into it. Every button, menu and field runs Blender’s own operators and properties on the main thread, one undo step per action, and Edit › Undo steps Blender’s own undo stack.
After every change the app reads Blender’s evaluated depsgraph — meshes after their modifiers, curves, lights, cameras, the edit mesh’s selection — and draws it with Metal, so the viewport always shows what Blender evaluated.
Vertex, edge and face selection with Blender’s Mesh, Vertex, Edge and Face menus: Extrude, Inset Faces, Bevel, Loop Cut, Knife Project, Spin, Bisect, Merge, Bridge Edge Loops, Grid Fill, plus X/Y/Z and topology mirror, vertex groups and shape keys.
Every modifier Blender holds, in Blender’s stack order with Apply and reordering — Subdivision Surface, Mirror, Array, Boolean, Remesh, Shrinkwrap, Geometry Nodes and more. Sculpt Mode uses Blender’s Essentials brushes with Dynamic Topology, masks and face sets.
Draw with a finger or Apple Pencil, with pressure, the Essentials brushes, layers, materials, onion skinning and keyframes per layer — Blender’s 2D animation tool on a touch screen.
F12 renders an image and Ctrl+F12 an animation, with Cycles on the Metal GPU, EEVEE or Workbench; animations save as H.264 or HEVC MP4. Render, Output and World tabs hold Blender’s own settings.
Relief builds a model from a photo’s depth (Depth Anything V2); Full 3D runs TripoSG, whose weights download only when you ask. The photo never leaves the device.
A Monaco editor with Blender-aware completion and a Python console, driving the same scene the Layout tab shows — as in Blender’s Scripting workspace.
Open and save .blend; import and export glTF, OBJ, USD, STL, PLY, FBX and Alembic. G/R/S, pie menus, numpad views and Blender’s shortcuts sit where Blender has them, and every tool uses Blender’s name.




bpy, cross-compiled for iOS arm64 in python-ios-libQuestions, a scene that won’t open or render, or an idea: in the app, tap ? › Send Feedback, or email euler.yu@gmail.com and say which device and iOS or iPadOS version you use. Bugs can also be reported on GitHub.
Long Cycles renders use a lot of memory on iPhone; lower the samples or the resolution under Render, or use EEVEE, if a render stops. No account, no subscription and no ads — scenes and renders stay on the device (privacy policy).
Created by: Yu Yao-Hsing
Platform: iPhone and iPad, iOS 17.0 or later
App Store ID: 6806630544 (euleryu.blenderkit)
Engine: Blender’s bpy in embedded CPython 3.14; Cycles renders on the Metal GPU
App size: 645 MB, everything on board; only TripoSG’s weights download, on request
License: MIT app source; Blender is GPL-2.0-or-later, its iOS build changes published in python-ios-lib
Status: Live on the App Store — version 1.2, free, Graphics & Design, rated 4+
An independent app, not affiliated with or endorsed by the Blender Foundation. Blender is a registered trademark of the Blender Foundation.
A self-contained developer / scientific / AI workstation for iPad and Mac. Python 3.14, Jupyter notebooks, C, C++, Fortran, pdflatex, and local LLMs — all running on-device, no internet required.
Real Monaco editor in WKWebView. Python IntelliSense with ~70-entry signature DB, hover docs, and live resolve from the embedded Python daemon for numpy / scipy / sklearn / matplotlib / sympy completions.
SwiftTerm-backed terminal piped through a real PTY into the embedded CPython REPL. Type Python directly, or use POSIX-style builtins like ls, grep, ncdu, top, git clone.
busytex (pdftex 1.40.25 + xetex + luatex + bibtex8) running in a hidden WKWebView. TeX Live 2023 preloaded into MEMFS plus a 23 MB overlay with PGF/TikZ/beamer, hyperref, mathtools, microtype, fontspec, CJK.
llama.cpp as an XCFramework — load any Llama / Mistral / Qwen / Phi GGUF model and chat with streaming tokens. ExecuTorch backends for Apple Core ML / XNNPACK kernel-optimized PyTorch inference.
In-process sentence-embedding + vector store over user-imported text / PDF / markdown. Offline image generation via ExecuTorch-runnable diffusion models. All models stay in the app sandbox — no tokens leave the device.
iOS document browser with multiple concurrent workspaces, also visible in the Files app. Auto-save debounced ~600 ms after every keystroke + on run, tab-switch, view-disappear, and app-backgrounding. Tombstone system records deleted files so seeders don't resurrect them.
Monkey-patched torch.matmul / mm / bmm / addmm, F.linear, and SDPA onto Apple's MPSMatrixMultiplication via ctypes → Swift @_cdecl. 2–10× speedup at training sizes. fp32/fp16 native, bf16 via fp32 cast. Autograd-aware via torch.autograd.Function. Auto-installed via sitecustomize.py — zero user code changes.
Live RAM sparkline in the top-right tab bar, command palette (⌘P), editor status bar, tab slide animation, drag-to-select in the terminal (via SwiftTerm doubleTap), and a real Stop button that interrupts the running task.
Opt-in _cb_training.py (~12 KB pure Python) ships OOMGuard, MemoryProfiler, KVCache, and TrainingMonitor. Plus a pure-Python safetensors reader (mmap + struct + torch.frombuffer) so transformers.from_pretrained() works without Rust crates.
Train a LoRA adapter on a GGUF base model in-place via llama.cpp's Metal backward kernels (LlamaFinetuner.swift). Closes the train→deploy loop: fine-tune with PyTorch + HF Trainer (Metal bridge for speed), then convert the .pt to a GGUF adapter with a pure-Python writer for fast Metal inference.
js shell builtin backed by Apple's JavaScriptCore (zero bundle cost) — persistent Node-style REPL globals, js -e one-liners, and js script.js file execution, sitting alongside the python builtin.
IntelliSense engine moved from a 3 s blocking loop to DispatchSource event watch (no held threads), Monaco file opens batched 3 JS round-trips → 1 (~100 ms saved per open), and C/C++/Fortran language providers lazy-register only on first non-Python file.
ChatGPT-style chat panel — streaming replies that render compiled LaTeX inline, code-aware assists into the editor, and a one-tap scratch file when there's no target. Runs on Apple's Foundation Models (on-device, or Cloud Pro) or any local GGUF; OpenAI, Anthropic and Ollama are optional providers. With an on-device model, no tokens leave the iPad.
Step through Python with a visual debugger wired into Monaco, data Quick Look for inspecting variables / arrays / frames, plus a redesigned Libraries tab, richer System Info, and a hidden debug panel with a native-lib test probe.
Tap an .ipynb and it opens in the editor box as stacked cells, not raw JSON. Per-cell Run on a persistent in-process kernel, inline plots and HTML output, markdown cells with KaTeX, saved back as nbformat v4.
NORMAL / INSERT / VISUAL / V-LINE modes inside Monaco, toggled from the settings sheet (⇧⌘,) alongside the AI provider and inline completion.
Full import bpy from python-ios-lib — Cycles and Eevee rendering on the Apple GPU. Saving a .blend opens an interactive 3D preview.
cpu-z and gpu-z terminal builtins measure the device when run and map the results onto the CPU-Z and Geekbench 6 Compute scales, labelled as estimates.
The Libraries tab opens on an interactive ring chart of the whole app's disk footprint — tap a slice to filter the list to it — and every package card shows its true on-disk size.
Created by: Yu Yao-Hsing
Platforms: iPad · iPadOS · Mac Catalyst
Runtime: Python 3.14 + four interpreters
Editor: Monaco (VS Code) in WKWebView
Status: Active Development
Full Python 3.14 runtime for iOS/iPadOS with about 180 offline packages — including native PyTorch, HuggingFace transformers, Rust tokenizers, and Blender bpy. Train on-device. No JIT, App Store safe. Powers CodeBench. Its Metal-accelerated pieces also ship as standalone repos: cairometal and torchmetal.
| Library | Ver |
|---|---|
| PyTorch BETA | 2.1.0 |
| transformers BETA | 4.41.2 |
| tokenizers BETA | 0.19.1 |
| scikit-learn | 1.9.0 |
| onnxruntime NEW | 1.26 · CoreML |
| faiss NEW | 1.9.0 (CPU) |
| sentencepiece NEW | 0.2.0 |
| datasets / evaluate NEW | 4.0.0 / 0.4.6 |
Native PyTorch (95/95 asserts) + Metal GPU bridge (2–10× speedup) + HuggingFace transformers & Rust tokenizers — train on-device
| Library | Ver |
|---|---|
| matplotlib | 3.11.0 |
| Plotly | 6.6.0 |
| manim BETA | 0.19.0 |
145+ mobjects, 73 animations, interactive Plotly HTML charts
| Library | Type |
|---|---|
| PyAV | 17 C exts |
| FFmpeg | 7 dylibs |
| Cairo + Pango | Native iOS |
| Pillow | 11.0.0 |
| offlinai_latex | SwiftMath + 33MB texmf |
| Library | Purpose |
|---|---|
| PyWebView NEW | v5.4.0 — iOS WKWebView |
| requests | HTTP client |
| BeautifulSoup4 | HTML parse |
| NetworkX | Graphs |
| jsonschema | Validation |
| PyYAML | YAML |
| Library | Ver |
|---|---|
| Blender bpy | 5.3.0 |
| OpenCV | 4.10 |
The complete Blender module — Cycles and Eevee rendering on the Apple GPU (Metal) — plus a curated native OpenCV build
| Library | Ver |
|---|---|
| psutil | 5.9.8 |
| watchdog | 4.0.0 |
| moderngl | 5.12.0 |
| svgelements | 1.9.6 |
| decorator NEW | 5.1.1 |
| safetensors | HF deps |
| huggingface-hub | HF deps |
Real VS Code editor in WKWebView with Python signature help, hover docs, and live resolve from Python for numpy / scipy / sklearn / matplotlib / sympy.
Full Latin Modern Type 1 fonts, expl3 (1.3 MB), firstaid, hyphenation, unicode-data, pdftex.map. Math-mode rendering via SwiftMath is unlimited.
ncdu with arrow-key navigation, top with Apple-chip detection, git clone via zipball fetch, universal --help interception.
Edits persist to disk on every keystroke (debounced) plus on run, tab-switch, view-disappear, and app-backgrounding. No more lost edits on reopen.
Files deleted via UI / shell rm / ncdu's d are recorded so starter-script seeders (pip_demo.py, torch_test_all.py) won't re-create them.
Full integration test for the transformers stack passes 24/24. PyTorch ships 95/95 correctness asserts. First public iOS builds for PyTorch + tokenizers.
_torch_metal_bridge.py patches torch matmul / mm / bmm / addmm, F.linear, and SDPA onto Apple's MPSMatrixMultiplication. 2–10× speedup at training sizes. fp32/fp16 native, bf16 via fp32 cast. Autograd-aware, auto-installed via sitecustomize.py.
Real git push / pull / commit via auto-installed dulwich. Plus pywebview FileDialog enum and faulthandler that writes C-level crashes to ~/Documents/log.txt.
pycairo-compatible 2D vector graphics rendered on the Apple GPU — 246 cm_* functions, stencil-then-cover fills, all 28 compositing operators, IOSurface-backed MTLTexture, pixel-diffed vs real cairo. Cairo has no other Metal backend — to our knowledge this is novel. Standalone repo: cairometal — now pip install cairometal on PyPI (macOS arm64 wheel).
App-Store-safe per-op Metal/MPS routing for PyTorch inference — matmul, linear, softmax, layer_norm, gelu, attention — size + dtype gated with bit-exact CPU fallback. fp16 matmul is often hundreds of times faster than CPU. Public MPS only, no private symbols. Standalone repo: torchmetal.
Memory-safe high-res rendering up to 14K without tripping iOS jetsam — bounded GIF buffer, frames stream to mp4 instead of accumulating, and a RAM estimate that now only warns instead of refusing. h264_videotoolbox up to 4K, hevc_videotoolbox above it. Quality selectable 480p→14K, with 8K, 12K and 14K presets.
js shell builtin backed by Apple's JavaScriptCore — zero bundle cost. Persistent REPL globals (Node-style), js -e "code" one-liners, and js script.js file execution. See js-engine.md.
site-packages/Created by: Yu Yao-Hsing
License: MIT
Runtime: Python 3.14 on iOS arm64
Libraries: about 180 packages (native + pure Python)
Platform: iOS 17+ / iPadOS 17+
A virtual PC for iPad and iPhone. Bootbox emulates a complete 64-bit x86 computer in software and boots real operating systems on it — a Linux desktop with a web browser, a Linux terminal with Python and Wine, and Android 12 — with real internet, real multi-core and your files in the Files app. No jailbreak, no sign-in, no server.
An Openbox desktop with a taskbar, terminal, PCManFM, a text editor and Python 3.12, plus bbweb, a WebKitGTK browser tuned for emulation that runs Wikipedia, DuckDuckGo and GitHub inside the emulated PC. Its Web icon can hand a page to the device's own, far faster browser.
Alpine with Python 3.12 and pip backed by uv, ~24 packages pre-installed, mc, a built-in file browser, and wine-staging 11.5 for Windows command-line programs. pip install numpy is pinned to the 1.x line, which runs correctly on the emulated CPU.
A real 64-bit AOSP userspace — framework, ART, System UI and Launcher3, touch and keyboard, a writable /data. A cold boot would take many minutes, so the image carries a snapshot taken at the home screen and resumes from it in seconds. AOSP, so no Google Play.
Each virtual CPU is its own WebAssembly worker, so the cores really run in parallel: at four cores the guest gets about four cores' worth of CPU time. Two by default; pick 1–8 in the toolbar or UEFI Setup — fewer runs cooler, more runs faster.
Iosnet.xcframework embeds gVisor's userspace TCP/IP stack, so the guest's network frames become native sockets on the device. pip, apk, wget and DNS just work, straight to the sites they contact.
The Bootbox folder appears in the iOS Files app through a classic File Provider. Files are hard links, so even multi-GB disk images are never copied. The console's Files tab saves a guest file to the device or copies one in.
CPU-Z (the real Windows program, under Wine), 7-Zip, sysbench, glmark2 and a web benchmark, one at a time or with Run all, with a history you can screenshot.
Import an .iso or .img — your own Windows install media, say — through the Files app and boot it on the 32-bit v86 engine. Paired save-states resume it in about a second. Bootbox ships no Windows.
A GRUB-style boot menu with notes for each system, a classic Aptio-blue UEFI Setup with working RAM, cores, boot-order and network settings, then the serial console on the left and the screen on the right.
iOS gives apps no Hypervisor.framework, so every guest instruction is translated in software and the emulated PC runs at a few percent of a native CPU core. It is built for learning Linux, scripting, retro computing and experiments, not heavy work.
Android needs about 2.4 GB of guest memory, so newer devices with more RAM run it best. More cores run faster but also warmer, since each one is a whole software CPU.
Created by: Yu Yao-Hsing
Platform: iPad and iPhone, iOS 16.0 or later (Swift host app + WKWebView)
App Store ID: 6782149582 (euleryu.bootbox)
Engine: QEMU → WebAssembly, compiled to native code by WebKit's own JIT; no Hypervisor.framework or JIT entitlement
Networking: gVisor userspace TCP/IP via Iosnet.xcframework
Idle: ~3–6% of a host core, from a futex-sleeping engine and tickless guest kernels
App size: 72.8 MB · each system downloads once from GitHub Releases and is cached
License: MIT app source; the engines keep their own (QEMU is GPL-2.0, its modified source published in the repository)
Status: Live on the App Store — version 1.0, free, Utilities, rated 17+
Speech to text on iPhone and iPad, entirely on the device. Record, import, share a file in or paste a link, and the app transcribes it on the Neural Engine in any of 99 languages — then shows how it was said. A Music tab (beta) turns a description into a song with ACE-Step 1.5, also on the device. No account, no servers, no ads.
Record in the app; import audio or video from Files, iCloud or Photos; share a file in from Voice Memos, Files or Mail; or paste a link to an audio or video file and the app downloads it straight from that address.
Auto-detect the language or choose one; Chinese can be written in Simplified or Traditional characters. Four Whisper models from Small (217 MB) to Large V3 Turbo, plus NVIDIA’s Canary; each downloads once, then works offline.
A Live tab writes your speech out while you speak, with NVIDIA’s Nemotron, and stays quick however long you talk.
Open a transcript to see how it was said: pace and how it changed, pauses, pitch and intonation, loudness against the background, a spectrogram, who spoke for how long, hesitations and the most-used words. Tap a pause to listen from there.
Every transcript is kept with its audio and waveform, searchable by title, text or language, with speaker labels; tap a line to play from it. Translate a transcript on the device with Apple’s Translation framework, and export as TXT, SRT, VTT, Markdown or JSON.
Describe the style, mood, instruments and voice, with lyrics if you like, and ACE-Step 1.5 makes the song on the Neural Engine and GPU. Pictures are made from a description too, with Enhance prompt to fill it out.
Created by: Yu Yao-Hsing
Platform: iPhone and iPad, iOS 18.5 or later (background work and lyric detection need iOS 26)
App Store ID: 6764759491
License: MIT (WhisperKit and ACE-Step 1.5 are MIT too)
Status: Live on the App Store — version 1.3.2, free
An app built on Argmax’s open-source WhisperKit library, not that library itself.
A secure remote window into your Mac, with iPhone and iPad keyboard, trackpad, touch and Apple Pencil input. Everything stays on your own network — the Mac's screen is never published to the Internet.
Apple publishes no third-party API to start a Sidecar session, and its stream cannot be embedded in another iPad app. So In-App Display and System Sidecar stay two separate, honestly labelled modes rather than one pretending to be the other — and the App Store build opens the public Displays settings instead of loading private frameworks.
The in-app route mirrors the main display rather than creating a true extra one. For a real virtual Retina display, audio and extended desktop, Apple's own Sidecar is still the better path, and the app says so.
Created by: Yu Yao-Hsing
App Store ID: 6792298083 — one universal listing for iPhone, iPad and Mac (io.sidecarbridge.mac)
Frameworks: SwiftUI · ScreenCaptureKit · Network.framework · Multipeer Connectivity · CryptoKit · VideoToolbox
Transport: Bonjour + Network.framework on port 45454, Multipeer Connectivity as nearby fallback
Status: Live on the App Store — version 1.5, free, 7.4 MB, Utilities, rated 4+
Precision GPS workout tracker for iPhone & Apple Watch. Kalman-filtered location, Velocity Mode for when GPS drops out, HealthKit sync, Live Activities, and route analytics — all in a clean SwiftUI interface, with CarPlay pending Apple approval.
When satellite positioning drops out or degrades — a tunnel, an underground car park, a street between tall buildings — Velocity Mode takes over on its own and keeps recording the route. Speed comes from the phone's vibration, read off how the vehicle shakes; direction comes from the gyroscope, accelerometer and magnetometer; GPS supplies only the first point. It reads the vehicle, so the phone needs to be in a pocket, lying flat or on a mount — held in the hand, the speed signal is lost.
Replayed through the current version and checked against GPS over 94 motorcycle and car journeys (28 hours, 511 km GPS could check) and walks on foot: in a car, distance came out −3.4% against GPS (301 of 312 km) and direction was within 30° of GPS 87% of the time (median error 14°); on a motorcycle −13.3% and 74%; on foot +6.8% and 93%.
The method, its accuracy and where it fails are written up in Recording a Route Without Satellites — Speed from Vibration and Direction from Turns on a Smartphone, Measured Against GPS.
Created by: Yu Yao-Hsing
App Store ID: 6764729098
Frameworks: SwiftUI · CoreLocation · Core Motion · HealthKit · ActivityKit · CarPlay
Stack: Pure Swift / SwiftUI
Status: Live on App Store (approved May 18, 2026)
A compiler and application builder written with nothing but the Python standard library. It turns Python into real machine code — and where it needs C in the middle, it compiles that C with a C compiler it also wrote. No Cython, Nuitka, mypyc, Rust, PyInstaller, assembler, linker, SDK, gcc or clang at any point. Build and runtime dependency lists are literally empty, and the test suite fails if that stops being true.
clang++Fastest and smallest. No interpreter in the artifact, and none on the machine it runs on.
2 ** 70 written down is right; a value the program computes past 263 is not. The other two tiers use the interpreter’s own arithmetic and are exact.The middle, and where the work is. Python → C driving the CPython C API → machine code, through py2bin's own C compiler.
The most complete. Ships your program beside an interpreter that runs it; nothing is translated, so nothing is faster.
| Platform | x86-64 | ARM64 |
|---|---|---|
| macOS | real Intel Mac | native · app |
| Windows | real hardware · app | ARM64 VM |
| Linux | container | container · app |
All six build, and each is held to the same bar — the 889-program corpus compiled for it, every program's output and exit code compared against CPython's. macOS agrees on 886 and differs on 3, inherently: CPython's “Did you mean” needs a live Python frame to suggest from, the repr of a compiled function really is a builtin function's, and "v" is "v" turns on an interning the compiler doesn't reproduce. The cells say how far each target is actually proven, because they differ. “app” marks one a complete third-party GUI application has been built and run on — ManimStudio, 10,100 lines with pywebview, Pillow and manim. Windows x86-64 was run on a physical machine, and that run found four bugs fatal to every Windows program the compiler produced — all in packaging rather than compiled code, none reachable by comparing output, because the program never got as far as a print. macOS x86-64 has run on a real Intel Mac, where Rosetta 2 had passed builds carrying two faults a real Intel CPU refuses outright — a misaligned stack and a stale code signature. Windows ARM64 runs too, on a Windows 11 ARM64 virtual machine — ARM64 instructions on an ARM64 processor — so all six targets have now been executed, none of them under emulation. macOS can also be built as one darwin-universal2 binary holding both slices, which runs on either machine.
py2bin makeAsks which file is the program, which machine it is for, and what shape it should take. Everything else is found or downloaded rather than typed — the other .py files beside it, the libraries it imports, an interpreter for the target, web/ and assets/ if they are there, and an icon if one is.
| Target | What comes out |
|---|---|
| macOS | A compressed .dmg holding the app |
| Windows | One .exe that unpacks itself |
| Linux | One executable |
The application is ManimStudio — also on this page — 10,100 lines with pywebview, Pillow and pyobjc. Built both ways on the same machine, interleaved so drift falls on both equally. Every row is scaled to its own maximum and labelled with the real figure.
Compile time: 16.7 s against Nuitka's minutes — left out of the figure above because “minutes” is not a number to scale a bar against. Nuitka wins the fourth row, and the binary is a third the size because Nuitka compiles every module it reaches while this compiles the program and ships its dependencies as bytecode — 7.8 MB of it, which is where most of the 20 MB comes back.
Speed is one question; agreeing with CPython is the other, and here Nuitka is ahead. Seventy-eight whole programs compiled by both, each output compared with what CPython answers for the same source — stdout and exit code, character for character, same machine for all three columns.
| Of 78 programs | py2bin | Nuitka |
|---|---|---|
| answers exactly what CPython answers | 69 | 76 |
| answers something else | 6 | 2 |
refuses, with a file:line:col | 3 | 0 |
It should be ahead: it is a mature project that reimplements CPython's semantics rather than restricting them. Most of the gap is one fact and its consequences — a compiled function here is a builtin_function_or_method, so it has no code object and builds no frame, which is exactly what makes a direct call 2.4× faster and what costs it sys._getframe, tracebacks naming a source line, and inspect.getsource. Two of the differing rows are not a py2bin problem at all: neither compiler reports function for type(f).__name__, and neither has bytecode to hand back. One goes the other way — except* agrees with CPython on 42,100 shapes here and Nuitka answers differently. A corpus covers what somebody thought of, so 1,500 programs drawn at random from the grammar were compiled and compared too: 1,494 match exactly and none is refused, the six that differ all printing a function object. Every number on this page was measured locally rather than read off a green tick: the repository's workflow runs the suite on three operating systems and three Pythons, the corpus on Linux and a cross-build for all six targets, but it has never actually executed — runs queue on that account and never start.
Run time is what you wait for; build memory decides whether the build runs at all. py2bin writes the machine code, the object file and the container in Python and never starts a C toolchain — Nuitka writes C and hands it to clang. Cold is a first build or a CI runner; Nuitka keeps a ccache, py2bin has no build cache of any kind, so its column is the same either way.
| Building | py2bin | Nuitka cold | Nuitka warm |
|---|---|---|---|
| a small program | 42 MB · 0.1 s | 557–656 MB · 16.5 s | 296 MB · 3.7 s |
| 200 functions | 186 MB · 2.0 s | 681 MB · 18.1 s | 423 MB · 4.9 s |
| 1,000 functions | 602 MB · 7.3 s | 946 MB · 22.0 s | 713 MB · 8.1 s |
| 3,000 functions | 1,567 MB · 21.3 s | 1,744 MB · 35.5 s | 1,516 MB · 17.5 s |
The advantage narrows as the program grows, and by three thousand functions it is gone. Nothing here streams — the whole module is held as objects, then as C, then as machine code, all at once — so memory grows with the program, while Nuitka's is dominated by a fixed toolchain cost. That toolchain is counted, and it is most of Nuitka's column: on a small program its tree holds clang at 181 MB and ld at 150 MB beside Python's 300; at three thousand functions ld alone holds 1,210 MB. py2bin's tree holds one Python process and nothing else. The artifact starts in 10.1 ms from 49 KB, against CPython's 13.8 ms and a Nuitka --standalone's 15.4 ms from 17.2 MB.
Loops win; calls do not — and the reason is worth stating rather than hiding. Since 3.11 CPython rewrites hot instructions into specialised forms, so a + between two ints never reaches PyNumber_Add. Emitting a generic C-API call for every operation produces exactly the code the interpreter has learned to avoid. So py2bin does what CPython does: a local the analysis can claim is held in a machine register, with an overflow check that falls back to unbounded arithmetic when the value leaves the word — 3 ** 200 compiled this way is still exact. Calls still lose, and will until a calling convention passes a machine integer as one; today an argument is boxed at the call and unboxed inside.
compile-capi actually does#include, macros, conditionalsThere is no import ctypes anywhere on that path, which a test asserts by compiling in a fresh interpreter and listing what got loaded. ctypes is standard library and would pass an imports-only-stdlib check, but it pulls in subprocess — and there are Pythons, the one on a phone among them, where a subprocess is not something a program may have.
super(), dunders*args/**kwargs2 ** 200 exact!r/!s/!amatch — values, sequences, mappings, classes, guardsyield, send, yield fromasync def/await on a real event loopasync for and async withfinally and with around a suspensionfinally that itself yieldscompile tier still takes only a static subsetA refusal is a file:line:col error, never a silent approximation. A generator becomes a class whose __next__ dispatches on which block to run next — so it is never closed and never finalised by the collector, and cleanup that could silently not happen is refused rather than guessed at.
| Created by | Yu Yao-Hsing |
|---|---|
| Category | Developer tools — compilers / packaging |
| Language | Python, standard library only · 51 modules |
| Requires | Python 3.10+ on the build machine |
| Licence | MIT |
| Status | v0.9.13 — compile-capi under active work |
From PyPI:
pip install python-to-binary
py2bin make
Or from a clone, with nothing installed at all:
PYTHONPATH=src python3 -m py2bin make
Advanced eigenvalue spectral distribution analysis for generalized covariance matrices. A powerful research tool for mathematicians and data scientists!
Perfect for: Statistical analysis, ML research, quantum mechanics, and financial modeling
Created by: Yu Yao-Hsing
Category: Research & Education
Platform: Windows Store
Type: Desktop App
Status: Active Development
Native macOS image denoiser using random matrix theory — the macOS counterpart to Generalized Covariance Matrix. Pure Swift, Metal-accelerated, App Store sandbox-ready.
MPSMatrixMultiplication for Gram stepdsyevd for eigen-decompositionFor X ∈ ℝ^(p×n) with i.i.d. N(0,1) entries, S_n = (1/n)XXᵀ and T_n = diag(t₁,…,t_p), the generalized sample covariance B_n = S_n T_n. Its Stieltjes transform satisfies a cubic:
a·z·s³ + (a(z − y + 1) + z)·s² + (a + z − y + 1 − y·β·(a − 1))·s + 1 = 0
Limiting density f_{y,H}(z) follows from Cardano's depressed-cubic root; support recovered via bulk-edge function and quartic discriminant for one-interval (Cases 1, 3) vs two-interval (Case 2) topology.
Created by: Yao-Hsing Yu
License: MIT
Platform: macOS 26.2+ (Apple Silicon)
Type: Native macOS App (Live on the Mac App Store)
Status: Active Development
The language model behind Apple Intelligence on macOS 27 (“AFM 3 Core Advanced”), reconstructed from the files Apple Intelligence installs on a Mac and run in llama.cpp on macOS, Windows and Linux — together with the models that ship alongside it. Nothing is trained or fitted, and every component is checked against Apple’s own model wherever Apple exposes a reference. Code only: no Apple weights, tokenizer or GGUF are included or distributed. The converter rebuilds the model from the files already on your own Mac.
afmplus-v11.2-ifp, Apple’s SystemLanguageModel on macOS 27afm_cider_v2 prompt format, checked against its public token counterafm2gguf: a standalone converter that reads only your Mac’s own assets (about 3 minutes, 6.3 GiB GGUF)afm and afm-draft architectures and an afm image projectortools/eval reproduces every figureCreated by: Yu Yao-Hsing
Category: Research — reverse engineering / ML systems
Languages: Python · C++ (llama.cpp patch) · Swift · TeX
Target: Apple’s on-device afmplus-v11.2-ifp (Apple Intelligence, macOS 27) and the 300M afmplus-v11.0-pico
Status: Working port — 97.0% next-token agreement with Apple’s live model; builds at v1.8.0
Unofficial and not affiliated with or endorsed by Apple. The weights belong to Apple: do not redistribute a GGUF made with the converter.
A Python-based creative writing and text processing tool with a modern interface.
View projectTCP-based sound transfer tool for streaming audio between devices over a network.
View projectA Python tool for downloading files from Google Drive with ease and automation.
View project