Re: Case Sensitive, Multiline Comments



"Duncan Booth" <duncan.booth@xxxxxxxxxxxxxxx> wrote in message news:Xns96635F84E6901duncanbooth@xxxxxxxxxxxx
Dennis Lee Bieber wrote:

On 26 May 2005 17:33:33 -0700, "Elliot Temple" <curi42@xxxxxxxxx>
declaimed the following in comp.lang.python:

Thanks for the link on case sensitivity.  I'm curious about the person
who found case sensitivity useful though: what is it useful for?

     Making a language run faster on slow machines since the syntax
parsing doesn't have to do the equivalent of upper or lower casing
anything that is not a string literal before checking for keywords or
identifiers.

     Consider the time spent by languages like Ada and Fortran when
they have to do case normalization every time you compile.

That isn't a good argument for case sensitivity. You really aren't going to
be able to measure a slowdown in compilation speed just because the
compiler has to lowercase all the identifiers before using them.

Actually it is, but you have to get out of ASCII into the wider world of all of the real languages out there. Something I heard from one of the people who invented XML is that it originally started out as case insensitive, and they had quite an extensive discussion about it. When they made it case sensitive, one of the basic tools sped up by a factor of three. Doing case translations in Unicode following all of the rules for all of the world's languages is, for want of a better world, a real bitch.

John Roth

.



Relevant Pages

  • Re: Enhanced Unicode support for "Go" tools
    ... Kanji or Arabic identifiers? ... find this next to impossible to read...many characters look the ... Latin characters in European languages could be included... ... I'd be 100% supportive and some Japanese source code ...
    (alt.lang.asm)
  • Re: Term Rewriting vs. Functional Programming
    ... > general-purpose programs in FPLs than in TRSs. ... > in imperative languages, millions in functional languages and hundreds of ... >> optimise TRSs than FPs? ... > compile OCaml source that run at roughly the same speed. ...
    (comp.lang.functional)
  • Re: Syntax directed compilation
    ... seems to be "too much power, users write their own languages and then ... The declaration statements are executed ... compile time. ... is also a statement which is executed at compile time. ...
    (comp.compilers)
  • Re: FPGA C Compiler on sourceforge.net (TMCC derivative)
    ... > * Languages do not have all ANSI C features ... it does not mean it can't be based on ANSI C. ... You couldn't compile that efficiently to an FPGA - it would need the ... able to develop hardware acceleration for a given algorithm. ...
    (comp.arch.fpga)
  • Re: Not quite getting it.
    ... static typed languages have a problem finding logical ... But so does Ruby since it doesnt even have compiletime. ... Ruby cant fint logical flaws at compile time either (due to lack of ...
    (comp.lang.ruby)