Re:Idris - pure functional programming language with depende...
by radarsat1 on Thursday January 19, 2012 @08:45AM
(#3484412)
Very nice, haven't heard of this before. I think an ideal target for a dependently typed language is scientific array programming, so that you can ensure the sizes of your matrix and array operations check out before performing long-running tasks. If a good array library can be built (e.g. port Haskell's Repa) then it might provide a great foundation for this.
[ Parent
| on HN ]
Re:Idris - pure functional programming language with depende...
by dons on Thursday January 19, 2012 @09:58AM
(#3484699)
With type level naturals recently added to GHC, statically checked arrays are already implementable in Haskell.
* http://hackage.haskell.org/package/vector-static
* http://hackage.haskell.org/package/hmatrix-static
A nice next step would be to optimize out additional runtime bounds checks.