On Tue, Apr 29, 2025 at 11:20:28AM +0200, PIERRE AUGIER wrote:
> - slow as soon as the code involves Python extensions (because extensions 
> work through an emulation layer, like cpyext in PyPy)
[...] 
> Moreover, unfortunately, HPy does not currently receive as much care as it 
> should.

Does HPy solve the speed issue for C extensions? I thought it was more of a
compatibility layer so that things similar to CFFI could be used automatically.

CFFI/PyPy on the other hand was slower for the _decimal extension than CPython.

CPython's C-extension speed is actually quite reasonable. The only garbage
collected language that achieves the _same_ extension speed that I know of 
is OCaml (which is quite an achievement).

SBCL Lisp, which has a great compiler for pure Lisp, also does not have
really fast extensions.

Does the Graal VM solve this issue?


Stefan Krah


_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to