I'm working on an interpreter, and just recently discovered graal truffle, which promises fast performance if I use it to implement the interpreter. However, from what I can the mileage varies on the interpreter's code and how easily compiler can optimize it. The interpreter I'm working on has a feature of full continuations, which I implemented using CPS transformation and trampolining for TCO. If I port this to truffle, can I hope for decent performance, or is it something that just won't fundamentally work better than regular interpreter written in java due to architecture of the code?
Full CPS transformation viability when using truffle graalvm?
158 views Asked by Coderino Javarino At
1
There are 1 answers
Related Questions in GRAALVM
- graalvm installation/running in windows not working
- GraalVM: Polyglot applications: Java classes in C++ IDE (including documentation, debug support etc.)
- native-maven-plugin: combine reachability metadata with custom reflection config and predefined classes
- Support for multi tenancy in SpringBoot 3 native image
- how to make database driver support build with graalvm like quarkus jdbc extenstion
- Passing and Returning Java Map to GraalVM python
- Geotools not working with Spring Native GraalVm
- AWS Java on AWS Lambda Workshop : InvalidParameterValueException: Uploaded file must be a non-empty zip (GraalVM)
- Using Generational ZGC for JavaFX application running with GraalVM-21 takes warning about not supporting JVMCI, why?
- graalvm native-image. failed with exit status 30
- How to enable spring AOT compiling to executable while the project using spring-boot AbstractRoutingDataSource?
- Native Compile java.lang.NoSuchMethodException: org.apache.logging.log4j.message.DefaultFlowMessageFactory.<init>() exception for apache-poi
- Does using quick build mode for tests change functionality?
- How to correctly pass --initialize-at-build-time, --trace-class-initialization to native compilation using Maven and Spring Boot
- Failing to see why cast does not work in GraalJS
Related Questions in CONTINUATION-PASSING
- How to write fold_left in CPS?
- Antlr adding additional parameters to visit methods, accommodations for continuation passing style
- call/cc example in JavaScript
- How Kotlin coroutine internals decide should function be suspended or result can be returned immediately?
- Translating call/comp to equivalent CPS style in JS
- Why would wrapping recursive function in promise improves the performance?
- Continuation Passing Style in Haskell with Binary Tree
- Tail recursion elimination on conditional types doesn't work
- What are the continuation passing style conversion rules?
- Relationship between a higher order programming language, and contuation passing style?
- Why does converting the factorial function to iterative form by defunctionalizing the continuation give such a bad result?
- F# continuation recursion bug
- Scheme equal-tree procedure
- Full CPS transformation viability when using truffle graalvm?
- Simplify multiway tree traversal with continuation passing style
Related Questions in TRAMPOLINES
- Push notifications not working in android 12 after following behavior - changes guide
- Basic Hook vs Trampoline Hook
- Patching arm64 binary to replace all 'call' instructions to point to a specific function
- FoldRight over Infinite Structures in Scala using Trampolines
- Difference between .rdata and .text section of DLL
- Tail recursion elimination on conditional types doesn't work
- How to speed up the trampolined cps version fib function and support mutual recursion in python?
- Track notifications click without trampolines (forbidden in Android 12)
- Full CPS transformation viability when using truffle graalvm?
- Why doesn't Haskell need Trampolining?
- JS convert recursive function to trampoline
- How to combine TaskT with the monad instance of Trampoline to get stackless async computations?
- How to use the Trampoline type as the base monad of a transformer more efficiently?
- Trampoline based linked list (lisp tree) to string with cycles
- Using trampoline to create tree from nested arrays and covert that to string
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You need to make sure that continuations are constant e.g. partial evaluation must see a "constant" target through the trampoline. I haven't seen a CPS interpreter for GraalVM yet. The interpreter will be probably slower than AST or bytecode interpreters, but the compiled code should be as fast. For further technical questions please check https://github.com/oracle/graal/tree/master/truffle#community