[code-reflection] RFR: New Examples: Dialects and Dynamic Function Builds [v2]

Juan Fumero jfumero at openjdk.org
Tue Sep 9 09:18:02 UTC 2025


On Fri, 5 Sep 2025 13:57:07 GMT, Juan Fumero <jfumero at openjdk.org> wrote:

>> - `DialectSample`: Example of how to extends the code reflection `Op` to create a new dialect. 
>> - `DynamicFunctionBuild`: Example of how to create a new function dynamically to compute the inverse of a square root.  The code model is built dynamically for a new method and it is evaluated in the `Interpreter`.
>> 
>> How to run?
>> 
>> 
>> mvn clean package
>> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.DialectSample
>> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.DynamicFunctionBuild
>
> Juan Fumero has updated the pull request incrementally with one additional commit since the last revision:
> 
>   minor clean up

Thanks Paul for the feedback. I will make some modifications to adapt to these changes.

-------------

PR Comment: https://git.openjdk.org/babylon/pull/549#issuecomment-3269684846


More information about the babylon-dev mailing list