From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!news.glorb.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Languages don't matter. A mathematical refutation Date: Fri, 03 Apr 2015 12:58:56 -0700 Organization: A noiseless patient Spider Message-ID: <87k2xt6l1b.fsf@jester.gateway.sonic.net> References: <87h9t95cly.fsf@jester.gateway.sonic.net> <04f0759d-0377-4408-a141-6ad178f055ed@googlegroups.com> <871tk1z62n.fsf@theworld.com> <87oan56rpn.fsf@jester.gateway.sonic.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c694756f1077760bb5296aae16c74092"; logging-data="26003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1900PBh7Aci48li84fMN9me" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:9cjTyFSxEZnHx6o1VysAfZjKsnM= sha1:qkLlP8Az1JIG+cLl2npIyZ/vzCQ= Xref: number.nntp.giganews.com comp.lang.ada:192711 Date: 2015-04-03T12:58:56-07:00 List-Id: "Dmitry A. Kazakov" writes: > SQL is low level in my view, because it does not support basic programming > abstractions, e.g. abstract data types. Is Lisp also low level in your view then? >> http://prog21.dadgum.com/166.html claims that C's highest >> level feature is the switch statement, > I don't buy the idea of closeness to the hardware. It would mean that the > language level would depend on the target machine. E.g. Lisp would be high > on x86 and low on a Lisp-machine. It's not about closeness to the hardware, it's about algorithms. Searching for a value by iterating through a list of them might use different instructions on x86 vs Lisp machine, but it's the same algorithm on both. But doing a binary search on the list is a different algorithm. And would you consider C's switch statement to be declarative rather than imperative? It could generate a linear search or a binary search depending on what it decides will be faster code. But most of us think of C as imprative. >> [paper proposing that HLL's are those with garbage collection.] >> Native support for any feature is not automatically high level. You could > have assembler with linear algebra matrix operations. It would be still > assembler. GC is not like matrix operations. It's not a library that you call. It pervades the operation of your entire program. There's no universal definition of an HLL and I thought the GC suggestion was interesting, though I'm not fully bought into it at the moment.