Comments (8)
Can you motivate the change a little more ? Wouldn't it touch only the internal, not making a big change for the user ? Would it be more efficient ?
from eliom.
the difference with the current implementation is that it patches lists instead of updating the whole value.
Imaging having a live chat with 1000+ msgs. Using react with the current implementation would recompute every msgs at every insertion.
With reactive list, you only apply patches and in the end patch the dom (https://github.com/hhugo/reactiveList/blob/master/src/reactiveDomList.ml#L11)
- It is more than an "internal" change.
- more efficient : the efficiency is not the point but yes => you compute one element only at insertion
from eliom.
Ok, that's what I though, thanks.
And according to your description, efficiency is exactly the point. :p
Can we make this a not-to-breaking change and wait for 4.1 ?
from eliom.
as discussed with @balat, this will not be part of 4.0 and will wait 4.1 !
If you want to try to implement this without breaking the interface, please try. But as I said before, I think this change is about interfaces and not about performances.
The fact that it does not rebuild unneeded element is not only performances. It's about not touching dom that don't change (ie: keep your text selection, keep an onmousedown, ..)
from eliom.
Ok, I see your point more clearly now.
We should make it clear in the documentation that the R modules is WIP and will change a bit then.
from eliom.
This change will require an update to the tyxml interface to provide different wrappings (one for attribute, one for element list).
Also we might have an issue with plus
/ plus_concat
(ie TABLE)
What will be the meaning of a reactive TABLE wrt the non-emptiness.
from eliom.
related work : "Higher-Order Reactive Programming with Incremental Lists"
from eliom.
merged
from eliom.
Related Issues (20)
- [Eliom] Fix syntax extension (optional parameter not working) HOT 3
- [Eliom] Is it possible to use `let%rpc` if the function is used only from client section?
- Replace server_function everywhere (OS template, Eliom manual, tutorials)
- Release new versions
- Remove connected wrappers from BS
- compile with lwt.dev: Fatal error: exception complex open are not supported before OCaml 4.08 HOT 2
- Usage of attached POST action HOT 4
- eliomdep doesn't seem to understand `-map` option HOT 1
- Typing error on Eliom >= 8.9.0 HOT 2
- Unbound constructor HOT 8
- Firefox rejecting cookies over SameSite attribute?
- opam and eliom -> [eliom: make]Killed HOT 1
- Use ocamlformat
- test
- Failure to build with dune cache enabled HOT 1
- Error when running ocsigenserver: The module `B' is not yet initialized HOT 4
- Problem with browser navigation HOT 4
- OCaml 5.2 support HOT 5
- What is the license of eliom-distillery templates ? HOT 2
- Rapid succession of comet-requests when using two Eliom_react.Down channels
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 eliom.