this post was submitted on 27 Mar 2025
473 points (95.0% liked)
Programmer Humor
22159 readers
2127 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Taking a wild guess at the source of the confusion, I should be clear that I love Haskell. It's great for a lot of what I personally end up coding, namely math things that are non-heavy by computer standards but way too heavy to solve by hand. This isn't naysaying.
To be clear, I was introducing two new examples where I think this problem would come up. It could be that I'm missing something, but I've had this exchange a few times and been unimpressed by the solutions offered. The
IO
in those cases could get pretty spaghetti-ish. At that point, why not just use a state?Like, using a list, which is a monad, you could code a Turing machine, and it could have a tape specifying literally anything. I can't imagine that one would ever come up, though.
It certainly is, haha. If it's heavy Python is just calling Fortran, C or Rust anyway.