Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"Our reruns are better than theirs." -- Nick at Nite


devel / comp.lang.c / Re: "C Is The Greenest Programming Language" by: Chris Lott

SubjectAuthor
* "C Is The Greenest Programming Language" by: Chris LottLynn McGuire
+* Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
|`* Re: "C Is The Greenest Programming Language" by: Chris LottJuha Nieminen
| +* Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
| |`* Re: "C Is The Greenest Programming Language" by: Chris LottJuha Nieminen
| | `* Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
| |  `- Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
| `- Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
+* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|+* Re: "C Is The Greenest Programming Language" by: Chris LottJuha Nieminen
||+- Re: "C Is The Greenest Programming Language" by: Chris LottThiago Adams
||+* Re: "C Is The Greenest Programming Language" by: Chris LottGuillaume
|||`- Re: "C Is The Greenest Programming Language" by: Chris LottJuha Nieminen
||`* Re: "C Is The Greenest Programming Language" by: Chris LottLynn McGuire
|| `- Re: "C Is The Greenest Programming Language" by: Chris LottScott Lurndal
|`- Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
+* Re: "C Is The Greenest Programming Language" by: Chris LottOtto J. Makela
|+* Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
||`* Re: "C Is The Greenest Programming Language" by: Chris LottOtto J. Makela
|| `- Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
|`* Re: "C Is The Greenest Programming Language" by: Chris LottLynn McGuire
| `* Re: "C Is The Greenest Programming Language" by: Chris LottOtto J. Makela
|  `- Re: "C Is The Greenest Programming Language" by: Chris LottLynn McGuire
+* Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero
|`* Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
| `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|  +* Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero
|  |+* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|  ||`* Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero
|  || +- Re: "C Is The Greenest Programming Language" by: Chris LottMalcolm McLean
|  || `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|  ||  `* Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero
|  ||   `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|  ||    `* Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero
|  ||     `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|  ||      `- Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero
|  |`- Re: "C Is The Greenest Programming Language" by: Chris LottMalcolm McLean
|  `* Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
|   `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|    `* Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
|     +* Re: "C Is The Greenest Programming Language" by: Chris LottJuha Nieminen
|     |`- Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
|     `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
|      +- Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
|      `- Re: "C Is The Greenest Programming Language" by: Chris LottThiago Adams
+* Re: "C Is The Greenest Programming Language" by: Chris LottManfred
|+* Re: "C Is The Greenest Programming Language" by: Chris LottKenny McCormack
||+* Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
|||+* Re: "C Is The Greenest Programming Language" by: Chris LottDozingDog
||||+- Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
||||`* Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
|||| `* Re: "C Is The Greenest Programming Language" by: Chris LottRichard Damon
||||  `- Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
|||`* Re: "C Is The Greenest Programming Language" by: Chris LottManfred
||| +* Re: "C Is The Greenest Programming Language" by: Chris LottBart
||| |+* Re: "C Is The Greenest Programming Language" by: Chris LottIan Collins
||| ||`- Re: "C Is The Greenest Programming Language" by: Chris LottBart
||| |+* Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
||| ||`* Re: "C Is The Greenest Programming Language" by: Chris LottBart
||| || `* Re: "C Is The Greenest Programming Language" by: Chris Lottantispam
||| ||  `- Re: "C Is The Greenest Programming Language" by: Chris LottBart
||| |`- Re: "C Is The Greenest Programming Language" by: Chris LottManfred
||| `* Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
|||  `* Re: "C Is The Greenest Programming Language" by: Chris LottManfred
|||   `- Re: "C Is The Greenest Programming Language" by: Chris LottBart
||`- Re: "C Is The Greenest Programming Language" by: Chris LottManfred
|+- Re: "C Is The Greenest Programming Language" by: Chris LottBart
|`* Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
| +* Re: "C Is The Greenest Programming Language" by: Chris LottKeith Thompson
| |+* Re: "C Is The Greenest Programming Language" by: Chris LottDavid Brown
| ||`- Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
| |`- Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
| `* Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
|  `* Re: "C Is The Greenest Programming Language" by: Chris LottBart
|   +- Re: "C Is The Greenest Programming Language" by: Chris LottPhilipp Klaus Krause
|   `* Re: "C Is The Greenest Programming Language" by: Chris Lottantispam
|    `* Re: "C Is The Greenest Programming Language" by: Chris LottBart
|     `* [OT] Lisp. Was: "C Is The Greenest Programming Language" by: Chris LottBen Bacarisse
|      `* Re: "C Is The Greenest Programming Language"Dave Dunfield
|       `* Re: "C Is The Greenest Programming Language"Ben Bacarisse
|        `* Re: "C Is The Greenest Programming Language"Dave Dunfield
|         `* Re: "C Is The Greenest Programming Language"Ben Bacarisse
|          `* Re: "C Is The Greenest Programming Language"Dave Dunfield
|           `- Re: "C Is The Greenest Programming Language"Ben Bacarisse
+* Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
|`- Re: "C Is The Greenest Programming Language" by: Chris LottManfred
`* Re: "C Is The Greenest Programming Language" by: Chris LottPaavo Helde
 +* Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
 |`* Re: "C Is The Greenest Programming Language" by: Chris LottMalcolm McLean
 | `* Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
 |  `- Re: "C Is The Greenest Programming Language" by: Chris LottChris M. Thomasson
 +* Re: "C Is The Greenest Programming Language" by: Chris LottManfred
 |`- Re: "C Is The Greenest Programming Language" by: Chris LottPaavo Helde
 `- Re: "C Is The Greenest Programming Language" by: Chris LottBonita Montero

Pages:1234
Re: "C Is The Greenest Programming Language" by: Chris Lott

<soj8p4$ucr$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19278&group=comp.lang.c#19278

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: eesn...@osa.pri.ee (Paavo Helde)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sun, 5 Dec 2021 22:51:47 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <soj8p4$ucr$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 5 Dec 2021 20:51:48 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="34b2c6c5ace6cc5f4951ab8accd73e69";
logging-data="31131"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xAVFHjuXpW7VncfY21nRrbU8e0Ctd4NE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:MkRxpNiY4LSIpL+okYPNzBxup3c=
In-Reply-To: <snh51g$c1q$1@dont-email.me>
Content-Language: en-US
 by: Paavo Helde - Sun, 5 Dec 2021 20:51 UTC

