[code-reflection] Integrated: New Examples: Dialects and Dynamic Function Builds
Juan Fumero
jfumero at openjdk.org
Fri Sep 12 08:26:31 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?
>
> ##### Run DialectWithInvoke
>
>
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.DialectWithInvoke
>
>
> ##### Run DialectFMAOp
>
>
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.DialectFMAOp
>
>
> ##### Run DynamicFunctionBuild
>
>
> java --enable-preview -cp target/crsamples-1.0-SNAPSHOT.jar oracle.code.samples.DynamicFunctionBuild
This pull request has now been integrated.
Changeset: a9055a8e
Author: Juan Fumero <jfumero at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/a9055a8e867abb3b0765c9ba0559f34c51fd342a
Stats: 534 lines in 4 files changed: 532 ins; 1 del; 1 mod
New Examples: Dialects and Dynamic Function Builds
-------------
PR: https://git.openjdk.org/babylon/pull/549
More information about the babylon-dev
mailing list