chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Flow-analysis enhancement for assigned var


From: Alaric Snell-Pym
Subject: Re: [Chicken-hackers] [PATCH] Flow-analysis enhancement for assigned variables
Date: Mon, 30 Jan 2012 11:47:03 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Thunderbird/3.1.11

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/30/2012 11:31 AM, Felix wrote:

> I just mention this to show that there are quite a few ways to "work
> around" the assumptions made by the type system, both applying to
> variables and data. Concurrently performing side effects makes all
> analysis moot. In the absolute worst case, one has to disable
> specialization and ignore warnings produced by the scrutinizer.

The ability to concurrently mutate arbitrary state is rarely useful (it
tends to introduce more bugs than features!), and causes a lot of
trouble for implementers. Non-concurrently mutating arbitrary state is
bad enough, too!

This is why I'm hoping that future Scheme Reports can do more to
constrain mutation - immutable cons cells by default (with mutable ones
still available for backwards compatability), for instance. Plain set!
isn't too bad, as there's no way to pass references around in Scheme, so
you can always lexically analyse it, but being able to mutate the
internals of arbitrary data structures can be a pain.

ABS

- --
Alaric Snell-Pym
http://www.snell-pym.org.uk/alaric/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8mgzcACgkQRgz/WHNxCGqZ9QCfa5omcwtEi+eVfj1cadZ+bjq7
WgMAn0PmVGahshuK+JnG35YW8F6/t6ny
=nRVf
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]