www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OT: languages and github activity

reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
I looked at bit at the github activity for various languages in 
terms of repos created in the past 2 months using [Github 
advanced 
search](https://github.com/search/advanced?q=type=Repositories).

|language | number of repos created in the past 2 months|
|---|---|
|Java|371K|
|TypeScript|165K|

|C++|102K|
|C|64K|
|Kotlin|50K|
|Dart|44K|
|Go|38K|
|Swift|29K|
|Rust|15K|
|Scala|3K|
|Pascal|2K|
|Haskell|2K|
|Objective-C|2K|
|Julia|2K|
|Fortran|657|
|Haxe|552|

|OCaml|494|
|Prolog|368|
|Zig|245|
|Erlang|220|
|Nim|217|
|D|185|
|Crystal|119|
|Vala|61|
|Pony|11|
|Chapel|1|

*My interpretation:*

Languages that are used by students and academics appear to have 
a boost on Github (Fortran, OCaml, Haskell, Java). To get over 1K 
you seem to need to have a unique domain where are you are or 
have been dominating (except for Scala, which is an outlier).

I didn't expect C++ to have so many new repos, and expected the 

standard library is weak, or do C++ programmers have a stronger 
inclination to share their projects in progress on Github? I 


Dart being so close to Kotlin and Swift is also a bit surprising; 
it suggests that people have a strong preference for portability. 
I actually thought that Haxe was fading away, but it appears to 
be quite strong for a language that does not receive much 
exposure. Again, could suggest that portability is a strong 
factor.

Nim and D appears to be fairly stable, so no real surprise there, 
but Zig is getting more attention than I would expect at this 
point in time. I personally don't view Zig as a particularly 
interesting language design, so does the apparent growth reflect 
early enthusiasm or does it reflect actual productivity?

Pony and Chapel are interesting languages, but maybe concurrency 
is not as important to most programmers as we might like to think 
it is. Erlang has had a lot of exposure, yet it does not have 
more activity than languages that receive very little exposure. 
So again, maybe concurrency is not a strong factor when people 
select programming languages (yet).


(Note: github results vary by a few % for each search, so it 
isn't precise).
Oct 25 2021
next sibling parent reply IGotD- <nise nise.com> writes:
On Monday, 25 October 2021 at 16:17:43 UTC, Ola Fosheim Grøstad 
wrote:
 [...]
Pascal which is an old almost dead language is rather high up on the list, strange. Are there tons of schools that still use Pascal? Does Pascal also include Delphi?
Oct 25 2021
next sibling parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Monday, 25 October 2021 at 16:39:06 UTC, IGotD- wrote:
 On Monday, 25 October 2021 at 16:17:43 UTC, Ola Fosheim Grøstad 
 wrote:
 [...]
Pascal which is an old almost dead language is rather high up on the list, strange. Are there tons of schools that still use Pascal? Does Pascal also include Delphi?
Yes, as you can see Delphi repos have a strong presence: https://github.com/search?q=created%3A%3E2021-08-25+language%3APascal&type=Repositories&ref=advsearch&l=Pascal&l=
Oct 25 2021
prev sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Mon, Oct 25, 2021 at 04:39:06PM +0000, IGotD- via Digitalmars-d wrote:
[...]
 Pascal which is an old almost dead language is rather high up on the
 list, strange. Are there tons of schools that still use Pascal? Does
 Pascal also include Delphi?
Delphi is based on Pascal IIRC. Delphi is quite widely used in spite of not usually being on people's popular lists. (This is another reason I don't trust what's popular / not popular. It presents a wildly inaccurate picture of what's actually there.) T -- An elephant: A mouse built to government specifications. -- Robert Heinlein
Oct 25 2021
next sibling parent reply Guillaume Piolat <first.last gmail.com> writes:
On Monday, 25 October 2021 at 17:48:39 UTC, H. S. Teoh wrote:
 Delphi is based on Pascal IIRC.  Delphi is quite widely used in 
 spite of not usually being on people's popular lists.  (This is 
 another reason I don't trust what's popular / not popular.  It 
 presents a wildly inaccurate picture of what's actually there.)
+1 If you think about it, the above list has no Excel, COBOL, or PHP.
Oct 25 2021
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Monday, 25 October 2021 at 21:48:24 UTC, Guillaume Piolat 
wrote:
 If you think about it, the above list has no Excel, COBOL, or 
 PHP.
Yes, I tried to focus on languages that to some extent can be replaced by D, is somewhat comparable to D (and have a reputation for being somewhat efficient). I accidentally bypassed Ada, which is at 84 new repos. I didn't add Python, Perl or Php because they are more in a scripting-tradition. So I don't think of them as being head-to-head with D. (others might disagree)
Oct 25 2021
prev sibling parent reply Dr Machine Code <jckj33 gmail.com> writes:
On Monday, 25 October 2021 at 17:48:39 UTC, H. S. Teoh wrote:
 On Mon, Oct 25, 2021 at 04:39:06PM +0000, IGotD- via 
 Digitalmars-d wrote: [...]
 Pascal which is an old almost dead language is rather high up 
 on the list, strange. Are there tons of schools that still use 
 Pascal? Does Pascal also include Delphi?
Delphi is based on Pascal IIRC. Delphi is quite widely used in spite of not usually being on people's popular lists. (This is another reason I don't trust what's popular / not popular. It presents a wildly inaccurate picture of what's actually there.) T
used in new projects or just maintaining old codebase?
Oct 25 2021
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Tuesday, 26 October 2021 at 05:31:27 UTC, Dr Machine Code 
wrote:
 used in new projects or just maintaining old codebase?
