Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #82: Yeah, yo mama dresses you funny and you need a mouse to delete files.


comp / comp.lang.lisp / Re: Meanings Of AI Koans

SubjectAuthor
* Meanings Of AI KoansLawrence D'Oliveiro
+* Re: Meanings Of AI KoansNuno Silva
|`- Re: Meanings Of AI KoansLawrence D'Oliveiro
+- Re: Meanings Of AI KoansKaz Kylheku
`* Re: Meanings Of AI KoansPaul Rubin
 `* Re: Meanings Of AI KoansNuno Silva
  `- Re: Meanings Of AI KoansHenHanna

1
Subject: Meanings Of AI Koans
From: Lawrence D'Oliv
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 21 Apr 2024 06:26 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.lisp
Subject: Meanings Of AI Koans
Date: Sun, 21 Apr 2024 06:26:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 88
Message-ID: <v02bhr$5jdr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 21 Apr 2024 08:26:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8d50bbc6aaf60d8035a1a07b3ae8f11f";
logging-data="183739"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198iM2H+VlGG0Ru+FrKFGUh"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:HbH5lKrEJs7IPKoXJpRpLUFggTc=
View all headers

From <http://www.catb.org/~esr//jargon/html/koans.html>:

A novice was trying to fix a broken Lisp machine by turning the
power off and on.

Knight, seeing what the student was doing, spoke sternly: “You
cannot fix a machine by just power-cycling it with no
understanding of what is going wrong.”

Knight turned the machine off and on.

The machine worked.

Commentary:

Rule 1 of power-cycling hardware: watch out for residuals. It takes
time for residual charge to drain out of the circuitry when you turn
it off. If you switch it on too quickly, the circuits are liable to
get into an inconsistent state.

For simpler circuitry, count five seconds after switching off before
switching on again. More complex components might take longer.

----

One day a student came to Moon and said: “I understand how to make
a better garbage collector. We must keep a reference count of the
pointers to each cons.”

Moon patiently told the student the following story:

“One day a student came to Moon and said: ‘I understand how to
make a better garbage collector...

[Ed. note: Pure reference-count garbage collectors have problems
with circular structures that point to themselves.]

Commentary:

Pure garbage collectors will easily consume all of RAM if you let
them. Reference-counting is a well-known technique for keeping RAM
usage within reasonable bounds in many common scenarios. The best
scheme is a combination of both. Languages like Perl and Python are
exemplars of this. Maybe the Lisps could learn from them?

----

In the days when Sussman was a novice, Minsky once came to him as
he sat hacking at the PDP-6.

“What are you doing?”, asked Minsky.

“I am training a randomly wired neural net to play Tic-Tac-Toe”
Sussman replied.

“Why is the net wired randomly?”, asked Minsky.

“I do not want it to have any preconceptions of how to play”,
Sussman said.

Minsky then shut his eyes.

“Why do you close your eyes?”, Sussman asked his teacher.

“So that the room will be empty.”

At that moment, Sussman was enlightened.

Commentary:

I wonder if either of them had heard of genetic algorithms?

----

A disciple of another sect once came to Drescher as he was eating
his morning meal.

“I would like to give you this personality test”, said the
outsider, “because I want you to be happy.”

Drescher took the paper that was offered him and put it into the
toaster, saying: “I wish the toaster to be happy, too.”

Commentary:

What can I say, but be careful what you wish for?
<https://www.youtube.com/watch?v=LRq_SAuQDec>

Subject: Re: Meanings Of AI Koans
From: Nuno Silva
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 21 Apr 2024 08:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nunojsilva@invalid.invalid (Nuno Silva)
Newsgroups: comp.lang.lisp
Subject: Re: Meanings Of AI Koans
Date: Sun, 21 Apr 2024 09:35:01 +0100
Organization: A noiseless patient Spider
Lines: 36
Message-ID: <v02iq0$75dh$1@dont-email.me>
References: <v02bhr$5jdr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 21 Apr 2024 10:29:53 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cec900e1f460d54ceeba0ee813c6970f";
logging-data="234929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NF3GR6TP7dTAkr3atgiLT"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:serV2LIMmIsqyLq+QfVmqd1kcHk=
View all headers

On 2024-04-21, Lawrence D'Oliveiro wrote:

>
> In the days when Sussman was a novice, Minsky once came to him as
> he sat hacking at the PDP-6.
>
> “What are you doing?”, asked Minsky.
>
> “I am training a randomly wired neural net to play Tic-Tac-Toe”
> Sussman replied.
>
> “Why is the net wired randomly?”, asked Minsky.
>
> “I do not want it to have any preconceptions of how to play”,
> Sussman said.
>
> Minsky then shut his eyes.
>
> “Why do you close your eyes?”, Sussman asked his teacher.
>
> “So that the room will be empty.”
>
> At that moment, Sussman was enlightened.
>
> Commentary:
>
> I wonder if either of them had heard of genetic algorithms?

