News for hackers. Stuff that matters.
Re:Simon Peyton Jones – Haskell is useless [video] by tromp on Sunday February 18, 2024 @05:08PM (#39423965)
And of course, lambda calculus is even more useless.

But you can still make a nice universal machine that can run any computable function from stdin to stdout, by parsing a lambda term from the start of stdin, and applying it to the remainder [1].

[1] https://www.ioccc.org/2012/tromp/hint.html

Re:Simon Peyton Jones – Haskell is useless [video] by dehrmann on Sunday February 18, 2024 @07:19PM (#39424936)
FP is clearly useful for data transformations, and this is where you've seen it catch on in Python and even Java. Outside of that, for as theoretically elegant it is, the reality of using it for real-world, stateful systems is messier, and the fact that none of them have gotten any traction beyond hobby projects or one-off uses says something.
Re:Simon Peyton Jones – Haskell is useless [video] by sodapopcan on Sunday February 18, 2024 @07:40PM (#39425066)
> and the fact that none of them have gotten any traction beyond hobby projects or one-off uses says something.

What are you talking about? One of the world's most resilient systems was written in Erlang (the AXD301)... and was dynamically typed at that, lol. Not to mention WhatsApp, Discord, and others.

Based on a thread a few days ago, I think a lot of people who have never used FP before don't seem to realize that outside of Haskell, it's generally very easy to do state in functional languages. Also, they aren't constantly copying entire data structures every time you modify them which some people just refuse to believe for some reason.

Re:Simon Peyton Jones – Haskell is useless [video] by tadfisher on Sunday February 18, 2024 @09:16PM (#39425580)
The company I work for operates primarily with a monolith Haskell service. There are many companies that use Haskell, not least including Meta. The idea that FP isn't used in real-world projects is, at the very least, outdated; and, at the very worst, flat-out wrong.
Re:Simon Peyton Jones – Haskell is useless [video] by badpun on Monday February 19, 2024 @07:38AM (#39429100)
There’s plenty of real-world FP systems written in Scala. In general, FP is not a problem today, because data mutation usually happens in some kind of external database, and the programs people have to write are just stateless transformations of incoming requests (http or other kinds, depending on the application).
Re:Simon Peyton Jones – Haskell is useless [video] by boxfire on Sunday February 18, 2024 @06:11PM (#39424495)
You can run a friggin full 32 bit lisp on the untyped lambda calculus!

https://woodrush.github.io/blog/lambdalisp.html