W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] Side effects free scripts

From: Alexey Feldgendler <alexey@feldgendler.ru>
Date: Thu, 01 Jun 2006 13:10:38 +0700
Message-ID: <op.tagd30fk1h6og4@localhost>
On Thu, 01 Jun 2006 11:25:38 +0700, Andrew Fedoniouk <news at terrainformatica.com> wrote:

>> So, determining if a function is side effect free needs to be done
>> while that function is run.


> Exactly! So to run such function in runtime you need sandbox each time.
> Quod erat demonstrandum.


I don't see how (2) follows from (1). No, you can't verify whether a script is side effects free until runtime. But no, you don't need a sandbox either. You only need a special mode for the script interpreter, like a global boolean flag, which prohibits several types of actions listed in my initial mail.

Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com
Received on Wednesday, 31 May 2006 23:10:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC