News for hackers. Stuff that matters.
Re:Rio-labs/rio: WebApps in pure Python. No JavaScript, HTML... by KeplerBoy on Tuesday September 17, 2024 @10:38AM (#41568021)
Is python actually executed in the browser or is there a cpython process running on the backend?
Re:Rio-labs/rio: WebApps in pure Python. No JavaScript, HTML... by dncornholio on Tuesday September 17, 2024 @10:58AM (#41568266)
No, it needs a server to run. This can be a python process or nginx or anything that FastAPI supports, since this seems to be build on top of FastAPI
Re:Rio-labs/rio: WebApps in pure Python. No JavaScript, HTML... by Sn3llius on Tuesday September 17, 2024 @11:15AM (#41568508)
You nailed it.

Built-in components do as much work as possible directly on the client. Any Python code however runs on the server. This makes it dead-simple to e.g. connect to your database and also gives you the full power of real CPython, not just a cut-down WASM/transpiled version.