P
Pascal J. Bourguignon
Hi to all,
I've to say that all these threads C++ vs the world are very
interesting.
I'am an amateur programmer, I do small MIDI and audio apps just for
fun,
mainly for my electronic music productions( always just for fun, no
talent at all, sigh... ;-)
All the statements made in recent threads make me think that all the
hours spent in
learning how to program in C and C++ were useless.
Not entirely. But to have fun developping small MIDI and audio
application, indeed I wouldn't consider C or C++ indicated.
So out of frustration I would like to ask to Java, 0Caml or whatever
else supporters:
How many POPULAR COMMERCIAL APPS in "real-time" fields like audio,
video or video-games
are made in Java or whatever else. I ask about these kind of apps
because they're the ones
I'm mostly interested in and because I would think they're the ones
where speed is of great importance.
Remember that real-time is not the same as fast. Real-time means that
the time needed to do some computation is bounded, the bound is known,
and is less than the period in which it must be computed.
For MIDI applications, that means that you need to compute one byte
every 1/3125 second = 320 microsecond. There's time to execute more
than 320000 instructions on a modern processor to compute that byte.
And a note on command is three bytes, meaning that you have more than
one millisecond to compute the next note on or note off... An eternity
on current processors.
[...]
So if EVERYTHING can be done more productively in Java or 0Caml ( or
whatever ) and the final result should
be even faster (??) than the C or C++ equivalent, WHY all pros in the
above mentioned genres are still using
obsolete languages?
McDonald vs. La Tour d'Argent.
Also, most often, it's not programmers who get to choose the
programming language, but the managers. And what matters to the
manager is not that programming be efficient or fun, but that they be
able to hire easily (ie. cheaply) a lot of monkeys^W "programmers".
Anyways, you're in the game for fun, not for money, so why should you
care what the so called "pro" do or don't? Choose a programming
language in which you don't spend time on trivial technicalities, and
with which you have fun programming your little applications.