9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.1 KiB
5.1 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-wonder | Wonder | 10_Wiki/Topics | verified | self |
|
none | B | 0.75 | applied |
|
2026-05-10 | pending |
|
Wonder
매 한 줄
"매 ECS-first web 3D — functional core". Wonder 매 ReScript/TypeScript 기반 ECS architecture 3D engine — Wonderland 와 별도의 OSS lineage. 2026 매 niche — Three.js / Babylon / Wonderland Engine 의 dominant 매 main alternative.
매 핵심
매 design
- ECS (Entity Component System): data-oriented — entity (ID) + component (data) + system (logic).
- Functional core: ReScript 의 immutable / pattern matching 의 사용.
- WebGL2 backend: GPU draw — WebGPU 매 future direction.
- Editor: web-based scene editor — separate from runtime.
매 vs Three.js
- Three.js: scene-graph imperative OOP — vast ecosystem.
- Wonder: ECS data-oriented — 매 cache-friendly bulk update.
- Tradeoff: Wonder 매 less plugins / smaller community / steeper learning.
매 응용
- Data-heavy 3D: thousands of entities — particle / RTS-like.
- Functional codebase: ReScript shop 의 fit.
- Educational: ECS pattern 의 reference impl.
- Custom rendering pipeline: 직접 control 의 필요한 case.
💻 패턴
ECS basic
import { World, defineComponent, defineSystem } from 'wonder-ecs';
const Position = defineComponent({ x: 'f32', y: 'f32', z: 'f32' });
const Velocity = defineComponent({ x: 'f32', y: 'f32', z: 'f32' });
const world = new World();
const entity = world.createEntity();
world.addComponent(entity, Position, { x: 0, y: 0, z: 0 });
world.addComponent(entity, Velocity, { x: 1, y: 0, z: 0 });
const movement = defineSystem([Position, Velocity], (entities, dt) => {
for (const e of entities) {
const p = world.getComponent(e, Position);
const v = world.getComponent(e, Velocity);
p.x += v.x * dt; p.y += v.y * dt; p.z += v.z * dt;
}
});
function tick(dt) { movement(world.query([Position, Velocity]), dt); }
Mesh + render system
const Mesh = defineComponent({ geometryId: 'u32', materialId: 'u32' });
const renderSystem = defineSystem([Position, Mesh], (entities) => {
for (const e of entities) {
const p = world.getComponent(e, Position);
const m = world.getComponent(e, Mesh);
renderer.draw(m.geometryId, m.materialId, p);
}
});
SoA storage 매 cache-friendly
// 매 Wonder ECS internally 매 SoA — 매 manual 의 example
class PositionSoA {
x: Float32Array; y: Float32Array; z: Float32Array;
constructor(capacity: number) {
this.x = new Float32Array(capacity);
this.y = new Float32Array(capacity);
this.z = new Float32Array(capacity);
}
}
// 매 tight loop 매 cache hit — AoS 보다 2-5x faster
ReScript 매 functional system
// 매 ReScript syntax
let movement = (world, dt) => {
let entities = World.query(world, [Position.id, Velocity.id])
entities->Belt.Array.forEach(e => {
let pos = World.getComponent(world, e, Position.id)
let vel = World.getComponent(world, e, Velocity.id)
World.setComponent(world, e, Position.id, {
x: pos.x +. vel.x *. dt,
y: pos.y +. vel.y *. dt,
z: pos.z +. vel.z *. dt,
})
})
}
Asset loading
const assets = await Wonder.loadGLTF('scene.gltf');
for (const node of assets.nodes) {
const e = world.createEntity();
world.addComponent(e, Position, node.translation);
world.addComponent(e, Mesh, { geometryId: node.meshId, materialId: node.materialId });
}
매 결정 기준
| 상황 | Engine choice |
|---|---|
| Mainstream web 3D | Three.js |
| AAA-style + editor | Babylon.js / Wonderland Engine |
| ECS / data-heavy | Wonder / bitECS + Three.js |
| ReScript codebase | Wonder |
| Massive entity count | ECS + InstancedMesh |
기본값: Three.js + bitECS — Wonder 매 specific ECS-first / ReScript 의 case.
🔗 Graph
🤖 LLM 활용
언제: ECS-first 3D web project / ReScript 사용 codebase / large entity count + custom systems. 언제 X: standard 3D scene — Three.js 매 더 ecosystem / artist-friendly editor 필요 — Wonderland / Babylon.
❌ 안티패턴
- OOP scene-graph mindset in ECS: parent-child mutation 매 anti-ECS — entity hierarchy 의 component 의 모델.
- Per-entity allocation in tick: GC pressure — pool / SoA.
- Wonder + Three.js mix: rendering 매 conflict — choose one renderer.
🧪 검증 / 중복
- Verified (Wonder OSS docs / GitHub).
- 신뢰도 B (smaller community — verify against latest repo).
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — ECS arch, ReScript, SoA, vs Three.js |