hpy 0.0.4 and c++#1
Conversation
|
After this is merged, I will create a PR to merge hpy-1 into hpy |
|
@mattip great, thanks |
|
Hmm. there are some bad failures in the CI I guess we should fix before updating the cython/cython hpy PR |
|
Tests are failing quite quickly. It seems something is wrong with the module level globals. Code like this cython code in but now emits Is there some write-back that needs to happen to get the modified |
|
The error is that |
|
Using the gcc preprocessor on the code |
|
In the HPy code, the call to |
|
Spot the error (it took me way too long): On line 8 (which in the real code is a single line 7 and 8), the condition is reversed. cython/Cython/Compiler/ExprNodes.py Lines 2340 to 2347 in 4b161ad |
|
Next up: somehow the wrong variable names are ending up in the code: rather than a more complete code snippet |
|
Also, the use of default character kwarg values is not generating correct code. The The Edit: this comes from running the |
|
I wonder if there is a way around the many global lookups in the new HPy code. For instance, into |
this PR
gotocrosses variable initialization. The fix is to enclose the code in braces