full-stack-hello icon indicating copy to clipboard operation
full-stack-hello copied to clipboard

Native code seamless integration

Open pakls opened this issue 8 years ago • 2 comments
trafficstars

This is a naive idea at its infancy: Integrate this VM based code with native code.

Allowing them to invoke each other.

Some assumptions/limitations may have to be imposed to speed up the execution and data type conversion.

pakls avatar Jun 08 '17 14:06 pakls

Is it something like JNI?

jserv avatar Mar 05 '18 00:03 jserv

The target is:

func_in_hello_vm() can invoke func_native() and func_native() can invoke func_in_hello_vm().

But programmer does not need to implement this using function pointers. Since they were both ELF, a naiive idea is it should be possible to link each other and perform necessary ABI conversions.

What do you think?

On Mon, Mar 5, 2018 at 8:34 AM Jim Huang [email protected] wrote:

Is it something like JNI?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jserv/full-stack-hello/issues/41#issuecomment-370279428, or mute the thread https://github.com/notifications/unsubscribe-auth/AAzjSHgJB6T-fCFZnvk2Seg-_Q2kfgHEks5tbIgDgaJpZM4N0MaH .

pakls avatar Mar 05 '18 02:03 pakls