News for hackers. Stuff that matters.
Re:Can Your Static Type System Handle Linear Algebra? (2014) by jjoonathan on Wednesday April 29, 2015 @10:10PM (#9462945)
You seem to be under the impression that I'm a proponent of using dynamic typing to the exclusion of static typing. That's not the case (I'm an ObjC fan). I just hadn't seen a situation before where the argument for one vs the other in a particular situation hinged on something so fundamental rather than on a design artifact.

EDIT: Removed comment about scala because I was confusing it with clojure. My bad.

Re:Can Your Static Type System Handle Linear Algebra? (2014) by alexknvl on Wednesday April 29, 2015 @11:52PM (#9463258)
That's the thing. There is no argument for one vs the other.

There is a statement of the following fact: "It is hard to express heterogeneous array type in most statically typed programming languages and verify operations at compile time." Well, duh. AFAIK this would require dependent types* (not something that you get for granted in mainstream languages).

But can we check types in runtime? Yes. Does it mean that it can only be done in a dynamic language? No. It can be easily done in any language that has integers and arrays. Even x86 assembly is enough.

* Scala's type system should be enough, if we use shapeless.HList's for column and row types and then a ton of implicits to resolve the resulting type and check that everything is sound.