[code-reflection] RFR: New Examples: Dialects and Dynamic Function Builds
duke
duke at openjdk.org
Fri Sep 5 13:19:46 UTC 2025
On Fri, 5 Sep 2025 11:01:34 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
@jjfumero
Your change (at version 46bf9c9523babac4ea1a646a94efa6172588e1fc) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/549#issuecomment-3258325381
More information about the babylon-dev
mailing list