Andrew Helwer · @ahelwer
72 followers · 796 posts · Server fosstodon.org

real talk, are just a way of sending you to mathematical hell & back before you're allowed to write ordinary series-of-statements imperative programs in a language

#monads #functionalprogramming

Last updated 1 year ago

· @ELLIOTTCABLE
165 followers · 285 posts · Server kolektiva.social

am i supposed to, like, hashtag this shit like it's 2011 twitter?

#fp #functionalprogramming #monads #haskell #ocaml #rust

Last updated 1 year ago

Andrew Helwer · @ahelwer
62 followers · 718 posts · Server fosstodon.org

Is understanding a career bucket list item for you?

#monads #functionalprogramming #fp

Last updated 1 year ago

Andrew Helwer · @ahelwer
58 followers · 687 posts · Server fosstodon.org

best way to learn seems to be using a bunch of different monad instances and let the magical pattern matching part of your brain pull out the common structure. if you try to just stare at the type definition it looks like complete abstract nonsense.

#monads

Last updated 1 year ago

Andrew Helwer · @ahelwer
57 followers · 671 posts · Server fosstodon.org

so far this presentation of has basically been "here is why golang's if err != nil return err pattern is utterly idiotic"

#monads

Last updated 1 year ago

gram · @orsinium
34 followers · 129 posts · Server fosstodon.org

New blog post: In search of better error handling for :

articles.orsinium.dev/p/notes-

TL;DR: I experimented with different approaches for implementing . Turns out, Go isn't a good language. Who knew? ๐Ÿ™ƒ Regardless, it was a fun dive to see why exactly it doesn't work. And along the way, I found a few things that you already can use on the prod.

#golang #monads #fp

Last updated 1 year ago

Jyoti Mishra · @Jyoti
1243 followers · 7790 posts · Server mas.to

#monads

Last updated 1 year ago

· @ELLIOTTCABLE
105 followers · 74 posts · Server kolektiva.social

lol i loved this introduction so much that I added it to the Haskell wikiโ€™s โ€œMonad tutorial timeline.โ€

wiki.haskell.org/Monad_tutoria

#monads #haskell #ocaml

Last updated 2 years ago

Whenever someone writes a blog or tries to explain they claim its just a simple concept with fancy words... and then completely fail to explain the concept. Lots of verbiage about functions and closures and math theory, but no actual explanation of what they are in a common language like Python or Java or Swift, etc. Just Haskell (and strangely, C#, but not helpful to me, at least).

Finally discovered that its coming from the Functional Programming camp, which explains why the gaslighting about being "simple". I guess its simple if you assume you are working in a completely functional programming -- but if you don't state that out loud, all the "simple explanations" in the world don't matter if your description isn't grounded in something I know about.

Turns out that the Apple Combine Framework is close to monads (and functional programming) --- I get that its not exactly the same, but at least I can ground my understanding now...

hackingwithswift.com/interview

#monads

Last updated 2 years ago

msp729 · @msp729
8 followers · 181 posts · Server mastodon.world

probably gonna install and try to write a little doohickey later. it seems interesting, like a more approachable on account of trading for abilities. even if abilities are functionally monads, they sound simpler. also, structural typing excites me.

#unison #haskell #monads

Last updated 2 years ago

Anupam Jain · @haskman
256 followers · 670 posts · Server functional.cafe

Surprisingly controversial take:

discourse: is all about analogies.

But also FP discourse: are not spacesuits!

#functionalprogramming #categorytheory #monads

Last updated 2 years ago

mnml mnl (he/him) · @mnl
441 followers · 3283 posts · Server hachyderm.io

can anybody help me track down "How to Compose Monads (Thinking Machines Corporation tech. report, 1993) - Guy L. Steele, Jr."

#functionalprogramming #monads #haskell

Last updated 2 years ago

Andrew Tropin · @abcdw
535 followers · 997 posts · Server fosstodon.org

More monads in guix.

A nice evening reading on guix scheme api and functional programming tricks for managing side effects.

guix.gnu.org/en/blog/2023/diss

#monads #guix #guile #scheme

Last updated 2 years ago

Anupam Jain · @haskman
243 followers · 587 posts · Server functional.cafe

, but for

#monads #rust

Last updated 2 years ago

Jim Donegan โœ… · @jimdonegan
1418 followers · 3947 posts · Server mastodon.scot
Anupam Jain · @haskman
241 followers · 582 posts · Server functional.cafe

Sooo close! Is finally going to be the language that mainstreams ?

#rust #monads

Last updated 2 years ago

Ramin Honary · @ramin_hal9001
115 followers · 835 posts · Server emacs.ch

@underlap
I second monadic , both useful and in the extreme. But this doesn't just apply to parsers of languages, it applies to parsers of binary, and of wire protocols as well.

My next favorite use case for is sort of the inverse operation of parsers: . Think of list comprehension (which in is just syntactic sugar around a monad), but applied to any data structure at all (trees, directed graphs). You define a monad that contains state and constraint rules, and then use the monad to define the production rules for each node of the structure.

When I define a parser, I also often define a procedural generator to test the parser. It is easier to generate than to parse, so I can quickly write tests that genreate random grammatically correct syntax trees and see if the parser can parse anything I throw at it.

#parsers #elegant #monads #proceduralgeneration #haskell

Last updated 2 years ago

Ramin Honary · @ramin_hal9001
107 followers · 800 posts · Server emacs.ch

@abcdw The syntax is easy, that is for sure.

Functors, Applicatives, and are best learned by example, in my opinion. When I first learned about them, they were so simple that I thought I was missing something. Knowing their definition (which is very simple) doesn't help one understand how it relates to modeling computational procedures until one actually sees examples of how these concepts are used for that purpose.

#haskell #monads

Last updated 2 years ago

Andrew Tropin · @abcdw
531 followers · 977 posts · Server fosstodon.org

When I read half of the Haskell book and already thought it was easy, I went to the local hackerspace to haskell seminar and was met by Applicative-Functor-Monad-Type-Inference all that thing.

#haskell #monads

Last updated 2 years ago

vy · @vy
83 followers · 916 posts · Server sciencemastodon.com

for verification is even worse than in functional programming languages

#processalgebra #monads

Last updated 2 years ago