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?

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
.



Relevant Pages

  • Re: UML Question (Object <-> ObjectFinder?)
    ... (We're talking about pure FSAs here, not object state machines where the alphabet can be attributes.) ... It doesn't even use any stereotypes that aren't defined in UML. ... Today ADFDs have been replaced by abstract action languages using the UML action semantics meta model. ... The real point here is the level of abstraction of the models. ...
    (comp.object)
  • Tcl and Types (long)
    ... Tcl abstracts over pointers and memory layout and the fact that I can't break that abstraction means that I am safe from dangling pointers. ... Where Tcl differs from most other languages is that it only provides a single unbreakable data type: ... All other data types are layered on top of strings, just as data types in other languages are built in terms of ints, chars, doubles, etc. ...
    (comp.lang.tcl)
  • Re: object system...
    ... But the price of abstraction is performance. ... C isn't even as fast as other systems programming languages. ... never have an interface to access not doing something. ...
    (comp.object)
  • Re: CORBA IDL versioning, evolution, backward compatibility
    ... I don't think this is an accurate definition of abstraction. ... Actually, the yacc grammar only describes the syntax, not the ... domain-specific modeling languages is very similar to ... Define static semantics ...
    (comp.object.corba)
  • Re: Whats the name for this?
    ... These views above would be an abstraction(*) over patterns .. ... (I'm not counting "types" in "dynamically typed languages", as Lisp, ... So, 'treeOfChars' has type 'BTree Char', and treeOfStrings has type ... Anyway, I guess the question is whether this qualifies as a subprogram, ...
    (comp.programming)