Elm really is a delightful language for reliable webapps and it can do so much more! I would like to introduce Morphir: an open-source project where Elm is used to build business logic that runs anywhere.
Morphir’s backbone is an intermediary representation that allows us to capture the application’s business logic in a technology agnostic manner. Using the IR as the integration point gives us a lot of flexibility in how we build, verify and run the business logic. Over the years we experimented with various frontends (Scala DSL, LINQ, …) but when we found Elm we immediately knew it was perfect for our needs so we created morphir-elm.
Morphir-elm contains an API to work with the IR and a frontend to turn Elm sources into Morphir IR. We are also getting close to completion on our Scala backend that will allow you to transpile business logic written in Elm to Scala.
Morphir is very much a work in progress but we think it has great potential. So if you are interested in language processing, code generators or logic visualization please join us and contribute!
Here are a few exciting things that happened since we open-sourced Morphir for motivation:
- We built morphir-dapr which allows you to build an event sourced microservice in Elm and run it on Microsoft’s Dapr runtime with a single click.
- Microsoft’s Bosque language is looking to use Morphir to integrate with other backends.
- Morphir became a Finos project. Finos is now part of the Linux Foundation.
Let us know what you think!