-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hpy 0.0.4 and c++ #1
base: hpy-1
Are you sure you want to change the base?
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
goto
crosses variable initialization. The fix is to enclose the code in braces