Journal entry for
I’m working on my FRP library today.
I think I have GC working cleanly, no test failures and the root event gets completely unsubscribed from after enough performGC
’s.
Also, I still need to add:
- Weak reference for the Behavior invalidators (currently that’s a plain value so it might keep an event alive that’s dead?)
- Weak reference for lazily sampled behavior values, although they are currently forced on each frame so it would only affect GC within a frame.
Everything seems to work so far, except that running the test cases many times from GHCi lead to an exception due to an uninitialized reference, that points to some subtle fault in my GC code I think.
Maybe I need to add some touch
’s like in Reflex’ code.