lambdaisland

borkdude 2020-04-11T12:10:01.077500Z

@plexus bb compatibility for regal is broken because of this function:

$ bb -cp src -e "(require '[lambdaisland.regal :as re]) (re/runtime-flavor)"

java.lang.NullPointerException
It expects (System/getProperty "java.runtime.version") to always return something. In bb and GraalVM artifacts this value isn't set. However java.version is set:
$ clj -e '(System/getProperty "java.version")'
"11.0.3"
$ bb '(System/getProperty "java.version")'
"1.8.0_242"
Can we change that? I don't think it matters for the code in question to use either one. https://stackoverflow.com/questions/55399001/what-is-the-difference-in-properties-java-runtime-version-and-java-version

borkdude 2020-04-11T12:11:01.078100Z

With that fixed, it works again:

$ bb -cp src -e "(require '[lambdaisland.regal :as re]) (re/regex [:class [\a \z]])"
#"[a-z]"