Last active
November 19, 2019 10:09
-
-
Save okram/21d2e5399ed6f7e01831e4eeec8daa65 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
person[name:str~a,age:int~b]{*}~c =>[id] | |
| <=[=mongo][get,users] | |
| [is,[get,name][eq,a]] | |
| [map,[name:[get,'first'][plus,[get,'last']], | |
| age:2019-[get,'dob']]] | |
| | |
|-[-rule]([dedup]|[order]) => [id] | [count] => 100 | |
|-[-path][put,'c',c] | |
|-[-loop][is,[get,i][a,repeat]][incr] | |
|-[-akka][is,[get,remote]][put,c,akka[ip:127.0.0.1,port:2222]] | |
|-[-sack][fold,real => [mult,b]] | |
|-[-ring]([mult,[one]] => [id] | | |
[plus,[zero]] => [id] | | |
[one] => person[name:'',age:0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An object is structurally defined with
~x
serving as global variables while an instance is being referenced.=>
("map to" operator) there is no prescribed computation. In principle,=>
should be the remaining instructions in the program (pop off the stack, execute, and go).<=
("map from" operator) there is a functor from the mongo model to the "social model". note that a structurally equivalent record is created in the mongo space and is what is ultimately returned by<=
. Thus, there is a homomorphism between these two algebraically isolated environments.|-
("monadic feature" operator) these are monadic state features (computational metadata). These will not be specified off datatypes, but off a monad-type perhaps.? these are theTraverser<S>
features in TP3, but fully specified within mm-ADT.[-]
instructions represent features of the monad. ("object-oriented methods" programmable in mm-ADT)[=]
instructions represent exogenous model mappings. (embeddings/homomorphisms/projections/transformations/couplings/etc.)[ ]
instructions represent endogenous model mappings. (endomorphisms, i.e. moving through the current model.)