|
|
Log in / Subscribe / Register

Code Review

Code Review

Posted Nov 15, 2025 15:04 UTC (Sat) by develop7 (guest, #75021)
In reply to: Code Review by Vorpal
Parent article: Rust in Android: move fast and fix things (Google Security Blog)

> I lost interest somewhere between monads and applicative functors (I think that was the name). Haskell was too much abstract math for me.

I've been there too! But that time I've decided to try skipping things that don't click yet and just "fix the darn thing" instead and that worked way, way better than I've expected. That's what I call programming in an _actually_ high-level programming language.

Monads-wise, here's a simple explanation why we _all_ need them: https://philipnilsson.github.io/Badness10k/escaping-hell-...

> Pure math is not my thing. I'm far more towards the applied side of things, if I can't see a concrete use case for it, my eyes glaze over.

Makes two of us, but Haskell is not about pure math — our monads are more like a pattern, typechecked by a compiler. If anything it is most down-to-earth lazy functional programming language.


to post comments

Code Review

Posted Nov 17, 2025 8:55 UTC (Mon) by taladar (subscriber, #68407) [Link] (1 responses)

The biggest thing that I took away from using Haskell for a few years is that abstract code is actually a lot simpler to reason about than code with concrete types.

That is because abstract code makes it explicit which operations you are allowed to perform on the values you operate on which means this set is much, much more constrained than the operations you could perform on any given concrete type. In particular the absence of a way to create arbitrary new values of a type usually makes reasoning a lot easier because every value of the type you return must originate with a value you pass into the code.

Code Review

Posted Dec 13, 2025 9:20 UTC (Sat) by Chousuke (subscriber, #54562) [Link]

That's actually mathematically provable, to a point. The more abstract a (pure) function type is, the fewer possible implementations it has.

For the simplest example, there's only one function with the type a -> a.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds