This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-04
Channels
- # arachne (2)
- # bangalore-clj (3)
- # beginners (34)
- # boot (22)
- # cider (1)
- # cljs-dev (86)
- # cljsjs (3)
- # clojure (42)
- # clojure-argentina (6)
- # clojure-austin (10)
- # clojure-chicago (1)
- # clojure-france (3)
- # clojure-russia (135)
- # clojure-spain (1)
- # clojure-uk (4)
- # clojurescript (69)
- # core-async (13)
- # cursive (11)
- # datascript (6)
- # datomic (8)
- # dirac (2)
- # emacs (10)
- # euroclojure (1)
- # events (1)
- # gsoc (13)
- # jobs-rus (9)
- # lumo (7)
- # off-topic (18)
- # om (16)
- # perun (3)
- # planck (1)
- # portland-or (1)
- # re-frame (25)
- # ring (22)
- # spacemacs (1)
- # untangled (14)
Hi, is it intentional, that the first is not working and second is? Is there a better/clearer workaround?
[:find ?e ?v
:where [?e :db/ident ?v] [(not (clojure.string/starts-with? (str ?v) ":db”))]]
...Exception: Unable to resolve symbol: ?v in this context
[:find ?e ?v
:where [?e :db/ident ?v] [(-> ?v str (clojure.string/starts-with? ":db") not)]]
I'm implementing a "recent changes" view, where I'm supposed to show who did what, starting from most recent change and going back in time. I need to filter out some changes based on users rights and active filters etc. I'm thinking something like this:
(->> (d/tx-range (d/log conn) nil nil)
(reverse)
(filter interesting-to-user?)
(map tx->changes)
(take enough-to-fill-screen))
I'm worried about the performance of the (reverse). Is this sensible approach,
or is there some better way to traverse from now (or some given point of time)
to back in time?Trying to run through the getting started guide using datomic-free-0.9.5554. Running ./bin/run -m datomic.peer-server -p 8998 -a myaccesskey,mysecret -d firstdb,datomic:
gets me java.io.FileNotFoundException: Could not locate datomic/peer_server__init.class or datomic/peer_server.clj
the peer server doesn't work with datomic free, see the bottom of: http://www.datomic.com/get-datomic.html
@thegeez thanks. Was just following the tutorial on http://datomic.com Is there another tutorial for getting started?
ok came across http://gigasquidsoftware.com/blog/2015/08/15/conversations-with-datomic/ hopefully that'll work