Java > Scala

Caligo iteronvexor at gmail.com
Sat Dec 17 20:45:51 PST 2011


On Fri, Dec 2, 2011 at 2:19 AM, Russel Winder <russel at russel.org.uk> wrote:

> Java is the main language of development just now.  D is a tiny little
> backwater in the nether regions of obscurity.  If any language is a joke
> here, it is D since it is currently unable to claim any serious market
> share in the world of development.  The sooner you accept this, the
> sooner you can discuss the shortcomings of a language you have no
> experience of, by your own admission.
>
> Your point about how languages become popular has some merit, albeit
> stated in an overly bigoted fashion.
>

That's like saying people should take Coke and Pepsi more seriously because
they have bigger market shares when in reality all you need is water.
Money isn't real, you know?

D is already a success, a BIG success.  Walter and Andrei (and the amazing
community, of course) have created a programming language that is light
years ahead of C++, Java and Go.

I don't think you know this, but every high school student who takes a
computer science course is required to learn Java.  It doesn't stop there:
in college and university it's all Java, too, and this has been going on
for almost two decades.  And before Java it was mostly C++, but it was
phased out.  Unless the course specifically requires a different
programming language (which is rare), you have to beg to use a different
programming language (which I did).  Sometimes professors do allow other
programming languages, but they mostly limit it to C/C++.  In most cases
students either have to accept it and do what they are told to do, or fail
the course.  If that's not indoctrination, I don't know what is.  Also, the
reason they restrict education to things like Java and C++ has very little
to do with the fact that those languages have claimed big market share;
rather, it's because corporations have had a vested interest in
universities in the first place and they receive what they order.  Just
look at what Microsoft has been doing in universities: everything from
"free" gifts such as free copies of Windows OS and Visual Studio Ultimate
that cost thousands of dollars to sponsoring various kinds of events.  The
students who are influenced by such tactics, to whom do you think they are
going to be loyal to?

The _main point_ here is that if students had been give the choice to learn
a programming language of their choosing, many of the so called
"successful" programming languages would not have been so "successful"
today.  So next time you decide to lecture someone on how popular or
"successful" Java is, just remember how it got to be so "successful".


Your point about exploitation should be aimed at the entirety of the
> economic systems of the world.  The systems in the USA, India and China
> (the three main economies of the world) rest completely and solely on
> exploitation.  It's called capitalism.
>

I do see the entirety of the economic system of the world, and, no, it's
NOT called capitalism.  It's called the Monetary System.  Capitalism,
Socialism, Communism, etc,... they are all inherently the same because they
are all based on the Monetary System.  Money is created out of debt, and
money is inherently scarce.  Differential advantage and exploitation is
name of the game, regardless of the form of government you have.  And as
far as I know, India isn't even in the top five;  USA, China, and Japan are
in the top three.


>
> [...]
>
> > So far I have competed in the ACM ICPC regional programming contests
> > twice.  I've met many students there and I've had many teammates, most if
> > not all of them Java programmers.  Besides me (I've never actually done
> any
> > Java), I don't know any other C++ programmer in there.  I have seen
> > countless problems solved in Java and C++, with Java always being 10-20
> > times slower: same problem, same algorithms and/or data structures.
> > Whenever I find an article that talks about Java being faster than C++, I
> > know it's BS.  You can find fair comparisons at http://www.spoj.pl/
>
> If you have never used Java or never actually investigated the issues as
> to when Java is significantly slower than C++ and when it is as fast as
> C++ then clearly you have no grounds on which to express any opinion
> based on facts, it is just prejudice and bigotry.  Such comments have no
> place in any discussion.
>

I choose to ignore Java for technical and non-technical reasons.  Unlike
you, I don't need to spend years of my life doing Java programming to
realize what a joke it is, and I have never seen a case where Java was just
as fas as C++.  This is one of those myths, or corporate propaganda, that's
been propagated by educated idiots.  I and the teams I've been a member of
have solved countless CS problems that have required every kind of data
structure and algorithm, and not once have I seen Java come close to
C/C++.  On average, Java has been about 20 times slower than C++ and
requiring on average 50 times more memory when it came to solving those
problems.  If you honestly believe that Java can be just as fast as C++,
then go to http://www.spoj.pl/ and pick a problem and submit a solution in
Java that's no more than 3 times slower than C/C++ and requires no more
than 10 times more memory.


>
> > Java is also very sluggish.  I don't exactly know why, but I'm sure it
> has
> > something to do with JVM and/or GC.  Just look at Android and compare it
> to
> > iPhone to see what I mean.  Apps running on the PC written in Java are
> also
> > sluggish: Things like Eclipse and Open Office come to mind.
>
> If you don't know why, how can you make claims that you cannot
> substantiate in any way shape or form.
>
> You qualitative assessment of applications such as Eclipse and
> OpenOffice relates to the codebase and not the language.
>
> > Java is a joke.  It's a faith-based ideology.  Get over it.
> [...]
>
> Clearly you are having a crisis of faith, and so are having to lash out
> to protect your ideology.  I am entirely comfortable with my perceptions
> of languages, so have no need for such behaviours.  I analyse languages,
> consider use in context, and use the most appropriate language for the
> job at hand, be it Fortran, C++, C, Ada, Haskell, OCaml, Java, Groovy,
> Python, Ruby, Clojure, Lisp, Go.  Perhaps even D.
>
>
I'm not easily offended, and I've learned to let go.  I love to be proven
wrong because that's when I learn something new.  I think you are having a
harder time with this than you realize, and it's easy to understand why:
you have spent years of your life with pointless creations such as Java,
and they are now part of your identity.  Of course you are going to get
upset when someone labels Java as something of a joke because you take that
statement personally and see it as an attack on who you are.  It's okay.
Just learn to let go.  You still have time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111217/946fb9b0/attachment-0001.html>


More information about the Digitalmars-d mailing list