nogil
kivy
nogil | kivy | |
---|---|---|
31 | 169 | |
2,854 | 16,978 | |
- | 0.8% | |
5.7 | 9.0 | |
2 months ago | 1 day ago | |
Python | Python | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nogil
- Proof-of-Concept Multithreaded Python Without the GIL
-
Our Plan for Python 3.13
This might be a dumb question, but why would removing the GIL break FFI? Is it just that existing no-GIL implementations/proposals have discarded/ignored it, or is there a fundamental requirement, e.g. C programs unavoidably interact directly with the GIL? I know that the C-API is only stable between minor releases [0] compiled in the same manner [1], so it's not like the ecosystem is dependent upon it never changing.
I cannot seem to find much discussion about this. I have found a no-GIL interpreter that works with numpy, scikit, etc. [2][3] so it doesn't seem to be a hard limit. (That said, it was not stated if that particular no-GIL implementation requires specially built versions of C-API libs or if it's a drop-in replacement.)
[0]: https://docs.python.org/3/c-api/stable.html#c-api-stability
[1]: https://docs.python.org/3/c-api/stable.html#platform-conside...
[2]: https://github.com/colesbury/nogil
[3]: https://discuss.python.org/t/pep-703-making-the-global-inter...
-
Real Multithreading Is Coming to Python
https://github.com/colesbury/nogil does manage to get rid of the GIL, but it's not certain to make it into Python core. The main problem is the amount of existing libraries that depend on the existence of the GIL without realizing it - breaking those would be extremely disruptive.
-
[D] The hype around Mojo lang
CPython is also investigating the removal of the GIL (PEP703, nogil). I think requiring the GIL is a wider thing that libraries will need to address anyway. But also, for the same reason as above I'd be surprised if the Modular team thought that saying "you can run all your python code unchanged" was a good idea if there was a secret "except for code that uses numpy" muttered under the breath.
- PEP 684 was accepted – Per-interpreter GIL in Python 3.12
- PEP 703 – Making the Global Interpreter Lock Optional in CPython
-
Python 3.11.0 final is now available
I'm worried about the speedup
My understanding is that it's based on the most recent attempt to remove the GIL by Sam Gross
https://github.com/colesbury/nogil
In addition to some ways to try to not have nogil have as much overhead he added a lot of unrelated speed improvements so that python without the gil would still be faster not slower in single thread mode. They seem to have merged those performance patches first that means if they add his Gil removal patches in say python 3.12 it will still be substantially slower then 3.11 although faster then 3.10. I hope that doesn't stop them from removing the gil (at least by default)
- Removed the GIL back in 1996 from Python 1.4, primarily to create a re-entrant Python interpreter.
- I Tried Removing Python's GIL Back in 1996
-
Faster CPython 3.12 Plan
Looks like it's still active to me:
https://github.com/colesbury/nogil/
kivy
-
How to Develop a User Data Storage Registration Form Using Python.
We will create this complete Python registration form using Kivy. We get started by installing Kivy, a powerful Python framework for building interactive applications.
-
Ask HN: Can I create a mobile and Web App using Python/Python Framework?
For reference, YouTube runs on Python[1,2,3]:
> 1. Python and Django: YouTube’s backend is predominantly written in Python, offering a balance of performance and readability.
> 2. Google Cloud Platform...
> 3. Java and C++: YouTube also utilizes Java and C++ for specific backend services, as they provide better performance for certain tasks.
---
A long time ago, I looked into these Python frameworks:
- http://www.web2py.com/
- https://kivy.org/
[1]: https://blogopost.com/youtube-tech-stack/#backend
[2]: https://medium.com/@shanthanaroja99/technology-stack-behind-...
[3]: https://youtu.be/G-lGCC4KKok
-
Modifying GUI elements from a background thread
I have a multi-threaded app using Kivy for the GUI and sometimes need to update the GUI from a background thread. This app is a few years old and I recently updated to Kivy 2.2 and am now getting an exception with the message "Cannot create graphics instruction outside the main Kivy thread" -- which is related to this change in Kivy 2.1: https://github.com/kivy/kivy/pull/7270
-
Python GUI libraries? <3
I suggest you use kivy which is suitable for the desktop but also has the advantage of being one of few options for creating Python based native(ish) mobile apps (for IoS and Android app stores).
-
Ask HN: Best framework to build a GUI app in Python for windows and macOS?
I think the best one right now for python is "beeware": https://beeware.org/
You also have Kivy which is prety good: https://kivy.org/
- Ask HN: Current best GUI and render window stack?
-
Python GUIs
Anyone has some experience with Kivy [1]? It seems that it checks off some of my requirements, like cross-platform, supporting touch interfaces, ease of development, allows complex/fancy UIs as well, etc.
[1] https://kivy.org/
-
Mobile testing visualiser
There are hot reload tools like kivy.tools.kviewer and KivyMD HotReload and I think others... but maybe they used something else, hard to tell
-
Ask HN: Who wants to be hired? (June 2023)
Notable Projects: Kivy ( https://kivy.org/ )
My name is Mathieu Virbel, and I am a consultant on system and software architecture with over 12 years of experience as a freelance and 20 years in the field. I have a passion for creating innovative and user-friendly applications. I specialize in using the open-source Kivy framework to develop desktop and mobile applications, but I am also skilled in other technologies and frameworks.
-
Ask HN: Freelancer? Seeking freelancer? (June 2023)
SEEKING WORK | France (UTC-1) | Remote | Full stack developer
My name is Mathieu Virbel, and I am a consultant on system and software architecture with over 12 years of experience as a freelance and 20 years in the field. I have a passion for creating innovative and user-friendly applications. I specialize in using the open-source Kivy framework to develop desktop and mobile applications, but I am also skilled in other technologies and frameworks.
I worked on a variety of subjects, from Interactives and mobile application for Museum and Public Institutions, Embedded system in security company, telecommunication, and Startups environments from scratch. Recently playing with Python, Golang, VueJS 3/Typescript, InfluxDB, Docker Swarm, as well as writing specifications and reviewing code of others contractors.
Technologies: Python (django, flask, tensorflow, Kivy, …), Golang, TypeScript, VueJS, Quasar, Docker, Docker Swarm, Terraform, Ansible, MongoDB, InfluxDB, MariaDB, SQLite, Kafka, Prometheus/Graphana
Résumé/CV: https://meltingrocks.com/cv
LinkedIn: https://www.linkedin.com/in/mathieuvirbel/
Website: https://meltingrocks.com
Email: [email protected]
Notable Projects: Kivy ( https://kivy.org/ )
What are some alternatives?
hpy - HPy: a better API for Python
PySimpleGUI - Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, WxPython, and Remi into a simple, intuitive, and fun experience for both hobbyists and expert users.
mypyc - Compile type annotated Python to fast C extensions
wxPython
numpy - The fundamental package for scientific computing with Python.
KivyMD - KivyMD is a collection of Material Design compliant widgets for use with Kivy, a framework for cross-platform, touch-enabled graphical applications. https://youtube.com/c/KivyMD https://twitter.com/KivyMD https://habr.com/ru/users/kivymd https://stackoverflow.com/tags/kivymd
Pytorch - Tensors and Dynamic neural networks in Python with strong GPU acceleration
flet - Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
python-feedstock - A conda-smithy repository for python.
PySide - ATTENTION: This project is deprecated, please refer to PySide2
sbcl - Mirror of Steel Bank Common Lisp (SBCL)'s official repository
DearPyGui - Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies