Memory allocation: Difference between revisions
Rename Perl 6 -> Raku, alphabetize, minor clean-up
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
|||
Line 1,028:
when/if that happens.
=={{header|Perl 6}}==▼
Like Perl 5, Perl 6 is intended to run largely stackless, so all allocations are really on the heap, including activation records. Allocations are managed automatically. It is easy enough to allocate a memory buffer of a particular size however, if you really need it:▼
<lang perl6>my $buffer = Buf.new(0 xx 1024);</lang>▼
=={{header|Phix}}==
In normal use, memory management is fully automatic in Phix. However you may need to explicitly allocate memory when interfacing to C etc.
Line 1,281 ⟶ 1,278:
Custodians manage threads, ports, sockets, etc.
A bit of information about them is available [http://docs.racket-lang.org/reference/eval-model.html?q=memory&q=custodian&q=computer&q=pointer#%28part._custodian-model%29 here]
(formerly Perl 6)
▲Like Perl 5, Perl 6 is intended to run largely stackless, so all allocations are really on the heap, including activation records. Allocations are managed automatically. It is easy enough to allocate a memory buffer of a particular size however, if you really need it:
▲<lang perl6>my $buffer = Buf.new(0 xx 1024);</lang>
=={{header|Retro}}==
|