[code-reflection] RFR: New Examples: Dialects and Dynamic Function Builds
duke
duke at openjdk.org
Fri Sep 5 13:57:08 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 dbde9d0bd45ac42d526e76b373e37e060ce5755f) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/babylon/pull/549#issuecomment-3258431218
More information about the babylon-dev
mailing list