23.11.2021 00:19 Lynn McGuire kirjutas:
> "C Is The Greenest Programming Language" by: Chris Lott
>    https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
>
> "Have you ever wondered if there is a correlation between a computer’s
> energy consumption and the choice of programming languages? Well, a

In my experience, any efforts towards more efficient software are easily
defeated by users throwing more data to the program.

Wow, so you can fully analyze a 1024x1024 microscope image in less than
a second! Wonderful, let's upgrade our hardware to take 2160x2160 images
in the next version!

So, you managed to speed up the calculation time of morphological
features by 50%. Fine, now we want to calculate 1000 features instead of
the former 20!

Thus I'm afraid any hopes for a "green" programming language are at best
naïve.

Re: "C Is The Greenest Programming Language" by: Chris Lott

<sojvid$bl1$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19279&group=comp.lang.c#19279

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sun, 5 Dec 2021 19:20:45 -0800
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <sojvid$bl1$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 6 Dec 2021 03:20:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7ee563f40f3fce71c486009ef338b2d6";
logging-data="11937"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WvVETkH1zpjZ7YCAzhZ/2brsuDtw9yIg="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:NivVLAooOYPmlM7ts/XHPOexoXk=
In-Reply-To: <soj8p4$ucr$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 6 Dec 2021 03:20 UTC

On 12/5/2021 12:51 PM, Paavo Helde wrote:
> 23.11.2021 00:19 Lynn McGuire kirjutas:
>> "C Is The Greenest Programming Language" by: Chris Lott
>>
>> https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
>>
>> "Have you ever wondered if there is a correlation between a computer’s
>> energy consumption and the choice of programming languages? Well, a
>
> In my experience, any efforts towards more efficient software are easily
> defeated by users throwing more data to the program.
>
> Wow, so you can fully analyze a 1024x1024 microscope image in less than
> a second! Wonderful, let's upgrade our hardware to take 2160x2160 images
> in the next version!
>
> So, you managed to speed up the calculation time of morphological
> features by 50%. Fine, now we want to calculate 1000 features instead of
> the former 20!
>
> Thus I'm afraid any hopes for a "green" programming language are at best
> naïve.
>

Fwiw, a hardcore blow up is when I have to render volumes. 256^3 fine,
512^3 okay, 1024^3 slow, 2048^3 slow as shit...

4096^3 slower than a snail hiking up a mountain of salt!

Yikes!

Re: "C Is The Greenest Programming Language" by: Chris Lott

<b92b17b6-d31b-4256-b2c1-e38f44442c21n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19282&group=comp.lang.c#19282

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:ac8:5b82:: with SMTP id a2mr38035298qta.519.1638784360818;
Mon, 06 Dec 2021 01:52:40 -0800 (PST)
X-Received: by 2002:a05:620a:4051:: with SMTP id i17mr32176321qko.333.1638784360668;
Mon, 06 Dec 2021 01:52:40 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 6 Dec 2021 01:52:40 -0800 (PST)
In-Reply-To: <sojvid$bl1$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23a8:400a:5601:c47b:2d2c:c85e:6ea8;
posting-account=Dz2zqgkAAADlK5MFu78bw3ab-BRFV4Qn
NNTP-Posting-Host: 2a00:23a8:400a:5601:c47b:2d2c:c85e:6ea8
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me> <sojvid$bl1$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b92b17b6-d31b-4256-b2c1-e38f44442c21n@googlegroups.com>
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
From: malcolm....@gmail.com (Malcolm McLean)
Injection-Date: Mon, 06 Dec 2021 09:52:40 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 42
 by: Malcolm McLean - Mon, 6 Dec 2021 09:52 UTC

On Monday, 6 December 2021 at 03:20:56 UTC, Chris M. Thomasson wrote:
> On 12/5/2021 12:51 PM, Paavo Helde wrote:
> > 23.11.2021 00:19 Lynn McGuire kirjutas:
> >> "C Is The Greenest Programming Language" by: Chris Lott
> >>
> >> https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
> >>
> >> "Have you ever wondered if there is a correlation between a computer’s
> >> energy consumption and the choice of programming languages? Well, a
> >
> > In my experience, any efforts towards more efficient software are easily
> > defeated by users throwing more data to the program.
> >
> > Wow, so you can fully analyze a 1024x1024 microscope image in less than
> > a second! Wonderful, let's upgrade our hardware to take 2160x2160 images
> > in the next version!
> >
> > So, you managed to speed up the calculation time of morphological
> > features by 50%. Fine, now we want to calculate 1000 features instead of
> > the former 20!
> >
> > Thus I'm afraid any hopes for a "green" programming language are at best
> > naïve.
> >
> Fwiw, a hardcore blow up is when I have to render volumes. 256^3 fine,
> 512^3 okay, 1024^3 slow, 2048^3 slow as shit...
>
> 4096^3 slower than a snail hiking up a mountain of salt!
>
If the data represents objects, you can use hierachy.
One byte for each region. If 0, the whole region is empty, if bits are set,
divide the region into 0. Clear regions have their bit clear, full or partially-full
regions have their bit set.
(You have to make your objects hollow, or set up some sort of scheme to
handle 255, to avoid wasting time on fully-filled regions).

Re: "C Is The Greenest Programming Language" by: Chris Lott

<soks4h$1p94$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19284&group=comp.lang.c#19284

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!aioe.org!Puiiztk9lHEEQC0y3uUjRA.user.46.165.242.75.POSTED!not-for-mail
From: non...@add.invalid (Manfred)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Mon, 6 Dec 2021 12:28:17 +0100
Organization: Aioe.org NNTP Server
Message-ID: <soks4h$1p94$1@gioia.aioe.org>
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="58660"; posting-host="Puiiztk9lHEEQC0y3uUjRA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Manfred - Mon, 6 Dec 2021 11:28 UTC

On 12/5/2021 9:51 PM, Paavo Helde wrote:
> 23.11.2021 00:19 Lynn McGuire kirjutas:
>> "C Is The Greenest Programming Language" by: Chris Lott
>>
>> https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
>>
>> "Have you ever wondered if there is a correlation between a computer’s
>> energy consumption and the choice of programming languages? Well, a
>
> In my experience, any efforts towards more efficient software are easily
> defeated by users throwing more data to the program.
>
> Wow, so you can fully analyze a 1024x1024 microscope image in less than
> a second! Wonderful, let's upgrade our hardware to take 2160x2160 images
> in the next version!
>
> So, you managed to speed up the calculation time of morphological
> features by 50%. Fine, now we want to calculate 1000 features instead of
> the former 20!
>
> Thus I'm afraid any hopes for a "green" programming language are at best
> naïve.
>