The repos in my table are new.
Oct 26 2021
prev sibling next sibling parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 25 October 2021 at 16:17:43 UTC, Ola Fosheim Grøstad 
wrote:
 I looked at bit at the github activity for various languages in 
 terms of repos created in the past 2 months using [Github 
 advanced 
 search](https://github.com/search/advanced?q=type=Repositories).

 [...]
Interesting. But, why oh why is Fortran so high on that list? đŸ˜…
Oct 25 2021
parent reply Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Monday, 25 October 2021 at 17:43:29 UTC, Imperatorn wrote:
 Interesting. But, why oh why is Fortran so high on that list? đŸ˜…
My guess is that many in Physics are not interested enough in programming to become proficient in C++? There might also be communities where you are better off using what your colleagues are using. Once a language dominates a field it tends to linger on for decades…
Oct 25 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Monday, 25 October 2021 at 17:58:38 UTC, Ola Fosheim Grøstad 
wrote:
 On Monday, 25 October 2021 at 17:43:29 UTC, Imperatorn wrote:
 Interesting. But, why oh why is Fortran so high on that list? đŸ˜…
My guess is that many in Physics are not interested enough in programming to become proficient in C++? There might also be communities where you are better off using what your colleagues are using. Once a language dominates a field it tends to linger on for decades…
Might be true. Just write what you're used to and already know. Just a bit unreasonably high still imo, but that might be the answer
Oct 25 2021
parent Ola Fosheim =?UTF-8?B?R3LDuHN0YWQ=?= <ola.fosheim.grostad gmail.com> writes:
On Monday, 25 October 2021 at 21:31:34 UTC, Imperatorn wrote:
 Might be true. Just write what you're used to and already know. 
 Just a bit unreasonably high still imo, but that might be the 
 answer
Yes, since we are talking new code then it is high. I would have expected relatively high maintenance levels of old repos and fewer new ones. If we look at some of the repos then some describe themselves as being targeting "modern Fortran". So it might be that some of those repos are recreating features of existing libraries in a less archaic formulation.
Oct 25 2021
prev sibling parent reply zjh <fqbqrr 163.com> writes:
On Monday, 25 October 2021 at 16:17:43 UTC, Ola Fosheim Grøstad 
wrote:
 I looked at bit at the github activity for various languages in
Modern C++ basically absorbs the essence of D, so D has to learn the `goody` of C++.like `...` and `concept` and `coroutines`...,They are very easy to use.
Oct 25 2021
parent reply surlymoor <surlymoor cock.li> writes:
On Tuesday, 26 October 2021 at 00:35:32 UTC, zjh wrote:
 On Monday, 25 October 2021 at 16:17:43 UTC, Ola Fosheim Grøstad 
 wrote:
 I looked at bit at the github activity for various languages in
Modern C++ basically absorbs the essence of D, so D has to learn the `goody` of C++.like `...` and `concept` and `coroutines`...,They are very easy to use.
Well, there is a DIP for [tuple expansion via `...`](https://github.com/dlang/DIPs/blob/master/DIPs/DIP1037.md), but I haven't seen Manu around in a good while.
Oct 25 2021
parent zjh <fqbqrr 163.com> writes:
On Tuesday, 26 October 2021 at 04:43:31 UTC, surlymoor wrote:
 On Tuesday, 26 October 2021 at 00:35:32 UTC, zjh wrote:
`Manu` VS `walter`,and `walter` KO.
Oct 25 2021