Live data from Hacker News

Python overtakes Java to become the second-most popular programming language

techrepublic.com

231–240 of 357 posts

Re: Python overtakes Java to become the second-most popular programming language

#231
post #67

I don't know why in today's day and age people switch to Python, the python version bumps is such a wreck. Pip and Pipenv are 10 years behind the eco system. so many other better langs out there that are more uniform.

Because all ML and data tools are written by scientists in Python: PyTorch, TensorFlow

Re: Python overtakes Java to become the second-most popular programming language

#232
post #178

Earlier quoted context omitted.

totally agree about sbt being gratuitously complex. i wonder if Java is judiciously choosing the non crazily digressive parts of Scala, as they both evolve.

That is what Goetz said is the plan for Java. Move slow, let other languages experiment with language features, and then take the best features and implement them better.

Well, so far the “better” still remains to be seen... waiting for type-classes to represent monoids, functors, applicatives, monads and foldable.

So far I’ve just seen a complex and wild stream API that mimics it in practice, without all the mental model behind it.

Oh, and what’s this nonsense with Java Option?! Really?

Re: Python overtakes Java to become the second-most popular programming language

#233

I was a total raving Python evangelist for the first 12 years of my coding career, and then got a job as the CTO for a Python based startup that had been running absent a technical leader for 5 years, with relatively junior coders making all the decisions. I still love Python, but I now have a completely different attitude to hyper-dynamic languages (like Python, Ruby, Clojure, Elixir, etc). In my new opinion, they a…

You know I would agree as someone who did a lot of python and dynamic languages there is a tendency for chaos. But then I have seen just as many chaotic Java code. If even go so far to say it’s more a function of the libs/framework than the ecosystem. I have seen a lot of terrible flask code, django code was much better on average and often better than spring code.

Re: Python overtakes Java to become the second-most popular programming language

#234

I was a Python dev for 14 years or so (now doing mostly personal projects in C/C++, Scheme, Clojure), and 10 years ago met my partner who is a biologist. I think one thing programmers underestimate is how many scientists and academics are using Python. It's not just ML, it's pretty much every kind of scientist and tons of non-science academics too. The fact that it's a great "casual" or part-time language is huge for…

Just want to bump this from another perspective: I’m an engineer in a big EU science infrastructure project and everything has a Python API. The main lab environment is JupyterLab. No one wonders whether what languages scripts or workflows will be written in.

Julia is on the radar but even in Julians’ wildest dreams Python remains relevant through PyCall. Why rewrite it if you can reuse it? (Obv I refer to boring-to-write non-performance-sensitive code here)

Re: Python overtakes Java to become the second-most popular programming language

#235

Earlier quoted context omitted.

I can't actually say what the popularity of C/C++ is. But I don't know what you do for a living but in general Hackernews tends to have webdev tunnel vision. Embedded, operating system development, browser development, OS, driver dev, games, telecoms, compilers, lots of IoT, systems development generally, all of this is in C/C++, and will be for the forseeable future. That is a lot of lines of code, but mostly invisi…

I do most of my work in C/C++. There's a ton of it in every microwave oven, washing machine, car, telephone, device driver, etc.

Likewise, my day job has been C++ for the last decade. And it's not just in devices or games, or in OSs. Before I worked in hardware devices I worked in video pipeline stuff in Google Fiber. And before that, I worked on the ad serving stack at Google and another company before that. All in C++. A good portion of servers @ Google are in C++.

Now, if you strictly interpret the "C" in this popularity nonsense as "C", then sure. Pure ANSI C has a fairly restrictive use environment. But "C/C++" is a much much larger ecosystem.

Also get a laugh out of the people here calling C "simple". Ho boy.

Re: Python overtakes Java to become the second-most popular programming language

#236
post #2

We need to start ranking languages based on what people use them for. Python is certainly #1 in ML, for example, but far from #1 in web. I had a "which stack" argument with a client recently for a web server processing tons of data. He wanted to use Node (which I hate, but also use when performance doesn't matter because TypeScript is so good). I showed him that the Node library ecosystem is actually pretty weak (man…

https://spectrum.ieee.org/static/interactive-the-top-program...

[Access to this page may require you to create an account.]

For years, IEEE has ranked the top 55 languages based on five use cases typical of IEEE members: overall, web, enterprise, mobile, and embedded, and ranked three ways: trending overall, in demand for jobs, and used by open source.

The 2020 results, ranked overall:

1 Python 100.0

2 Java 95.3

3 C 94.6

4 C++ 87.0

5 JavaScript 79.5

6 R 78.6