The same would still apply, wouldn't it? If I'm interpreting the example
correctly, the matter here is mistaking randomness for lack of bias or
influence. It still exists, but is made less "visible" by the
randomness.

--
Nuno Silva

Subject: Re: Meanings Of AI Koans
From: Lawrence D'Oliv
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 21 Apr 2024 09:39 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.lang.lisp
Subject: Re: Meanings Of AI Koans
Date: Sun, 21 Apr 2024 09:39:38 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <v02msq$7vgo$1@dont-email.me>
References: <v02bhr$5jdr$1@dont-email.me> <v02iq0$75dh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 21 Apr 2024 11:39:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8d50bbc6aaf60d8035a1a07b3ae8f11f";
logging-data="261656"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yTiguqUZNcF/+BgL/55h9"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:ShMRQkheIXeWt7LjF1Z9i0J/fHw=
View all headers

On Sun, 21 Apr 2024 09:35:01 +0100, Nuno Silva wrote:

> On 2024-04-21, Lawrence D'Oliveiro wrote:
>
>> I wonder if either of them had heard of genetic algorithms?
>
> The same would still apply, wouldn't it? If I'm interpreting the example
> correctly, the matter here is mistaking randomness for lack of bias or
> influence.

Genetic algorithms take a bit of randomness and apply filtering to it.
This is supposed to mimic the mechanism of biological evolution, where you
have the randomness of mutation (the inevitable errors in the gene-copying
process) filtered through natural selection.

Randomness is necessary, but not sufficient; the original koan assumes
that’s all there is. Kind of like the creationists, really.

Subject: Re: Meanings Of AI Koans
From: Kaz Kylheku
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 21 Apr 2024 17:35 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 643-408-1753@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.lisp
Subject: Re: Meanings Of AI Koans
Date: Sun, 21 Apr 2024 17:35:09 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 98
Message-ID: <20240421082429.939@kylheku.com>
References: <v02bhr$5jdr$1@dont-email.me>
Injection-Date: Sun, 21 Apr 2024 19:35:10 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="25cf5e8d4c406b4637b81664a1f75cdd";
logging-data="454736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18L1VQ95tqsA1MRCGkPcj+uYCOfSMDqABY="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:VGHaQz0ORz0JreHkP+A6XeXf8fs=
View all headers

On 2024-04-21, Lawrence D'Oliveiro <ldo@nz.invalid> trolled again:
> Rule 1 of power-cycling hardware: watch out for residuals. It takes
> time for residual charge to drain out of the circuitry when you turn
> it off. If you switch it on too quickly, the circuits are liable to
> get into an inconsistent state.

This is because of power filtering capacitors, which are the largest.

When you cut power to a device, it doesn't instantly lose power. Its
internal voltage begins to drop, as the filter caps drain.

If you restore power too quickly, the device may effectively experience
only a brownout; not enough of a drop to initiate a reset.

