practicalli

https://practicalli.github.io/ http://yt.vu/+practicalli (youtube)
imre 2020-11-27T09:52:43.163Z

Hey all. First of all, thanks for the clojure deps edn project - I migrated from Sean Corfield's one last evening and really appreciate the work you put into it. I do however seem to have trouble with launching REBL under java 8 on a mac. I'm following the instructions in the deps.edn saying ;; - OpenJDK 8 or 11 -- use :inspect/rebl Here's what I get:

$ clj -M:inspect/rebl
Clojure 1.10.1
user=> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
netscape.javascript.JSObject

Full report at:
/var/folders/yq/pzs9fnnj5g715j73kxglggcjtyvz55/T/clojure-8754450865959351645.edn
System details are:
$ java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-bre_2020_11_16_16_29-b00)
OpenJDK 64-Bit Server VM (build 25.275-b00, mixed mode)

$ clojure -Sdescribe
{:version "1.10.1.739"
 :config-files ["/usr/local/Cellar/clojure/1.10.1.739/deps.edn" "/Users/ikoszo/.clojure/deps.edn" ]
 :config-user "/Users/ikoszo/.clojure/deps.edn"
 :config-project "deps.edn"
 :install-dir "/usr/local/Cellar/clojure/1.10.1.739"
 :config-dir "/Users/ikoszo/.clojure"
 :cache-dir "/Users/ikoszo/.clojure/.cpcache"
 :force false
 :repro false
 :main-aliases ""
 :repl-aliases ""}

$ clj -R:inspect/rebl -C:inspect/rebl -Stree
-R is deprecated, use -A with repl, -M for main, or -X for exec
-C is deprecated, use -A with repl, -M for main, or -X for exec
org.clojure/data.json 1.0.0
org.clojure/clojure 1.10.1
  org.clojure/core.specs.alpha 0.2.44
  org.clojure/spec.alpha 0.2.176
org.openjfx/javafx-swing 11.0.1
  org.openjfx/javafx-swing$mac 11.0.1
  org.openjfx/javafx-graphics 11.0.1
    org.openjfx/javafx-graphics$mac 11.0.1
org.openjfx/javafx-controls 11.0.1
  org.openjfx/javafx-controls$mac 11.0.1
org.yaml/snakeyaml 1.27
com.cognitect/rebl 0.9.241
  cljfmt/cljfmt 0.6.8
    org.clojure/tools.cli 0.4.2
    rewrite-clj/rewrite-clj 0.6.1
    com.googlecode.java-diff-utils/diffutils 1.3.0
    org.clojure/tools.reader 1.3.2
    rewrite-cljs/rewrite-cljs 0.4.4
org.clojure/data.csv 1.0.0
org.openjfx/javafx-base 11.0.1
  org.openjfx/javafx-base$mac 11.0.1
org.openjfx/javafx-web 11.0.1
  org.openjfx/javafx-media 11.0.1
    org.openjfx/javafx-media$mac 11.0.1
  org.openjfx/javafx-web$mac 11.0.1
org.openjfx/javafx-fxml 11.0.1
  org.openjfx/javafx-fxml$mac 11.0.1
org.clojure/core.async 1.3.610
  org.clojure/tools.analyzer.jvm 1.1.0
    org.clojure/tools.analyzer 1.0.0
    org.ow2.asm/asm 5.2
    org.clojure/core.memoize 1.0.236
      org.clojure/core.cache 1.0.207
        org.clojure/data.priority-map 1.0.0

imre 2020-11-27T09:54:34.164300Z

So far I tried openjdk@8, adoptopenjdk/openjdk/adoptopenjdk8 and zulu8 openjdks from brew, no luck with either of them.

imre 2020-11-27T10:10:35.164900Z

Hmm. Reading up on it, openjfx doesn't seem to be compatible with java 8

practicalli-john 2020-11-27T10:51:55.167600Z

@imre clojure -M:inspect/rebl-java8 to run REBL with Java 8 - tested with OpenJDK and should work with Oracle Java. https://github.com/practicalli/clojure-deps-edn#cognitect-rebl JavaFX is already included with Java 8, it was separated out in Java 8. The :inspect/rebl included java 11 libraries. If the docs are misleading, then apologies and I'll check and update them now.

imre 2020-11-27T10:55:22.167800Z

I'm afraid it doesn't work with openjdk8 for me that way either:

$ java -version
openjdk version "1.8.0_275"
OpenJDK Runtime Environment (build 1.8.0_275-bre_2020_11_16_16_29-b00)
OpenJDK 64-Bit Server VM (build 25.275-b00, mixed mode)

$ clj -M:inspect/rebl-java8
Clojure 1.10.1
user=> Execution error (ClassNotFoundException) at java.net.URLClassLoader/findClass (URLClassLoader.java:382).
netscape.javascript.JSObject

Full report at:
/var/folders/yq/pzs9fnnj5g715j73kxglggcjtyvz55/T/clojure-2925724931719686732.edn

imre 2020-11-27T10:55:44.168Z

the only jdk 8 I was able to get it working with was oracle's

imre 2020-11-27T10:56:37.168300Z

I'll send a PR to update the comment in deps.edn

practicalli-john 2020-11-27T10:58:35.169600Z

Ah yes, the https://github.com/practicalli/clojure-deps-edn/blob/live/deps.edn#L373-L379 notes were a little out of date, thanks for highlight this. The notes have been updated.

practicalli-john 2020-11-27T11:00:07.169800Z

Thanks for the feedback. It has been a few months since I used REBL, so this is useful to know there are issues.

imre 2020-11-27T11:03:00.170Z

Oh I see you updated it already

practicalli-john 2020-11-27T11:07:12.170200Z

I'll make a note that it may only work on Oracle 8. I will do some testing at the weekend, and see if I can get it working on OpenJDK 8. Thank you.

imre 2020-11-27T11:15:26.170400Z

https://github.com/practicalli/clojure-deps-edn/pull/11 for now.

👍 1
imre 2020-11-27T11:15:50.170700Z

If you do get it working with OpenJDK8, I'd be interested to know how. Thank you.

practicalli-john 2020-11-27T11:16:19.171Z

I will mention you in a comment here in Slack if I get it working. Thanks.

practicalli-john 2020-11-27T12:45:30.172900Z

Today I am hosting the SciCloj meeting where we talk about data science. We will be doing some collaborative coding using a remote server and using various editors to group code. Should be an interesting experiment. I've started a doc on how to set up a shared remote server and use SSH tunnelling to connect to the REPL and collaborate on the code. https://practicalli.github.io/data-science/collaborative-coding/shared-server.html

practicalli-john 2020-11-27T22:58:08.175700Z

I finally got an elegant solution to the "Series" challenge on http://Exercism.io. It didnt take too long to come up with an answer, but it wasnt as nice as I wanted. But have finally refactored it to be some elegant code, I hope you agree (or can suggest anything nicer) in the Live broadcast tomorrow. Broadcast - Saturday 09:00 UTC (United Kingdom time) - oh, its in 10 hours... https://youtu.be/tPs7GYKE1sE