Replies: 1 comment
-
Here's some other work related to implementing (parts of) Python in Python: https://github.com/brettcannon/desugar |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A continuation of this thread about PyPy and pure Python implementations:
My suspicion is that there is a lot to learn / leverage from PyPy.
As for reusing pure python implementations of the standard library:
This warrants more investigation. I bet there are implementations that would be immediately usable by CrossHair that I just haven't considered. Sometimes, the implementation won't be ideal for CrossHair. This implementation of deque, for instance, is focused on performance - running CrossHair on it will create much more work for the system than is necessary. You'll find this a common theme in CrossHair implementations: we use very "slow" algorithms because they make solving easier. A great example here: CrossHair containment checks in sets/dictionaries are done by iterating over the contents! Absurd right? Well, turns out that hashing things quickly makes the solver state unmanageable. So we are happy to go through great lengths to avoid hashes.
Some additional avenues of exploration:
Beta Was this translation helpful? Give feedback.
All reactions