lune-org/lune

Support for Foreign Function Interface (FFI)

SnorlaxAssist opened this issue · 3 comments

A more powerful way to access libraries to make lune more extensible. Similar to node-ffi.

  1. Allow Lune to directly call functions defined in libraries. This will enable more complex and high-performance features.
  2. Security should be considered heavily on this solely because execution could be unknown, something like prompting the end user once to allow libraries being used in running scripts via lune run.
  3. Some Use Cases
    • High-performance computing tasks within Lune.
    • Accessing system-level or third-party services.
    • Communicating with the GPU in Lune.
    • And more.

This would be great to have as an alternative, considering the ETA for native modules is currently unknown. +1.