> There is Pharo JS, but I cannot load it in Pharo 6. There is the amber
> compiler, but I cannot find a version for Pharo.
> including the Smalltalk object model. While this is great for fan of
This C to Js approach also has the advantage of being able to utilize webassembly and asm.js to provide high performance JS code something that other approaches that go directly from Pharo to JS will struggle with.
The reason being that tools that support these approaches tend to more heavily optimize the generated JS code.
The catch here is that you will have to understand both C and JS to iron out potential issues. So this means this is definitely not a "simple way to translate Pharo code into JS" as you requested.