News for hackers. Stuff that matters.
Re:Wolfram Language and Mathematica Free on Every Raspberry Pi by icapybara on Sunday February 26, 2023 @11:50AM (#34946975)
Why is element-wise multiplication for a multi-dimensional array a "footgun"?

You try it once, realize it's doing things element-wise, and then go lookup the proper product symbol (@ in numpy).

Re:Wolfram Language and Mathematica Free on Every Raspberry Pi by oivey on Sunday February 26, 2023 @12:55PM (#34947576)
I think I mostly like that element of NumPy’s design. 2D arrays are in general not matrices. Images, for example, do not have matrix multiplication semantics.
Re:Wolfram Language and Mathematica Free on Every Raspberry Pi by danuker on Sunday February 26, 2023 @01:12PM (#34947762)
I guess when you have a software package named "Mathematica", mathematicians expect to be able to take their math and transliterate it easily. Making them specify the "Dot" function would irk them.

I don't know the motivation of the decision, but "ElementwiseProduct" is harder to type, and still has a lot of use cases.