jvranish
Re:Why Haskell Is Worth Learning
on Tuesday March 05, 2013 @12:41PM (#5325981)
Those are all great languages. Haskell by no means has a monopoly on mind expanding features. But I think that the enforced purity of Haskell along with laziness and the powerful type system is a particularly brain twisting mix.
Re:Hey, C Is a Functional Language Too
on Friday November 02, 2012 @09:27AM (#4732495)
I use clang with a -Wall and -Wextra, which will complain about all sorts of stuff I generally want to know about, including unused variables (I think gcc does the same?). For the rare cases where I actually want to leave a variable unused I do the above to make the warning go away.
Re:Hey, C Is a Functional Language Too
on Friday November 02, 2012 @09:17AM (#4732458)
Actually, if you look closely you'll notice that not other language lets you do this either (except through an 'eval' or similar). What I think you actually mean is that this still doesn't let you use closures. But in fact it does! :D You'll have to do a lot of void * casting to make it work though.
Re:Hey, C Is a Functional Language Too
on Friday November 02, 2012 @09:07AM (#4732428)
It's still Turing complete (though that's not saying much really). You can always grow the stack more :P
Re:Implementing Advanced Math Functions
on Wednesday April 25, 2012 @01:03PM (#3889941)
Do you know of good resource for how to compute minimax polynomials that approximate transcendental functions? My Google foo appears to be failing me.
Re:Implementing Advanced Math Functions
on Wednesday April 25, 2012 @10:29AM (#3889237)
If your goal is accuracy, you are absolutely correct. But in the instances where I've wanted to implement my own versions of transcendental math functions, accuracy was actually pretty low on my list of priorities. Often just a couple terms of a taylor series was accurate enough, fast, and easy to implement.