Data Science in Scala with ScalaPy
summary
ScalaPy embeds a CPython interpreter and exposes Python libraries to Scala on JVM and Scala Native via JNA or native FFI, with heap synchronization, GIL handling, reverse interop and proxy-backed sequence conversion (release 0.4.0). Examples run TensorFlow on Colab GPUs and a CNN on MNIST reaches 98.97% accuracy. It provides dynamic APIs for quick experiments, optional generated type facades for static safety, and bi-directional function/sequence bridges that avoid full-copy overhead.
AI-written summary · about
chapters (14)
- 0:00Intro
- 0:26data science has a split ecosystem
- 2:17ScalaPy lets you use Python libraries from Scala code
- 11:30embedding Python
- 14:11cross-platform bindings
- 16:17dynamically typed APIs
- 17:34python interpolation
- 19:47sending functions to Python
- 23:20sending sequences
- 25:03proxy collections
- 26:20type mappings
- 26:36type hierarchy
- 26:55creating facades
- 30:08in conclusion
related talks
31mBringing the Jewels of the Python World to Scala with Spark
47mScala: The Unpredicted Lingua Franca for Data Science
47mScala: The Unpredicted Lingua Franca for Data Science
42mDevelopment of Data Science Ecosystem for Ruby
33mSolving the Scala Notebook Experience
32mCyfra: Scala on GPU
45mScala and the JVM as a Big Data Platform Lessons from Apache Spark
33mIodide and Pyodide: Bringing Data Science Computation to the Web Browser
