cinder
graalpython
Our great sponsors
cinder | graalpython | |
---|---|---|
42 | 13 | |
3,358 | 1,095 | |
1.0% | 3.0% | |
9.6 | 10.0 | |
1 day ago | 2 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | GNU General Public License v3.0 or later |
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.
cinder
-
Meta pledges Three-Year sponsorship for Python if GIL removal is accepted
They’ve kind of done that with Cinder https://github.com/facebookincubator/cinder. Threads and Instagram lie on top of this and it’s essentially a fork of Python 3.10.
I think the problem there is even a company like Meta wants to rest on the shoulders of the giant Python community. It makes sense for Meta to try to get parts of Cinder into Python.
- Back end of Meta Threads is built with Python 3.10 with some interesting tweaks
-
Best book on writing an optimizing compiler (inlining, types, abstract interpretation)?
I used to work on the Cinder JIT and can help document any passes you find interesting or confusing.
-
Python-based compiler achieves orders-of-magnitude speedups
Have a look at Cinder - https://github.com/facebookincubator/cinder - it's Meta's performance oriented fork of CPython that they use to run Instagram (which is a big Django app).
You might enjoy Cinder then. It's based on CPython so it is nearly 100% compatible.
https://github.com/facebookincubator/cinder/
Disclaimer: I used to work on it.
-
beartype: It has documentation now. It only took two years, my last hair follicle, precious sanity points (SPs), and working with Sphinx. Don't be like @leycec. Go hard on documentation early.
I think Cinder's Static Python, which also performs runtime type checking, is more ambitious. Though it's not production ready yet.
-
If there’s gonna be a Python 4.0 one day, what’s a breaking change you’d like to see? Let’s explore the ideas you have that can make Python even better!
Here's a fork that implements that https://github.com/facebookincubator/cinder - it might be nice to one day get that up streamed but obviously it'll be controversial and it certainly needs more time to bake. Hopefully at some point we can make it a pip installable extension though.
-
Is it time for Python to have a statically-typed, compiled, fast superset?
The other thing that was interesting to me, was the potential of type annotations to help make for a faster, safer experience on the compiler end of things. One example is seen in Meta’s Cinder project, on the docs it explains how typing can be used to reduce the number of steps for the compiler ([cinder/static_python.rst at cinder/3.8 · facebookincubator/cinder · GitHub](https://github.com/facebookincubator/cinder/blob/cinder/3.8/CinderDoc/static_python.rst)), making it more effective.
-
Programming languages endorsed for server-side use at Meta
Instagram is a huge Django app and unlike all the ML libraries, Django isn't highly optimized low-level code wrapped in Python, at least not by default. That's why Facebook are putting so much work into running a more performant fork of CPython - https://github.com/facebookincubator/cinder
graalpython
-
socketify.py - Bringing WebSockets, Http/Https High Peformance servers for PyPy3 and Python3
HPy integration to better support CPython, PyPy and GraalPython
-
Oracle Contributing GraalVM Community Edition Java Code to OpenJDK
Here are some nice examples: https://www.graalvm.org/22.2/reference-manual/python/Interop...
This may be more readable: https://github.com/oracle/graalpython/blob/master/docs/user/...
-
Pyjion – A Python JIT Compiler
Isn't this what the GraalVM [1] guys are also trying to do? Seems like today the competition is between who is more polyglot than the other, JVM, CLR or WASM.
- Python stands to lose its GIL, and gain a lot of speed
- A viable solution for Python concurrency
- RustPython: A Python interpreter written in Rust
-
Stack Overflow Developer Survey 2021: "Rust reigns supreme as most loved. Python and Typescript are the languages developers want to work with most if they aren’t already doing so."
Graalpython is slowly taking shape, although it's still very alpha: https://github.com/oracle/graalpython
- Launch HN: Enso (YC S21) – Visual programming and workflow tool for data science
-
AST based scripting languages
https://github.com/oracle/graalpython is an AST interpreter for Python
-
Pyston v2.2: faster and open source
I'd say graal is even less mature than Pyston. See https://github.com/oracle/graalpython/tree/master/docs/user
> At this point, the Python runtime is made available for experimentation and curious end-users.
What are some alternatives?
faster-cpython - How to make CPython faster.
truffleruby - A high performance implementation of the Ruby programming language, built on GraalVM.
Pyjion - Pyjion - A JIT for Python based upon CoreCLR
Pyjion
jython - Python for the Java Platform
Cython - The most widely used Python to C compiler
hpy - HPy: a better API for Python
MonkeyType - A Python library that generates static type annotations by collecting runtime types
Nuitka - Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
Pyston - A faster and highly-compatible implementation of the Python programming language.