This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-10
Channels
- # adventofcode (3)
- # aws (2)
- # beginners (85)
- # boot (8)
- # boot-dev (4)
- # cider (36)
- # clara (3)
- # cljs-dev (87)
- # cljsrn (3)
- # clojure (87)
- # clojure-austin (12)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (5)
- # clojure-estonia (5)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-spec (17)
- # clojure-uk (55)
- # clojurescript (70)
- # core-logic (2)
- # cursive (6)
- # data-science (18)
- # datomic (13)
- # emacs (34)
- # fulcro (347)
- # graphql (12)
- # hoplon (6)
- # jobs (3)
- # jobs-discuss (43)
- # juxt (2)
- # keechma (31)
- # leiningen (29)
- # lumo (2)
- # midje (2)
- # off-topic (118)
- # om-next (4)
- # onyx (39)
- # pedestal (6)
- # re-frame (85)
- # reagent (21)
- # remote-jobs (3)
- # ring (5)
- # rum (2)
- # shadow-cljs (126)
- # spacemacs (1)
- # sql (6)
Guys, how did you integrated Clojure with Python? What is the best practice? Eg. R via websockets, Python via read-write db?
Something based on transit? https://github.com/cognitect/transit-python
we talk JSON over RabbitMQ as an RPC
it’s bog standard, but works fine for our use case as long as you keep the Python analysis stateless
thanks @joelkuiper !
@sb, just to throw out an alternative, I’ve embedded python via their c api through clojure-jna, (see https://docs.python.org/2/extending/embedding.html and https://github.com/Chouser/clojure-jna/)
it’s not too bad if you know a little C
the big advantage is that it’s in process
thanks I check it! @smith.adriane sounds interesting!
so if you have large python data structures, you don’t have serialize them to access them from clojure
because of python’s duck typing, you can set it up so that the same object can be used from both python and clojure
as long as you implement the python protocols on clojure side and vice versa