True, but this doesn't make inefficient languages any better, does it?

Re: "C Is The Greenest Programming Language" by: Chris Lott

<soksrm$drc$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19285&group=comp.lang.c#19285

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: eesn...@osa.pri.ee (Paavo Helde)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Mon, 6 Dec 2021 13:40:38 +0200
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <soksrm$drc$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me>
<soks4h$1p94$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 6 Dec 2021 11:40:38 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="dc740dfe152005a0055754b9889e096b";
logging-data="14188"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4XTygFkMJGhtFmkozscDveyLGW8EWx9g="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:IpakOHMFud6CwAnsD96coI6lxgc=
In-Reply-To: <soks4h$1p94$1@gioia.aioe.org>
Content-Language: en-US
 by: Paavo Helde - Mon, 6 Dec 2021 11:40 UTC

06.12.2021 13:28 Manfred kirjutas:
> On 12/5/2021 9:51 PM, Paavo Helde wrote:
>> 23.11.2021 00:19 Lynn McGuire kirjutas:
>>> "C Is The Greenest Programming Language" by: Chris Lott
>>> https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
>>>
>>> "Have you ever wondered if there is a correlation between a
>>> computer’s energy consumption and the choice of programming
>>> languages? Well, a
>>
>> In my experience, any efforts towards more efficient software are
>> easily defeated by users throwing more data to the program.
>>
>> Wow, so you can fully analyze a 1024x1024 microscope image in less
>> than a second! Wonderful, let's upgrade our hardware to take 2160x2160
>> images in the next version!
>>
>> So, you managed to speed up the calculation time of morphological
>> features by 50%. Fine, now we want to calculate 1000 features instead
>> of the former 20!
>>
>> Thus I'm afraid any hopes for a "green" programming language are at
>> best naïve.
>>
>
> True, but this doesn't make inefficient languages any better, does it?

No, it does not.

Re: "C Is The Greenest Programming Language" by: Chris Lott

<sol9q7$ekh$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19290&group=comp.lang.c#19290

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Mon, 6 Dec 2021 16:21:44 +0100
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <sol9q7$ekh$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Dec 2021 15:21:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="19c0caf469a91c3a8af60ec482c0e07a";
logging-data="14993"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v5rMIZe3Zh2BdQxrdl9siMFX8q1rDzUo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:3igCTD5wUzJNgvJI17AWNYOpMJs=
In-Reply-To: <soj8p4$ucr$1@dont-email.me>
Content-Language: de-DE
 by: Bonita Montero - Mon, 6 Dec 2021 15:21 UTC

Am 05.12.2021 um 21:51 schrieb Paavo Helde:

> In my experience, any efforts towards more efficient software
> are easily defeated by users throwing more data to the program.

And that should determine the absolute possible efficiency of a
programming language? I think not.

Re: "C Is The Greenest Programming Language" by: Chris Lott

<solr7p$i2p$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19295&group=comp.lang.c#19295

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Mon, 6 Dec 2021 12:19:04 -0800
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <solr7p$i2p$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me>
<sojvid$bl1$1@dont-email.me>
<b92b17b6-d31b-4256-b2c1-e38f44442c21n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 6 Dec 2021 20:19:06 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7ee563f40f3fce71c486009ef338b2d6";
logging-data="18521"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191bRUfL+P16SAQpS81J/Yce8+hZwaEWPo="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:AMxFNcf/VcZB494SY5nM1x7hHsA=
In-Reply-To: <b92b17b6-d31b-4256-b2c1-e38f44442c21n@googlegroups.com>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 6 Dec 2021 20:19 UTC

On 12/6/2021 1:52 AM, Malcolm McLean wrote:
> On Monday, 6 December 2021 at 03:20:56 UTC, Chris M. Thomasson wrote:
>> On 12/5/2021 12:51 PM, Paavo Helde wrote:
>>> 23.11.2021 00:19 Lynn McGuire kirjutas:
>>>> "C Is The Greenest Programming Language" by: Chris Lott
>>>>
>>>> https://hackaday.com/2021/11/18/c-is-the-greenest-programming-language/
>>>>
>>>> "Have you ever wondered if there is a correlation between a computer’s
>>>> energy consumption and the choice of programming languages? Well, a
>>>
>>> In my experience, any efforts towards more efficient software are easily
>>> defeated by users throwing more data to the program.
>>>
>>> Wow, so you can fully analyze a 1024x1024 microscope image in less than
>>> a second! Wonderful, let's upgrade our hardware to take 2160x2160 images
>>> in the next version!
>>>
>>> So, you managed to speed up the calculation time of morphological
>>> features by 50%. Fine, now we want to calculate 1000 features instead of
>>> the former 20!
>>>
>>> Thus I'm afraid any hopes for a "green" programming language are at best
>>> naïve.
>>>
>> Fwiw, a hardcore blow up is when I have to render volumes. 256^3 fine,
>> 512^3 okay, 1024^3 slow, 2048^3 slow as shit...
>>
>> 4096^3 slower than a snail hiking up a mountain of salt!
>>
> If the data represents objects, you can use hierachy.
> One byte for each region. If 0, the whole region is empty, if bits are set,
> divide the region into 0. Clear regions have their bit clear, full or partially-full
> regions have their bit set.
> (You have to make your objects hollow, or set up some sort of scheme to
> handle 255, to avoid wasting time on fully-filled regions).
>

Fwiw, here is an example of some of my work wrt generating a "special"
volumetric Mandelbulb:

https://pastebin.com/raw/v1NNbDRz

https://www.fractalforums.com/index.php?action=gallery%3Bsa%3Dview%3Bid%3D17187

It dumps out a stack of images that can be rendered in 3d as a volumetric.

Re: "C Is The Greenest Programming Language" by: Chris Lott

<solro4$lun$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19296&group=comp.lang.c#19296

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: chris.m....@gmail.com (Chris M. Thomasson)
Newsgroups: comp.lang.c
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Mon, 6 Dec 2021 12:27:46 -0800
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <solro4$lun$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <soj8p4$ucr$1@dont-email.me>
<sojvid$bl1$1@dont-email.me>
<b92b17b6-d31b-4256-b2c1-e38f44442c21n@googlegroups.com>
<solr7p$i2p$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 6 Dec 2021 20:27:48 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="7ee563f40f3fce71c486009ef338b2d6";
logging-data="22487"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18n9kU8lzjF+9toD3aXgOmgGIUEp5yuHRs="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.3.2
Cancel-Lock: sha1:/IPFACYVyp1yMeUiYFMcOydXYEU=
In-Reply-To: <solr7p$i2p$1@dont-email.me>
Content-Language: en-US
 by: Chris M. Thomasson - Mon, 6 Dec 2021 20:27 UTC

