This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-22
Channels
- # architecture (1)
- # aws (3)
- # beginners (78)
- # boot (33)
- # cider (49)
- # cljs-dev (3)
- # clojure (82)
- # clojure-berlin (2)
- # clojure-dusseldorf (14)
- # clojure-gamedev (75)
- # clojure-italy (15)
- # clojure-nl (2)
- # clojure-poland (9)
- # clojure-russia (1)
- # clojure-spec (11)
- # clojure-uk (91)
- # clojurescript (17)
- # core-async (2)
- # cursive (1)
- # data-science (3)
- # datascript (34)
- # datomic (13)
- # docs (2)
- # duct (32)
- # emacs (8)
- # fulcro (95)
- # instaparse (17)
- # jobs (2)
- # jobs-discuss (1)
- # jobs-rus (4)
- # leiningen (1)
- # luminus (1)
- # lumo (4)
- # mount (1)
- # nrepl (1)
- # off-topic (98)
- # onyx (13)
- # portkey (12)
- # re-frame (10)
- # reagent (11)
- # remote-jobs (4)
- # rum (3)
- # shadow-cljs (34)
- # specter (7)
- # sql (1)
- # tools-deps (8)
My client wants to use Datomic from Nodejs. Are they supposed to use the deprecated rest api?
Hey, just a [OFF]
idea. but you can use #graalvm to get access datomic.api
from nodejs.
https://www.graalvm.org/
From What does GraalVM do?
example, you may be allowed to access datomic.api
and use from nodejs with something like
result = datomic.api.q(edn`[:find ?e :in $ ?id :where [?e :user/id ?id]]`, db, user_id)
Where edn
is a "tagged string function" that transforms string into edn.
I will do a blog about that some dayThat's amazing, has this been tested ?
Frankly, if it were me, I would probably not do something so experimental at my client's - or at least make it easy get out of this strategy
Yes, I fear the answer is to tell them not to use Datomic
However I am probably willing to maintain a cljs/js client, but not without coordinating with cognitect
@U09K620SG Cognitect is supposed to be open-sourcing th documentation of the client protocol
Hey I just made some snippet's about how to access datomic from javascript (using graalvm) Important notes: - :heavy_exclamation_mark: Experimental :heavy_exclamation_mark: - You dont need to JS "inside" clj/java. You can run a JS file with graal directily (but you will need to setup classpath) - in the middle of development I realized that it would be easier to use the JAVA API than the clojure API https://gist.github.com/souenzzo/c4719d45e804767c97f6f5be1bcdd1c5
@U2J4FRT2T ah, using graal. nice one!
Hey I just made some snippet's about how to access datomic from javascript (using graalvm) Important notes: - :heavy_exclamation_mark: Experimental :heavy_exclamation_mark: - You dont need to JS "inside" clj/java. You can run a JS file with graal directily (but you will need to setup classpath) - in the middle of development I realized that it would be easier to use the JAVA API than the clojure API https://gist.github.com/souenzzo/c4719d45e804767c97f6f5be1bcdd1c5