ecs: a lookup through an index shouldn't conflict with a writer whose rows are exclusive to the index's
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- data
Hướng nghiên cứu
Start from the scheduler's access-conflict check that #246 extended, the code that emits the message Systems ... both access ... and one writes it. The request is to treat a lookup through an index as carrying that index's components.with and not, so a writer whose not excludes the index's with no longer conflicts on the key. Read the reply on #246 first, since it sets which lookup kinds may skip the check. Done means a schedule with showHover and extrudeSelection builds without an ordering, and the non-unique and up cases keep their current behaviour or are explicitly excluded. The issue leaves soundness for non-unique and up lookups open, so settle that before writing code.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
A lookup through an index conflicts on its key with any system that writes that key, even when the writer's rows can never be in the index, because the index's own with/not is disjoint from the writer's. #246 made that disjointness count for two systems' rows (one requires a component the other's not lists); an index a system looks through carries the same information statically (its components.with / not) and isn't used.
Where this came from (mecs)
The editor draws a hover mark: an entity with [hovered, cell, face, faceColor] that follows the pointer. showHover moves it with commands.add(row.entity, cell, ...), so the mark's face is drawn one sync point later than the pointer. I'd like it to write row[cell] = ... directly so it moves in the frame the pointer does.
cell is also the key of voxelAt, the unique index of voxels (Index.create({ key: [cell], unique: true, components: { with: Voxel } })) that extrudeSelection and selectFace look up by. The mark is not a voxel (Voxel includes voxel; the mark has no voxel), so nothing showHover writes can ever appear in voxelAt. With 0.3.0 I added not: [voxel] to showHover's rows, which resolved its conflict with deriveCells (rows of with: Voxel), but the build still fails:
Systems "extrudeSelection" and "showHover" both access "cell" and one writes it; order them with before or after.
extrudeSelection only looks cell up through voxelAt, whose with is Voxel, and showHover's rows have not: [voxel]: the two sets are exclusive by construction.
What I need
Treat a lookup through an index as if its rows were the index's components (with, not) for the exclusivity check #246 added: a lookup of an index whose with includes a component the writer's not lists doesn't conflict with that writer on the index's key. (The issue's reply said "lookups, up, index and order keys still conflict"; I'm asking for the index case to follow the same rule when the index declares exclusivity, since a schedule is built without a world and the index's declaration is all it has.)
If it can't be sound for non-unique or up lookups, restricting it to indexes is enough: it is the case that hurts.
Cost of the workaround
Ordering the two systems (after) adds a tier boundary and a sync point to a frame that is otherwise idle (#245 measured about 0.1 µs each, now less), and the order is arbitrary between two systems that have nothing to do with each other.
- Ngôn ngữ chính
- TypeScript
- Star
- 12
- Fork
- 8
- Merge trung bình
- 11 giờ 2 phút
- Pull request đã merge (30 ngày)
- 23
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của adobe/data
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ecs: let kernels issue commands through helpers (component lists, symbol-keyed values, void helpers)Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
area: frontend priority: normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
formbricks/formbricks#9918 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Chat: Resize question overlayĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
thecodacus/pithagoras#364 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycleĐang mởtype:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
nightgauge/nightgauge#2909 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày