7!:2 measures the space needed to execute a string, not just the space needed for the name and its contents. The disparity in the per-element space for c=.'a' and d=.i.1e6 is indicative of this fact.
----- Original Message ----- From: adam dunne <[email protected]> Date: Monday, July 19, 2010 7:14 Subject: [Jprogramming] space To: [email protected] > Can someone explain why these space figures are so high? Is > there a > lot of space req'd for a variable name? > ex=.7!:2 > free=.7!:3'' > free > 64 1609 > 128 754 > 256 341 > 512 141 > 1024 27 > ex'a=.1' NB.integer > 640 > free > 64 1609 > 128 754 > 256 341 > 512 141 > 1024 27 > ex'b=.^1' NB.fl pt > 704 > free > 64 1609 > 128 754 > 256 341 > 512 141 > 1024 27 > ex'c=.''a''' NB.string > 704 > ex'd=.i.1e6' NB.integer list > 4195008 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
