[Jprogramming] ^:

Henry Rich henryhrich at gmail.com
Wed Mar 4 19:04:02 UTC 2020


It's hard to know what the interpreter might get away with.  How many 
bytes will be used by the last sentence in this sequence?

    a =. 1e5 ?@$ 1e5
    ]b =. a i. 4 5 6 7 8
100000 4592 7680 5095 18231
    b { 9999999 ,~ ] a
9999999 5 6 7 8


Henry Rich




On 3/4/2020 1:19 PM, Raul Miller wrote:
> Unless you're working with memory mapped files -- which are a
> reflection of an external (os) mechanism -- named nouns in J are copy
> on write.
>
> For example:
>     a=:p:i.4
>     b=:a
>     a=:a 1}~ 9
>     a
> 2 9 5 7
>     b
> 2 3 5 7
>
> Thanks,
>


-- 
This email has been checked for viruses by AVG.
https://www.avg.com



More information about the Programming mailing list