Re: "STL from the Ground Up"
- From: Jon Harrop <usenet@xxxxxxxxxxxxxx>
- Date: Fri, 15 Feb 2008 03:38:54 +0000
"Stephen Howe" <sjhoweATdialDOTpipexDOTcom> wrote:
Such as? F#? Ocaml?
Even C# would be a significant step in the right direction.
In what sense? Because it supports Garbage collection?
For one, yes. There are many other benefits as well like safety, a
high-level intermediate language than can interoperate with many other
languages, run-time compilation and so on.
Garbage collection has been around since the 1950s,
Garbage collection has come a long way since then and remains an active
research topic.
it is good for some problems but it is no universal panacea.
Sure but there are very few problems that GC is bad for, e.g. embedded
devices.
The real power of garbage collection is that it is an enabling technology
for language features like first-class lexical closures that could not
exist usably without it.
And I have seen Herb Sutter's presentation on template support for Java,
C# and C++.
C++'s was the most flexible.
Absolutely. C++'s template system is a Turing complete programming language.
This "flexibility" is one of the reasons why C++ is so slow to compile and
it is the main reason why error messages from template-heavy C++ code are
so obfuscated.
I've made extensive use of both template metaprogramming in C++ and
parametric polymorphism with type inference in SML, OCaml, Haskell, F# and
so on. The latter is simply vastly more productive for a huge variety of
tasks.
Usually a language that provides molly coddling is not fast.
Our products got a lot faster.
My work was impossible in C++ five years ago and I'm quite sure it will
be impossible in C++0x. They are decades behind the current state of the
art...
In what areas are they behind?
Off the top of my head:
.. Static checking.
.. Encapsulation.
.. Pattern matching.
.. Type inference.
.. Interoperability.
.. Run-time compilation.
.. Marshalling.
.. Compile times.
.. Optimizations.
.. Concurrency.
.. Parallelism.
.. Structural typing.
.. Recursion.
.. Closures.
This has an adverse effect on lots of practical applications like parsing
and the manipulation of trees.
--
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?u
.
- Follow-Ups:
- Re: "STL from the Ground Up"
- From: Michael
- Re: "STL from the Ground Up"
- References:
- "STL from the Ground Up"
- From: Stephen Howe
- Re: "STL from the Ground Up"
- From: Jon Harrop
- Re: "STL from the Ground Up"
- From: Stephen Howe
- Re: "STL from the Ground Up"
- From: Jon Harrop
- Re: "STL from the Ground Up"
- From: Stephen Howe
- "STL from the Ground Up"
- Prev by Date: Re: "STL from the Ground Up"
- Next by Date: Re: "STL from the Ground Up"
- Previous by thread: Re: "STL from the Ground Up"
- Next by thread: Re: "STL from the Ground Up"
- Index(es):
Relevant Pages
|