pypy
PeachPy
Our great sponsors
pypy | PeachPy | |
---|---|---|
1 | 4 | |
726 | 1,948 | |
- | - | |
9.6 | 0.0 | |
3 days ago | 7 months 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.
pypy
-
PyPy v7.3.16 Release
You'll note I said I was playing with RPython, not PyPy. In my case, I was playing with writing a small interpreter, and comparing the RPython toolchain with the Truffle/Graal framework.
Writing RPython code, even if one is not developing or contributing to PyPy, means writing within a subset of python 2.
> RPython ("Restricted Python") is a subset of Python 2
https://www.pypy.org/posts/2022/04/how-is-pypy-tested.html
And RPython's translator specifically uses pypy, and uses python 2 syntax:
https://github.com/pypy/pypy/blob/main/rpython/bin/rpython#L...
... so getting the RPython toolchain (even if one is intending to improve the PyPy 3+ interpreters) requires setting up a pypy 2 interpreter. Hence the question in my post.
PeachPy
- Portable Efficient Assembly Code-Generator in Higher-Level Python (PeachPy)
-
SIMD in Pure Python
This is a nice exercise!
There is also a very different “write SIMD assembly in Python” approach available through the PeachPy library, one of the least known gems between Python and HPC worlds: https://github.com/Maratyszcza/PeachPy
This is what a dot-product would look like in PeachPy: https://unum-cloud.github.io/usearch/python/index.html#id4
PS: Cppyy and Numba are also fun to use in such projects :)
-
Hey guys, have any of you tried creating your own language using Python? I'm interested in giving it a shot and was wondering if anyone has any tips or resources to recommend. Thanks in advance!
It's not super maintained but you might enjoy building something with ppci, Pure Python Compiler Infrastructure. It has some front-ends and some back-ends. There's also PeachPy for an assembler. People like using Lark for parsing, I hear.
-
damnn....i want this level of expertise
pip install --upgrade git+https://github.com/Maratyszcza/PeachPy
What are some alternatives?
dramatiq - A fast and reliable background task processing library for Python 3.
Cython - The most widely used Python to C compiler
PyPy
Pyston - A faster and highly-compatible implementation of the Python programming language.
Pyjion
Stackless Python
fasmg - flat assembler g - adaptable assembly engine
lm8 - A custom 8-bit computer and software suite
bespokeasm - An assembler that works with custom instruction sets.
alek - Assembly Learning Environment for Kids
ShivyC - C compiler created in Python.
backrooms - 3D, CISC Architecture and Esolang