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

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

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    brokenix (brokenix@emacs.ch)'s status on Monday, 04-Mar-2024 23:57:07 JSTbrokenixbrokenix

    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 conversationMonday, 04-Mar-2024 23:57:07 JST from emacs.chpermalink

    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...
  • 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.