News for hackers. Stuff that matters.
Re:Reasons to use Haskell as a Mathematician by beloch on Sunday March 06, 2011 @04:45PM (#2295108)
I like mathematica for stream-of-consciousness type stuff. Personal notes rather than something I'd publish. I can code up some functions, try a few things, show the important results, and talk about it with typeset equations all in the same printable page. Latex input would be nicer, but it's not terrible once you learn some of the keyboard shortcuts.

Matlab seems an odd thing to ignore. It's pretty good for doing more computationally intensive work. It's not fantastic, but it gets the job done and has good plotting features. I generate a lot of publishable figures with matlab.

I've done some simulations using Fortran, and it's surprisingly good for a language it's age. It's been continually updated. Legacy features occasionally bite you in the ass. C is for drivers. I use it in the lab only when forced to.

So, what does Haskell offer? It looks nicer than C. Can I write drivers for odd-ball devices in it? Probably. Then again, I'm often just modifying some C-code from a vendor, so the choice is already made for me. Fortran is so well entrenched that I'm still going to wind up using it if I ever want to run something through some crazy hydrodynamics code somebody else already wrote. If I want to do stream-of-consciousness type stuff I'll still be using mathematica. How is it at plotting things? Probably not very good since it wasn't worth mentioning.

Sounds like another language I'll learn if I'm forced to.

If you really want to make this physicist drool the single best thing you can do is give me a development environment that combines rich plotting features and Latex input for comments. NOBODY HAS DONE THIS!!! Put a pleasant to use language under the hood and you might have a winner.

Re:Reasons to use Haskell as a Mathematician by regularfry on Monday March 07, 2011 @08:50AM (#2297061)
> So, what does Haskell offer? It looks nicer than C. Can I write drivers for odd-ball devices in it? Probably. Then again, I'm often just modifying some C-code from a vendor, so the choice is already made for me. Fortran is so well entrenched that I'm still going to wind up using it if I ever want to run something through some crazy hydrodynamics code somebody else already wrote.

Actually, the FFI story in Haskell is pretty neat. In the past I've written Haskell plugins which interface to a C api for commercial, closed-source software which isn't a million miles from crazy hydrodynamics code. The idea of walling off statefulness behind a well-defined FFI interface and going to town on the functional side is nice. I certainly found it easier to make progress with GHC than with OCaml.

Re:Reasons to use Haskell as a Mathematician by w1ntermute on Sunday March 06, 2011 @06:33PM (#2295370)
It should be fairly easy to write a GVim plugin to do this for any language. Or if you want a full IDE, take an existing Python IDE and add support. Can't beat Python when it comes to balancing practicality and usability - you can call C, C++, and Fortran code from it, and Numpy, Scipy, and Matplotlib make it a joy to use for scientific applications.
Re:Reasons to use Haskell as a Mathematician by ramanujan on Monday March 07, 2011 @01:54AM (#2296328)
Check out org-babel for emacs. That should be what you want.
Re:Reasons to use Haskell as a Mathematician by ubasu on Sunday March 06, 2011 @01:32PM (#2294663)
It seems ironic that in an article on a programming language named after Haskell Curry, it says:

...to take a function of two arguments, say f(.,.), and construct from it a function of a single variable defined by f_x(y) = f(x,y). Computer scientists call such a thing a closure...

Re:Reasons to use Haskell as a Mathematician by sharkbot on Sunday March 06, 2011 @02:14PM (#2294756)
I wouldn't consider its use ironic. A curried function is generally implemented using closures (i.e., a function that remembers the lexical environment of its definition). It might be a slight abuse of terminology, but not one that should give much pause.
Re:Reasons to use Haskell as a Mathematician by szany on Sunday March 06, 2011 @02:37PM (#2294814)
Has the Prelude been rewritten since?

If not, are there plans to do this soon?

Re:Reasons to use Haskell as a Mathematician by troutwine on Sunday March 06, 2011 @04:22PM (#2295062)
No, the Prelude has not been rewritten and there are no plans to do so. Which axiomatic set should be the basis of a Mathematical Prelude? That's a rather tough question to answer, being that there are many arbitrary but not quite compatible answers. Instead, the focus has shifted to shrinking the Prelude, at least in Haskell':

http://hackage.haskell.org/trac/haskell-prime/wiki/Prelude

Re:Reasons to use Haskell as a Mathematician by Open-Juicer on Monday March 07, 2011 @01:45AM (#2296313)
>(9) Haskell Eats Circular Definitions for Breakfast

It's recursive, not circular, definition. A circular definition never ends while a recursive one does.

Re:Reasons to use Haskell as a Mathematician by primodemus on Monday March 07, 2011 @07:51AM (#2296949)
I think sigpfe is talking about corecursive definitions, which can produce infinite data structures: http://en.wikipedia.org/wiki/Corecursion
Re:Reasons to use Haskell as a Mathematician by rbanffy on Sunday March 06, 2011 @11:27AM (#2294410)
Don't be silly. Haskell Curry was a mathematician.

Oh... It seems I got the title wrong ;-)