Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #328: Fiber optics caused gas main leak


sci / sci.lang / (Don’t type just (lrange 0) in REPL, or it won’t terminate!)

SubjectAuthor
* (Don’t type just (lrange 0) in REPL, or it won’t terminate!)HenHanna
`* Re: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)HenHanna
 `* Re: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)Blue-Maned_Hawk
  `- Re: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)HenHanna

1
Subject: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
From: HenHanna
Newsgroups: sci.lang, alt.usage.english, comp.lang.lisp
Organization: A noiseless patient Spider
Date: Tue, 18 Jun 2024 20:13 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: sci.lang,alt.usage.english,comp.lang.lisp
Subject: (Don’t_type_just_(lrange_0)_in_REPL,_or_i
t won’t terminate!)
Date: Tue, 18 Jun 2024 13:13:45 -0700
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <v4sppr$1gg3l$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 18 Jun 2024 22:13:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="1ff5838eddcfee2869179dd23adb7000";
logging-data="1589365"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oVLNHY8kc/ZGtEX4lvi9fn10yN7hSW/8="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:14KcfAxMa1LEOC0klGzknZEUTyk=
Content-Language: en-US
View all headers

from the Gauche manual (a kind of Lisp)

lrange start :optional end step

Creates a lazy sequence of numbers starting from start,
increasing by step (default 1), to the maximum value that
doesn’t exceed end. The default of end is +inf.0, so it
creates an infinite list.
(Don’t type just (lrange 0) in REPL, or it won’t terminate!)
If any of start or step is inexact, the resulting sequence has
inexact numbers.

(Don’t type just (lrange 0) in REPL, or it won’t terminate!)

<-- This sounds (more than) slightly odd. Do you agree?

_______________
> The default of [end] is +inf.0, so it creates an infinite list.

better as:

> The default for [end] is +inf.0, specifying an infinite list.

_______________
> If any of start or step is inexact,

better as: ............

Subject: Re: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
From: HenHanna
Newsgroups: sci.lang, alt.usage.english, comp.lang.lisp
Organization: A noiseless patient Spider
Date: Wed, 19 Jun 2024 23:22 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: sci.lang,alt.usage.english,comp.lang.lisp
Subject: Re: (Don’t type just (lrange 0) in REPL,
_or_it_won’t_terminate!)
Date: Wed, 19 Jun 2024 16:22:06 -0700
Organization: A noiseless patient Spider
Lines: 49
Message-ID: <v4vp6v$26pim$1@dont-email.me>
References: <v4sppr$1gg3l$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 20 Jun 2024 01:22:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9312a0df09b6ff4f85958d80bf0f5955";
logging-data="2319958"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++LZ67GZ0xHANztbsrnE4Y78PntrgnCyo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:mj5/3guCE7S8dv4QePP8Mc1Skh4=
Content-Language: en-US
In-Reply-To: <v4sppr$1gg3l$2@dont-email.me>
View all headers

On 6/18/2024 1:13 PM, HenHanna wrote:
>
> from the Gauche manual (a kind of Lisp)
>
> lrange   start   :optional   end   step
>
>      Creates a lazy sequence of numbers starting from start,
>      increasing by step (default 1), to the maximum value that
>      doesn’t exceed end.    The default of end is +inf.0, so it
>      creates an infinite list.
>      (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
>      If any of start or step is inexact, the resulting sequence has
>      inexact numbers.
>
>
> (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
>
>               <-- This sounds (more than) slightly odd.  Do you agree?
>
>
> _______________
> > The default of [end] is +inf.0, so it creates an infinite list.
>
> better as:
>
> > The default for [end] is +inf.0, specifying an infinite list.
>
>
> _______________
> > If any of start or step is inexact,
>
> better as:  ............

> (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
>
<-- This sounds slightly odd. Do you agree?

There would be 2 kinds of Non-termination.

1. If you enter (lrange 0) into REPL, it will hang.

2. Entering (lrange 0) in REPL would print an infinite list.

i can't guess which is the case for Gauche.

Subject: Re: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
From: Blue-Maned_Hawk
Newsgroups: sci.lang, alt.usage.english, comp.lang.lisp
Organization: A noiseless patient Spider
Date: Fri, 21 Jun 2024 08:09 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!bluemanedhawk.eternal-september.org!.POSTED!not-for-mail
From: bluemanedhawk@invalid.invalid (Blue-Maned_Hawk)
Newsgroups: sci.lang,alt.usage.english,comp.lang.lisp
Subject: Re: (Don’t type just (lrange 0) in REPL, or it
won’t terminate!)
Date: Fri, 21 Jun 2024 08:09:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <pan$6caf2$ae9b44f0$7459471$6fa0349a@invalid.invalid>
References: <v4sppr$1gg3l$2@dont-email.me> <v4vp6v$26pim$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 21 Jun 2024 10:09:12 +0200 (CEST)
Injection-Info: bluemanedhawk.eternal-september.org; posting-host="9b3f811e660abb45c080b8399102de2b";
logging-data="3236724"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xHNe2su6+QxOeGdW42IHBZ6x5oop1LD8="
User-Agent: Pan/0.154 (Izium; 517acf4)
Cancel-Lock: sha1:9VMCDOoJo1Xpaxc5lfF1XfdSF/Q=
X-Face: Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronuku
pokaiwhenuakitanatahu
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACh0lEQVRYw71Z21bD
MAzzevbfkr4cHjrSXJyL044+MDa6WLEl2SkvkrZ1AbAvXO+bUGSCPYnsuIVGMpm
ZLnjX718GhAKNsp8lON2F9VrhELwIgJlBepkZjA78rVK+FkmNhEJK76UsJlz8+E
rJsjrpYouhLo/SC6qPHgakFOR8wV9+8rCfO/I/oVnmUZUp42/LW2XkLj9TCFNM9
jp5g2EmHZgpYZjCOkYU7sXVogRylJqpdggoFLG1g09Flah/7kErCxzR9HgXPYsq
0glb9cxjIz2Vsk9AmAoCSxECpD713joMKjQqLAtmMqJmXjdVvlMnMQCVITotJd1
z+fh1f1NNo+vuc1KnhWUmY7t03vydTud9BbXCtN3L2PL3bK7JCNG0GHzuZxafyB
fxevCxpm1vrwZltqw6SILCcdoCE6PGQC8wZWDA9Or7Qp5s3lAZezys0nDazs9S9
R0TjwEiksRxLkNPC1NMMWPs1bj0Ei0Yuo+JVtFLuzP1NRJ16qXWN8DhhtmS4PDg
O6mqRxs4bEJrYt087mSIow/1VzW2oFlMQuiuIy/KsUagvhdw6hSjJGlIavbLF8x
j3X47bccLcUSi0dkWh1nUZNhANT1tHKUXrNxNLbd9KPb9wDDVrKwmPQMOPQ1oy6
k5I1DwzDeRJd3jVIhDAUxq3ngzJG4CCkNXZxZVMcjefoK2J0gUY2S3rxz/RuTFx
2zHd9U+obimJXMG4edsk/2j5pTU5G1MmzbRLxkfq5EiT1GGsidvMGzi+1goGb2l
GCrN+nGnV8xj3q3JLRDVPL96vUc7Z4aJ3TN1mVqWAMJMfG+Jxh6TQqP+92iZkCU
xtglds1AB6r0aiSHKcnFck+p/c/0CbacFLQcajGcAAAAASUVORK5CYII=
View all headers

HenHanna wrote:

> > (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
> >
> <-- This sounds slightly odd. Do you agree?
>
>
> There would be 2 kinds of Non-termination.
>
> 1. If you enter (lrange 0) into REPL, it will hang.
>
> 2. Entering (lrange 0) in REPL would print an infinite list.
>
> i can't guess which is the case for Gauche.

Oh, i just thought you meant that it was weird that it would allow
unterminating constructs in the REPL in the first place. Seeing as how
the previous bits of the documentation already state that the evaluated
result of (lrange 0) is an infinite list, i would assume that the ‘it’ in
“it won't terminate” refers to the REPL (or rather that command in the
REPL).

--
Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr.
blue-maned_hawk.srht.site
A great way to waste a morning and then ruin an afternoon!

Subject: Re: (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
From: HenHanna
Newsgroups: sci.lang, alt.usage.english, comp.lang.lisp
Organization: A noiseless patient Spider
Date: Fri, 21 Jun 2024 20:43 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: sci.lang,alt.usage.english,comp.lang.lisp
Subject: Re: (Don’t type just (lrange 0) in REPL,
_or_it_won’t_terminate!)
Date: Fri, 21 Jun 2024 13:43:42 -0700
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <v54om2$3b3op$2@dont-email.me>
References: <v4sppr$1gg3l$2@dont-email.me> <v4vp6v$26pim$1@dont-email.me>
<pan$6caf2$ae9b44f0$7459471$6fa0349a@invalid.invalid>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 21 Jun 2024 22:43:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e2ed18b28ec6129eb67a61478f863ab9";
logging-data="3510041"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+LMNzqWk9Kws1pg8s7UZf7dV5zL+oIDXw="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kIOmTleKvB4Ikgz6H8+SXeXTwLE=
In-Reply-To: <pan$6caf2$ae9b44f0$7459471$6fa0349a@invalid.invalid>
Content-Language: en-US
View all headers

On 6/21/2024 1:09 AM, Blue-Maned_Hawk wrote:
> HenHanna wrote:
>
>> > (Don’t type just (lrange 0) in REPL, or it won’t terminate!)
>> >
>> <-- This sounds slightly odd. Do you agree?
>>
>>
>> There would be 2 kinds of Non-termination.
>>
>> 1. If you enter (lrange 0) into REPL, it will hang.
>>
>> 2. Entering (lrange 0) in REPL would print an infinite list.
>>
>> i can't guess which is the case for Gauche.
>

> Oh, i just thought you meant that it was weird that it would allow
> unterminating constructs in the REPL in the first place. Seeing as how
> the previous bits of the documentation already state that the evaluated
> result of (lrange 0) is an infinite list, i would assume that the ‘it’ in
> “it won't terminate” refers to the REPL (or rather that command in the
> REPL).
>

as a matter of English Usage...

>> (Don’t type just (lrange 0) in REPL, or it won’t terminate!)

i think this sounds too wordy and awkward.

Moreover... my 2 alternatives are more informative.

1

rocksolid light 0.9.8
clearnet tor