Open Dale-Black opened 2 weeks ago
Let me know if you see what I am doing wrong. Thank you!
I don't think Vector{Function}
can work. WebAssemblyCompiler supports vectors of concrete objects but not functions.
I've explored this problem area some in trying to get Makie and Observables to work. There, I tried to compile a set of Observables. The idea is to bake the Observables after they are set up. See here for more info. If you need truly dynamic signalling, I'm not sure how to tackle that.
Maybe you could move the signals to the JavaScript side.
I'll have to look more into the observables examples and see if I can come up with something creative. Moving to JS seems like it might be more useful to use SolidJS at that point? I am looking at something like leptos in rust (which uses WASM to build a SolidJS style framework in pure rust) and trying to see how WebAssemblyCompiler.jl could be used to recreate it in Julia
I am trying to implement a basic signal-style reactivity (e.g. SolidJS) with Julia and WebAssemblyCompiler.jl
TLDR
Why is this function not compiling?
Details
This is the signal which works as expected in pure Julia:
Which outputs:
Now, I want to create a simple Counter App using this but I am having trouble compiling one of the functions. Here is the full code:
And specifically this line
(create_counter_signal,),
inside of thecompile
block errors like so: