Comments (5)
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.
@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.
(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.
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)
- Virtual dom link in quick start docs is broken HOT 2
- Give `$` back to Scala compiler
- RFC: Alternative server-side rendering (SSR) architecture HOT 3
- RFC: signal.peekNow() HOT 6
- Docs: Algolia search
- RFC: Drop Scala 2.12 support HOT 2
- Laminar 15.0.0 pre-release testing & issues HOT 19
- Animation features
- [Question] - jQuery bind and oninput event HOT 2
- [DOM] Using certain reserved values for the `name` attribute breaks Scala types HOT 1
- onParentChange callbacks HOT 3
- Laminar Native for building mobile and desktop apps HOT 2
- tabIndex for SVG element HOT 3
- Handling of SVG attributes is subtly incorrect (and `xmlns` attribute is broken) (again)
- Post request fails to resolve HOT 6
- Helper to set multiple keys (props / attrs / event props) at the same time
- Expose child-specific owners to help users write strict state logic
- RFC: onMount* callbacks should fire even if the element is already mounted
- Laminar Roadmap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laminar.