Re:Free-threaded CPython is ready to experiment with
by woodson on Friday July 12, 2024 @09:22PM
(#40951004)
Thanks, I haven’t come across cppyy! But I’ve worked with pybind11, which works well, too.
[ Parent
| on HN ]
Re:Free-threaded CPython is ready to experiment with
by ipsod on Friday July 12, 2024 @11:08PM
(#40951462)
Sure! I tried pybind11, and some other things. cppyy was the first I tried that didn't give me any trouble. I've been using it pretty heavily for about a year, and still no trouble.
Re:Free-threaded CPython is ready to experiment with
by nly on Saturday July 13, 2024 @05:19AM
(#40952819)
Last I checked cppyy didn't build any code with optimisations enabled (same as cling)
Re:Free-threaded CPython is ready to experiment with
by ipsod on Saturday July 13, 2024 @12:17PM
(#40954901)
It seems like you might be able to enable some optimizations with EXTRA_CLING_ARGS. Since it's based on cling, it's probably subject to whatever limitations cling has.
To be honest, I don't know much about the speed, as my use-case isn't speeding up slow code.