hpi-swa / trufflesqueak

A Squeak/Smalltalk VM and Polyglot Programming Environment for the GraalVM.
MIT License
283 stars 14 forks source link

Both the latest JVM and standalone versions only include the Smalltalk language. #176

Closed lkyhfx closed 8 months ago

lkyhfx commented 9 months ago

image

How can I add another language to TruffleSqueak?

Also, I'm really excited about Smalltalk on GraalVM, as it makes a huge number of libraries written in other languages like Java and Python available to Smalltalk. So, how do I use third-party libraries from other languages in TruffleSqueak?

fniephaus commented 8 months ago

Hey @lkyhfx, thanks for raising this ticket. GraalVM has changed quite a bit in the last couple of months. For example, the GraalVM Updater was removed and all language implementations now ship as normal Maven dependencies.

We haven't had the time to integrate this into TruffleSqueak. So the easiest way to set up a polyglot environment currently is to use an older version of TruffleSqueak, for example version 22.3.0.

The next release of TruffleSqueak will also ship TruffleSqueak Maven artifacts, so it will be possible to use Smalltalk in a Maven project, like the polyglot-embedding-demo. Ultimately, it would be cool if we could find a way to integrate the languages from Maven, so that it is possible to "install" them into a TruffleSqueak JVM standalone.

Hope this helps!

-- Fabio

fniephaus commented 8 months ago

I've added support for Polyglot installLanguage and bin/trufflesqueak-polyglot-get to install additional languages. Will ship with the next TruffleSqueak release :)