BorrowScript icon indicating copy to clipboard operation
BorrowScript copied to clipboard

Use FFI for consuming external libraries (Rust and C++)

Open InDIOS opened this issue 4 years ago • 3 comments

Would be a great idea to use FFI to communicate with Rust and C++ libraries, like Deno does. This could be easy to use and easy to understand for beginners, depending of the implementation you choose.

InDIOS avatar Nov 14 '21 20:11 InDIOS

WASM?

marcus-sa avatar Nov 15 '21 23:11 marcus-sa

WASM FFI could actually be really cool; see https://wasmer.io/.

On Mon, Nov 15, 2021, 6:16 PM Marcus S. Abildskov @.***> wrote:

WASM?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alshdavid/BorrowScript/issues/42#issuecomment-969423902, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGDQCMTAY2KW53CVXW4SDN3UMGID7ANCNFSM5IAHZZCA .

SuperSonicHub1 avatar Nov 15 '21 23:11 SuperSonicHub1

For sure, sounds like a great way to dynamically access external functionality - can follow a similar approach to Deno.

A WASM FFI would be very interesting for sure!

alshdavid avatar Apr 03 '22 23:04 alshdavid