News for hackers. Stuff that matters.
Re:AviatorScript – A high performance scripting language hos... by throwaway4good on Friday March 26, 2021 @08:34AM (#26591310)
And what is the relationship between tuple, list, and array?

https://www.yuque.com/boyan-avfmj/aviatorscript/ban32m

Re:AviatorScript – A high performance scripting language hos... by nalenth on Friday March 26, 2021 @08:44AM (#26591416)
tuple is a fixed-size array

array is a java array

list is a sequence which are java Collections (Set/Map/List)

Re:AviatorScript – A high performance scripting language hos... by throwaway4good on Friday March 26, 2021 @09:06AM (#26591643)
Yeah - I figured it would be related to interopt with the Java runtime.

However it is a bit sad, language designers never seem to bother cleaning up collection types when designing a new language.

There really should be just one list type.

Re:AviatorScript – A high performance scripting language hos... by dvdkon on Friday March 26, 2021 @04:25PM (#26596507)
Agree with array/list, we don't need more contiguous chunks of memory, but tuples are very different, if only because they allow elements of different types. They're really more ad-hoc unnamed structs than collections.
Re:AviatorScript – A high performance scripting language hos... by nalenth on Friday March 26, 2021 @08:06PM (#26598476)
in strictly typed languages that would be correct, and I still somewhat agree, but AviatorScript is dynamically typed, and allows lists containing elements with different types. It's basically List<Object>. So it seems to be a strictly semantic distinction.