Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Serious question: why would you use Python on the web? Unless you have some legacy code that you want to reuse. Performance is somehow worse than CPython, C-extensions are missing, dev experience is atrocious.


The web is the only major platform that has a language monoculture to its detriment (i.e., not all problems are Javascript shaped). IMO the web ought to become multilingual (and become JS optional_ to further ensure its continued longevity and agility. Hopefully one day browser vendors will offer multiple runtime downloads (or something similar capability).


> i.e., not all problems are Javascript shaped

I’m having trouble coming up with a single Python-shaped problem that can’t be contained within JavaScript-shaped ecosystem.


WASM already offers this, for better or worse... There should be improved interop APIs for DOM access, but WASM is already very useful and even for directed UI control, "fast enough" a lot of the time. Dioxus, Yew and Leptos are already showing a lot of this to be good enough. That said, I would like to see a richer component ecosystem.


Embedded systems, consoles and mobile phones come to mind as well.

Even if you can go outside the blessed languages, it isn't without pain and scars.


All the embedded systems I've worked in have many languages you can use to compile whatever, burn, and run whatever you like. Consoles run game engines and programs written in all sorts of different languages. They don't care as long as they can execute the binary. Phones can run apps using many different languages (C, C++, Rust, Python, etc.).


Failed to read my second sentence.


C extensions aren't missing, the key ones are available in Pyodide already and you can compile others to WASM wheels if you need them.

You use Python on the web because there's existing software written in Python that you want to run in a browser.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: