Fork me on GitHub
#graalvm
<
2019-09-25
>
David Pham11:09:43

Anyone already created a library for wrapping polyglot in a idiomatic Clojure? There is a gist file from taylorwood but wanted to know if that was the only solution?

taylor13:09:38

using it directly isn’t bad, and I haven’t used the polyglot stuff enough to know what a good “wrapper” library would look like. Sometimes you don’t need one :man-shrugging:

taylor13:09:53

here’s the accompanying write up for that gist https://blog.taylorwood.io/2018/11/26/graal-polyglot.html

David Pham20:09:47

Thanks a lot!

👍 4
David Pham20:09:15

Is there a way to get a Clojure representation of a ProxyObject?

borkdude20:09:30

do you mean create one?

borkdude20:09:16

you can use reify to create an ad-hoc object that implement an interface in Clojure

David Pham21:09:35

I can convert a map to a ProxyObject with the fromMap method, but then I can’t convert it back a a Clojure Map