Funneling Objects through void*
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Thu Jun 15 20:51:22 UTC 2023
On 15/06/2023 20:30, Johannes Kuhn wrote:
> Yes, it does seem wasteful. Might not be that bad, but it feels wrong,
> especially if you got a void* parameter for that kind of thing for free.
I believe this is the crux of the issue.
The native API is "telling" you to be used one way, but the capabilities
of FFM point in a sligthly different way. And even though
expressiveness-wise there's not a lot of difference (ultimately you can
do the same things regardless of the approach) you're left with some bad
taste in your mouth because the native API did provide the capability
you needed, but you had to invent another mechanism to solve effectively
the same problem.
Given there's alternatives, I keep seeing this as a "nice to have"
rather than a blocker - but it's definitively on the list of potential
improvements.
Maurizio
More information about the panama-dev
mailing list