Re: question about programming



lrbtav wrote:
Hi, I don't know much about programming (windows platform) but I do
have an interest in the discipline. I've noticed that when I install
various programs, some of them mention they were developed in c#, c++,
VB, etc. I understand each of these fall under different generations of
programming languages (5 total). My question is, would the same program
developed in a high gen language such as VB run SLOWER than a program
developed in a 3rd gen language?

That depends on the VB implementation, the 3rd gen language
implementation, and the exact programs written. There are some C
implementations (e.g. EiC) that are much slower than some higher-level
language implementations (e.g. OCaml or CMU Common Lisp). The reverse
is also true.

Even if one implementation is much faster than the other for
"equivalent" code, it's possible that writing equivalent code is far
more difficult in one language than another, and it's often common for
the "straightforward" implementation in, say, C to be very different
(and possibly worse) than the straightforward implementation in, say,
Python or VB. So you need to account for how likely the language and
implementation is to help accomplish the task in a timely fashion.

Moreover, the exact nature of the program is liable to change the
metrics. While looping directly over large Python lists and doing many
mathematical calculations can be slow, using common Python libraries
like Numpy may result in faster (or slower) code than doing things in
C, depending on what C libraries and implementations you're using.

All that is to say that performance is very dependent on the specific
programs and implementations in question. Even very experience
programmers are often surprised at where the time is being spent in
their programs when they benchmark and profile them. You can get a
decent feel for what kinds of tasks and algorithms are going to be fast
or slow, but when you get down to brass tacks you really must benchmark
your particular program on your particular implementation to know for
sure how things are going to turn out.

.



Relevant Pages

  • Re: Relative merits of Lisp-1 vs. Lisp-2?
    ... language, not really as customizations of the current language. ... Common Lisp's design just about everywhere presupposes the desire to ... shift from small-address-space situations like Maclisp served (where ...
    (comp.lang.lisp)
  • Re: SQL
    ... >> Patrick May wrote: ... The most common language for manipulating tables is SQL ... > integrate legacy systems and third party products, ...
    (comp.object)
  • Re: Lua! Lua! Cthulhu ftagn!
    ... And I was hoping to re-design my RL in Python, ... so I'd better pick another language in order for RL ... it's slower if you count the computations only. ... tested and optimized implementations in a "batteries included" language ...
    (rec.games.roguelike.development)
  • Re: why does screwed up source code work?
    ... the common man from using "theory". ... Common Intermediate Language ... Common Lisp ... EGL Programming Language (EGL) ...
    (alt.html)
  • Re: Looking for two members
    ... Thank the lord for countries that still speak English ... ?Two nations separated by a common language.? ... ?England and America are two ...
    (rec.music.movies)