Re:Futhark by Example
by otabdeveloper4 on Saturday May 16, 2026 @08:20AM
(#48159533)
Yeah, C++ arrays are literally that.
[ Parent
| on HN ]
Arrays are not dynamically sized though (handling runtime sizes) and don’t have efficient append/concat. The point of the dependent types is that you can have the type system track that concat creates an M+N length vector, sort preserves length (and adds a sorted guarantee that slice preserves), etc.
Sure you can do a lot with templates, but that’s advanced templates not just “C++ arrays” in a throwaway “literally that” way.