Re:Ask HN: The future of programming languages?
by beagle3 on Friday November 12, 2010 @05:23PM
(#1899539)
The array model fits the relational model way, way better than the object oriented model (no "o/r impedance mismatch"). I think most domains fit just as well (if not better) with arrays.
And specifically, the APL/K/J focus on data makes it a better foundation for optimization, parallelization and reasoning about program behaviour.
Re:Ask HN: The future of programming languages?
by iskander on Tuesday November 23, 2010 @02:11AM
(#1932875)
>And specifically, the APL/K/J focus on data makes it a better foundation for optimization, parallelization and reasoning about program behaviour.
I'll give you the first two points (though some heavy-weight optimizations become necessary to eliminate big wasteful temporaries), but certainly not the last. At least not in general--- recursion is a terrible pain with arrays! Even stateful object-oriented languages deal with inductive structures better than array languages.
What does tree processing in APL look like? I'm it's possible and I'm also sure it's hell. The K/Q approach of nested vectors is a first step towards making recursion tolerable in an array language, but it's still a kludge.
A better foundation for...what? Many important programming domains don't fit naturally into the array-oriented model.