[code-reflection] Integrated: Rename compute/kernel interfaces.
Paul Sandoz
psandoz at openjdk.org
Wed Dec 10 22:50:28 UTC 2025
On Mon, 8 Dec 2025 23:40:37 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Rename `QuotableComputeContextConsumer` to `Compute` and `QuotableKernelContextConsumer` to `Kernel`. Since we don't have `Quotable` anymore that prefix is redundant.
>
> Note that the following wil fail to compile since it is a compile time error to annotate the statically qualified type:
>
>
> import hat.Accelerator;
> ...
> accelerator.compute((@Reflect Accelerator.Compute)
> cc -> blackScholes(cc, call, put, S, X, T, r, v));
>
>
> We need to do this:
>
>
> import hat.Accelerator;
> import hat.Accelerator.Compute
> ...
> accelerator.compute((@Reflect Compute)
> cc -> blackScholes(cc, call, put, S, X, T, r, v));
>
>
> This could motivate making `Compute` a top-level FI.
This pull request has now been integrated.
Changeset: 4bf33c66
Author: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/4bf33c6637b86dcd04512370701e032a82d3c7db
Stats: 131 lines in 27 files changed: 3 ins; 12 del; 116 mod
Rename compute/kernel interfaces.
-------------
PR: https://git.openjdk.org/babylon/pull/739
More information about the babylon-dev
mailing list