Version 0.0.4 (prerelease, unstable)
npm install phrase
phrase
What is it?
- A describer.
- A repeatable context assembler.
- An heirarchical modeler.
- ...
- A metadata enriched scope heap.
- An Open Closure.
Usage
rootRegistrar = require('phrase').createRoot( opts, linkFunction )
# # example # ------- # neuron = require 'phrase' createRoot # # opts. # title: 'Neuron' uuid: '00000000-0700-0000-0000-fffffffffff0' leaf: 'synapse' timeout: 100000000001 # neuron lifetime (estimate) # # linkFunction. # tokenon 'ready' consolelog 'INIT (1 OF 3) -' "synaptic inputs ready (structure: count=)" # # console.log data # # { walk: { startedAt: 1377384696287, first: true, duration: 118 }, # tokens: # { '/Neuron/soma': { name: [Getter], uuid: [Getter] }, # '/Neuron/soma/dendrite/synapses': { name: [Getter], uuid: [Getter] }, # '/Neuron/soma/dendrite/synapses/input/1': { name: [Getter], uuid: [Getter] }, # '/Neuron/soma/dendrite/synapses/input/2': { name: [Getter], uuid: [Getter] }, # '/Neuron/soma/dendrite/synapses/input/3': { name: [Getter], uuid: [Getter] }, # '/Neuron/soma/dendrite/synapses/input/4': { name: [Getter], uuid: [Getter] }, # # ... # # # TODO: Output Synapses # # by ??? # # # TODO: Join neural network # # by attaching the synaptic inputs (tokens) to # synaptic outputs from other neurons # just like this one # # and presenting this neurons outputs for # attachment at inputs to other neurons # # # TODO: Learn # # by ??? (adjusting the synaptic weight) # neuron 'soma' before : -> @accumulated = 0 : -> @synapticWeight = Mathrandom dendrite 'synapses' # # initialize a random number (<100) of input synapses # for i in 1..Mathfloor Mathrandom * 100 do input "" # # from this point onward: things become largely theoretical... # @noticeevent 'free::dentrite' # # inform the controller # Wanted: 'axon synapse for coupling' Likes: 'long stalks on the peach' Dislikes: 'electro-shock therapy' then pendingon 'free::axon' # # controller has located ideal free::axon # require'notice'connect "" connect: address socketuse # # a new 'excitement' payload has crossed the synaptic cleft # next # # TODO: A better example. # # Possibly creating neural networks is entrely beside the point. # At this time. #