Hi Esteban,
I encountered this problem a few months ago.
I tried to document FFI with a serie of stackoverflow questions
After a deep analysis, I think that FFI needs a serious refactoring (plugin code + image code).
Been there, done that :)
UFFI is a complete revamp of the image side code.
I didn���t touch the backend (since our philosophy is to put as much as possible into the image, this was possible) but I think it needs a serious re-think at least in two fields:
- basic types needs to be the generic (uint32, uint64, etc.).
- external datas have no meaningful use and it adds complexity.
- callback logic needs to be moved from Alien to FFI
But I have stopped that work in the middle... (no time available for a few months).
The next thing I wanted to do is to study all your efforts with UFFI, and how you found workarounds for other pitfalls like
Solved in UFFI.
Cheers,
Esteban