hoplon 2020-05-19

a new javelin-like thing from FB https://recoiljs.org/

i tried to mash up javelin and react recently without success, i wonder if this illuminates a worthwhile path

wow, this is very javelin-ish indeed! cell => "atom" formula => "selector"

i'm not sure what the basis for reactivity there is but i imagine it's not equality, and so their selector functions probably must be pure

i did notice that their "atoms" have to have keys, which stuck out to me as interesting

yeah, weird, a namespace of atoms

like with javelin, the "key" is notionally just the symbol referring to the object, like (defc foo 42)

with this thing, you would have to give it an additional ID on top of that

like var foo = new Whatever({"key": "foo again?", "value": 42})

yeah, part of data structure avoidance perhaps

kinda makes sense, if the world around you knows your name, you should probably also know your name

could play a role in dev tooling also