On 12/6/2021 12:19 PM, Chris M. Thomasson wrote:
> On 12/6/2021 1:52 AM, Malcolm McLean wrote:
>> On Monday, 6 December 2021 at 03:20:56 UTC, Chris M. Thomasson wrote:
>>> On 12/5/2021 12:51 PM, Paavo Helde wrote:
>>>> 23.11.2021 00:19 Lynn McGuire kirjutas:
>>>>> "C Is The Greenest Programming Language" by: Chris Lott
[...]
> Fwiw, here is an example of some of my work wrt generating a "special"
> volumetric Mandelbulb:
>
> https://pastebin.com/raw/v1NNbDRz

Oops! I do not think that the code I referenced computes my special
power stacked mandelbulb. Sorry!

>
> https://www.fractalforums.com/index.php?action=gallery%3Bsa%3Dview%3Bid%3D17187

I have pseudo code contained in the content of the link above for the
power stacked bulb.

Sorry everybody!

>
>
> It dumps out a stack of images that can be rendered in 3d as a volumetric.

Re: "C Is The Greenest Programming Language" by: Chris Lott

<sp28t0$19u$2@z-news.wcss.wroc.pl>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19353&group=comp.lang.c#19353

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!newsfeed.pionier.net.pl!pwr.wroc.pl!news.wcss.wroc.pl!not-for-mail
From: antis...@math.uni.wroc.pl
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sat, 11 Dec 2021 13:25:52 +0000 (UTC)
Organization: Politechnika Wroclawska
Lines: 11
Message-ID: <sp28t0$19u$2@z-news.wcss.wroc.pl>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org> <snj2k7$vojf$1@news.xmission.com> <snj65u$tmi$1@dont-email.me> <snjh78$8k0$1@gioia.aioe.org> <snjk6i$7qo$1@dont-email.me> <snjqvr$lp0$1@dont-email.me> <snlgfi$8hp$1@dont-email.me>
NNTP-Posting-Host: hera.math.uni.wroc.pl
X-Trace: z-news.wcss.wroc.pl 1639229152 1342 156.17.86.1 (11 Dec 2021 13:25:52 GMT)
X-Complaints-To: abuse@news.pwr.wroc.pl
NNTP-Posting-Date: Sat, 11 Dec 2021 13:25:52 +0000 (UTC)
Cancel-Lock: sha1:juXDM2x1y3oHuoUl2aY95Yjqhuo=
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.0-9-amd64 (x86_64))
 by: antis...@math.uni.wroc.pl - Sat, 11 Dec 2021 13:25 UTC

In comp.lang.c Bart <bc@freeuk.com> wrote:
> Consider that on my machine, even an empty program takes 0.02 seconds to
> run...

Get a better system if you care about such runtimes. _Statically_
compiled program on Linux needs less than 300 uS to run (of course
this assumes file caching works as intended, if you have spinning
disk first access still needs seek time).
--
Waldek Hebisch

Re: "C Is The Greenest Programming Language" by: Chris Lott

<sp2bb2$5c1$1@z-news.wcss.wroc.pl>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19354&group=comp.lang.c#19354

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!newsfeed.pionier.net.pl!pwr.wroc.pl!news.wcss.wroc.pl!not-for-mail
From: antis...@math.uni.wroc.pl
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sat, 11 Dec 2021 14:07:30 +0000 (UTC)
Organization: Politechnika Wroclawska
Lines: 58
Message-ID: <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org> <snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org> <snm835$1bb$1@dont-email.me>
NNTP-Posting-Host: hera.math.uni.wroc.pl
X-Trace: z-news.wcss.wroc.pl 1639231650 5505 156.17.86.1 (11 Dec 2021 14:07:30 GMT)
X-Complaints-To: abuse@news.pwr.wroc.pl
NNTP-Posting-Date: Sat, 11 Dec 2021 14:07:30 +0000 (UTC)
Cancel-Lock: sha1:gM17VblQpYAOOBn+hpKVx3Oo49U=
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.0-9-amd64 (x86_64))
X-Received-Bytes: 3915
 by: antis...@math.uni.wroc.pl - Sat, 11 Dec 2021 14:07 UTC

In comp.lang.c Bart <bc@freeuk.com> wrote:
>
> (Also, how did Lisp manage to be only 3 times as slow as C? It was both
> interpreted /and/ dynamically typed last I looked.)

Lisp may be compiled to machine code and when speed is important
you will choose implementation with good compiler. Concerning
"dynamically typed": Lisp has type declarations which are
optional. Without declarations your types can be anything so
you get true dynamic typing. With declarations you can declare
that your variable contains machine integers or doubles and
good Lisp compiler will generate directly machine code.

It is debatable how much C features contribute to speed of
resulting machine code. In Lisp each data structure has
identifying header and you get efficient code only for arrays
of "primitive types", there is no way in Lisp to get something
with memory layout of C array of structs. So in principle
in C you may have more compact data structures that keep
related items together, which leads to better cache use
and consequently less time spent on memory accesses.
When it comes to computations, it is mostly matter of
effort spent on compiler. There was enormous effort spent
on C compilers and compilers like gcc are hard to beat.
Still, it depends on specific code: for simple code with
memory accesses that hit cache using Lisp I usually get about
half of speed of gcc-compiled C. More tricky cases may be
somewhat slower. For example I noted that Lisp compiler that
I use will use multiplication when sequentlially accessing
row of two dimensional array in a loop. This lead to machine
code that is 4-5 times slower than code generated by gcc.
When code is memory-intensive (say pointer chaising) speed
is essentially indepenent of language (of course assuming
that language can express reasonanably efficient pattern
of memory accesses).

Looking at generated machine code I would expect that Lisp
will give me better or equal runtime speed compared to
your C compiler.

