Fork me on GitHub
#reveal
<
2021-12-26
>
Lukas Domagala10:12:40

that looks really nice, especially the dynamic signals. is that two way? i had a quick look at the implementation but still don’t understand cljfx:) and could i bind the signals to atoms for updates?

vlaaad11:12:00

It's one-directional, jvm->vis

vlaaad11:12:49

You can use observable view to drive updates, see example in vlaaad.reveal/vega-view docstring

vlaaad11:12:48

My concern with making it 2 directional is that serialization now also has to work 2 way, and it will bring complexity where e.g. map vals are keywords in JVM, then that are serialized to strings when converted to json, so you receive something else back

vlaaad11:12:46

Can you describe the usecase for 2-directional signals communication?

Lukas Domagala19:12:35

i’m displaying flamegraphs of the running repl code through vega. when you click on a trace i’d like to know in clojure so i can jump the ide to that function def, rerun that function or show a detailed view for arguments/return values. i’ve got a prototype in portal already, just didn’t have the time to finish yet, would be interesting to also get it working with reveal. the more general usecase would be user interaction for data reload/streaming

vlaaad08:12:41

Ah makes sense. I'll see what I can do

vlaaad17:12:27

I'm working on signal listeners now