Daco Harkes

Results 410 comments of Daco Harkes
trafficstars

Another use case for this is async callbacks: we could potentially compile a function using the Dart API turning a callback into `Dart_PostCObject`. (Instead of implementing that in the VM...

@calvin2021y We have a prototype on https://dart-review.googlesource.com/c/sdk/+/246241/ if you know how to build the Dart SDK and want to try it out.

Yes! 😄 I'm making progress on a prototype that will enable us to use [NativeFinalizer](https://api.dart.dev/stable/2.17.1/dart-ffi/NativeFinalizer-class.html) with `HeapFree` without compiling C code separately. [Here is a sneak peak](https://dart-review.googlesource.com/c/sdk/+/246241/6/tests/ffi/isolate_independent/winheapfree_finalizer_test.dart). The magic is...

I have not. That might just be the perfect solution! The issue with `malloc` and `free` on Windows was that if you have two `dll`s and you allocate in with...

I've released package:ffi 2.0.0 - happy memory managing! 😀

> @dcharkes I think most of your concerns has been addressed once I merged from latest master. 👍 I think @lambdabaa is the one who should review the tflite aspect...

#### Low latency `dart:ffi`, because it's all synchronous. (Method channels are asynchronous.) #### High data volume I'm not familiar with the method channel characteristics when dealing with large amounts of...

> If I create a simple program that allocates pointers in a loop without freeing them, I see the RSS (Resident Size Set) creep up in the Dart dev tools...

This is causing the CI of `ffigen` to go red: https://github.com/dart-lang/ffigen/actions/runs/3029924189/jobs/4875652903

Also: ```dart @FfiNative('free') external void posixFree(Pointer pointer); @FfiNative('CoTaskMemFree') external void winCoTaskMemFree(Pointer pv); ```