It depends on the integration use case. For example, if I were writing a plugin system for my C# app, safety would take precedence over performance, and using WASM modules would make more sense. If I had some performance-critical code in Zig, then P/Invoke would be the way to go. However, in most cases, it's better to avoid P/Invoke, as C# is already a very performant language.
dgellow|1 year ago
I want the editor to be usable in other GUI stacks, a C-compatible library is the only approach that makes sense here
superfist|1 year ago