Hacker GitHub

← All repos

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

Mentions per year 76 mentions · busiest year 2024 (13)
20082026
  1. 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
  2. …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?
  3. 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
  4. …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…
  5. …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
  6. …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…
  7. ▲ 2
    Release v2.3.0 (June 7, 2025) · NumPy/NumPy
    story by rbanffy · 2025-06-18 · 0 comments
  8. …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)
  9. …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…
  10. 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
  11. …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__
  12. …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
  13. …all supported arithmetic formats. Hyperbolic tan is in the list of recommended functions, and yet: https://github.com/numpy/numpy/issues/9187
  14. 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
  15. ▲ 3
    NumPy 2.0.0 release – first major release since 2006
    story by godber · 2024-06-17 · 0 comments
  16. Looks like that might get reverted [0]. [0] https://github.com/numpy/numpy/pull/25955
    comment by haiguise · 2024-06-17 · in NumPy 2.0
  17. ▲ 1
    NumPy 2.0.0 Release Notes
    story by stanislavb · 2024-06-17 · 0 comments
  18. …of: > It is the result of X months of development since the last feature release by Y contributors https://github.com/numpy/numpy/releases/tag/v2.0.0
    comment by wartijn_ · 2024-06-17 · in NumPy 2.0
  19. ▲ 8
    NumPy 2.0.0
    story by wishawa · 2024-06-16 · 0 comments
  20. 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
  21. ▲ 4
    NumPy 2.0.0 Beta1
    story by marcin_konow · 2024-03-18 · 0 comments
  22. ▲ 6
    NumPy 2.0 Development Status
    story by _1 · 2023-10-15 · 0 comments
  23. …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
  24. …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...
  25. …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.
  26. 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
  27. worth a look https://github.com/numpy/numpy/issues/14412
    comment by Kalanos · 2022-12-19 · in NumPy 1.24
  28. ▲ 108
    NumPy 1.24
    story by drunkendog · 2022-12-19 · 32 comments
  29. 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…
  30. …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...
  31. ▲ 4
    Harmless NumPy issue receives CVE medium
    story by miohtama · 2022-06-24 · 0 comments
  32. Doesn't numpy use a natively compiled Fortran or c library for that? https://github.com/numpy/numpy/blob/main/numpy/core/src/mult...
  33. …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
  34. …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
  35. 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
  36. 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
  37. …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
  38. 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
  39. …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 (…
  40. …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
  41. That was the issue: https://github.com/numpy/numpy/issues/18281
    comment by jjgreen · 2021-02-01 · in NumPy 1.20
  42. …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
  43. …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
  44. 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
  45. …no real guarantee is given, and that a relatively efficient attack has recently been demonstrated): https://github.com/numpy/numpy/issues/16313#issuecomment-726...
  46. https://github.com/numpy/numpy/blob/master/doc/release/upcom...
  47. …ocs.python.org/2/whatsnew/2.7.html#python-3-1-featu... [1] https://github.com/jeremybarnes/cephes [2] https://github.com/numpy/numpy
  48. …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...
  49. Yes. https://github.com/numpy/numpy/blob/62fa23c44fb49c1d238e1de4...
  50. …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…