graalphp icon indicating copy to clipboard operation
graalphp copied to clipboard

Complete Array Implementation

Open abertschi opened this issue 5 years ago • 1 comments

complete support for sequences, add support for maps, sets, stacks, queues

https://www.php.net/manual/en/language.types.array.php

Some ideas to evaluate:

  • truffle library dispatched on a primitive long[] type, use special value (Long MIN/MAX) to mark a hole. Generalize to different representation if special value is functionally used (same for double[]) This is more efficient than bitmap to mark holes.
  • distinguish between capacity of storage representation and capacity of written values.
  • Map based representation for key=> value

abertschi avatar Oct 01 '20 08:10 abertschi

  • decouple functional array behavior (write/ read) from technical storage representation (generalize, copy, ...) #31

abertschi avatar Oct 01 '20 08:10 abertschi