chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] memory usage of object


From: Alaric Snell-Pym
Subject: Re: [Chicken-users] memory usage of object
Date: Wed, 20 Jun 2007 10:23:55 +0100


On 20 Jun 2007, at 10:04 am, felix winkelmann wrote:
(##sys#size X) will return the number slots/words in a vector-like
object, or the number of bytes for a byte-vector like object (i.e.
a string)
(It will crash for immediate data).

So I see:

#;3> (##sys#size 'foo)
2
#;4> (##sys#size 1)
Bus error

How many ways are there to crash a Chicken, actually?

(Cue "why did the chicken cross the road" jokes)

It'd be handy to have an eval environment without any ways to crash
it, any access to external system resources, etc for sandboxing code
in :-)

ABS

--
Alaric Snell-Pym
Work: http://www.snell-systems.co.uk/
Play: http://www.snell-pym.org.uk/alaric/
Blog: http://www.snell-pym.org.uk/?author=4






reply via email to

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