(There is also a risk that some designs have a badly designed brownout
circuit: that the voltage at which they become unreliable yet above the
voltage that initiates a reset. But let's assume sane design.)

> For simpler circuitry, count five seconds after switching off before
> switching on again. More complex components might take longer.

No, complexity doesn't extend this period. What extends the period
is having larger capacitors in relation to the current drain.

Complexity, however, means that there can be subsystems in the
machine which tolerate brownouts of different durations.

If you quickly toggle the power, some components in the system may reset
themselves while others recover from the brownout. If you want
everything reset, you have to wait for the slowest component.

> Pure garbage collectors will easily consume all of RAM if you let
> them.

Yes, garbage collection could easily consume all of RAM, even though the
actual application needs only a fixed, much smaller amount of RAM.

"If you let it" is the key operative phrase.

Well, if it hurts, don't do that?

Garbage collection can easily confine itself to carving out small heaps
of memory at a time, and only claim an additional heaps form the
underlying host system only when certain conditions occur, like when a
full GC cycle is not able to recover more memory than a certain fraction
of a heap.

In other words, dynamically scale the footprint to the application.

Additionally, production garbage collectors have tunable GC parameters.

> Reference-counting is a well-known technique for keeping RAM
> usage within reasonable bounds in many common scenarios.

No, reference counting is not primarily technique for minimizing RAM
usage. It is primarily a technique for timely reclamation, ensuring that
objects are finalized and reclaimed as soon as they are not required.

Storage reclaimed by reference counting is not always returned to the
system. Reference counting still has unused memory claimed by
application heaps, that is not available to other applications.
It also doesn't eliminate fragmentation.

All we can say is that, under no imaginable circumstances, would
reference counting (in a correct program that has no "semantic leaks")
consume, say, a gigabyte of RAM, while the program only needs a peak
usage of hundreds of kilobytes. Whereas, garbage collection could be
configured such that such a thing happens.

So ... bleepity-do ... what?

> scheme is a combination of both. Languages like Perl and Python are
> exemplars of this. Maybe the Lisps could learn from them?

In the Lisp culture, memory management has been beat up from more angles
than anywhere else.

You're not proposing that no Lisp in existence has ever used reference
counting for anything, even objects that don't have pointers to
other objects that could get into a cycle.

But you're welcome to pitch in your contribution if you think you're
smarter than everyone else.

> At that moment, Sussman was enlightened.
>
> Commentary:
>
> I wonder if either of them had heard of genetic algorithms?

Yeah, Sussman and Perl are waiting for none other than you to pull their
ignorant heads out of their asses! Maybe while you are at it, you can
get them to study Perl and Python, so they can fix Lisp.

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Subject: Re: Meanings Of AI Koans
From: Paul Rubin
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Sun, 21 Apr 2024 22:52 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no.email@nospam.invalid (Paul Rubin)
Newsgroups: comp.lang.lisp
Subject: Re: Meanings Of AI Koans
Date: Sun, 21 Apr 2024 15:52:28 -0700
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <87cyqi49cj.fsf@nightsong.com>
References: <v02bhr$5jdr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Mon, 22 Apr 2024 00:52:28 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="2dcf4d757c472d984e11a2ec8ef5d69b";
logging-data="579918"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XjsWv4bxRMogsqKBeEDYL"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:XpJ0x2mbKSfWKbvKrPuGyzxRrSQ=
sha1:Qp/dYyfQNP6611+F3IoxE4i5vx4=
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:
> Knight turned the machine off and on.
> The machine worked.
> Commentary:
>
> Rule 1 of power-cycling hardware: watch out for residuals.

I think the joke here is that (Tom) Knight was a hardware wizard. So
when he power cycled the machine, he knew what was happening inside it,
unlike the student.

Subject: Re: Meanings Of AI Koans
From: Nuno Silva
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Wed, 24 Apr 2024 07:19 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: nunojsilva@invalid.invalid (Nuno Silva)
Newsgroups: comp.lang.lisp
Subject: Re: Meanings Of AI Koans
Date: Wed, 24 Apr 2024 08:19:29 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <v0abg4$26gi9$1@dont-email.me>
References: <v02bhr$5jdr$1@dont-email.me> <87cyqi49cj.fsf@nightsong.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 24 Apr 2024 09:14:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8dd6c72086c74920a4e12123460437b9";
logging-data="2310729"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5ZM7UbrzL64cyd2Mth/lf"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Cancel-Lock: sha1:sNRaIftW1b+fHIReyqsQ9bg3pMQ=
View all headers

On 2024-04-21, Paul Rubin wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>> Knight turned the machine off and on.
>> The machine worked.
>> Commentary:
>>
>> Rule 1 of power-cycling hardware: watch out for residuals.
>
> I think the joke here is that (Tom) Knight was a hardware wizard. So
> when he power cycled the machine, he knew what was happening inside it,
> unlike the student.

The wording too might fit the residuals explanation quite well (or
perhaps any other explanation similarly related to what happens
inside). The student turned off and on the *power*, Knight turned off
and on the *machine*.

--
Nuno Silva

Subject: Re: Meanings Of AI Koans
From: HenHanna
Newsgroups: comp.lang.lisp
Organization: A noiseless patient Spider
Date: Tue, 23 Jul 2024 19:20 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: comp.lang.lisp
Subject: Re: Meanings Of AI Koans
Date: Tue, 23 Jul 2024 12:20:18 -0700
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <v7ovpi$1b339$2@dont-email.me>
References: <v02bhr$5jdr$1@dont-email.me> <87cyqi49cj.fsf@nightsong.com>
<v0abg4$26gi9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 23 Jul 2024 21:20:19 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="45120b53e64fc89465e7bcc84dd55152";
logging-data="1412201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19LgCs7cC/O5VegROZyzkxFSjmpkP5B6U4="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zzdliU43Gl/W6dE4Ei4llYU6ylU=
In-Reply-To: <v0abg4$26gi9$1@dont-email.me>
Content-Language: en-US
View all headers

On 4/24/2024 12:19 AM, Nuno Silva wrote:
> On 2024-04-21, Paul Rubin wrote:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>> Knight turned the machine off and on.
>>> The machine worked.
>>> Commentary:
>>>
>>> Rule 1 of power-cycling hardware: watch out for residuals.
>>
>> I think the joke here is that (Tom) Knight was a hardware wizard. So
>> when he power cycled the machine, he knew what was happening inside it,
>> unlike the student.
>
> The wording too might fit the residuals explanation quite well (or
> perhaps any other explanation similarly related to what happens
> inside). The student turned off and on the *power*, Knight turned off
> and on the *machine*.
>

interesting.... i'll look for other "Koans" and anecdotes.

1

rocksolid light 0.9.8
clearnet tor