Skip to content

Commit

Permalink
Partially working GraalVM native image
Browse files Browse the repository at this point in the history
Investigation to determine if GraalVM can be used to fix #33.
So that Clojure/Java impl of data.xml is used instead of ClojureScript.

Using Clojure 1.10.2-alpha1 and spec-tools 0.10.0
Using xfthhxk fix for luchiniatwork/cambada#9
Working for files that don't exist (Traktor to Rekordbox)
Error for files that exist, from mp3-parser (Traktor to Rekordbox)
Error for all files? (Rekordbox to Traktor)
  • Loading branch information
alza-bitz committed Jul 29, 2020
1 parent b387a3e commit dc8c4c9
Show file tree
Hide file tree
Showing 23 changed files with 41 additions and 2 deletions.
21 changes: 19 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{:paths ["src"]
:deps
{org.clojure/clojure {:mvn/version "1.10.1"}
{org.clojure/clojure {:mvn/version "1.10.2-alpha1"}
org.clojure/clojurescript {:mvn/version "1.10.520"}
camel-snake-kebab {:mvn/version "0.4.0"}
cljc.java-time {:mvn/version "0.1.6"}
Expand All @@ -13,7 +13,7 @@
org.clojure/data.xml {:mvn/version "0.2.0-alpha6"}
org.clojure/data.zip {:mvn/version "0.1.3"}
org.clojure/tools.cli {:mvn/version "0.4.2"}
metosin/spec-tools {:mvn/version "0.9.3"}
metosin/spec-tools {:mvn/version "0.10.0"}
com.cemerick/url {:mvn/version "0.1.1" :exclusions [com.cemerick/clojurescript.test]}
tick {:mvn/version "0.4.19-alpha"
:exclusions [cljsjs/js-joda
Expand All @@ -32,6 +32,23 @@
:sha "cb96e80f6f3d3b307c59cbeb49bb0dcb3a2a780b"}}
:main-opts ["-m" "cognitect.test-runner"
"-i" ":profile"]}
:uberjar {:extra-deps {luchiniatwork/cambada {:git/url "https://github.com/xfthhxk/cambada.git"
:sha "c8a01477c856fc28c53f34aa3f268f8eaf683869"}}
:main-opts ["-m" "cambada.uberjar"
"-m" "converter.cli"]}
:native-image {:extra-deps {luchiniatwork/cambada {:git/url "https://github.com/xfthhxk/cambada.git"
:sha "c8a01477c856fc28c53f34aa3f268f8eaf683869"}}
:main-opts ["-m" "cambada.native-image"
"-m" "converter.cli"
"--graalvm-opt"
"-verbose"
"--graalvm-opt"
"-allow-incomplete-classpath"
"--graalvm-opt"
"-report-unsupported-elements-at-runtime"
"--graalvm-opt"
"J-Xmx8g"]
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]}
:test-cljs {:extra-deps {olical/cljs-test-runner {:mvn/version "3.7.0"}}
:main-opts ["-m" "cljs-test-runner.main"
"-e" ":profile"]}
Expand Down
1 change: 1 addition & 0 deletions src/converter/app.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.app
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/cli.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.cli
(:require
#?(:cljs [cljs.nodejs :as nodejs])
Expand Down
1 change: 1 addition & 0 deletions src/converter/config.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.config
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/error.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.error
(:require
#?(:cljs [cljs-node-io.core :as io :refer [spit]])
Expand Down
1 change: 1 addition & 0 deletions src/converter/offset.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.offset
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/progress.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.progress)

(defn dots-println
Expand Down
1 change: 1 addition & 0 deletions src/converter/rekordbox/core.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.rekordbox.core
(:require
[camel-snake-kebab.core :as csk]
Expand Down
1 change: 1 addition & 0 deletions src/converter/rekordbox/position_mark.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.rekordbox.position-mark
(:require
[camel-snake-kebab.core :as csk]
Expand Down
1 change: 1 addition & 0 deletions src/converter/rekordbox/tempo.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.rekordbox.tempo
(:require
[camel-snake-kebab.core :as csk]
Expand Down
1 change: 1 addition & 0 deletions src/converter/spec.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.spec
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/str.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.str
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/time.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.time
(:require
[cljc.java-time.local-date :as jtld]
Expand Down
1 change: 1 addition & 0 deletions src/converter/traktor/album.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.traktor.album
(:require #?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])))

Expand Down
1 change: 1 addition & 0 deletions src/converter/traktor/core.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.traktor.core
(:require
[clojure.data.zip.xml :as zx]
Expand Down
1 change: 1 addition & 0 deletions src/converter/traktor/cue.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.traktor.cue
(:require
[clojure.data.zip.xml :as zx]
Expand Down
1 change: 1 addition & 0 deletions src/converter/traktor/location.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.traktor.location
(:require
[cemerick.url :refer [url url-encode url-decode]]
Expand Down
1 change: 1 addition & 0 deletions src/converter/traktor/nml.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.traktor.nml
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/universal/core.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.universal.core
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/universal/marker.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.universal.marker
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/universal/tempo.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.universal.tempo
(:require
#?(:clj [clojure.spec.alpha :as s] :cljs [cljs.spec.alpha :as s])
Expand Down
1 change: 1 addition & 0 deletions src/converter/url.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.url
(:require
[cemerick.url :as url]
Expand Down
1 change: 1 addition & 0 deletions src/converter/xml.cljc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
(set! *warn-on-reflection* true)
(ns converter.xml
(:require
#?(:cljs [converter.xmldom])
Expand Down

0 comments on commit dc8c4c9

Please sign in to comment.