Code Monkey home page Code Monkey logo

Comments (5)

armanbilge avatar armanbilge commented on June 2, 2024 1

Self-aggrandized snake-oil coming up, sorry 😁

If you want to take this idea to the extreme: the main motivation for Calico is to answer the question, what if we built Laminar (or something Laminar-like, anyway) from the ground up with effects?

(It is effect-agnostic, so it can work with effect types other than Cats Effect IO.)

from laminar.

raquo avatar raquo commented on June 2, 2024 1

@valentin-panalyt Laminar only uses Airstream as a reactive layer. The underlying DOM operations work on low level observable-agnostic callbacks.

So, yes, in principle you can make a similar library with IO and ZIO instead of Airstream. And if you actually want Laminar-like observable API, you might want to use a streaming library, not an effect tracking library. So, more like FS2 / ZIO streams I guess. Either way, you will have to deal with various kinds of friction like FRP glitches because those libraries are designed for use in concurrent backend systems, and make different design decisions with different tradeoffs.

You might be interested to see how Tyrian and Calico are made, they both are FP-centric designs.

from laminar.

sherpal avatar sherpal commented on June 2, 2024

(Random comment: this will work with ZIO 2.x. You need to adapt the Unsafe shenanigans if you still use ZIO 1.x.)

from laminar.

valentin-panalyt avatar valentin-panalyt commented on June 2, 2024

Question just out of interes: would it theoretically be possible to rewrite Laminar using ZIO or cats-effect - or is that not possible due to things like "No FRP Glitches" or other aspects in how the effect systems differ?

from laminar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.