math module
It looks like there is no pure Python implementation of the math module -- even PyPy calls out to C for this.
This is a big task, and I've already started going down this rabbit hole, by basically translating the BSD libc math library sources into Python. It is tedious, and will be slower than a native implementation, but should be self-contained.
To my mind: it isn't necessary to be competely Python native. If there's a clean interface that we can leverage, it would be enough to clearly document the API as used by the Python library, and then provide a platform native implementation wherever it is used.
So, in the case of the math library - if one of the libc functions has an obvious analog in Javascript (or in a library that we can easily vendor in), don't be afraid to "go native" for that method. We only need to be pure Python when there's likely to be a need to share logic (and therefore reduce the native implementation burden) between projects that use Ouroboros.
Sounds good to me. I'll postpone this, except for pieces that aren't in other standard libraries (for example, the math.gamma and math.lgamma functions (some of which can be found in PyPy.
Hello I I find the idea of Python modules written in Python quite interesting... @freakboy3742 what all math functions have not been implemented? And how do I test my functions? Thanks in advance.