A Perfectable Programming Language

(alok.github.io)

77 points | by yuppiemephisto 7 hours ago

10 comments

  • unexpectedtrap 1 hour ago
    Unfortunately Lean’s distribution went from somewhat about 15 MiB in times of Lean 3 to more than 2,5 GiB when unpacked nowadays for no good reason. This is too much. Even v4.0.0-m1 was a 90 MB archive. Looks like that Lean’s authors do not care about this anymore.

    Lean 3 was the least bloated theorem prover among Lean, Coq and Agda, and Lean 4 is the most bloated among this Big Three. This is very sad.

    Personally, I stopped using Lean after the last update broke unification in a strange way again.

  • psychoslave 15 minutes ago
    Are they actual project running some business in the wild? I only played with coq in university, while I saw F# being employed in insurance companies. I only heard about lean through HN posts.
    • c0balt 0 minutes ago
      I don't know about running per se but practical applications (as in done for product/service) exist. A notable practitioner for Isabelle and Lean is AWS[0]. There is also TLA+ for a more practical tool.

      The most widely used variant of these proof assistants are probably formally verified compilers, like compcert, which are used in some highly regulated industries like aviation.

      [0]: https://isabelle.systems/zulip-archive/stream/247541-Mirror.... and https://lean-lang.org/ (Cedar)

  • solomonb 2 hours ago
    i love lean4, best in class functional programming language. but i think its "perfectability" is kinda hamstrung by baking non-constructive axioms into the standard library. the kernel has to treat these as opaque constants that cannot be reduced.

    i tend to stick with agda for doing mathy programming. i kinda want lean4 to replace haskell at some point in the future as the workhorse production typed fp language.

  • travisgriggs 2 hours ago
    Fortran, Basic, APL, Beta, Odin, Self, C, C++, Objective-C, C#, C--, D, Scheme, Clojure, F-Script, Eiffel, COBOL, Ocaml, Haskell, Snobol, Crystal, Forth, Python, Lisp, Brainfuck, Java, Oak, Javascript, TypeScript, Wasm, Logo, Elang, Elixir, Gleam, Elm, Zig, m4, Tcl, Simula, Smalltalk

    Fun challenge. Unlike the author, I have nothing really to add.

    I just wanted to say that "I did NOT write it with ..."

  • xarope 43 minutes ago
    interesting the ones they chose to name; I would have probably started with 6502/68000/68020/z80 assembly, fortran, cobol, basic, c, ada, simula 67, sh, zsh, bash, napier 88, tcl, perl, rexx, before hitting the next generation of python, c++, etc.
  • ilsubyeega 4 hours ago
    i like this website, it shows documentation when hovering the code while i see similar stuffs really rare in web blog areas
  • zem 3 hours ago
    this is the log post that put lean on my radar, though I haven't played with it yet: https://kirancodes.me/posts/log-ocaml-to-lean.html
  • whacked_new 2 hours ago
    wait, I'm intrigued, it says the blog itself is lean code. How? It's rendered, like pollen?
  • heliumtera 2 hours ago
    >The recommended way to install Lean is through VS Code and the Lean 4 VS Code extension,

    Lol

  • spankalee 5 hours ago
    What is up with so many people doing weird capitalization now? Is this some Bay-tech flex? Alok writes their own name, and other names, with leading caps, but not the first word in sentences? It makes it so uncomfortable to read.
    • losvedir 4 hours ago
      Wow, I read the whole thing without noticing that.

      But as someone who came of age in the AIM / ICQ / IRC days, it feels pretty normal. That's just how we wrote. I still fall into it by accident when the context is right and I'm not thinking about it (eg Slack at work). I hope youngsters aren't judging me for it.

      • noosphr 1 minute ago
        we wrote like that because each message was a single sentence

        if you wanted more than one sentence you sent one then wrote the other

        it's painful to read longform

        the victorians didn't give up on punctuation and regular english just because they had the telegraph

    • JuniperMesos 4 hours ago
      I think this is just applying the same informal writing style used in, for example, online chats with friends, to a relatively-informal blog post. I don't think this has anything to do with the Bay Area or its tech industry in particular.
    • bobanrocky 2 hours ago
      YES, THIS (capitalized on purpose). Folks, please use reasonably correct writing syntax. You CAN do better .. At least think of the AIs consuming your writings.
      • Joel_Mckay 1 hour ago
        I ReSpEcTfUlLy DiSaGrEe FrIeNd -- PeOpLe LoVe SlOp. =3
    • jason1cho 1 hour ago
      Is it due to the feature that the author claimed "this blog post is itself Lean code"?
    • QuadmasterXLII 2 hours ago
      its not caused by a habit of writing authentically formatted Homestuck rp smut

      but surely its correlated

    • trueno 3 hours ago
      i notoriously ignore using my shift key when im typing informal stuff (comments, chats to coworkers, friends, etc). big ol emails = you'll see me using my shift key.

      most of this comes from me noticing how funny sql looks with all the people trying to use caps all over the place as if anyones working in a place without syntax highlighting in 2026. sql is the wild west and everyones sql looks like shit there is no shame. i was told i needed to use caps more early on in sql and i lmfao'd, but i was new to the career and that scarred me. i write lower case sql just to spite others now and if you see something capitalized you know i meant it, but for the most part you have to pay me to use my shift key.

      my trauma is now your trauma

      • binary132 1 hour ago
        Only you can stop generational SQL abuse. Capitalize keywords, indent grouped syntax, and use prefix commas on newlines. Write readable code, for God’s sake, you filthy heathens.
    • giancarlostoro 3 hours ago
      The swearing is another thing I keep seeing more of.