Hacker News new | past | comments | ask | show | jobs | submit login

This could be big. A strong porting guide will go a long way. I wonder to what extent that could be automated?



We plan to write a porting guide and examples at some point, but we didn't yet, also because we are still in the experimental phase and the API is still subject to change (although it changes less quickly nowadays).

In theory, most of the porting could be automated. The only thing which cannot is turning Py_INCREF/DECREF into HPy_Dup/HPy_Close: they are closely related, but HPy requires that you close each handle independently, contrarily to Python/C where you can DECREF the same PyObject* multiple times, as long as the final refcount is correct.

For that, the debug mode will be very useful because it precisely tells you which handles you didn't close and which ones you closed multiple times.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: