-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture
૮༼⚆︿⚆༽つ edited this page Jun 25, 2024
·
20 revisions
Each datatype are backed by Series.
- Each bit in NULL byte represent an instance that is nullable.
- Each bit in UI byte represent an instance that bind into the DOM. This make it possible to build highly optimized ECS system for game physics and <canvas> rendering. This BitSet exist because UI update can prevent fast SIMD operation (cuz it iterate all possible instance and compare the change).
- Each bit in RG byte represent an instance that is part of reactive graph. This value is set(1) when the instance being read inside
effect
orcomputed
closure. It back to be unset(0) when: theeffect.stop()
for that closure, or it's not being read when theeffect.run()
; - Each 2 bit (TriState) in Cache byte represent the cache state of an instance. It only set(0x11) if [RG or UI] bit is set while the instance value change. (the algorithm is verbose, see reactively for more info)
Collection of Series. Some people call it Table.
<img?
- BitSet - a memory efficient array of boolean. Each index only has 1 bit.
- TriState - like BitSet but able to hold value 0-3 on each index. Each index has 2 bit.