Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit lenses #20

Open
clayrat opened this issue Jan 19, 2016 · 1 comment
Open

Edit lenses #20

clayrat opened this issue Jan 19, 2016 · 1 comment

Comments

@clayrat
Copy link

clayrat commented Jan 19, 2016

This is of course very theoretical - just wondering if you have seen this paper:
http://dmwit.com/papers/201107EL.pdf

As I understood, they are passing around just the difference list (or generally, any monoid), so in theory a framework built upon such structure could probably get rid of the virtual dom and do the patching directly. There's even some kind of prototype implementation:
https://hackage.haskell.org/package/edit-lenses
https://hackage.haskell.org/package/edit-lenses-demo

@zrho
Copy link
Owner

zrho commented Jan 19, 2016

This looks interesting! Indeed I haven't seen that one yet. Having that kind of stuff would some hard problems; the Haskell implementation in edit-lenses however seems rather unwieldy. I'll think about it for a while... Maybe there even is a way to make it compatible with profunctor lenses, so that an optic switches between an ordinary optic and an edit variant. Stuff for thought. Thank you for the reference!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants