Skip to content

Writing Native Code and Signatures

Tom Magrino edited this page May 17, 2018 · 1 revision

Sometimes it's useful to integrate Fabric or FabIL code with "native" Java code and libraries. This can benefit Fabric and FabIL programs both in terms of enabling integration with useful existing Java libraries as well as provide opportunities for improved performance through using inlined Java values in place of full fledged Fabric objects in persisted fields.

Warning: using signatures and native code in Fabric and FabIL programs is unsafe and tricky to do well. Doing so can risk difficult to debug errors in your programs and it is likely there are unknown bugs in the Fabric compilers and runtime that using native code may expose. Think of it as both an alpha feature and analogous to using the JNI features of Java. Proceed at your own risk.

Native Code in FabIL

TODO.

Native Code in Fabric

TODO.

Clone this wiki locally