# Embedding Julia in Scala

**URL:** https://discourse.julialang.org/t/embedding-julia-in-scala/97347
**Category:** General Usage
**Tags:** embedding, package-compiler
**Created:** [April 11, 2023, 1:44pm UTC](https://discourse.julialang.org/t/embedding-julia-in-scala/97347 "2023-04-11T13:44:43Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)
#### Post date: [April 11, 2023, 2:30pm UTC](https://discourse.julialang.org/t/embedding-julia-in-scala/97347/2 "2023-04-11T14:30:12Z")

</div>

I would look at this package to call Clojure, either to use (or to learn from):

> [@Using Julia from the JVM (Clojure)](https://discourse.julialang.org/t/using-julia-from-the-jvm-clojure/51052):
>
> Hey, I have been working on [libjulia-clj](https://github.com/cnuernber/libjulia-clj) and it is time to announce what little I have so far ;-). This is way that you can seamlessly call Julia from Clojure, a language hosted on the JVM. This allows you to use Julia for what it is good for and the JVM for what it is good for, thus sidestepping issues about which one is good at what. If you have never heard of Clojure, then I think there is plenty out there but here is a [new to Clojure document](https://github.com/clj-python/libpython-clj/blob/master/topics/new-to-clojure.md). I am a huge fan of Julia and need help build…

Why bring it up? Just as Java can call Scala or Kotlin etc., and those languages can call Java, the same it true for Clojure.

I believe that project embeds Julia in the JVM, i.e. calling between languages is fast and reuses memory (and if I’m right about that, then it’s the only/first package I know of doing that). That’s unlike JavaCall.jl where you call the JVM, that runs in a separate process. JavaCall.jl has been used to call Scala, but then Julia is your top language. There might be a workaround, and yes with that other package Clojure, not Scala, is your top language.

I did find something more, maybe relevant or helpful:

> **[Could Julia Replace Scala?](https://towardsdatascience.com/could-julia-replace-scala-77b73c345f6e)**
>
> Let’s be honest: A lot of us would really love to remove Scala from our Data-Science workflow. Spark is a great way to manage…

> [@Front ends for Julia codebases?](https://discourse.julialang.org/t/front-ends-for-julia-codebases/31370/6):
>
> A lot of dead ends indeed. I though that @barche QML route was an interesting options. Blockquote I feel like this is a missing element for a lot of julia applications and I want to kind of document my way through it as I try a few options and weigh pros/cons. Would be great ! I think that the topic of building an application (with UI) has not been addressed very often. This is related to the question “is Julia a general purpose language ?”. Most attempts that I have seen are based on WebIO…

---

_[View the full topic](https://discourse.julialang.org/t/embedding-julia-in-scala/97347)._
