News for hackers. Stuff that matters.
Re:Python 3.5 to Ship with Matrix Multiplication Operator by heron87 on Tuesday April 08, 2014 @03:16AM (#7551876)
Ehm, Python is not a "scripting language". It is a — as you said — general purpose programming language. And it is becoming more and more popular for scientific applications, where matrix multiplication plays a key role.
Re:Python 3.5 to Ship with Matrix Multiplication Operator by BoppreH on Tuesday April 08, 2014 @03:48AM (#7551987)
I honestly didn't expect a downvote for calling Python a "scripting language". I use the term loosely and always thought Python fit spot on. I still think it applies here, but I've edited the parent post to correct this possibly incorrect usage of the word.

Just for the record, these are the characteristics of Python that made me call it "scripting":

- Interpreted

- Highly expressive

- No boilerplate

- Vast majority of programs are short

- Lots of libraries for gluing stuff together

- Used for turing-complete customization of software in other languages (e.g.: Sublime Text)

- Recommended as replacement for Bash in some cases

Anyway, I'm happy to see the language evolving to meet its users' needs.

Re:Python 3.5 to Ship with Matrix Multiplication Operator by wisty on Tuesday April 08, 2014 @07:02AM (#7552592)
Stolen from https://www.python.org/doc/humor/ (in response to a claim that it's not a true OO language):

> Indeed, and because it doesn't support closures, it's not a true functional programming language either. And because you have to import all sorts of modules to do the simplest things (e.g., regular expressions), neither is it a true scripting language. Indeed, because it doesn't support labeled break or continue statements, it's not even a true structured programming language.

I think the point is, trying to classify programming languages (except domain specific ones like SQL or maybe PHP) is kind of pointless.

But to answer your real question, Python is one of the top languages in number crunching. After web work, that's Python's second biggest niche.

Re:Python 3.5 to Ship with Matrix Multiplication Operator by TillE on Tuesday April 08, 2014 @07:41AM (#7552738)
> it doesn't support closures

It does now, and thank goodness, because even C++ has closures these days.

Re:Python 3.5 to Ship with Matrix Multiplication Operator by PeterisP on Tuesday April 08, 2014 @05:54AM (#7552395)
I believe that the common usage of python has switched away from "scripting usage" - it's now generally used to implement stuff, not glue stuff together or replace bash, and the vast majority of programs isn't short anymore.

It can be used as a scripting language, but that doesn't seem to be the main use-case anymore.

Re:Python 3.5 to Ship with Matrix Multiplication Operator by heron87 on Tuesday April 08, 2014 @04:18AM (#7552091)
No offense intended. I just have a slightly different understanding of a "scripting language": a — often domain-specific — language that is merely used to write small scripts/macros. But anyway, I did not want to start a discussion about that. Sorry for that.
Re:Python 3.5 to Ship with Matrix Multiplication Operator by Borogove on Tuesday April 08, 2014 @02:24PM (#7555063)
The standard implementation of Python is compiled to bytecode, like most modern mainstream languages, not interpreted.
Re:Python 3.5 to Ship with Matrix Multiplication Operator by adamors on Tuesday April 08, 2014 @05:52AM (#7552390)
I'm sorry, but how is Python not a scripting language?
Re:Python 3.5 to Ship with Matrix Multiplication Operator by mbq on Tuesday April 08, 2014 @06:59AM (#7552586)
It is just that "scripting" is now called "managed" because it hurts ego to be a scripting programmer.