[code-reflection] RFR: Rename compute/kernel interfaces. [v2]
Paul Sandoz
psandoz at openjdk.org
Tue Dec 9 21:45:29 UTC 2025
> 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.
Paul Sandoz has updated the pull request incrementally with one additional commit since the last revision:
Rename to Compute and Kernel.
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/739/files
- new: https://git.openjdk.org/babylon/pull/739/files/01ddd40f..37ff8168
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=739&range=01
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=739&range=00-01
Stats: 85 lines in 24 files changed: 0 ins; 5 del; 80 mod
Patch: https://git.openjdk.org/babylon/pull/739.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/739/head:pull/739
PR: https://git.openjdk.org/babylon/pull/739
More information about the babylon-dev
mailing list