3 ms·
Interesting approach. I think Project Babylon did the same thing https://github.com/openjdk/babylon/blob/code-reflection/hat/optkl/src/main/java/optkl/ifacemapp
by joe_mwangi 5mo ago
Interesting approach. I think Project Babylon did the same thing https://github.com/openjdk/babylon/blob/code-reflection/hat/optkl/src/main/java/optkl/ifacemapper/SegmentMapper.java https://github.com/openjdk/babylon/blob/code-reflection/hat/...
I had tested it and it's quite fast. Actually, you don't need to generate any bytecode on the fly. Problem is when you deal with array as fields, implementation becomes difficult. You can revisit if interested to come back to such an implementation one day.