three-layer VS lox-haskell

Compare three-layer vs lox-haskell and see what are their differences.

three-layer

:three: :cake: Architecture of the Haskell web applications (by Holmusk)

lox-haskell

Implementation of Lox language (from "Crafting Interpreters" book) in Haskell (by Martinsos)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
three-layer lox-haskell
4 2
301 6
0.0% -
0.0 0.0
about 3 years ago over 3 years ago
Haskell Haskell
BSD 3-clause "New" or "Revised" License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

three-layer

Posts with mentions or reviews of three-layer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-13.
  • My Module Structure Does Not Feel Haskell-like
    2 projects | /r/haskell | 13 Dec 2022
    I’m working on this pet project for a time now. Initially based on the three-layer repository, it’s now modelled after the Clean Architecture. In my understanding, it’s an OOP variation of the functional “Functional Core, Imperative Shell” approach. As most examples for Clean Architecture are written in C#, my module structure also looks more like a typical C# than Haskell one to me.
  • Advanced programming exercises/apps recommendations to code
    8 projects | /r/haskell | 19 Jan 2022
    I personally use servant whenever i need networking. Altough scotty is easier/simpler, I would start with scotty. Aeson for JSON encoding/decoding. Actually! As i am writing this I would recommend a book (no its not a dry boring book, more of a tutorial) that implements a CI server from scratch. It’s vety descriptive and will show you the haskell ecosystem quite clearly: https://marcosampellegrini.com/simple-haskell-book. Seriously, it’s a damn good book and that’s how i learned haskell! Back to the libraries/ecosystem, if you want to learn how to use an app monad and mtl, these who come to mind: https://github.com/Holmusk/three-layer and https://www.parsonsmatt.org/2018/03/22/three_layer_haskell_cake.html. Under the github repo, check out the App folder to get a notion of how an app monad can be used. Personally I like mtl over monad transformers such as readerT. Best of luck!
  • Looking for opinionated webapp stack
    2 projects | /r/Clojure | 27 Oct 2021
    I usually make web apps in haskell + react, when i started out learning haskell I found it invaluable to find a opinionated stack to learn about the ecosystem and to see "how to get things done". When i was learning haskell I really appreciated an example like: https://github.com/Holmusk/three-layer, essentially a "best practice" web app. Anyone in the clojure(script) community that can recommend some templates/examples to get to know the ecosystem? Since im comfortable with react im assuming clojurescript with re-frame/reagent makes sense for the frontend? So far i've only seen ring/jetty for the backend. To be clear, im not necessarily looking for the "simplest" frameworks but rather something that is highly reliable in production. The backend will expose simple JSON crud with some endpoints being quite computationally heavy (concurrency will be important).
  • Baking metaphors in the imperative/declarative programming debate
    1 project | dev.to | 17 Sep 2021
    In Haskell, Matt Parsons popularised the Three Layer Haskell Cake (2018). Holmusk (well, Kowainik) made this picture to go along:

lox-haskell

Posts with mentions or reviews of lox-haskell. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-01-19.
  • Advanced programming exercises/apps recommendations to code
    8 projects | /r/haskell | 19 Jan 2022
    If you feel like comparing implementations, you might want to take a peek at my implementation: https://github.com/Martinsos/lox-haskell -> I haven't finished the book unfortunately but I did all the work till chapter 9.5 -> each commit is marked with the chapter it implements, so you can easily follow the development that way. If you do make significant progress, do consider opening an issue on my repo to share your work, I would also love to do some comparison in order to learn more!
  • Crafting Interpreters in Haskell - Scanning
    3 projects | /r/haskell | 12 Sep 2021
    Very cool! More than a year ago I started going through Crafting Interpreters and implementing it in Haskell as I go, here it is in case you find it interesting: https://github.com/Martinsos/lox-haskell .

What are some alternatives?

When comparing three-layer and lox-haskell you can also consider the following projects:

cake-slayer - 🍰🔪 Architecture of Haskell backend applications

haskell-lox

servant-py - Servant client generators for the Python language

chip8-book - An introduction to Chip-8 emulation using Rust

Essentials-of-Compilation - A book about compiling Racket and Python to x86-64 assembly

urbit-api - talk to your urbit from haskell

linear - Low-dimensional linear algebra primitives for Haskell.

servant-swagger-tags - Swagger Tags for Servant

ray-tracing - It's taking me longer than one weekend

servant-benchmark - Generate benchmark files from Servant APIs

chip8