7 Arduino 73.2

8 Go 73.1

9 Swift 70.5

10 Matlab 68.4

11 Ruby 66.8

12 Dart 65.6

13 SQL 64.6

14 PHP 63.8

15 Assembly 63.7

16 Scala 63.5

17 HTML 61.4

18 Kotlin 57.8

19 Julia 56.0

20 Rust 55.6

21 Shell 52.0

22 Processing 49.2

23 C# 48.1

24 SAS 45.2

25 Fortran 43.0

26 Cuda 41.0

27 Visual Basic 40.3

28 Objective-C 38.9

29 Delphi 38.6

30 Perl 38.2

31 Verilog 37.6

32 VHDL 36.7

33 LabView 36.7

34 Elixir 35.8

35 F# 34.7

36 Prolog 34.6

37 Lua 34.4

38 Lisp 33.0

39 Ada 32.8

40 Apache Groovy 32.0

41 Scheme 31.4

42 Haskell 30.8

43 Cobol 30.4

44 Clojure 29.8

45 ABAP 29.5

46 D 27.7

47 Forth 23.7

48 Ocaml 23.7

49 TCL 22.1

50 LadderLogic 19.5

51 Erlang 18.3

52 Eiffel 16.5

53 CoffeeScript 15.9

54 J 14.3

55 Racket 0.0

Re: Python overtakes Java to become the second-most popular programming language

#237

Earlier quoted context omitted.

Everyone has different ideas about what matters; I care about continuity and stability. I cannot do a monthly dance of 'library blah is no longer maintained, please try library vlah which, by the way, is completely incompatible API wise!'. I need stuff that runs fine in a decade and where the maintainers respect backwards compatibility. I have not been let down by the past decades of JVM (and PHP but I never used man…

I think we may be speaking to the same goals. My worry about the JVM is that, culturally speaking, the community has been losing interest in the old stable stuff (Which I get, it all looks like 20 years ago.), and so the Java ecosystem seems to be eagerly headed in a more "move fast and break things" direction.

JVM is still doing well in terms of interest.

The declining interest in Java is offset by Kotlin, Scala, and Clojure.

Re: Python overtakes Java to become the second-most popular programming language

#238
post #165
post #2

We need to start ranking languages based on what people use them for. Python is certainly #1 in ML, for example, but far from #1 in web. I had a "which stack" argument with a client recently for a web server processing tons of data. He wanted to use Node (which I hate, but also use when performance doesn't matter because TypeScript is so good). I showed him that the Node library ecosystem is actually pretty weak (man…

What makes you so certain it is far from #1 in web? Django is massively popular as is flask.

No estimate is perfect, but PHP is far and away #1 because of WordPress.

Here are some stats that you could and should take with a grain of salt: https://w3techs.com/technologies/overview/programming_langua...

My anecdata also says neither Django nor Flask are very populate. I have yet to encounter either one already in use by a client. Rails is also rare. I think scrappy startup frameworks are a different population than what most devs (who work at big firms) use.

Re: Python overtakes Java to become the second-most popular programming language

#239

I was a total raving Python evangelist for the first 12 years of my coding career, and then got a job as the CTO for a Python based startup that had been running absent a technical leader for 5 years, with relatively junior coders making all the decisions. I still love Python, but I now have a completely different attitude to hyper-dynamic languages (like Python, Ruby, Clojure, Elixir, etc). In my new opinion, they a…

> If your team really knows what they're doing and can take advantage of the flexibility without creating a mess, they can let you move really fast and make elegant DSLs and so on. [..snip..] I never thought I'd say this before, but I would have been happier stepping into C++.

Actually, I find Nim language [1] to be a great alternative to C++ as far as compiled, statically typed, high performance modern languages are concerned. Moreover, Nim's meta-programming capabilities (generics, templates, macros) are second to none for creating elegant DSLs. And its syntax makes Python developers feel at home. Preempting questions about garbage collection -- Nim allows to switch off GC and manually manage memory if a programmer so desires. Or you can manually manage memory in some critical parts of your program while letting the rest be garbage collected.

[1] https://nim-lang.org/

Re: Python overtakes Java to become the second-most popular programming language

#240
post #12

Earlier quoted context omitted.

On the other hand the stackoverflow survey might show that C is so simple that programmers using it don't need stackoverflow :)

C is simple on the surface but it gives you enough rope to shoot yourself in the foot that even after 6 years of using it I don't dare call it simple knowing my war scars.

I think there is a difference between simple and easy. I would say C is simple but still hard ;) I'm not a native english speaker so take this with a grain of salt.
Post reply on HN