I was stuck last week because I couldn’t get eval to work during expansion. I tried using Polyglot.eval
but that made life worse because now I have to convert between Java values, Kiwi values and Polyglot values. Things moved along, but ultimately it didn’t work (and didn’t feel right).
I had a chat with the Truffle team and had a scare thinking that maybe the port to Kotlin wasn’t so wise after all - maybe it is only working in interpreter mode but not compilation mode, but alas, all is well, I’ve been testing in compile mode the whole time, so maybe it’ll be safe to stick with Kotlin.
I’m back to using Kiwi class to eval the expander code and this time it seems to be getting further along. I don’t know why it didn’t work when I tried it the first time 2 weeks ago. Hopefully the pico expander will be ported by the end of the week.