shadaj on main
Update sbt-scala-native-crosspr… (compare)
shadaj on main
Update scala-collection-compat … (compare)
shadaj on main
Update sbt to 1.5.5 (#202) (compare)
shadaj on main
Update sbt-mdoc to 2.2.22 (#203) (compare)
re2dependency and ran into a very strange problem with
pointerToLong. I can get the JVM tests to pass, or the native tests to pass, but apparently not both at the same time. I've made some more notes in my PR, if you happen to have the time to take a peak.
sbt clean testwould evade the problem for now
First off, thank you for the excellent work you're doing on Scalapy :) I'd like to ask you a little bit about 2.13 support, and about writing facades after version 0.3.0 of Scalapy.
A little bit of background: I'm working on a strongly typed, shape-safe library for TensorFlow, using some of the latest Dotty features (I'll open source all of this within a month or two). I'm using Scalapy under the hood to call the Python implementation of TensorFlow, as it's a convenient piece of glue between Scala and the C implementation. Currently, I'm using Scalapy 0.3.0 (which I've ported to 2.13 here MaximeKjaer/scalapy@35dca37, so that I can call it from Dotty-compiled code). I'm using this version as you already had an implementation of a TensorFlow facade for that version that I could base myself on. However, as I'm preparing to open-source my code, I'd like the dependencies to be formalized a little (so that they're on Maven, and not just a git fork). I'd also like to eventually contribute the work I've done on extending the TensorFlow facade back to your project.
I am definitely interested in supporting Scala 2.13, just haven't gotten to implementing that yet so PRs are welcome! Yes, we would need to cross compile to 2.12 (and 2.11 for Scala Native) since a good chunk of the community hasn't moved over yet.
From the perspective of scalapy-tensorflow, I don't think any of the changes since 0.3.0 will affect the facades. Most of the work has been on cleaning up the internals with the shared backend between JVM and native.
I'd love to hear more about the type-safe TensorFlow facade! That's a really exciting area, and challenging too, so I'm looking forward to seeing how it works.
Jozsefs-MacBook-Pro:scalapytest joco$ sbt [info] Loading global plugins from /Users/joco/.sbt/1.0/plugins [info] Loading project definition from /Users/joco/dev/ml/scalapy/test01/github/scalapytest/project [info] Loading settings for project root from build.sbt ... [info] Set current project to ScalaPyTest (in build file:/Users/joco/dev/ml/scalapy/test01/github/scalapytest/) [info] sbt server started at local:///Users/joco/.sbt/1.0/server/3f6c4d00bf97ae0f90ba/sock sbt:ScalaPyTest> run [info] running (fork) example.Hello [info] code runs [error] Exception in thread "main" java.lang.Error: java.lang.UnsatisfiedLinkError: jep.MainInterpreter.initializePython([Ljava/lang/String;)V [error] at jep.MainInterpreter.initialize(MainInterpreter.java:183) [error] at jep.MainInterpreter.getMainInterpreter(MainInterpreter.java:97) [error] at jep.Jep.<init>(Jep.java:232) [error] at jep.Jep.<init>(Jep.java:228) [error] at me.shadaj.scalapy.py.JepInterpreter.<init>(JepInterpreter.scala:9) [error] at me.shadaj.scalapy.py.Platform$.newInterpreter(Platform.scala:5) [error] at me.shadaj.scalapy.py.package$.interpreter(package.scala:11) [error] at me.shadaj.scalapy.py.Writer$$anon$11.write(Writer.scala:75) [error] at me.shadaj.scalapy.py.Any$.from(Any.scala:28) [error] at example.Hello$.delayedEndpoint$example$Hello$1(Hello.scala:6) [error] at example.Hello$delayedInit$body.apply(Hello.scala:3) [error] at scala.Function0.apply$mcV$sp(Function0.scala:39) [error] at scala.Function0.apply$mcV$sp$(Function0.scala:39) [error] at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17) [error] at scala.App.$anonfun$main$1$adapted(App.scala:80) [error] at scala.collection.immutable.List.foreach(List.scala:392) [error] at scala.App.main(App.scala:80) [error] at scala.App.main$(App.scala:78) [error] at example.Hello$.main(Hello.scala:3) [error] at example.Hello.main(Hello.scala) [error] Caused by: java.lang.UnsatisfiedLinkError: jep.MainInterpreter.initializePython([Ljava/lang/String;)V [error] at jep.MainInterpreter.initializePython(Native Method) [error] at jep.MainInterpreter.access$100(MainInterpreter.java:64) [error] at jep.MainInterpreter$1.run(MainInterpreter.java:140) [error] Nonzero exit code returned from runner: 1 [error] (Compile / run) Nonzero exit code returned from runner: 1 [error] Total time: 1 s, completed Dec 24, 2019 11:51:02 PM sbt:ScalaPyTest>