News for hackers. Stuff that matters.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by Malarkey73 on Saturday March 15, 2014 @08:05PM (#7407145)
That's funny. If there is one thing that Python users do more after than diss R - it's steal from R.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by scardine on Saturday March 15, 2014 @08:38PM (#7407246)
Immature computer language designers borrow; mature designers steal.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by GFK_of_xmaspast on Saturday March 15, 2014 @10:30PM (#7407530)
Matlab is a horror but one thing they do do well is .* and * for the two multiplies.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by synparb on Saturday March 15, 2014 @11:00PM (#7407593)
Julia also adopted this syntax, and I'm not sure if I like it. In numpy at least, I find myself doing element-wise multiplication much more frequently than matrix multiplication, so '.*' always feels clumsy. I'd rather have special syntax for the matrix multiply (and I was a long time matlab user before moving to numpy).
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by teddyh on Saturday March 15, 2014 @08:46PM (#7407271)
I have not witnessed this behavior, but it would be perfectly logical to dismiss R while absorbing its features – R is a domain-specific language (statistics) while Python is a general purpose programming language. A GP language will always have a larger useful scope than a DSL.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by maxerickson on Saturday March 15, 2014 @08:56PM (#7407303)
Calling R a DSL is like insisting that Python is just a scripting language.
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by teddyh on Saturday March 15, 2014 @11:44PM (#7407700)
R is “for statistical computing and graphics”¹.

1) http://www.r-project.org/

Re:PEP 465 – Dedicated infix operators for matrix multiplica... by maxerickson on Sunday March 16, 2014 @12:08AM (#7407772)
Sure, the facilities for statistics and plotting are well exposed. But all the features you need for 'general purpose' are in there too, and they aren't awkward to access (at least, relative to anything else).
Re:PEP 465 – Dedicated infix operators for matrix multiplica... by synparb on Saturday March 15, 2014 @09:00PM (#7407312)
A %*% B != A @ B