dj
dj
DDeno
Created by dj on 7/26/2023 in #help
Node-API related segmentation fault
that’s probably a case to not worry about 😆 in standard conforming C/C++ implementations, I guess it is possible to reliably set a function pointer to null.
11 replies
DDeno
Created by dj on 7/26/2023 in #help
Node-API related segmentation fault
I created an external with no finalizer callback (nullptr) and - deno just treats it as normal c callback and goes ahead to call it sometime - node will check if its null then its not called
11 replies
DDeno
Created by dj on 7/26/2023 in #help
Node-API related segmentation fault
seems that finalizer cb being null is not handled correctly in deno
11 replies
DDeno
Created by dj on 7/26/2023 in #help
Node-API related segmentation fault
So the error comes down to napi_create_external
11 replies
DDeno
Created by dj on 7/26/2023 in #help
Node-API related segmentation fault
11 replies
DDeno
Created by dj on 7/26/2023 in #help
Node-API related segmentation fault
cc @littledivy any idea?
11 replies
DDeno
Created by Bustin Base on 6/25/2023 in #help
What is the right way to bundle native modules?
currently there’s no realistic way to install before runtime
6 replies
DDeno
Created by Bustin Base on 6/25/2023 in #help
What is the right way to bundle native modules?
but it fetches at runtime
6 replies
DDeno
Created by Bustin Base on 6/25/2023 in #help
What is the right way to bundle native modules?
many ffi modules use plug: https://deno.land/x/plug
6 replies
DDeno
Created by javi on 2/24/2023 in #help
FFI Difference between buffer and pointer
If you're only passing typed arrays (prefer Uint8Arrays as they can be optimized in Deno FFI), use buffer type. If you're only passing pointers that some other function returns, use the pointer type. Using pointer type + Deno.UnsafePointer.of(TypedArray) it will have some performance overhead due to additional call. Prefer buffer type for passing typed arrays
5 replies