Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Destide to Programmer [email protected]English • 12 days ago

Infallible Code

feddit.uk

message-square
165
fedilink
  • cross-posted to:
  • [email protected]
470

Infallible Code

feddit.uk

Destide to Programmer [email protected]English • 12 days ago
message-square
165
fedilink
  • cross-posted to:
  • [email protected]
  • @[email protected]
    link
    fedilink
    14•
    edit-2
    12 days ago

    You kid, but Idris2 documentation literally proposes almost this exact impl: https://idris2.readthedocs.io/en/latest/tutorial/typesfuns.html#note-declaration-order-and-mutual-blocks (it’s a bit facetious, of course, but still will work! the actual impl in the language is a lot more boring: https://github.com/idris-lang/Idris2/blob/main/libs/base/Data/Integral.idr)

    • @[email protected]
      link
      fedilink
      4•11 days ago

      I hadn’t seen Idris2. Thank you for providing me with a new rabbit hole!

      • @[email protected]
        link
        fedilink
        3•11 days ago

        I’m glad to tell more people about it. It’s really quite amazing (I could write a somewhat complex algorithm and prove some properties about it in a couple afternoons, despite limited formal verification experience) and I’m sure that in 20 odd years the ideas behind it will make it into mainstream languages, just as with ML/Haskell.

Programmer [email protected]

[email protected]
Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user / day
  • 34 users / week
  • 310 users / month
  • 1.39K users / 6 months
  • 4 subscribers
  • 1.85K Posts
  • 39K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org