Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #478

Re: Time for a new language?

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.misc, comp.programming
Subject Re: Time for a new language?
Date 2011-06-17 10:25 +1200
Message-ID <95ve6hFqkrU1@mid.individual.net> (permalink)
References <isir0b$246$2@speranza.aioe.org> <27f391e528bef754bbbe3b05f7241046@dizum.com> <isjhsq$vt8$1@speranza.aioe.org> <043628bb-8b8b-4094-8e7b-b1c61a69b525@c41g2000yqm.googlegroups.com>

Cross-posted to 2 groups.

Show all headers | View raw


On 06/ 7/11 08:17 PM, tm wrote:
>
> I consider Seed7 higher level than Java and C++ because Seed7
> defines things in libraries that Java and C++ have hard-coded in
> their compilers. So I consider arrays defined with an abstract data
> type as higher level than hard-coded arrays.
>
> To see how hard-coded things work, look at the C conversions for
> numeric values. Chapter A6 of ANSI-K&R distinguishes between:
>    Intergral Promotion
>    Integral Converions
>    Integer and Floating
>    Floating Types
>    Arithmetic Conversions
>    Pointers and Integers
> The rules are not simple, and they changed between K&R-C and ANSI-C.

They may not be simple, but they are well understood and contribute to 
the metaphors that enable C programmers to understand each other's code.

> All this rules are hardcoded in every C compiler. Seed7 has no such
> rules. There are just definitions of operators and functions for
> numeric types. I consider that this simplification makes Seed7
> (besides other things) higher level than C.

Isn't that a recipe for write only code?  The reader not only has to 
follow the logic the code attempts to express, but also the rules used 
to express the logic.

> I consider things, that everybody can define, as higher level than
> hard-coded do what I mean concepts (that only authors of compilers
> and interpreters can change).

That's a bit like saying Leggo is the highest level toy...

-- 
Ian Collins

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Time for a new language? tm <thomas.mertes@gmx.at> - 2011-06-07 01:17 -0700
  Re: Time for a new language? BGB <cr88192@hotmail.com> - 2011-06-07 03:07 -0700
    Re: Time for a new language? tm <thomas.mertes@gmx.at> - 2011-06-07 04:21 -0700
  Re: Time for a new language? "BartC" <bc@freeuk.com> - 2011-06-07 11:26 +0100
    Re: Time for a new language? pete <pfiland@mindspring.com> - 2011-06-07 07:45 -0400
      Re: Time for a new language? BGB <cr88192@hotmail.com> - 2011-06-07 13:02 -0700
    Re: Time for a new language? tm <thomas.mertes@gmx.at> - 2011-06-07 12:49 -0700
  Re: Time for a new language? gremnebulin <peterdjones@yahoo.com> - 2011-06-13 16:36 -0700
  Re: Time for a new language? Ian Collins <ian-news@hotmail.com> - 2011-06-17 10:25 +1200
    Re: Time for a new language? BGB <cr88192@hotmail.com> - 2011-06-16 23:11 -0700
      Re: Time for a new language? tm <thomas.mertes@gmx.at> - 2011-06-17 01:39 -0700
        Re: Time for a new language? "H.J. Sander Bruggink" <sander.bruggink@uni-due.de> - 2011-06-17 11:05 +0200
          Re: Time for a new language? tm <thomas.mertes@gmx.at> - 2011-06-17 02:54 -0700
        Re: Time for a new language? BGB <cr88192@hotmail.com> - 2011-06-17 10:55 -0700
    Re: Time for a new language? tm <thomas.mertes@gmx.at> - 2011-06-17 00:55 -0700

csiph-web