Skip to content

Instantly share code, notes, and snippets.

@tacryt-socryp
Last active May 31, 2020 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tacryt-socryp/e65d1b2cab63e8b9ed5c8143fe6689db to your computer and use it in GitHub Desktop.
Save tacryt-socryp/e65d1b2cab63e8b9ed5c8143fe6689db to your computer and use it in GitHub Desktop.
/- *post
|%
+$ streams
$: feeds=(map resource feed)
tags=(set term)
tag-queries=(map term resources)
==
::
+$ feed (ordered-map time post)
+$ action
$% [%add-streams =streams]
[%remove-streams ~]
::
[%add-feed =resource =feed]
[%remove-feed =resource]
::
[%add-tag =term =resources]
[%remove-tag =term =resources
::
[%add-posts posts=(set [=time =post])]
[%remove-posts times=(set time)]
::
[%add-signatures =uid =signatures]
[%remove-signatures =uid =signatures]
==
::
+$ update action
--
|%
+$ resource [=entity =term]
+$ resources (set resource)
::
+$ entity
$% [%ship =ship]
[%ships ships=(set ship)]
:: [%ring ...]
==
::
+$ index (list time)
+$ post
$: author=ship
=hash
=index
=signatures
contents=(list content)
==
::
+$ uid [=entity =index]
+$ content
$% [%text =cord]
[%url =cord]
[%code expression=cord output=(list tank)]
[%reference =uid]
:: [%cage =cage]
==
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment