Live data from Hacker News

DumPy: NumPy except it's OK if you're dum

dynomight.net

1–10 of 62 posts

Re: DumPy: NumPy except it's OK if you're dum

#2
Clear articulation of why Numpy syntax is provincial and difficult to learn. Perhaps the clearest part of it clicks when the author compares the triple-nested loop to the numpy-function approach. The former is IMO (And the author thinks so) much easier to understand, and more universal.

Re: DumPy: NumPy except it's OK if you're dum

#3
I’ve known some people who didn’t want to learn the syntax of numpy and did it all in loops, and the code was not easy to read. It was harder to read. The fundamental issue is that operations on high dimensional arrays are very difficult to reason about. Numpy can probably be improved, but I don’t think loops are the answer.

Re: DumPy: NumPy except it's OK if you're dum

#5
post #3

I’ve known some people who didn’t want to learn the syntax of numpy and did it all in loops, and the code was not easy to read. It was harder to read. The fundamental issue is that operations on high dimensional arrays are very difficult to reason about. Numpy can probably be improved, but I don’t think loops are the answer.

What’s a better syntax then?

Re: DumPy: NumPy except it's OK if you're dum

#6
post #3

I’ve known some people who didn’t want to learn the syntax of numpy and did it all in loops, and the code was not easy to read. It was harder to read. The fundamental issue is that operations on high dimensional arrays are very difficult to reason about. Numpy can probably be improved, but I don’t think loops are the answer.

why_not_both.gif

Re: DumPy: NumPy except it's OK if you're dum

#9
I’m not convinced by the loops proposal. TensorFlow had this kind of lazy evaluation (except I guess TF was the worst of both worlds) and it makes debugging very difficult to the point that I believe it’s the main reason PyTorch won out. Such systems are great if they work perfectly but they never do.

NumPy definitely has some rough edges, I sympathize with the frustrations for sure.

Re: DumPy: NumPy except it's OK if you're dum

#10
post #3

I’ve known some people who didn’t want to learn the syntax of numpy and did it all in loops, and the code was not easy to read. It was harder to read. The fundamental issue is that operations on high dimensional arrays are very difficult to reason about. Numpy can probably be improved, but I don’t think loops are the answer.

I've read the article and it didn't seem to me the author is suggesting loops
Post reply on HN