Commit Graph
10 Commits
Author SHA1 Message Date
Jonathan Kelley e819702fc5 Add into_vnode temporary logic for more things
This commit adjusts how rsx! works, making it more forgiving with signals.

Notably, we add the temporaries to if chains too.
2023-10-17 15:42:21 -07:00
Jonathan Kelley 7e2164d6d6 Add toggle 2023-10-15 17:52:01 -07:00
Jonathan Kelley 741bfbc9ac Add toggle to signals example 2023-10-15 17:50:23 -07:00
Jonathan Kelley 14b3fa72e4 Change the semantics of exprs/for loops allocations strategy
This commit adjusts how exprs and for loops are handled within
rsx. This is a breaking change in terms of codegen, but has
slight semantic changes as well.

Now, when exprs/for loops are allocated, they are given a temporary.
The temporary is elided to the <'a> lifetime of the bump, to satisfy
the borrow checker. This fixes issues with signals where exprs/for
loops mapping vecs out of RefCells would be caught up without a
temporary lifetime.
2023-10-15 17:40:56 -07:00
Evan Almloff 190c65b15d fix memo and add tests 2023-08-07 14:31:03 -07:00
Jonathan Kelley 2d8841cf70 Add lazy contexts to signals 2023-07-14 12:52:49 -07:00
Jonathan Kelley 14a1e4145e feat: implement function accessor 2023-01-01 22:57:16 -05:00
Jonathan Kelley fd92079eb3 feat: add recycling of rts in signals 2023-01-01 22:09:08 -05:00
Jonathan Kelley c0315e55f4 chore: more signals methods 2023-01-01 22:02:49 -05:00
Jonathan Kelley 4f9d67fb45 feat: simple signals implementation 2023-01-01 19:57:33 -05:00