As little anecdote, I wrote code compiled via Lisp compiler
that was intended to be speed competivive with code in
interpreted language calling to optimized C libraries to
do main work. AFAIK my code was faster, mainly because
I was able to create combined operation which saved essentally
half work compared to separate library calls. That was
enough to compensate better code generator from C compiler.
Of course, coding my routine in C I would have both gain
form combined operation and gain from better compiler
optimization. OTOH affected routines were about 60 lines
of code, while the whole thing was about 6000 lines.
Writing all in C would take _much_ more effort and the
result would be less useful as my routines were integrated
into existing program (which would be harder to do with
C code).

--
Waldek Hebisch

Re: "C Is The Greenest Programming Language" by: Chris Lott

<sp2e40$cd5$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19355&group=comp.lang.c#19355

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sat, 11 Dec 2021 14:54:58 +0000
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <sp2e40$cd5$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snj2k7$vojf$1@news.xmission.com> <snj65u$tmi$1@dont-email.me>
<snjh78$8k0$1@gioia.aioe.org> <snjk6i$7qo$1@dont-email.me>
<snjqvr$lp0$1@dont-email.me> <snlgfi$8hp$1@dont-email.me>
<sp28t0$19u$2@z-news.wcss.wroc.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 11 Dec 2021 14:54:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ea9b54600d74872405bddab5e910fad5";
logging-data="12709"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/QRAZxyVKbJSyGKCFxjKp9Nx3O0DtQkUk="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
Cancel-Lock: sha1:xcS/OgbyZ3VWyJKcRL7+jmxlUHU=
In-Reply-To: <sp28t0$19u$2@z-news.wcss.wroc.pl>
 by: Bart - Sat, 11 Dec 2021 14:54 UTC

On 11/12/2021 13:25, antispam@math.uni.wroc.pl wrote:
> In comp.lang.c Bart <bc@freeuk.com> wrote:
>> Consider that on my machine, even an empty program takes 0.02 seconds to
>> run...
>
> Get a better system if you care about such runtimes. _Statically_
> compiled program on Linux needs less than 300 uS to run (of course
> this assumes file caching works as intended, if you have spinning
> disk first access still needs seek time).

You wouldn't normally care about 20ms overhead to start and terminate a
process, but when a program takes 60ms anyway for example, then it can
be significant if you want to know or compare actual performance.

Actually that 20ms isn't accurate. Measuring a block of 100 empty
programs (in both cases from a BAT or Bash script, both with SSD), takes
7ms per invocation on Windows, and 3ms [real time] on WSL.

3ms is 3000 us; not far off your 300 us figure, considering your machine
is likely faster and running true Linux.

Allowing for that 7ms on Windows, then 'tcc hello.c' takes 0.11ms; bcc
takes 18ms, and gcc takes 280ms.

Re: "C Is The Greenest Programming Language" by: Chris Lott

<sp2rm0$kls$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19361&group=comp.lang.c#19361

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bc...@freeuk.com (Bart)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: Re: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sat, 11 Dec 2021 18:46:25 +0000
Organization: A noiseless patient Spider
Lines: 80
Message-ID: <sp2rm0$kls$1@dont-email.me>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org>
<snm835$1bb$1@dont-email.me> <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 11 Dec 2021 18:46:24 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ea9b54600d74872405bddab5e910fad5";
logging-data="21180"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LtbQoW1Jh06CEtEzabmTgtK+J0OefVnM="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.4.0
Cancel-Lock: sha1:RZRXzWsO+lNA9iTfEiLbCd6A5lA=
In-Reply-To: <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
 by: Bart - Sat, 11 Dec 2021 18:46 UTC

On 11/12/2021 14:07, antispam@math.uni.wroc.pl wrote:
> In comp.lang.c Bart <bc@freeuk.com> wrote:
>>
>> (Also, how did Lisp manage to be only 3 times as slow as C? It was both
>> interpreted /and/ dynamically typed last I looked.)
>
> Lisp may be compiled to machine code and when speed is important
> you will choose implementation with good compiler. Concerning
> "dynamically typed": Lisp has type declarations which are
> optional. Without declarations your types can be anything so
> you get true dynamic typing. With declarations you can declare
> that your variable contains machine integers or doubles and
> good Lisp compiler will generate directly machine code.
>
> It is debatable how much C features contribute to speed of
> resulting machine code. In Lisp each data structure has
> identifying header and you get efficient code only for arrays
> of "primitive types", there is no way in Lisp to get something
> with memory layout of C array of structs. So in principle
> in C you may have more compact data structures that keep
> related items together, which leads to better cache use
> and consequently less time spent on memory accesses.
> When it comes to computations, it is mostly matter of
> effort spent on compiler. There was enormous effort spent
> on C compilers and compilers like gcc are hard to beat.
> Still, it depends on specific code: for simple code with
> memory accesses that hit cache using Lisp I usually get about
> half of speed of gcc-compiled C. More tricky cases may be
> somewhat slower. For example I noted that Lisp compiler that
> I use will use multiplication when sequentlially accessing
> row of two dimensional array in a loop. This lead to machine
> code that is 4-5 times slower than code generated by gcc.
> When code is memory-intensive (say pointer chaising) speed
> is essentially indepenent of language (of course assuming
> that language can express reasonanably efficient pattern
> of memory accesses).
>
> Looking at generated machine code I would expect that Lisp
> will give me better or equal runtime speed compared to
> your C compiler.

To me the most apt description of Lisp seems to be 'shape-shifting'.

The language is dynamically typed when it suits, but can switch to
static typed when someone complains of the speed (but it needs someone
to revise the program).

It also can be run-from-source, or it can compile to some interpreted
internal form, or to native code (or, I guess, use some sort of JIT).

It also seems to be capable of anything; don't like how it does
assignment; there several other ways it can pull out of the hat. That
loop not powerful enough, there are half a dozen other forms with any
number of parameters.

You just can't pin it down. And therefore it seems immune to any
criticism; there is always a way to change it.

> As little anecdote, I wrote code compiled via Lisp compiler
> that was intended to be speed competivive with code in
> interpreted language calling to optimized C libraries to
> do main work. AFAIK my code was faster, mainly because
> I was able to create combined operation which saved essentally
> half work compared to separate library calls. That was
> enough to compensate better code generator from C compiler.
> Of course, coding my routine in C I would have both gain
> form combined operation and gain from better compiler
> optimization. OTOH affected routines were about 60 lines
> of code, while the whole thing was about 6000 lines.
> Writing all in C would take _much_ more effort and the
> result would be less useful as my routines were integrated
> into existing program (which would be harder to do with
> C code).

I always reckoned that the right balance of dynamic code plus static
code, should not be more than 1-2 times as slow as 100% static (save for
programs with short runtimes)

And, sometimes, as you found, it can be a bit faster!

[OT] Lisp. Was: "C Is The Greenest Programming Language" by: Chris Lott

<87h7begavu.fsf_-_@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19363&group=comp.lang.c#19363

  copy link   Newsgroups: comp.lang.c comp.lang.c++
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c,comp.lang.c++
Subject: [OT] Lisp. Was: "C Is The Greenest Programming Language" by: Chris Lott
Date: Sat, 11 Dec 2021 20:11:17 +0000
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <87h7begavu.fsf_-_@bsb.me.uk>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org>
<snm835$1bb$1@dont-email.me> <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
<sp2rm0$kls$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="f3cba1a3189c42fa73a10a556fb88f9e";
logging-data="31541"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GqZNY+aGH0LlxXka1WigV57JX1WzBNZM="
Cancel-Lock: sha1:I8+vMhPgP6ec+AgnGriYp40aUDI=
sha1:5JEVqTIBcbw1etoUTsRKOHUMlTU=
X-BSB-Auth: 1.1c5b11cc94c48ebf8521.20211211201117GMT.87h7begavu.fsf_-_@bsb.me.uk
 by: Ben Bacarisse - Sat, 11 Dec 2021 20:11 UTC

Bart <bc@freeuk.com> writes:

> To me the most apt description of Lisp seems to be 'shape-shifting'.
>
> The language is dynamically typed when it suits, but can switch to
> static typed when someone complains of the speed (but it needs someone
> to revise the program).

Handy that. Rapid prototyping and robust production code. It's the
same language though, you just use more if it as and when needed.

> It also can be run-from-source, or it can compile to some interpreted
> internal form, or to native code (or, I guess, use some sort of JIT).

Yes, there are a wide variety of implementations to suit different
needs.

> It also seems to be capable of anything;

It is. That is obviously literally correct (Turing completeness and all
that) but modern Common Lisp is extraordinarily capable.

> don't like how it does assignment; there several other ways it can
> pull out of the hat. That loop not powerful enough, there are half a
> dozen other forms with any number of parameters.

There /is/ a lot to learn. That's the perennial language design
dilemma. You can have small and a bit rigid, or large and very
flexible.

> You just can't pin it down. And therefore it seems immune to any
> criticism; there is always a way to change it.

Actually it is pretty well pinned down. There is a stable standard for
Common Lisp which is widely implemented and does not change half as much
as, say, the C standard.

--
Ben.

Re: "C Is The Greenest Programming Language"

<5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19400&group=comp.lang.c#19400

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a05:620a:2a05:: with SMTP id o5mr1741398qkp.527.1639447155544;
Mon, 13 Dec 2021 17:59:15 -0800 (PST)
X-Received: by 2002:a05:620a:2907:: with SMTP id m7mr1718738qkp.151.1639447155299;
Mon, 13 Dec 2021 17:59:15 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 13 Dec 2021 17:59:15 -0800 (PST)
In-Reply-To: <87h7begavu.fsf_-_@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=174.94.55.135; posting-account=TrQTOgoAAAC2NG571LtljP2OpjnuTN79
NNTP-Posting-Host: 174.94.55.135
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org> <snm835$1bb$1@dont-email.me>
<sp2bb2$5c1$1@z-news.wcss.wroc.pl> <sp2rm0$kls$1@dont-email.me> <87h7begavu.fsf_-_@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>
Subject: Re: "C Is The Greenest Programming Language"
From: dave.dun...@gmail.com (Dave Dunfield)
Injection-Date: Tue, 14 Dec 2021 01:59:15 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 82
 by: Dave Dunfield - Tue, 14 Dec 2021 01:59 UTC

>"C Is The Greenest Programming Language" by: Chris Lott

Assuming by "Green", he means which programming language allows a programmer
to "accomplish the most goals" with the least amount of cycles (energy use)...

I'd first say It's not going to be "cut and dried" because "schlock" can be
written in pretty much any language... so for any sort of valid comparison
you'd have to be using very (and equally) competent programmers, equally
skilled in the languages being used :-)

That being said, I'd first think of "Assembly language" as having the highest
possibility of achieving such a goal because it gives you instruction level
control of exactly what gets done, and makes if at least "possible" to make an
optimal solution to a given goal.

This would have to be tempered by the fact that the number truly competent
assembly programmers is more limited (I'd say that over the years I've seen
more "schlock" written in assembly then most others). Add to this portability
(and other) issues which make it not truly suitable for many goals, and I have
to admit: It's probably not a good one to consider.

IMHO, C comes pretty close, because it allows one to do much of the lower
level "stuff" you might not be able to efficiently accomplish on other higher
level languages, and in a good implementation these kinds of operations can
product code not all that much different from what a good assembly programmers
would have done...

And it "solves" or at least improves many of the main issues that can crop
up in assembly:

- Portability, C code can be generic enough that it needs little to no changes
when moving to another system. And C is (IMHO) one of the most common higher
level languages available on different systems (and has been for some time).

- It makes it "easy" to control the use of memory. Just "declare" things and
the compiler will take care of allocating space for them in applicable areas
of memory. No worrying about "what would best go here...".

It also handles stack frames and automatic allocation/free of local "things"
when entering/exiting a "function" (applicable to below)

- It makes it much easier to break up your program into logical blocks or
subroutines. Sure: Assembly almost always has the ability to CALL/JSR
(I've worked on some minimal CPUs which don't!) but you have to worry
about passing information to and getting information from such blocks,
and how to make memory available to them "as they run" (if you need to),
but C does all of this in some very straight forward/efficient ways (at
least most systems do :-)

- Commonly used more complex operations can be maintained in a (hopefully
very efficient) "library" and made available "as you need them" without
having to do such things "again and again".

There are of course some potential downsides:

- You don't control the code being generated at the instruction level (but
with some Cs you come pretty close). Hopefully the designers of the compiler
did a good job, but you may see some non-optimal output from time to time.

- "Libraries" although mentioned above can be a "good thing", but in my
experience they can also be "not so good". Supplied libraries are made such
that they will appeal to many programmers, and may therefore not do exactly
what (and only what) you would like. There is often a sometimes large amount
of "extra stuff" brought in because it's used somewhere in the library code.
And being so readily available, there's a lot of temptation to "just use" them.

In most cases these aren't much of a problem, but when you are looking at
"fastest and smallest" it can surprise you. In "modern times" of multi Ghz
processing and multi Gb memory systems, it's really not an issue many
programmers even think about.

I could go on ... but I hope I've made at least a bit of a point.

All of this is or course my own "opinion" and comes from many years working
on very small/slowish and often quite memory limited targets. A lot of this
was done in assembly language at first because I didn't find a higher level
language that came "close enough". As time progressed I did switch a lot of
my development to C because in many cases it did (come close enough). I still
use dribbles of assembly "as needed" (the main reason my compiler has fairly
capable "inline assembly" capabilities! :-)

Regards,
Dave

Re: "C Is The Greenest Programming Language"

<874k7b27su.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19401&group=comp.lang.c#19401

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: "C Is The Greenest Programming Language"
Date: Tue, 14 Dec 2021 03:18:25 +0000
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <874k7b27su.fsf@bsb.me.uk>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org>
<snm835$1bb$1@dont-email.me> <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
<sp2rm0$kls$1@dont-email.me> <87h7begavu.fsf_-_@bsb.me.uk>
<5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="dcdafb8cdcd8b662d40841886ed162e9";
logging-data="11448"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ss1MN+uixpA+XNpFwlTpeKV7O8t2nilU="
Cancel-Lock: sha1:KxvrhNMMTWvRvfFXCw0iDguVdW8=
sha1:eFJWt+xBUdKS21ruLtUROrQRixM=
X-BSB-Auth: 1.be66687b5f70faa2b3f1.20211214031825GMT.874k7b27su.fsf@bsb.me.uk
 by: Ben Bacarisse - Tue, 14 Dec 2021 03:18 UTC

Dave Dunfield <dave.dunfield@gmail.com> writes:

>>"C Is The Greenest Programming Language" by: Chris Lott
>
> Assuming by "Green", he means which programming language allows a programmer
> to "accomplish the most goals" with the least amount of cycles (energy
> use)...

Why are you replying to me? Why do you include a quoted line that was
not in the post you are replying to? Maybe something is wrong with your
news client.

--
Ben.

Re: "C Is The Greenest Programming Language"

<1781f8bb-c40a-40f1-a806-6069d2a8be28n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19440&group=comp.lang.c#19440

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:8e08:: with SMTP id v8mr12642141qvb.93.1639681071026;
Thu, 16 Dec 2021 10:57:51 -0800 (PST)
X-Received: by 2002:ac8:5950:: with SMTP id 16mr18500412qtz.462.1639681070809;
Thu, 16 Dec 2021 10:57:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Thu, 16 Dec 2021 10:57:50 -0800 (PST)
In-Reply-To: <874k7b27su.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=174.94.55.135; posting-account=TrQTOgoAAAC2NG571LtljP2OpjnuTN79
NNTP-Posting-Host: 174.94.55.135
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org> <snm835$1bb$1@dont-email.me>
<sp2bb2$5c1$1@z-news.wcss.wroc.pl> <sp2rm0$kls$1@dont-email.me>
<87h7begavu.fsf_-_@bsb.me.uk> <5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>
<874k7b27su.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1781f8bb-c40a-40f1-a806-6069d2a8be28n@googlegroups.com>
Subject: Re: "C Is The Greenest Programming Language"
From: dave.dun...@gmail.com (Dave Dunfield)
Injection-Date: Thu, 16 Dec 2021 18:57:51 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 24
 by: Dave Dunfield - Thu, 16 Dec 2021 18:57 UTC

On Monday, December 13, 2021 at 10:18:36 PM UTC-5, Ben Bacarisse wrote:
> Dave Dunfield writes:
>
> >>"C Is The Greenest Programming Language" by: Chris Lott
> >
> > Assuming by "Green", he means which programming language allows a programmer
> > to "accomplish the most goals" with the least amount of cycles (energy
> > use)...
> Why are you replying to me? Why do you include a quoted line that was
> not in the post you are replying to? Maybe something is wrong with your
> news client.

Sorry, I "thought" I had removed attrition - and just quoted a line I recalled seeing in the initial posting
(that I could see) - curious to know how it shows up as "a reply to you", as I don't see any mention
of you in my reader" ...

I probably should have removed the extra '>' showing "a quote of a quote" but as there was no other
text it didn't seem (to me) to be an issue... It's pretty clearly only referencing the initial text.
sorry if this oversight bothered you.

I do know my reader is "broken", I'm still using "Google Groups" while I decide if it's worth getting back
into this or not ... GG isn't at all friendly to "C" or programming - groups. (I've no doubt that a number of
people who have also "responded to me" will be pleased I'm leaning toward the "not" :-)

Dave

Re: "C Is The Greenest Programming Language"

<87lf0kurzv.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19457&group=comp.lang.c#19457

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: "C Is The Greenest Programming Language"
Date: Thu, 16 Dec 2021 22:03:48 +0000
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <87lf0kurzv.fsf@bsb.me.uk>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org>
<snm835$1bb$1@dont-email.me> <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
<sp2rm0$kls$1@dont-email.me> <87h7begavu.fsf_-_@bsb.me.uk>
<5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>
<874k7b27su.fsf@bsb.me.uk>
<1781f8bb-c40a-40f1-a806-6069d2a8be28n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="b9f7989dd930ff4732a641e9d197fd11";
logging-data="29240"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Ckj6SFHJUUuQkcvLl1OqTFPPqSyTEuIs="
Cancel-Lock: sha1:IyTvmC0yPLDmBwYawX4QTH5ZL84=
sha1:1WttnGZMQU8E6FoMAIWUge563Ps=
X-BSB-Auth: 1.747d568dad4ed8bd7daa.20211216220348GMT.87lf0kurzv.fsf@bsb.me.uk
 by: Ben Bacarisse - Thu, 16 Dec 2021 22:03 UTC

Dave Dunfield <dave.dunfield@gmail.com> writes:

> On Monday, December 13, 2021 at 10:18:36 PM UTC-5, Ben Bacarisse wrote:
>> Dave Dunfield writes:
>>
>> >>"C Is The Greenest Programming Language" by: Chris Lott
>> >
>> > Assuming by "Green", he means which programming language allows a programmer
>> > to "accomplish the most goals" with the least amount of cycles (energy
>> > use)...
>> Why are you replying to me? Why do you include a quoted line that was
>> not in the post you are replying to? Maybe something is wrong with your
>> news client.
>
> Sorry, I "thought" I had removed attrition - and just quoted a line I
> recalled seeing in the initial posting (that I could see)

