>>5 An instruction set is said to be orthogonal if it lacks redundancy (i.e. there is only a single instruction that can be used to accomplish a given task)
>>15
Were we ever discussing C thus far? And I never claimed C was orthogonal anyways. In fact you just abruptly brought it up. And even had the indecency to use ``C/C++''.
Name:
Anonymous2012-10-03 1:26
wow OP. you discovered haskell is a research language, designed for academics to write papers about. It's used in two programs, some bank software in new zealand and xmonad. the future is javascript
>>17
You actually had me until "the future is javascript". But now I have to disagree horribly. I'd take Haskell over that broke piece of shit any day.
>>10
They both optimise to a constant. It wouldn't work with an unknown valu--IHBT
Name:
Anonymous2012-10-03 5:31
Common Lisp (defun vector-length (seq)
(sqrt (reduce #'+ (map 'vector #'(lambda (x) (* x x)) seq) :from-end t))) VECTOR-LENGTH
Haskell let vecLen = sqrt . Data.Foldable.sum Ambiguous type variable `t0' in the constraint:
(Foldable t0) arising from a use of `Data.Foldable.sum'
Probable fix: add a type signature that fixes these type variable(s)
In the second argument of `(.)', namely `Data.Foldable.sum'
In the expression: sqrt . Data.Foldable.sum
In an equation for `vecLen': vecLen = sqrt . Data.Foldable.sum