home.social

#combinators — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #combinators, aggregated by home.social.

fetched live
  1. Oh, so we're solving #puzzles now, huh? 🤔 Yeah, let's calculate #factorials without loops, recursion, or common sense. 🌀 Just sprinkle some Y and Z #combinators over that monstrosity and call it a "gentler" introduction. 🙄
    irfanali.org/blog/zcom #coding #humor #programming #challenges #HackerNews #ngated

  2. Oh, so we're solving #puzzles now, huh? 🤔 Yeah, let's calculate #factorials without loops, recursion, or common sense. 🌀 Just sprinkle some Y and Z #combinators over that monstrosity and call it a "gentler" introduction. 🙄
    irfanali.org/blog/zcom #coding #humor #programming #challenges #HackerNews #ngated

  3. 🧐 Ah, the joy of combing through a #GitHub repo that promises the #thrill of #algebraic #combinators. 🤯 Spoiler alert: it's a maze of #buzzwords and #AI hype, desperately trying to convince you that the future of #coding is as thrilling as watching paint dry. 🎨
    github.com/remysucre/prela #HackerNews #ngated

  4. 🧐 Ah, the joy of combing through a #GitHub repo that promises the #thrill of #algebraic #combinators. 🤯 Spoiler alert: it's a maze of #buzzwords and #AI hype, desperately trying to convince you that the future of #coding is as thrilling as watching paint dry. 🎨
    github.com/remysucre/prela #HackerNews #ngated

  5. I'm, ehm, yes, unsure.
    This might be slop.

    It's a song about Moses Schönfinkel and his combinatory logic.

    And, I kinda like it.

    youtube.com/watch?v=9tiUCpzMSnY

    #logic #combinators #schönfinkel

  6. 🤔 So, the magnificent #Wolfram has decreed that we'll all drop everything to ponder whether a single letter, #S, has the mystical power to compute the #universe. 🌌 Who knew #combinators needed a centennial #celebration, complete with a $20,000 participation trophy? 🎉 All hail the new age of combining letters for cash! 💸
    combinatorprize.org/ #cash #prize #HackerNews #ngated

  7. 🤔 So, the magnificent #Wolfram has decreed that we'll all drop everything to ponder whether a single letter, #S, has the mystical power to compute the #universe. 🌌 Who knew #combinators needed a centennial #celebration, complete with a $20,000 participation trophy? 🎉 All hail the new age of combining letters for cash! 💸
    combinatorprize.org/ #cash #prize #HackerNews #ngated

  8. "I claimed in the end of the video that this was the first example of animated beta-reductions of visual lambda expressions. Paul Brauner has some videos here: • Lambda Diagrams [1] , although they do not explicitly animate the mechanics of one step of beta-reduction! I probably should have chosen my words more carefully."
    youtube.com/watch?v=RcVA8Nj6HE
    [1]youtube.com/playlist?list=PLi8
    #lambdacalculus #combinators #animation #representation #church #tromp #turing

  9. "I claimed in the end of the video that this was the first example of animated beta-reductions of visual lambda expressions. Paul Brauner has some videos here: • Lambda Diagrams [1] , although they do not explicitly animate the mechanics of one step of beta-reduction! I probably should have chosen my words more carefully."
    youtube.com/watch?v=RcVA8Nj6HE
    [1]youtube.com/playlist?list=PLi8
    #lambdacalculus #combinators #animation #representation #church #tromp #turing

  10. Oh joy, yet another #C++17 #parser combinator library! 🎉 Because what the world really needed was more creative ways to torture ourselves with syntactic nightmares and verbose error messages. 🚀 GitHub's endless quest to make #programming as enjoyable as a root canal continues unabated. 🙄
    github.com/foonathan/lexy #combinators #humor #GitHub #developer #woes #HackerNews #ngated

  11. Oh joy, yet another #C++17 #parser combinator library! 🎉 Because what the world really needed was more creative ways to torture ourselves with syntactic nightmares and verbose error messages. 🚀 GitHub's endless quest to make #programming as enjoyable as a root canal continues unabated. 🙄
    github.com/foonathan/lexy #combinators #humor #GitHub #developer #woes #HackerNews #ngated

  12. Context free grammars (CFG) are better than parsing expression grammars (PEG), because CFGs represent how we think.

    Parser combinators are similar to PEGs, so they are worse than CFGs, too.

    So, don't use Rust libraries nom, combine. Use lalrpop.

    Don't use Haskell libraries parsec, gigaparsec, attoparsec, megaparsec, trifecta. Use Earley, happy.

    See more detailed story in my new article safinaskar.writeas.com/this-is .

    The story also includes some cases, where PEG and parser combinators may still be useful. Also, the article gives links to my Haskell parsing libraries.

    #haskell #rust #parsing #parse #cfg #peg #combinators #parsercombinators #parsingcombinators #nom #combine #lalrpop #parsec #earley #happy

  13. Context free grammars (CFG) are better than parsing expression grammars (PEG), because CFGs represent how we think.

    Parser combinators are similar to PEGs, so they are worse than CFGs, too.

    So, don't use Rust libraries nom, combine. Use lalrpop.

    Don't use Haskell libraries parsec, gigaparsec, attoparsec, megaparsec, trifecta. Use Earley, happy.

    See more detailed story in my new article safinaskar.writeas.com/this-is .

    The story also includes some cases, where PEG and parser combinators may still be useful. Also, the article gives links to my Haskell parsing libraries.

    #haskell #rust #parsing #parse #cfg #peg #combinators #parsercombinators #parsingcombinators #nom #combine #lalrpop #parsec #earley #happy

  14. Given my difficulties to wrap my head around the Y combinator, I expected it to come with a higher run time penalty. 🙂

    #julialang #YCombinator #combinators

  15. Examples of binary choices where both options seem equally good at first, but really aren't:

    When writing parsers using #parser #combinators, consuming trailing whitespace is better than consuming leading whitespace. "Design patterns for parser combinators" dl.acm.org/doi/abs/10.1145/347

    When writing #E2E #tests, clearing the database before each test is better than clearing it after. "Dangling state is your friend" docs.cypress.io/guides/referen

  16. Examples of binary choices where both options seem equally good at first, but really aren't:

    When writing parsers using #parser #combinators, consuming trailing whitespace is better than consuming leading whitespace. "Design patterns for parser combinators" dl.acm.org/doi/abs/10.1145/347

    When writing #E2E #tests, clearing the database before each test is better than clearing it after. "Dangling state is your friend" docs.cypress.io/guides/referen

  17. #Propositions As #Types • 1
    inquiryintoinquiry.com/2013/01

    One of my favorite mathematical tricks — it almost seems too tricky to be true — is the #PropositionsAsTypesAnalogy. And I see hints the 2-part analogy can be extended to a 3-part analogy, as follows.

    \(\text{proof hint : proof : proposition :: untyped term : typed term : type}\)

    See my notes on #PropositionsAsTypes for more.
    oeis.org/wiki/Propositions_As_

    #Logic #Combinators #ProofTheory #TypeTheory
    #CurryHowardIsomorphism #LambdaCalculus

  18. #Propositions As #Types • 1
    inquiryintoinquiry.com/2013/01

    One of my favorite mathematical tricks — it almost seems too tricky to be true — is the #PropositionsAsTypesAnalogy. And I see hints the 2-part analogy can be extended to a 3-part analogy, as follows.

    \(\text{proof hint : proof : proposition :: untyped term : typed term : type}\)

    See my notes on #PropositionsAsTypes for more.
    oeis.org/wiki/Propositions_As_

    #Logic #Combinators #ProofTheory #TypeTheory
    #CurryHowardIsomorphism #LambdaCalculus

  19. @tapani the only thing I would have done differently if I was writing it today, I'd use #parser #combinators for github.com/manpages/py-ken/blo, moved program entry point to `main.py` and removed all the dead WIP code like `solver.py`.