|
|
|
|
|
by skissane
1482 days ago
|
|
> Building lists out of pairs and then using them as your intermediate format creates a lot of garbage. I wonder if a Lisp-like language which used vectors rather than pairs as its fundamental data structure might be a better fit for severely memory-constrained systems? On average, vectors take up half the memory consumption of lists. Such a language would end up looking rather different to Lisp though. Cons cells encourage CAR/CDR and recursion. A vector-centric language would naturally lead to a more iterative programming style. |
|