GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    see shy jo (joeyh@hachyderm.io)'s status on Monday, 04-Mar-2024 23:57:05 JST see shy jo see shy jo
    in reply to
    • brokenix

    @brokenix No need for Y Combinator. Indeed.

    In conversation Monday, 04-Mar-2024 23:57:05 JST from hachyderm.io permalink
    • Haelwenn /элвэн/ :triskell: likes this.
    • Embed this notice
      brokenix (brokenix@emacs.ch)'s status on Monday, 04-Mar-2024 23:57:07 JST brokenix brokenix

      fixpoint combinators like Y can't be well-typed in #Haskell. Specifically, something of the form x x requires x to have two conflicting types simultaneously. In dynamic languages, this doesn't matter because you just don't care what the type is, only that you can use the value in some way. But a Haskell compiler does care. However there's no need for such combinators, because Haskell's solution fix f = let x = f x in x is more elegant anyway, and has no typing difficulties (but does require lazy evaluation).
      #javascript is perhaps not the best launchpad to haskell , to their credit they make good fp presentations
      https://stackoverflow.com/questions/68975627/translating-a-fixed-point-operator-to-haskell-language

      In conversation Monday, 04-Mar-2024 23:57:07 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: cdn.sstatic.net
        Translating a fixed-point operator to Haskell language
        I am trying to translate this JS fixed-point operator into Haskell. JS: const fix = F => { const D = X => F( t => X(X)(t) ) return D(D) }; My attempt is (Haskell): fix...
      Haelwenn /элвэн/ :triskell: repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.