ShivyC
PeachPy
Our great sponsors
ShivyC | PeachPy | |
---|---|---|
5 | 4 | |
1,012 | 1,948 | |
- | - | |
1.6 | 0.0 | |
11 months ago | 7 months ago | |
Python | Python | |
MIT License | 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.
ShivyC
-
Big brain time
I'm pretty sure writing the C compiler in random languages is about as ubiquitous as getting Doom to run on everything with a microcontroller. Python JavaScript Rust
- Bye!
-
Can I make a programming language in Python?
For example, here's someone's hobby project: a C compiler written in python.
-
Who has the best IT Conspiracy Theory?
People do write "hobby" compilers for fun (like https://github.com/ShivamSarodia/ShivyC - C compiler written in Python), but if this were a serious concern, it would absolutely take a serious research effort to re-write your compiler from scratch. There are absolutely people who can do this and would probably think it's a good time, so the order of operations there would be start a foundation --> GoFundMe --> hire those guys --> produce a new-generation trusted compiler.
-
Learning c for building a compiler?
You can create a compiler in Python (example: ShivyC).
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?
sim-c - A dynamically typed high-level front end for C
Cython - The most widely used Python to C compiler
Transcrypt - Python 3.9 to JavaScript compiler - Lean, fast, open! -
PyPy
PyMakeCli - An easy to use C/C++ compiler linker and flagger.
Pyston - A faster and highly-compatible implementation of the Python programming language.
tensorflow - An Open Source Machine Learning Framework for Everyone
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.