Jul-18-2023, 01:00 PM
(This post was last modified: Jul-18-2023, 01:03 PM by AlexanderWulf.)
To my understanding, only CPython is written in C, and only the "core" interpreter is written in C. The actual program code and the libraries that we install via pip are "portable" Python code, right? So, you suggest we kind of implement the algorithm directly on the level of the interpreter? Wouldn't this require to maintain our own "fork" of CPython? Anyway, I think this is way beyond the scope of the project, and what I can do. Also I think we need a "portable" solution that works on different platforms and different Python interpreters. I think there's interpreters that don't use C at all...
So, given that we need to port the algorithm to Python, is there any recommended/idiomatic way to do "fixed-size" (wrapping) arithmetic
So, given that we need to port the algorithm to Python, is there any recommended/idiomatic way to do "fixed-size" (wrapping) arithmetic
