News for hackers. Stuff that matters.
Re:Functional programming is not popular because it is weird... by erostrate on Tuesday September 14, 2021 @02:55AM (#28521222)
How does your theory explain Rust or Python?
Re:Functional programming is not popular because it is weird... by valenterry on Tuesday September 14, 2021 @03:12AM (#28521331)
Despite Rust being around for quite some time now, highly liked (hyped) by its users and being a good language with many features that make it stand apart while having major commercial support, it's still a very niche language.

I think it rather supports the OPs claim.

Re:Functional programming is not popular because it is weird... by goto11 on Tuesday September 14, 2021 @03:23AM (#28521429)
People are learning Python because they want to do ML or scientific computing - not the other way around. Python has its current popularity because of NumPy and the whole numeric and ML ecosystem.

I love Python as a language, but realistically it could just as well have been Ruby or some other language.

Re:Functional programming is not popular because it is weird... by arc-in-space on Tuesday September 14, 2021 @04:19AM (#28521775)
Python was already quite popular by the time 3.0 came out in 2008, well before the AI summer was in full swing, which is a large part of what drove the popularity of NumPy et al.

You're not wrong now, but that's just the chicken, the egg included web applications and its use as a scripting language.

Re:Functional programming is not popular because it is weird... by pjmlp on Tuesday September 14, 2021 @05:32AM (#28522254)
Python was already the scripting language of choice at CERN when I was there about 20 years ago.

Summer School computing classes even used to teach unit testing in Python.

And the Atlas HLT/DAQ build scripts were based on Python.

Re:Functional programming is not popular because it is weird... by beowulfey on Tuesday September 14, 2021 @06:33AM (#28522664)
The counter example you’d probably want to use is Julia — it was written with scientific computing in mind, but is nowhere near as popular.
Re:Functional programming is not popular because it is weird... by twistedpair on Tuesday September 14, 2021 @11:20AM (#28526182)
Seems that NumPy was written in Python b/c the ML community was using Python, not the other way around.
Re:Functional programming is not popular because it is weird... by tgv on Tuesday September 14, 2021 @02:57AM (#28521241)
For Python, the platform is education.
Re:Functional programming is not popular because it is weird... by Jensson on Tuesday September 14, 2021 @03:05AM (#28521290)
And most educators decided on Python because? You don't think it has anything to do with people liking the language and therefore wanting to use it and teach in it?
Re:Functional programming is not popular because it is weird... by WastingMyTime89 on Tuesday September 14, 2021 @04:41AM (#28521938)
> And most educators decided on Python because?

Because there was a huge push by the Python designers towards this direction?

They got funds from the DARPA in 1999 for a proposal entitled "Computer Programming for Everybody", the first part of which was " Develop a new computing curriculum suitable for high school and college students".

The Python project did a lot of outreach and marketing specifically targeted at educators to explain why Python was a great teaching language (and did a lot of work to make it so - don't get me wrong). It worked.

Re:Functional programming is not popular because it is weird... by dijksterhuis on Tuesday September 14, 2021 @03:21AM (#28521415)
It can also be due to tooling -- once a student has got the python binary installed you can get them writing and running code without having to make sure they have the correct version of x, y, z (don't even need conda or pip) or teaching them what a compiler is etc.

Javascript is quite popular as an introductory language too -- students can open up a web browser and type stuff in the console in the middle of a lecture.

Re:Functional programming is not popular because it is weird... by Qem on Wednesday September 15, 2021 @10:02AM (#28539147)
I agree. It even features a basic IDE, IDLE, as part of the default install. No need to figure out how to configure your text editor to interact with the Python shell. I remember trying to learn Ruby before Python, several years ago, but then got stuck trying to configure Geany to work with Ruby.
Re:Functional programming is not popular because it is weird... by Zinu on Tuesday September 14, 2021 @03:23AM (#28521426)
They chose Python since it's essentially a free, open-source alternative to Matlab.

Also, Python is used as a scripting language on top of C, and C is popular.

Re:Functional programming is not popular because it is weird... by jasode on Tuesday September 14, 2021 @04:50AM (#28521996)
>They chose Python since it's essentially a free, open-source alternative to Matlab.

Different domains of education had different reasons but some classes had nothing to do with Matlab.

- The professor Gerry Sussman of the famous MIT 6.001 SICP class said they switched from Scheme to Python because (paraphrasing) it's more high-level with libraries to get immediate work done. (E.g. A class project to control a robot.)

- Peter Norvig teaching Artificial Intelligence classes switched from Lisp to Python because he noticed his students kept getting stuck on Lisp syntax instead of progressing on the more important AI concepts. Switching to Python made teaching the class easier.

One can google for their interviews on why they switched to Python.

Re:Functional programming is not popular because it is weird... by Jensson on Tuesday September 14, 2021 @03:29AM (#28521468)
Why didn't they use Scheme? That was pushed by a very prestigious institution so had some momentum in the education field. Instead they switched to Python and basically nobody uses Scheme to teach any longer. Python won because people preferred it over lisp, simple as that.
Re:Functional programming is not popular because it is weird... by detaro on Tuesday September 14, 2021 @04:43AM (#28521952)
Teaching Scheme etc always got pushback from the outside, because regardless of how well it works for education, people get it in their head that you are teaching something that "industry doesn't use" and thus is bad.
Re:Functional programming is not popular because it is weird... by detaro on Tuesday September 14, 2021 @04:42AM (#28521945)
in comparatively few places Matlab would have been the alternative.
Re:Functional programming is not popular because it is weird... by Peritract on Tuesday September 14, 2021 @08:03AM (#28523403)
It's a really intuitive one for new people to learn - you're far from the machine, but the syntax doesn't get in the way of the concepts much. Of all the languages I have taught people in, Python is the quickest route to understanding/independence.
Re:Functional programming is not popular because it is weird... by jfcisco on Tuesday September 14, 2021 @03:03AM (#28521278)
It also helps that Linux distros usually come with Python
Re:Functional programming is not popular because it is weird... by dijksterhuis on Tuesday September 14, 2021 @03:07AM (#28521300)
Python is quite popular with the data / machine learning crowd. Think pandas, tensorflow etc.
Re:Functional programming is not popular because it is weird... by Jensson on Tuesday September 14, 2021 @03:22AM (#28521422)
Python was popular before those libraries came out though. And then people wrote those libraries in Python because it was popular, making it more popular. People using popular languages to create platforms or on their platforms isn't evidence that having a platform is what drives language popularity.
Re:Functional programming is not popular because it is weird... by js8 on Tuesday September 14, 2021 @03:39AM (#28521535)
Python came with a platform of sorts, its motto was "batteries included", after all.