Replies: 1 comment
-
I've been thinking about how this might be implemented. You can do all of this now by adding appropriate On the python side add a function very much like
E.g.
E.g. on the js side you have an |
Beta Was this translation helpful? Give feedback.
-
Proposal to enable reactivity and thereby remove the need for frameworks like Vue.js when using pyscript.
Use a Presenter-style mechanism to enhance the display() concept to enable reactive UIs.
and Genera Operating system. (The youtube link below will tl;dr some of this visually.)
Proposed reactivity mechanism is:
The mechanism would be entirely optional and consist of extra parameters to display()
Symbolics' Genera and the Lisp-Presenter:
This video shows Kalman Reti demoing a Genera emulator and showing the very basics of the OS.
It includes a secton showing how the Presenter appeared to users.
Here is the secton to watch (starting at 3:30 for 3 mins):
The main point I'm trying to make is the presenter isn't a dumb terminal. Instead every printed object contains a type and a link back to the underlying code structure.
This is a very early form of what we now call reactivity.
In a modern context the Genera screen could be implemented as a web browser and the objects presented could by typed and link back to their underlying structures as shown in the video.
Beta Was this translation helpful? Give feedback.
All reactions