Re:Dyon – A Rusty dynamically typed scripting language
by qalmakka on Tuesday December 22, 2020 @03:00AM
(#25504046)
It looks nice, but I don't get how "link" is supposed to work, it seems like some kind of strange tuple type. Does anyone have any example of how it can be used, except the few bits they linked from the readme?
[ Parent
| on HN ]
Re:Dyon – A Rusty dynamically typed scripting language
by arnarbi on Tuesday December 22, 2020 @03:18AM
(#25504136)
An array will carry type information for each element.
Link looks like an optimized array which only allows three types so it can more efficiently pack the type (and presence) information for a block of items into a a couple of words. Plus it doesn’t hold references so managing its lifetime is simple, and you get cheap concatenation by chaining blocks.
I’d guess it’s good for lookup tables or large indexes.