📢 PyScript NEXT (new core) Tech-Preview Release!! 📢 #1571
Replies: 4 comments 5 replies
-
Amazing! How is such a reduction in size possible? Wow. |
Beta Was this translation helpful? Give feedback.
-
Omg, this is such amazing news to hear. 98% reduction, that is going to completely flip the tables. My number one concern about PyScript had always been the load times, I can't wait to try out the new core. ❤️ Thank you, the PyScript team. |
Beta Was this translation helpful? Give feedback.
-
I agree, it is amazing to have Micropython almost instantly! Really impressive work! Have I understood it correctly that currently there is no "out of the box" REPL in the PyScript Next? I have tried to make it work and read the documentation, so I just would like to have it confirmed before I spend more time on it. I am planning to set up a blog (in Norwegian) and thought it would be great to have the code-examples be runnable through pyscript, without the download/start-up time. |
Beta Was this translation helpful? Give feedback.
-
🚀 Thank you for the amazing PyScript NEXT announcement! Excited to explore the new features and provide feedback. Keep up the fantastic work! 👏🎉 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
📢 Announcement: PyScript NEXT (new core) Tech-Preview Release!! 📢
After invaluable community feedback, many experiments in code, and careful cooperation with valued collaborators, we are thrilled to announce the tech preview of the new version of PyScript. This work marks a significant milestone in our journey towards PyScript's vision and what our community has been asking for.
Here are the highlights and key features of this groundbreaking technical Milestone, the Tech Preview Release:
Massive Size Reduction: We have optimized PyScript to offer a minimal download size. The core library is only ~10kb compressed and all the rest is downloaded only on demand. Combined with the very small footprint of MicroPython, you can have a fully working app in ~250kb, resulting in an astounding reduction of 98% compared to the previous version (~13.5Mb = ~11MB Pyodide + ~2.5MB Pyscript Classic). This makes PyScript more lightweight and faster to download with all the supported interpreters, ensuring a seamless user experience to the user.
Versatile Execution Options: With PyScript, you have the flexibility to choose the execution environment that best suits your needs. Whether you prefer executing your code on the main thread or leveraging the power of web workers for parallel processing, in a sync or async way, PyScript has got you covered.
Blazing Fast MicroPython Interpreter: The new PyScript core now incorporates a cutting-edge MicroPython interpreter, which delivers unparalleled speed and performance. Experience lightning-fast execution of your Python code in the browser environment.
FFI support in MicroPython: A new FFI API, inspired by Pyodide's FFI has been added to Micropython and provides full access to Javascript and vice-versa. The goal of this API is to be as aligned as possible with Pyodide's FFI, to focus on the best experience possible to our users, considering the internal differences between these 2 interpreters.
Experimental Interpreters: In addition to the already exciting support for
Pyodide
andMicropython
interpreters, as possiblePython
interpreters, this Tech Preview also adds support for 2 new experimental Interpreters: wasmoon, an interpreter that runs Lua on the browser and that, among the previous two interpreters, is fully compatible with all core features; and ruby-wasm-wasi an interpreter that adds Ruby to the list of programming languages currently supported :).Multiple Interpreter Support: PyScript now supports the utilization of multiple interpreters simultaneously. This means you can take advantage of different languages (or Python versions) or configurations within a single application, opening up a world of possibilities for experimentation and optimization.
Enhanced Compatibility: Python on the browser is different from "traditional" Python. We have diligently worked on improving PyScript's compatibility with a wider range of Python code and libraries. Specifically, execution on Web Workers should allow us to support blocking calls and other aspects not available until now. This also includes the possibility of better debugging capabilities. We now think we have the foundation upon which to build these features in the future.
We invite you to give the tech preview a spin, build something amazing and share your feedback with us. Your participation in the project is at the heart of what we do, and essential for guaranteeing PyScript allows you to build the amazing things you want and fulfills its potential for everyone.
To get started, visit the Tech Preview showcase, where you can find examples that you can clone and play with and check out the related documentation!
Have fun and build cool stuff.
Happy coding!
NOTE: This Tech Preview is by no means a replacement for the current PyScript official project and it's not meant to be. It's an early release of the many new possibilities that are coming next in official PyScript. The current APIs provided by the Tech Preview are likely going to change and align closely with the APIs of official PyScript. DO NOT USE THIS TECH PREVIEW IN PRODUCTION.
The PyScript Team
Beta Was this translation helpful? Give feedback.
All reactions