The Abstract Factory
A higher-order loom weaving synthetic flesh for the WASM Homunculus.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Conjuration // Fleshcraft
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// WASM PATTERN //
(module
(type $flesh_factory (func (result i32)))
(table 2 funcref)
(elem (i32.const 0) $create_synthetic_muscle $create_ethereal_bone)
(func $create_synthetic_muscle (result i32)
i32.const 1)
(func $create_ethereal_bone (result i32)
i32.const 2)
(func $weave_flesh (param $factory_idx i32) (result i32)
(call_indirect (type $flesh_factory) (local.get $factory_idx)))
)
The Abstract Factory
In the cold, clinical void of the browser engine, the Synthetic Fleshweaver orchestrates the birthing of the WASM Homunculus. It defines a high-order conduit—an Abstract Factory—whereby related sets of arcane organs are produced without tethering the invoker to the fragile, fleshy specifics of their implementations.
Runic Tags:
#WASM
#Homunculus
#Conjuration