TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

NumPy 2.0

324 pointsby scoresmoke11 months ago

12 comments

dahart11 months ago
The thing I want most is a more sane and more memorable way to compose non-element-wise operations. There are so many different ways to build views and multiply arrays that I can’t remember them and never know which to use, and have to relearn them every time I use numpy… broadcasting, padding, repeating, slicing, stacking, transposing, outers, inners, dots of all sorts, and half the stack overflow answers lead to the most confusing pickaxe of all: einsum. Am I alone? I love numpy, but every time I reach for it I somehow get stuck for hours on what ought to be really simple indexing problems.
评论 #40701313 未加载
评论 #40700985 未加载
评论 #40701754 未加载
评论 #40702325 未加载
评论 #40702471 未加载
评论 #40703988 未加载
评论 #40701419 未加载
评论 #40703618 未加载
ayhanfuat11 months ago
&gt; The default integer type on Windows is now int64 rather than int32, matching the behavior on other platforms<p>This was a footgun due to C long being int32 in win64. Glad that they changed it.
fbdab10311 months ago
Any notable highlights for a consumer of Numpy who rarely interfaces directly with it? Most of my work is pandas+scipy, with occasionally dropping into the specific numpy algorithm when required.<p>I am much more of an &quot;upgrade when there is a X.1&quot; release kind of guy, so my hat off to those who will bravely be testing the version on my behalf.
评论 #40700079 未加载
评论 #40701871 未加载
notatoad11 months ago
it feels like the first major release in 18 years which introduces lots of breaking changes should just be a fork rather than a version.<p>let me do `pip install numpy2` and not have to worry about whether or not some other library in my project requires numpy&lt;2.
评论 #40701533 未加载
评论 #40702318 未加载
评论 #40700969 未加载
评论 #40702977 未加载
评论 #40707881 未加载
TalTay11 months ago
<a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;78641150&#x2F;a-module-that-was-compiled-using-numpy-1-x-cannot-be-run-in-numpy-2-0-0" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;78641150&#x2F;a-module-that-w...</a>
RandomBK11 months ago
I&#x27;m starting to see some packages break due to not pinning 1.x in their dependencies. `pip install numpy==1.*` is a quick and hacky way to work around those issues until the ecosystem catches up.
评论 #40703222 未加载
antonoo11 months ago
&gt; X months of work by Y contributors?<p>Makes it look like they pressed publish before filling in their template, or is this on purpose?
tpoacher11 months ago
I wish numpy pushed their structured arrays (and thereby also improvements to their interface) more aggressively.<p>Most people are simply unaware of them, which is why we get stuff like pandas on top of everything.
fertrevino11 months ago
So apparently this is what broke my CI job since it was indirectly installed. One of the downsides of using loose version locking with requirements.txt rather than something like poetry I guess.
Kalanos11 months ago
What are the implications of the new stringdtype? If I remember correctly, string performance was a big part of the pandas switch to arrow.
darepublic11 months ago
I would love for numpy to be ported as a typescript project personally. So I can do ml in ts. The python ecosystem feels a bit insane to me (more so than the js one). Venv helps but is still inferior to a half decent npm project imo. I feel there is no strict reason why this migration couldn&#x27;t happen, only the inertia that makes it unlikely
评论 #40710029 未加载
评论 #40708127 未加载
ck4511 months ago
Here&#x27;s a link to the release notes: <a href="https:&#x2F;&#x2F;numpy.org&#x2F;devdocs&#x2F;release&#x2F;2.0.0-notes.html" rel="nofollow">https:&#x2F;&#x2F;numpy.org&#x2F;devdocs&#x2F;release&#x2F;2.0.0-notes.html</a>
评论 #40700722 未加载
评论 #40700401 未加载
评论 #40700638 未加载