🕵️ SicherheitslückenWhat continuous operational resilience looks like under DORA(09.09.2026 um 17:53 Uhr)
🔧 AI Nachrichten OpenAI seeks tougher AI rules. CIOs may feel the ripple effects(10.09.2026 um 12:11 Uhr)
🔧 AI Nachrichten Mistral valued at €21bn after €3bn Series D funding round(08.09.2026 um 10:19 Uhr)
🪟 Windows TippsWindows XP's Cursor Indicator Is Getting a Windows 11 Refresh(25.08.2026 um 13:00 Uhr)
🕵️ SicherheitslückenWhat continuous operational resilience looks like under DORA(09.09.2026 um 17:53 Uhr)
🔧 AI Nachrichten OpenAI seeks tougher AI rules. CIOs may feel the ripple effects(10.09.2026 um 12:11 Uhr)
🔧 AI Nachrichten Mistral valued at €21bn after €3bn Series D funding round(08.09.2026 um 10:19 Uhr)
🪟 Windows TippsWindows XP's Cursor Indicator Is Getting a Windows 11 Refresh(25.08.2026 um 13:00 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 3 Min Lesezeit
0

I built a Python -> C transpiler. Then it transpiled itself.

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

A few weeks ago I needed to run Python scripts in initramfs — the tiny Linux environment that exists before your actual OS boots. No interpreter. No dynamic linker. Nothing.



So I built Transpilatron: an AI agent that takes Python code and produces a fully static C binary.




CODE
uvx transpilatron your_code.py






That's it. No C knowledge required.






The benchmarks



First, does it actually work? I ran two tests:


























Benchmark Python C Speedup
Sieve of Eratosthenes (10M numbers) 0.526s 0.022s 24x
Selection sort (10K elements) 1.963s 0.033s 58x


Same output. Verified on the same machine. The C binary is fully static — no runtime, no interpreter, no dependencies.






The Flask demo



Then I tried something more interesting. A 14-line Flask app:




CODE
from flask import Flask

app = Flask(__name__)

@app.route('/')
def hello():
return 'Hello from the webserver!'

@app.route('/ping')
def ping():
return 'pong'

if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080)






One command:




CODE
uvx transpilatron web.py






Output: a native C HTTP server. No Flask. No Python runtime.




CODE
$ curl http://localhost:8080/
Hello from the webserver!

$ curl http://localhost:8080/ping
pong






Verified memory-safe by valgrind: 0 errors, 0 leaks.






Then it transpiled itself



Here's where it gets weird.



Transpilatron is written in Python. So I pointed it at its own source code:




CODE
uvx transpilatron src/transpilatron/agent.py






The agent read its own Python source, wrote 400+ lines of C, fixed its own compiler errors autonomously, ran a memory audit, and produced a working binary.




CODE
$ ./out/agent --help
Usage: ./agent [--minimal|--full] <entry_file>
--minimal Use minimal mode: static linking, raw sockets only
--full Use full mode (default): dynamic linking, libcurl, etc.

$ ./out/agent examples/web.py
Thinking...
I'll help you convert the Python project to C...






A C binary, orchestrating an AI agent, transpiling Python to C.



Valgrind result: 0 errors, 0 leaks.






How it works



Transpilatron wraps the Poolside CLI (free) as its agentic backend. The agent:




  1. Reads your Python entry file and follows all imports

  2. Transpiles the full project to C

  3. Writes a Makefile and compiles with -O3

  4. Auto-installs missing build tools via your system package manager

  5. Runs the binary under valgrind to verify zero memory leaks

  6. Audits the C for race conditions, NULL dereferences, and logic bugs

  7. Retries up to 3 times if compilation fails






Two modes


























Mode Linking HTTP Best for
--minimal Static only Raw BSD sockets initramfs, scratch containers, embedded
--full Dynamic permitted libcurl Web apps, ML inference, general use


--full mode supports Flask/FastAPI → libmicrohttpd, torch/tensorflow → libtorch/TFLite, OpenCV, and more.






Why not Nuitka?



Nuitka bundles CPython. PyInstaller bundles CPython. Both produce 30MB+ binaries that require a Python runtime.



Transpilatron strips CPython entirely. The output binary has no idea Python exists.



That's the only approach that works for initramfs, scratch containers, or embedded targets with no OS.






Try it






CODE
uvx transpilatron your_code.py






Requires only uv. Everything else (Poolside CLI, gcc, make, valgrind) is auto-installed on first run.



GitHub: NoodlixProject/transpilatron






Transpilatron was originally built to compile boot scripts for Noodlix — a Python-only OS I'm building. That project is ongoing.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Sam Altman calls GPT-6 Astra rollout ‘messy’ as enterprise users wait for access
1 Quelle
Swiss government explores replacing Microsoft 365 with open-source software
1 Quelle
What continuous operational resilience looks like under DORA
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I built a Python -> C transpiler. Then it transpiled itself.

Thematisch verwandte Begriffe: built, Python, transpiler, Then · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...