Live data from Hacker News

Reasons to use Haskell as a Mathematician

blog.sigfpe.com

11–12 of 12 posts

Re: Reasons to use Haskell as a Mathematician

#11

>(9) Haskell Eats Circular Definitions for Breakfast It's recursive , not circular, definition. A circular definition never ends while a recursive one does.

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

#12
post #7

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 m…

> 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.

Post reply on HN