https://github.com/moggi-lang/moggi/

Moggi is a statically typed, purely functional programming language with strict evaluation. It has algebraic data types, GADTs, pattern matching, type classes, type inference, Generic Deriving, and an IO monad. It targets the JVM, .NET, and PHP, with typed FFI for existing Java, .NET, and PHP libraries.

The first release also includes a REPL, LSP, VS Code extension, moogle (code search), mogdoc (documentation generation), and a growing standard library.

This is an alpha release: the language and APIs are still evolving, and the standard library is still a work in progress.

I’d particularly like feedback from people interested in functional languages, type systems, compilers, and language/runtime interoperability.

  • thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    5 days ago

    This is all done in PHP. Actually impressive. It’s a bit of an unusual choice for this kind of thing. Also with help of an Ai, because everything is nowadays. The README didn’t answer my question, why someone would want to learn and use Moggi. It just explains what it is (which is fine I guess), but not its purpose or why this was created. Don’t get me wrong, I’m not against this project, just want to understand the motivation.