News for hackers. Stuff that matters.
Re:JNumPy: Writing high-performance C extensions for Python ... by ChrisRackauckas on Wednesday August 10, 2022 @06:49AM (#32409998)
Some of these are just safety-by-default things. For example, IO in Julia is thread-safe by default, which I think is a good idea because safety-first programming is good for say throwing `print` into a threaded loop written in the REPL. Here for example, https://github.com/aaronang/stl-benchmark/pull/3, was a case where Julia saw a performance hit from C++ and I was curious and tracked it down to this locking-by-default behavior. I'm not sure of a better way of handling it: the C/C++ behavior of not locking by default would make doing things correctly simply would be very hard to use (and is very hard in those languages).

Though I agree parsers haven't gotten much love in Julia. That said, this repo is saying it's for implementing NumPy extensions, and I don't think NumPy has many parsers it's using.

Re:JNumPy: Writing high-performance C extensions for Python ... by guimplen on Wednesday August 10, 2022 @08:10AM (#32410595)
in posix (so in any reasonable C implementation) printf is thread-safe by default, so your comment doesn't make much sense.