Re: question about programming
- From: Jon Harrop <jon@xxxxxxxxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 23:00:29 +0000
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?
Not necessarily.
If so, why?
Performance and abstraction are not strongly related. Some languages (like
Lisp, Scheme, Python) abstract everything as much as possible, which often
results in poor performance. Other languages (like SML, OCaml, F#) are just
as "high-level" but restrict abstractions to only those that are fast.
The result is that tiny, simple programs can often be optimised to run
faster in lower-level languages (assembler/C) but for anything non-trivial
high-level languages are faster and more concise.
Hence assembly programming is very rare these days and most programmers are
now using garbage collection and so on.
--
Dr Jon D Harrop, Flying Frog Consultancy
Objective CAML for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/index.html?usenet
.
- References:
- question about programming
- From: lrbtav
- question about programming
- Prev by Date: Re: Hash
- Next by Date: division by zero mystery
- Previous by thread: Re: question about programming
- Next by thread: platform independent bit shifting
- Index(es):
Relevant Pages
|