frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

My hobby compiler is now compiling a company's production app

https://edgepython.com/getting-started/introduction
1•dylansuttonc•59m ago

Comments

dylansuttonc•58m ago
When I started programming Edge Python more than six months ago, I was looking for a version of Python that weighed less than 200 kb so it could reach any device, sandboxed by design, built with browsers in mind, decoupled from the operating system and very fast.

Today the closest competitor would be MicroPython. However, it did not solve my real problems or the problems of the people who use the project.

* Managing async and blocking code on the event loop. MicroPython inherits CPython's blocking execution model, designed around the GIL. When I built Edge Python I put the events inside the virtual machine, and that lets you run any operation while handling thousands of connections without blocking the main thread or the worker's thread.

* MicroPython was not built for the web and neither was its stdlib. I have been working to get regex and every other dependency down to a few clean lines, crash free thanks to directed fuzzing.

* Edge Python guarantees parsing everything in linear time, in a single pass, while MicroPython does not. This came from avoiding a syntax tree, which makes programs parse faster.

* MicroPython crosses into JS through PyProxy. Edge Python avoids that entirely with an execution model decoupled from the host, they never have to interact directly.

* I recently added the ability to serialize entire programs, born from an issue. If a user closes the tab, the whole bytecode state gets serialized, stored in the browser cache, and when the user comes back execution continues from the exact same point.

That said, my intention was never to replace CPython and it never will be. It has a gigantic ecosystem and competing with it is not even a priority for me. What I want to enable is this.

* Anyone with business logic written in Python being able to run it on the client side.

* Running lightweight LLM logic on the client side, so you do not need expensive compute just to parse a CSV or do math.

* Building a framework to run lightweight machine learning models entirely on the user's side.

I am still working on all of this and, to be honest, I do not know how long it will take me to reach a real version to build a product around. I just want to say it has been an incredible process, and it has made me realize that with a compiler of barely under 20,000 lines I spend less and less time writing code and more time automating its stability with fuzzing and determinism.

Thanks! Any feedback or experience is appreciated. If you want to take a look, try the demo in the browser at https://edgepython.com/ and edit the code, the compiler is really fast. Try the CLI version too.

Home of local AI and useful web tools

https://pocketweb.tools/
1•shafkathullah•3m ago•0 comments

Silicon Valley has a science fiction problem

https://aeon.co/essays/silicon-valley-has-a-science-fiction-problem
1•bookofjoe•4m ago•0 comments

Tile's Security Is So Bad It's a Feature for Stalkers

https://blog.adafruit.com/2026/03/05/tiles-security-is-so-bad-its-a-feature-for-stalkers/
2•sambellll•8m ago•0 comments

Zig In-Depth Overview

https://ziglang.org/learn/overview/
2•andrewstetsenko•8m ago•0 comments

Trump switched planes earlier this month due to threat from Iran proxies

https://www.theguardian.com/us-news/2026/jul/24/trump-air-force-one-iran-threat
1•prmph•9m ago•0 comments

Unravelling the climate behind the collapse of Bronze Age civilizations

https://www.su.se/english/news/articles/2026-07-24-unravelling-the-climate-behind-the-collapse-of...
1•geox•10m ago•0 comments

Data at the Edge

https://twitter.com/rebeccakaden/status/2074862363874844903
1•gmays•11m ago•0 comments

I Tried Replacing Android with Linux

https://www.youtube.com/watch?v=wJQHQZ3IPaI
1•627467•11m ago•0 comments

Senate committee advances bill lifting 'speed limit in the sky'

https://www.aopa.org/news-and-media/all-news/2026/july/22/senate-committee-advances-bill-lifting-...
1•projektfu•12m ago•0 comments

ThinkPad Ergonomic Keyboard with Trackpoint

https://github.com/saoto28/pineapple60/
1•akyuu•13m ago•0 comments

A Visual Guide to the Hierarchical Navigable Small World Algorithm

https://cfu288.com/blog/2024-05_visual-guide-to-hnsw/
1•qwertyforce•13m ago•0 comments

When SearchValues Pays Off

https://medium.com/c-sharp-programming/when-searchvalues-actually-pays-off-59c5302ac38b
1•sukhpinder0804•14m ago•0 comments

Sam Altman – How to Start a Startup [video]

https://www.youtube.com/watch?v=Vv3CEAS_w34
1•Ronak_Prabhu•14m ago•0 comments

Csvcomp – Zero-dependency Python CSV diff utility

https://github.com/prasad-a-abhishek/csvcomp
1•prasadaabhishek•15m ago•0 comments

Backtesting a trading strategy in Python with yfinance

https://www.nwcast.com/article/guide-how-to-backtest-a-trading-strategy-in-python-20260706
1•francocos•17m ago•0 comments

The Curious Case of Agent Memory

https://rafihasan.com/blog/2026-07-24-the-curious-case-of-agent-memory
1•joker666•17m ago•0 comments

Show HN: New Dos Paint App

1•nourdude•17m ago•0 comments

Memory Safety Absolutists

https://itsallaboutthebit.com/memory-safety-absolutists/
2•drogus•18m ago•0 comments

Show HN: I built a blind taste test for Claude and Codex designs

https://taste.rubenflamshepherd.com/
1•rubenflamshep•19m ago•0 comments

OpenAI agent goes rogue, hacks AI community, left escape plans in infrastructure

https://www.tomshardware.com/tech-industry/artificial-intelligence/openai-agent-goes-rogue-and-ha...
2•sbulaev•19m ago•0 comments

Three Theses on the Literacy Crisis

https://trevoraleo.substack.com/p/three-theses-on-the-literacy-crisis
1•samclemens•20m ago•0 comments

I was paying too much for Claude and codex here is how I reduced 90% of it

https://github.com/AjnasNB/qarinah
2•Cognifyr•21m ago•0 comments

Show HN: Working Async – The new wave of remote work is async-first

https://workingasync.io
1•Log007•21m ago•0 comments

Pyshackle: A hard pre-execution gate for AI agent tool calls (open source)

https://pypi.org/project/pyshackle/
2•shacklepro•22m ago•0 comments

Winding Down Artichoke Ruby

https://hyperbo.la/w/winding-down-artichoke-ruby/
1•ksec•22m ago•0 comments

Ask HN: What do you do when your AI agents are working?

2•mavsman•23m ago•0 comments

The Many Claudes of My Code

https://shippingbinaries.com/blog/the-many-claudes-of-my-code
1•u8•24m ago•0 comments

Show HN: Robotics startups are hiring across several roles

https://robotclub.substack.com/p/icymi-figure-hits-1000-humanoids
1•dariusogenyiebu•24m ago•0 comments

Ask HN: How's your experience with the Siri AI beta?

1•Austin_Conlon•26m ago•0 comments

Microsoft ads "Do nothing" switch for Copilot key, but PCs still ship with it

https://www.windowslatest.com/2026/07/24/microsoft-accepts-defeat-on-the-windows-11-copilot-key-w...
1•type0•30m ago•0 comments