You had removed all attributions. By the way, that's not considered
good form. People like to know who said what.

> - curious to know how it shows up as "a reply to you", as I don't see
> any mention of you in my reader" ...

Post have an "In-Reply-To" header that gives the ID of the message you
are replying to. Posts also contain a "References" header that gives
the whole chain of "parent" articles.

> I probably should have removed the extra '>' showing "a quote of a
> quote" but as there was no other text it didn't seem (to me) to be an
> issue... It's pretty clearly only referencing the initial text. sorry
> if this oversight bothered you.

I was not bothered. I knew it was reply to me because my newsreader is
set to give them priority. But anyone who wanted to see who said what
you were replying to would be baffled. They'd go up to the parent
article and see it was from me, but they would also see that I have not
said what was quoted.

--
Ben.

Re: "C Is The Greenest Programming Language"

<c3f4cc26-f45f-4262-8500-6bd094da6792n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19574&group=comp.lang.c#19574

  copy link   Newsgroups: comp.lang.c
X-Received: by 2002:a0c:8e08:: with SMTP id v8mr12217208qvb.93.1639996857242;
Mon, 20 Dec 2021 02:40:57 -0800 (PST)
X-Received: by 2002:a37:a144:: with SMTP id k65mr8890452qke.52.1639996857048;
Mon, 20 Dec 2021 02:40:57 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.c
Date: Mon, 20 Dec 2021 02:40:56 -0800 (PST)
In-Reply-To: <87lf0kurzv.fsf@bsb.me.uk>
Injection-Info: google-groups.googlegroups.com; posting-host=174.94.55.135; posting-account=TrQTOgoAAAC2NG571LtljP2OpjnuTN79
NNTP-Posting-Host: 174.94.55.135
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org> <snm835$1bb$1@dont-email.me>
<sp2bb2$5c1$1@z-news.wcss.wroc.pl> <sp2rm0$kls$1@dont-email.me>
<87h7begavu.fsf_-_@bsb.me.uk> <5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>
<874k7b27su.fsf@bsb.me.uk> <1781f8bb-c40a-40f1-a806-6069d2a8be28n@googlegroups.com>
<87lf0kurzv.fsf@bsb.me.uk>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3f4cc26-f45f-4262-8500-6bd094da6792n@googlegroups.com>
Subject: Re: "C Is The Greenest Programming Language"
From: dave.dun...@gmail.com (Dave Dunfield)
Injection-Date: Mon, 20 Dec 2021 10:40:57 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
 by: Dave Dunfield - Mon, 20 Dec 2021 10:40 UTC

On Thursday, December 16, 2021 at 5:04:01 PM UTC-5, Ben Bacarisse wrote:
> You had removed all attributions. By the way, that's not considered
> good form. People like to know who said what.

I am aware of that, but in this case the "quoted" line was the same as the title!
I wasn't trying to quote anybody, I just wanted to put the context of my reply in
the frame of "the subject of this thread". I amm guilty of being lazy and not
cutting/pasting the title since it was easier to just clip where someone else had
posted it. I should have removed the extra '>'

> I was not bothered. I knew it was reply to me because my newsreader is
> set to give them priority.

I guess another downside of "Google Groups" - I use "reply all". Which I thought
would just post to the thread as a whole, not to a particular participant.

> But anyone who wanted to see who said what
> you were replying to would be baffled.

Out of curiosity - what is "good form" to reference the title?

Dave ::: https://dunfield.themindfactory.com

Re: "C Is The Greenest Programming Language"

<878rwfmqft.fsf@bsb.me.uk>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=19577&group=comp.lang.c#19577

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: ben.use...@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.c
Subject: Re: "C Is The Greenest Programming Language"
Date: Mon, 20 Dec 2021 12:05:58 +0000
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <878rwfmqft.fsf@bsb.me.uk>
References: <snh51g$c1q$1@dont-email.me> <snivri$15p1$1@gioia.aioe.org>
<snl5oc$8vo$1@solani.org> <snm6l8$r4e$1@solani.org>
<snm835$1bb$1@dont-email.me> <sp2bb2$5c1$1@z-news.wcss.wroc.pl>
<sp2rm0$kls$1@dont-email.me> <87h7begavu.fsf_-_@bsb.me.uk>
<5bc5791a-8d42-4687-8936-b563b4da0ac8n@googlegroups.com>
<874k7b27su.fsf@bsb.me.uk>
<1781f8bb-c40a-40f1-a806-6069d2a8be28n@googlegroups.com>
<87lf0kurzv.fsf@bsb.me.uk>
<c3f4cc26-f45f-4262-8500-6bd094da6792n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: reader02.eternal-september.org; posting-host="e17f8d50552ff36ee4a9bb14f45ada15";
logging-data="3540"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/hxe6ZvQIvUJqwGosDJ3Xz43KEFrWzJD8="
Cancel-Lock: sha1:7BLXC1tk21T42ATmSh1ZyDg8Fuw=
sha1:8xWw42Ff/g2I11uDW/M317HmM1Q=
X-BSB-Auth: 1.a551ac407764c35b4055.20211220120558GMT.878rwfmqft.fsf@bsb.me.uk
 by: Ben Bacarisse - Mon, 20 Dec 2021 12:05 UTC

Dave Dunfield <dave.dunfield@gmail.com> writes:

> On Thursday, December 16, 2021 at 5:04:01 PM UTC-5, Ben Bacarisse wrote:
<cut>
>> I was not bothered. I knew it was reply to me because my newsreader is
>> set to give them priority.
>
> I guess another downside of "Google Groups" - I use "reply all". Which
> I thought would just post to the thread as a whole, not to a
> particular participant.

As far as I know, you can't post in an existing thread without it being
a reply to some other specific post.

>> But anyone who wanted to see who said what
>> you were replying to would be baffled.
>
> Out of curiosity - what is "good form" to reference the title?

If the subject line is the only significant context (i.e. you are not
replying to some specif point where quoting that point will help), then
I think the clearest thing it to reply to the head post. It will appear
to be a reply to whoever posted that head post, but you can't avoid
appearing to replying to someone.

You'll sometimes see people start a post with "piggybacking...", by
which they mean that are replying to one post but they are not really
making any specific points about it.

--
Ben.

Pages:1234
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor