2 ms·
I'll ask: with Erlang I understand the mechanism it uses for concurrency fairly well. From a quick glance at these slides, I get the impression that Haskell wo
by davidw 17y ago
I'll ask: with Erlang I understand the mechanism it uses for concurrency fairly well. From a quick glance at these slides, I get the impression that Haskell would be very good at doing parallel calculations (it's fast), but am not quite so certain about doing parallel system tasks, like sockets, something I know Erlang is good at. Care to elaborate?
Do you guys have a fast/small web server, for instance? Something like mochiweb?
- dons 17y agoThere's quite a few on Hackage. http://hackage.haskell.org/packages/archive/pkg-list.html#cat:network http://hackage.haskell.org/packages/archive/pkg-list.html#ca... E.g. salvia: http://hackage.haskell.org/package/salvia http://hackage.haskell.org/package/salvia The trick is to use lots of Haskell lightweight threads to hide latency (much as you would with Erlang).
- davidw 17y agoCool, thank you! If I may ask you another question, how would one install that and start fooling around with it? I really don't have time, but... my curiosity has been piqued! (So much for 'discipline', but hey, it's a Sunday). (BTW, Google is very fast at indexing conversations here - this thread is the first thing that turns up for "mochiweb vs salvia")
- a-priori 17y agoCabal has a command-line tool for downloading and installing packages (http://hackage.haskell.org/trac/hackage/wiki/CabalInstall http://hackage.haskell.org/trac/hackage/wiki/CabalInstall). A package for it should exist for it on your platform, maybe called "cabal-install". Once you've got it, running "sudo cabal install salvia" should do the trick. (Failing that, you can wade through dependency hell and install salvia, and its dependencies, yourself. All Cabal packages have a Setup.hs or Setup.lhs file that controls building it. Run "runhaskell Setup.hs build" then "runhaskell Setup.hs install" (or similar) in each source tree.)
- dons 17y agoSuper easy: * one click: install the Haskell Platform: http://hackage.haskell.org/platform http://hackage.haskell.org/platform * type: cabal install salvia Another good one is hyena, http://hackage.haskell.org/package/hyena http://hackage.haskell.org/package/hyena You can get a concurrent web server going in a dozen lines of code or so.
- hairyarse 17y agoAlso, can anyone point me in the direction of how to do Erlang style distributed messaging? Is there a standard solution for inter-machine RPC in Haskell implementations?