Re: heeeeeeeeeeeeeeeellllllllllllllppppppppppppppppppppp

Tech-Archive recommends: Speed Up your PC by fixing your registry



Ada-class languages aren't bad, although they lack a lot of good OO capabilities; an OO
language with Ada's strong type-checking would be good. I worked in an Ada-class language
in the 1980s, and wrote a really wonderful storage allocator that belied the observation
that you can't write a storage allocator in a strongly-typed language without going
completely unsafe (in fact, after recoding the "prototype" storage allocator into three
levels of highly type-safe code, I couldn't get the code to compile! It turns out that
the problem was a design error in the original allocator, which allocated four times as
much memory as needed! In the type-safe allocator, this wouldn't even compile...) There
were only two tiny holes punched into the type system: one at the lowest level, to get at
machine words, and one at the API interface, to convert a storage block pointer to the
desired type [the 'new' function equivalent was a generic]. Everything else was
type-safe.

C# and Java are very type-safe as well, from what I've seen of them. Algol-68 and
Simula-67 were two others. Unfortunately, since I left the academic environment in 1981,
except for three years in industrial research and development, I've not had the exposure
to serious type-safe languages that I once had. But I consider C/C++ to be very weak
languages. The confusion about boolean types, and the misuse and abuse of integers and
pointers as integers, not to mention the ability to overwrite memory trivially, are pretty
good examples of major weakness in a language. We won't even go into the union type...
joe

On Sun, 5 Feb 2006 00:59:05 +0530, "Vipin [MVP]" <Vipin@xxxxxxxxxx> wrote:


Good programming habits are essential, especially in weak languages like
C/C++.

Out of curiosity, Which is the Strongest language for you?
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: [Lit.] Buffer overruns
    ... >about applying a type system which helps cooperative programmers detect ... rather than as a definition of what it means to call a language type-safe. ... The programming language community is very consistent about what they mean ...
    (sci.crypt)
  • Re: [Lit.] Buffer overruns
    ... > handling of pointers, you can't do integer operations (like XOR) on ... Type-safe and GC are orthogonal issues. ... pertinant language feature was GC, ...
    (sci.crypt)