This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-22
Channels
- # announcements (3)
- # beginners (22)
- # braveandtrue (6)
- # calva (2)
- # cider (85)
- # cljdoc (1)
- # cljs-dev (21)
- # cljsrn (2)
- # clojure (70)
- # clojure-italy (9)
- # clojure-spec (1)
- # clojure-uk (144)
- # clojure-ukraine (6)
- # clojurescript (109)
- # cursive (59)
- # data-science (15)
- # datomic (40)
- # emacs (8)
- # fulcro (64)
- # funcool (8)
- # graphql (8)
- # hispano (3)
- # hoplon (7)
- # jobs-discuss (29)
- # leiningen (3)
- # luminus (2)
- # off-topic (13)
- # onyx (9)
- # parinfer (49)
- # pedestal (2)
- # portkey (8)
- # re-frame (10)
- # reagent (33)
- # reitit (13)
- # ring (2)
- # ring-swagger (16)
- # shadow-cljs (193)
- # spacemacs (1)
- # sql (19)
- # tools-deps (19)
really, really strange things happens in onyx-sql
if I added to project.clj
logs libs
[org.apache.logging.log4j/log4j-core "2.8.1"]
[org.apache.logging.log4j/log4j-api "2.8.1"]
[org.slf4j/slf4j-log4j12 "1.7.25" :exclusions [org.slf4j/slf4j-api]]]
Then, I have batch size = 50 and in catalog -- :sql/rows-per-segment 1000
I submit job and onyx processed 1000 record from db
If I exclude logs libs, onyx process 50 records
What is that?
And of course I have only one batch processed, after him - NPE, in both casesthis is so frustrating, anybody can help me and fix that?
what is a difference between batch-size and rows-per-segment?
anyone test this plugin?
this is not working at all
@lucasbradstreet can u help ^?
Most of the complexity would probably be in the JNI->C part, so not even very accessible for someone experienced in clojure.
I did exactly that in the past, clj - java - jni - c - fortran, luckily for me the c part was already written
JNI is quite easy to use, depending on how large the api you need to cover is. Also depending on your requirements you can prolly get away with jna or better, jnr
Another idea I was toying with lately is to use luajit for the ffi and fennel-lang for these kind of things, but if you need stuff from java land this is a no go
so maybe you could do something like that using polyglot Clojure https://github.com/gigasquid/graal-test/blob/master/src/graal_test/core.clj
Maybe looking at core.matrix -> clatrix -> jblas -> LAPACK can provide useful insights?
If that (matrix math on the metal) is what you are looking for, I'd strongly recommend having a look at Neanderthal
https://shocksolution.com/2009/10/26/building-and-linking-to-a-shared-fortran-library/ and https://stackoverflow.com/questions/8207997/calling-a-fortran-subroutine-from-c
@rustam.gilaztdinov like I said, it’s most likely a bug in the Onyx sql plugin that is triggered upon sequence realization. the logging library most likely causes the sequence to be realized in a different place, causing different behavior.
@lmergen thank you! I'll post here my steps, hope we can resolved that