Re:TruffleC: A C implementation on top of JVM (2014)
by chaosite on Friday August 12, 2022 @07:22AM
(#32436861)
I learned most of what I know about Truffle and Graal from your blog posts, so you obviously know more about this than me. However, I was under the impression that Truffle is quite closely integrated into GraalVM, that is, you can't use Truffle on a different JVM. Is that not true?
[ Parent
| on HN ]
Re:TruffleC: A C implementation on top of JVM (2014)
by origin_path on Friday August 12, 2022 @07:30AM
(#32436915)
Not so. Truffle is just a Java library like any other. You can therefore run Truffle languages on any JVM. However, they will run slow as they are just interpreters, then. To get the speedups you need to use Graal, which recognizes Truffle as a library and treats it specially.
Re:TruffleC: A C implementation on top of JVM (2014)
by chaosite on Friday August 12, 2022 @07:43AM
(#32437021)
Well, OK, sure, but Truffle without partial evaluation is just an interpreter written in a very particular way...
I see what you mean though, thanks!
Re:TruffleC: A C implementation on top of JVM (2014)
by chrisseaton on Friday August 12, 2022 @07:46AM
(#32437039)
> Well, OK, sure, but Truffle without partial evaluation is just an interpreter written in a very particular way..
That's what it was to start with. Partial evaluation came later.
Re:TruffleC: A C implementation on top of JVM (2014)
by rschatz on Friday August 12, 2022 @08:07AM
(#32437245)
Truffle and partial evaluation also works on native-image. You could say this is a VM where there are no bytecodes anymore.
Re:TruffleC: A C implementation on top of JVM (2014)
by chaosite on Friday August 12, 2022 @08:09AM
(#32437271)
Oh, of course, but native-image is still a Graal feature, and I was asking about Truffle without Graal.
Re:TruffleC: A C implementation on top of JVM (2014)
by entropicdrifter on Friday August 12, 2022 @03:33PM
(#32442958)
native-image was created as part of the Graal project but I think it's a separate JVM implementation from GraalVM