This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-13
Channels
- # beginners (43)
- # boot (318)
- # cider (1)
- # cljs-dev (6)
- # clojure (30)
- # clojure-brasil (2)
- # clojure-korea (2)
- # clojure-russia (31)
- # clojure-spec (13)
- # clojure-uk (7)
- # clojurebridge (1)
- # clojurescript (17)
- # code-reviews (1)
- # cursive (2)
- # data-science (1)
- # datascript (10)
- # hoplon (116)
- # javascript (2)
- # juxt (1)
- # mount (2)
- # onyx (12)
- # parinfer (2)
- # pedestal (1)
- # protorepl (1)
- # re-frame (3)
- # ring (1)
- # untangled (1)
@misha: Wow. Cool. How’d you get that running?
@seantempesta 2 different compiled .js files: for main and for db (with basic "fn name + transit-compressed args" api). Basic RN module, which runs db.js in a new jscore. https://facebook.github.io/react-native/docs/native-modules-ios.html
As a result you get something like async storage
, but with DS instead of hashmap under the hood.
In dev mode the overhead is ~50ms though, last time I checked.
Very cool. Do you have the RN module code posted anywhere? I’m not very familiar with Objective C or Java, so building even a basic RM module is pretty challenging.
Idea: Create a similar Entity implementation that uses a cache which can "record" all accesses of keys of the entity. That way, for UIs using mostly Entities, we can wrap the render function and observe which entity keys were accessed during the render. We can then automatically create a re-render trigger based on this. Would be pretty cool for rum+datascript.