3 ms·
https://github.com/webview/webview_deno https://github.com/webview/webview_deno Tell me how you'd do "native C/C++ FFI (to like a .so or .dylib or .dll)" betwe
by MuffinFlavored 1y ago
https://github.com/webview/webview_deno https://github.com/webview/webview_deno
Tell me how you'd do "native C/C++ FFI (to like a .so or .dylib or .dll)" between the webview using WASM or anything other than "WebKit's built in JSON-string based IPC"
Like a <button> that triggers a DLL call. How would you achieve it with WASM? How does WASM act as the bridge to the DOM and/or native? It doesn't, right?
- Evan-Almloff 1y agoMost of the optimizations apply equally to calling into webview JS from a native application for something like dom manipulation. There is a wry example that uses the system webview in the repo: https://github.com/ealmloff/sledgehammer_bindgen/blob/master/examples/wry.rs https://github.com/ealmloff/sledgehammer_bindgen/blob/master...
- MuffinFlavored 1y agohttps://github.com/ealmloff/sledgehammer_bindgen/blob/master/examples/wry.rs#L383-L426 https://github.com/ealmloff/sledgehammer_bindgen/blob/master... This is fetch(), which I have to imagine is much less performant than Electron with a require('native-module')