ballerina-platform / nballerina

Ballerina compiler that generates native executables.
https://ballerina.io/
Apache License 2.0
138 stars 46 forks source link

Implement `map<any>` #170

Closed jclark closed 3 years ago

jclark commented 3 years ago

This introduces a new type descriptor map<any>.

Existing syntax extended:

This depends on #130.

Implementation steps:

jclark commented 3 years ago

A good implementation strategy would be Python's "compact dict" data structure. https://morepypy.blogspot.com/2015/01/faster-more-memory-efficient-and-more.html

See also: https://blog.toit.io/hash-maps-that-dont-hate-you-1a96150b492a

This is a good balanced overview https://bigdata.uni-saarland.de/publications/p249-richter.pdf