Nathan Goldbaum

Results 755 comments of Nathan Goldbaum

I happened upon the talk from @da-woods at this year's EuroPython today: https://www.youtube.com/watch?v=7azKz3YP7eA. There's lots of content in that talk for thinking about the thread safety of Cython code.

I'd still appreciate some feedback but barring that I think I'll open a followup PR that enables support for the free-threaded build and documents that sharing HTTPParser instances between threads...

> Is it intended to make HTTPParser instances thread-safe eventually That's up to the maintainers to decide. IMO it's worth doing but there are performance, complexity, and maintainability trade-offs to...

I'm a PyO3 maintainer and am very interested in this, as it will eventually unblock adding Rust code to scientific python projects. I discovered this issue while talking with @nrposner...

On my Mac dev machine I get `numpy/_core/tests/test_memmap.py::TestMemmap::test_del - AttributeError: 'TestMemmap' object has no attribute 'tmpfp'` when I try to reproduce this, although I set up my environment manually without...

It'd be nice to write a multithreaded test script that uses e.g. `run_threaded` from `numpy.testing._private.utils` to trigger the segfault so reproducing this doesn't rely running the numpy tests in a...

I haven't been able to trigger the segfault on my mac but have on Linux. Here's the gdb traceback: ``` (gdb) bt #0 __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:323 #1 0x00007ffff56605d6 in...

Given that this triggers with the GIL, I wonder if the simplest fix is to just document on https://numpy.org/devdocs/reference/thread_safety.html and in the `memmap` docstrings that it's not thread-safe and users...

Cython 3.1.0 is out so someone should try to build it and run the tests. See https://py-free-threading.github.io for more info. I'm also happy to help out.

Not sure why ft-checker was seeing an error back in June, but it looks like with the latest version of Cython, uvloop builds successfully: ``` goldbaum at Nathans-MBP in ~/Documents/uvloop...