numpy/numpy
View on GitHub ↗ ★ 33,230 Python
The fundamental package for scientific computing with Python.
76 mentions on Hacker News by 71 people: 16 stories, 60 comments · first 2013-12-23 · latest 2026-10-16
20082026
-
At this point it has been translated to C and now they patch the C directly but: https://github.com/numpy/numpy/tree/main/numpy/linalg/lapack...
comment by retrac · 2026-10-16 · in Celebrating 70 Years of Fortran -
…speedup (488ms down to 9.2ms) of bytes substring search generated with Claude Code - numpy/numpy: https://github.com/numpy/numpy/pull/31573 - ~21x speedup of Python datetime → datetime64 conversion, with Claude Code used for profiling and…
comment by simonw · 2026-08-09 · in Is it all just vapourware? -
Because PyPy seems to be defunct. It hasn't updated for quite a while. See https://github.com/numpy/numpy/issues/30416 for example. It's not being updated for compatibility with new versions of Python.
comment by JoshTriplett · 2026-03-17 · in Python 3.15's JIT is now back on track -
…definitely has _requirements_, even if they're not represented as such in the python graph. e.g. https://github.com/numpy/numpy/blob/main/.gitmodules (some source code requirements) https://github.com/numpy/numpy/tree/main/requirements…
comment by noitpmeder · 2025-11-26 · in Python is not a great language for data science -
…just look at the static typing annotations for this function, which has 6 overloads for reshape ( https://github.com/numpy/numpy/blob/0066c73f573daafa01cbb975... ). I don't see a lot of evidence in either of these that the dynamic typing…
comment by AlotOfReading · 2025-10-19 · in What Dynamic Typing Is For -
…second - the ‘CanIndex’ and ‘SupportsIndex’ from the looks are just “int”. The PR for the change is https://github.com/numpy/numpy/pull/28913 - The details of files changed[0] shows the change was made in 'numpy/__init__.pyi'. Looking at…
comment by CaliforniaKarl · 2025-10-15 · in Bringing NumPy's type-completeness score to nearly 90% -
▲ 2
Release v2.3.0 (June 7, 2025) · NumPy/NumPystory by rbanffy · 2025-06-18 · 0 comments
-
…that it was caused by numpy or Python, but eventually all the likely scenarios got ruled out... [0] https://github.com/numpy/numpy/issues/10215
comment by CGamesPlay · 2025-02-24 · in It is not a compiler error (2017) -
…exactly how the per-array descriptor works. Ultimately it's powered by a hook in the DType API: https://github.com/numpy/numpy/pull/24988 . There is only one spot in NumPy where array buffers are allocated, so we hooked there and made sure…
comment by ngoldbaum · 2024-10-23 · in My NumPy year: Creating a DType for the next generation of scientific computing -
https://github.com/numpy/numpy/issues/26510#issuecomment-229... And now that I look at that again I realize I forgot to finish that up!
comment by ngoldbaum · 2024-10-02 · in The Fastest Mutexes -
…Though, I was searching for an example of this as I know NumPy did it until they undid it: https://github.com/numpy/numpy/pull/24357
comment by nick238 · 2024-08-01 · in The Trouble with __all__ -
…which give different results. >Hyperbolic tan is in the list of recommended functions, and yet: https://github.com/numpy/numpy/issues/9187 Any evidence whatsoever that this is caused by two differing implementations of tanh, which BOTH…
comment by constantcrying · 2024-07-15 · in Pi calculation world record with over 202T digits -
…all supported arithmetic formats. Hyperbolic tan is in the list of recommended functions, and yet: https://github.com/numpy/numpy/issues/9187
comment by Extigy · 2024-07-15 · in Pi calculation world record with over 202T digits -
Doesn’t numpy have runtime SIMD dispatching and whatnot based on CPU flags? E.g. https://github.com/numpy/numpy/blob/main/numpy/_core/src/com...
comment by stingraycharles · 2024-07-04 · in Beating NumPy matrix multiplication in 150 lines of C -
▲ 3
NumPy 2.0.0 release – first major release since 2006story by godber · 2024-06-17 · 0 comments
-
▲ 1
NumPy 2.0.0 Release Notesstory by stanislavb · 2024-06-17 · 0 comments
-
▲ 8
NumPy 2.0.0story by wishawa · 2024-06-16 · 0 comments
-
Numpy also uses blocked pairwise summation, with a block size of 128: https://github.com/numpy/numpy/blob/a6e9dc7152098182b45ecd6e... .
comment by orlp · 2024-05-26 · in Taming floating-point sums -
▲ 4
NumPy 2.0.0 Beta1story by marcin_konow · 2024-03-18 · 0 comments
-
▲ 6
NumPy 2.0 Development Statusstory by _1 · 2023-10-15 · 0 comments
-
…in 2018, while PCG64 DXSM was made in 2019 and appears to have addressed various shortcomings. https://github.com/numpy/numpy/issues/13635#issuecomment-506...
comment by omoikane · 2023-06-23 · in The PCG64 DXSM random number generator -
…quality open source version of this, one place that could benefit is numpy's searchsorted function https://github.com/numpy/numpy/blame/main/numpy/core/src/npy...
comment by shoo · 2023-04-30 · in Beating Bisect with Branchless Binary Search -
…or Sphinx ever had a good solution). And numpy actually has a bunch of generators for that e.g. https://github.com/numpy/numpy/blob/45bc13e6d922690eea43b9d8... handles filling in the common bits of documentation for the ufuncs.
comment by masklinn · 2023-01-05 · in Microfeatures I'd like to see in more languages -
Definitely. However, the equivalent for the array multiplication in numpy looks like this: https://github.com/numpy/numpy/blob/22e683d84f2584a6f9a57b2c... + https://github.com/numpy/numpy/blob/22e683d84f2584a6f9a57b2c... To know what they…
comment by jeroenhd · 2022-12-27 · in Extending Python with Rust -
worth a look https://github.com/numpy/numpy/issues/14412
comment by Kalanos · 2022-12-19 · in NumPy 1.24 -
▲ 108
NumPy 1.24story by drunkendog · 2022-12-19 · 32 comments
-
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35488/ https://github.com/numpy/numpy/issues/15237 . I slightly misremembered what was happening. It's that on 32 bit systems, it wil replace 64 bit math with 80 bit math and double rounding…
comment by adgjlsfhk1 · 2022-09-28 · in Posits, a New Kind of Number, Improves the Math of AI -
…slow on modern hardware and so that everyone's existing deployed numpy test suite passes before https://github.com/numpy/numpy/issues/22098 is widely available. https://github.com/python/cpython/blob/511ca9452033ef95bc7d7...
comment by js2 · 2022-09-07 · in Prevent DoS by large int-str conversions -
▲ 4
Harmless NumPy issue receives CVE mediumstory by miohtama · 2022-06-24 · 0 comments
-
Doesn't numpy use a natively compiled Fortran or c library for that? https://github.com/numpy/numpy/blob/main/numpy/core/src/mult...
comment by easytiger · 2022-06-17 · in The computers are fast, but you don't know it -
…last year, but maybe it could still be suggested to be an extra, not in the standard package? https://github.com/numpy/numpy/issues/19591
comment by kzrdude · 2022-05-29 · in Making pip installs a little less slow -
…in scipy is 77 https://github.com/scipy/scipy/search?l=fortran&p=1 50% of Fortran in numpy is 77 https://github.com/numpy/numpy/search?l=fortran&p=1 ARPACK, ATLAS, LAPACK, ODEPACK, SLATEC, UMFPACK are all notable Fortran libraries that are…
comment by adgjlsfhk1 · 2022-04-10 · in The State of Fortran -
If I understand https://github.com/numpy/numpy/blob/v1.22.0/numpy/core/einsu... and https://github.com/numpy/numpy/blob/v1.22.0/numpy/core/src/m... correctly, using einsum without the optimize flag seems to use a for loop in C to do the…
comment by cschmid · 2022-04-10 · in A basic introduction to NumPy's einsum -
An explanation for the atol difference between numpy and math, by the author of math.isclose(): https://github.com/numpy/numpy/issues/10161#issuecomment-350... plus a ton of flogging/benchmarking common libraries (numpy, scipy,…
comment by PennRobotics · 2022-03-30 · in How to compare floats in Python -
…a shared github account: https://github.com/Developer-Ecosystem-Engineering For instance for NumPy: https://github.com/numpy/numpy/pull/19926 Although it's weird to interact with such an anonymous account in github discussions, it is very…
comment by ogrisel · 2021-12-09 · in Apple Open Source -
Yes, but then they brought it back here https://github.com/numpy/numpy/pull/18874 - apparently Apple developers fixed these issues.
comment by lopuhin · 2021-11-22 · in Benchmarking the Apple M1 Max -
…2018 ( https://github.com/pytorch/pytorch/issues/5059 ), which links to the closed numpy issue ( https://github.com/numpy/numpy/issues/9248 ) which just says: seed your random numbers folk. 2) The documentation in pytorch covers this (…
comment by wokwokwok · 2021-04-11 · in A common mistake when NumPy’s RNG with PyTorch -
…Pandas along with PyPy and ran into failure on building numpy. Looks like it's a known issue https://github.com/numpy/numpy/issues/17807
comment by singhkays · 2021-02-09 · in Node.js 14 is over 20x faster than Python3.8 for fib(n) -
That was the issue: https://github.com/numpy/numpy/issues/18281
comment by jjgreen · 2021-02-01 · in NumPy 1.20 -
…in Accelerate. The Accelerate framework is the only thing that has the Matrix co-processor support. https://github.com/numpy/numpy/pull/15759
comment by jhayward · 2021-01-16 · in The Secret Apple M1 Coprocessor -
…like Python users won’t have access to this capability from the M1 based Macs for some time. [1] https://github.com/numpy/numpy/issues/15947
comment by jhayward · 2020-12-29 · in Undocumented arm64 ISA extension present on the Apple M1 -
Please open a documentation issue at https://github.com/numpy/numpy/issues describing exactly which internals you would like to see explained: indexing, ufuncs, linkage, random, dtypes, ... and what format you would like to see the…
comment by mattip · 2020-12-12 · in How the Python object system works -
…no real guarantee is given, and that a relatively efficient attack has recently been demonstrated): https://github.com/numpy/numpy/issues/16313#issuecomment-726...
comment by nsajko · 2020-11-21 · in It is high time we let go of the Mersenne Twister (2019) -
https://github.com/numpy/numpy/blob/master/doc/release/upcom...
comment by moelf · 2020-11-18 · in Apple Silicon M1 chip in MacBook Air outperforms high-end 16-inch MacBook Pro -
…ocs.python.org/2/whatsnew/2.7.html#python-3-1-featu... [1] https://github.com/jeremybarnes/cephes [2] https://github.com/numpy/numpy
comment by Kednicma · 2020-10-15 · in How do we tell truths that might hurt? (1975) -
…conditions. To do so it uses the same macro used by the socket module when doing system calls: https://github.com/numpy/numpy/blob/18a6e3e505ee416ddfc617f3...
comment by Znafon · 2020-08-15 · in Django Async: What's new and what's next? -
Yes. https://github.com/numpy/numpy/blob/62fa23c44fb49c1d238e1de4...
comment by oefrha · 2020-07-13 · in Building Elixir from source segfaults on macOS on Apple Silicon while compiling -
…of NumPy go to heroic lengths (via Python reference counting) to avoid doing so in many cases: https://github.com/numpy/numpy/blob/v1.18.3/numpy/core/src/m... So in this case, NumPy would actually only make one temporary copy, effectively…
comment by shoyer · 2020-04-21 · in Python 2.7.18, the last release of Python 2