back

info multiplexing

turning one card into many.


warning:
this interface is subject to change without notice until i get it right.


the general idea of info multiplexing is to turn one $info into a (map path card) so that you can send multiple cards to multiple locations at once.

$-(info (map path card))

you can encode sub-paths into the paths of an $info using a “seperator syntax”.

for now, the empty symbol is the seperator.

this process happens automatically when a card is sent from the interface


example

initial info:

  /a/b/        t/'top of /a/b'
  /a/b//one    t/'hello'
  /a/b//two    t/'bonjour'
  /c//three    t/'guten tag'
  /four        t/'hola'
  
becomes a map with 3 items:

  /a/b
    /          t/'top of /a/b'
    /one       t/'hello'
    /two       t/'bonjour'
    
  /c
    /three     t/'guten tag'
    
  /four        t/'hola'

these would then produce a run of the event loop which processes in this order (longest path first):

/a/b
/four
/c
/a       :: because ancestor of /a/b
/        :: because ancestor of all