News for hackers. Stuff that matters.
Re:The Meaning of Monad in MonadTrans by bsaul on Sunday August 13, 2023 @05:57AM (#37108358)
Are there any field where haskell is heavily used, beyond PL research ?

I may start to look into it as some point for curiosity, but it would be nice if i'd knew that it would be at least a bit useful somewhere.

Re:The Meaning of Monad in MonadTrans by runeblaze on Sunday August 13, 2023 @06:17AM (#37108468)
There are exciting practical FP usage powered by the likes of Vavr and Algebird in the JVM land. I would like to suggest looking at Scala if you are interested in the conventionally practical. For example I found Scio incredibly exciting

On a more personal note, learning Haskell is more like learning FP and basic type theory, both of which are transferrable skills to most languages. How "useful" is debatable. Maps and filters you can use almost everywhere, ADTs are lacking in most languages, going into things like optics or type lambdas engineers will start feeling you are crazy but that's not even scratching the surface of PL research

[This is a half-joking note. Many real-world programs are written in Haskell and OCaml, but they really are the minority]

Re:The Meaning of Monad in MonadTrans by consilient on Sunday August 13, 2023 @07:10AM (#37108791)
> ADTs are lacking in most languages

Native support for ADTs is lacking, but most languages can cobble them together out of OO constructs, and they're so useful that it's often worth the inconvenience.

Re:The Meaning of Monad in MonadTrans by tsss on Sunday August 13, 2023 @11:56AM (#37111092)
Algebird is perhaps exciting in the same way as a plane crash. The only "functional" thing about this library is its utterly pointless focus on the simple algebraic structures/typeclasses like monoids and semigroups that are shoe-horned into the API. Yes, it so happens that both HyperLogLog and BloomFilter admit some kind of monoidal structure, but that's hardly the interesting thing about them. What you get is a crappy API centered around the wrong abstraction. The whole thing feels like it was written by an intern who desperately wanted to use some algebra he learned in a freshmen class... Certainly the code quality supports that theory.
Re:The Meaning of Monad in MonadTrans by ykonstant on Sunday August 13, 2023 @06:30AM (#37108553)
For instance, pandoc is written in Haskell: https://github.com/jgm/pandoc
Re:The Meaning of Monad in MonadTrans by hmry on Sunday August 13, 2023 @06:05AM (#37108400)
One production example I know: GitHub code navigation is written in Haskell https://github.com/github/semantic
Re:The Meaning of Monad in MonadTrans by PartiallyTyped on Sunday August 13, 2023 @06:34AM (#37108577)
Meta and a bunch of other companies use Haskell.
Re:The Meaning of Monad in MonadTrans by jose_zap on Sunday August 13, 2023 @07:02AM (#37108736)
Haskel is being in used in quite a few fintech companies.
Re:The Meaning of Monad in MonadTrans by kajaktum on Sunday August 13, 2023 @08:00AM (#37109088)
I am curious how that is useful at all? I imagine prototyping and the set of libraries that you have is quite limited compared to something like Python. You're also limiting yourself to a much smaller pool of developers which have to intersect both finance and Haskell! I suppose that last point is an advantage of some sort since that filters out a huge portion of "normie" applications.
Re:The Meaning of Monad in MonadTrans by fuzzybear3965 on Sunday August 13, 2023 @08:35AM (#37109376)
My understanding is "safety". You need to cover all cases of enums, you can't implicitly coerce a number to a string, you can ensure that there's no side-effects in company code, etc.
Re:The Meaning of Monad in MonadTrans by jose_zap on Sunday August 13, 2023 @12:59PM (#37111739)
I work at one of those fintech companies using Haskell in production.

Hiring was actually Haskell’s strong side. I managed to hire 6 engineers in only one month. There were more than 50 applicants to the position. Just the idea of using Haskell in production is attractive to many.

It’s been a great experience overall. I worked at a python company before this one and it’s been refreshing not having unexpected runtime errors. Moving money around requires more robustness than your typical app.

Re:The Meaning of Monad in MonadTrans by Eddygandr on Sunday August 13, 2023 @07:09AM (#37108790)
IOHK uses Haskell in production for the cardano blockchain - I worked there for around 18 months. Irregardless of your thoughts on blockchain tech, it was really fun to work with fairly well known Haskell developers!
Re:The Meaning of Monad in MonadTrans by satvikpendem on Sunday August 13, 2023 @07:15AM (#37108820)
Hasura, the hosted GraphQL company, is built on Haskell.
Re:The Meaning of Monad in MonadTrans by hackandthink on Sunday August 13, 2023 @11:01AM (#37110626)
Re:The Meaning of Monad in MonadTrans by iand675 on Sunday August 13, 2023 @08:26AM (#37109307)
Mercury (https://mercury.com/) uses Haskell extensively for pretty much all of its backend systems. It’s a great general purpose language.
Re:The Meaning of Monad in MonadTrans by hiAndrewQuinn on Sunday August 13, 2023 @09:26AM (#37109844)
Man, the FOMO. I had a friend who worked at Mercury and if I had met her just a few years later I'd probably be working as a Haskell dev there now. I had to chomp my way through _HPFFP_ first, though.
Re:The Meaning of Monad in MonadTrans by matthews2 on Sunday August 13, 2023 @09:44AM (#37109984)
If anyone else is wondering, it looks like HPFFP is "Haskell Programming from First Principles" :)

https://haskellbook.com/

Re:The Meaning of Monad in MonadTrans by whateveracct on Sunday August 13, 2023 @12:22PM (#37111347)
It's used professionally in "backend software development" at many companies. It doesn't dominate (it's a niche language), but it works great for that.