Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
antocuni
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
antocuni
11mo ago
yes (work in progress :))
2.
▲
by
antocuni
11mo ago
hello, spy author here. > Why do blue functions disappear when redshifting? If you red shift blue then it goes down in frequency so you might get green or red. Perhaps my physics brain is just over thinking it! yes I think you are overth
3.
▲
by
antocuni
11mo ago
hello, author of the blog post and author of SPy here. > how can you reliably import libraries? the blog post specifies it but probably not in great level of detail. Calling python libs from spy will go through libpython.so (so essential
4.
▲
by
antocuni
11mo ago
thank you for the feedback! I wasn't aware of these features of Zulip, there are way too many competing technologies in this space and I miss the days in which everybody was IRC and that's it.
5.
▲
by
antocuni
11mo ago
I haven't fully decided which route to take in that direction, but I think I'd like to support something similar do "go": you declare an interface (or, in python typing terms a Protocol) and then all the types which have
6.
▲
by
antocuni
11mo ago
This looks exactly what I'm trying to do with SPy -- although SPy is still "not there" and it's WIP. I literally wrote an intro post about it yesterday: https://antocuni.eu/2025/10/29/insid
7.
▲
by
antocuni
1y ago
pypy IS compatible with C extensions, via what we call "cpyext": https://doc.pypy.org/en/latest/faq.html#do-c-extension-modul... The problem of cpyext is that it's super slow, for good reasons: htt
8.
▲
by
antocuni
1y ago
From many points of view, what CPython JIT can do is a subset of what PyPy can do. The biggest differences between the two JITs are: 1. PyPy is meta tracing, CPython is tracing 2. PyPy has "standard" code generation backends, CPyt
9.
▲
by
antocuni
1y ago
(author of the blog post here) "just compile when you know the types" is not a good strategy for Python. My EuroPython talk "Myths and fairy tales about Python performance" explains many reasons why Python is VERY hard t
10.
▲
Inside CPython's attribute lookup
(antocuni.eu)
1 points
by
antocuni
1y ago
|
0 comments
11.
▲
by
antocuni
1y ago
this is done by the installation process, not by AI.
12.
▲
Claude code modified my .bashrc without asking
(antocuni.eu)
11 points
by
antocuni
1y ago
|
4 comments
13.
▲
by
antocuni
2y ago
(SPy author here) function calls in SPy are as cheap as in C. You can check by yourself seeing of the spy compiler translates the code to C in the (super-experimental) spy playground: https://antocuni.pyscriptapps.com/spy-pl
14.
▲
by
antocuni
2y ago
PyPy's difficulty with invoking native code is not because of its tracing JIT but because the CPython C API makes it very hard to deviate from _any_ CPython implementation details, including e.g. choice of memory management and precise
15.
▲
The PyPy Blog Turns 15 years
(pypy.org)
1 points
by
antocuni
4y ago
|
0 comments
16.
▲
by
antocuni
6y ago
what is the python implementation you are involved with? I agree with your concerns, HPy tries to address them since the beginning. Basically, there are two distinct compilation modes: - CPython ABI: in this mode, things like HPy_Dup and HP
17.
▲
by
antocuni
6y ago
We plan to introduce something similar to CPython's argument clinic eventually. I.e., you will be able to declare what is the C signature of your impl function and HPy will generate the argument parsing code automatically. One nice eff
18.
▲
by
antocuni
6y ago
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
19.
▲
by
antocuni
6y ago
hello, OP of the blog post here. Yes, the plan is to write a Cython backend at some point, so that all Cython extensions will benefit from HPy automatically. The main Cython developer (Stefan Behnel) was present during the very first few me