Closed thumbert closed 12 months ago
Hey @thumbert, nice to meet you!
If it's a synchronous callback on the same thread, you can use NativeCallable.isolateLocal
, see https://api.dart.dev/stable/3.2.2/dart-ffi/NativeCallable/NativeCallable.isolateLocal.html for documentation.
Thanks. I made it to work.
Hi,
I'm trying to make a Dart wrapper for GNU GSL. Unfortunately my C skills are not that strong, but I would like to learn my way into adding more functionality to Dart.
I have created a package gsl_dart where I've generated the C bindings and was able to call simple functions. I'm getting stuck on more complicated cases, for example this one dimensional minimization.
Can somebody help me translate this C example to Dart?
I found a Python example of this code which looks great. Ideally, I would like the final Dart version to look similar -- I can wrap the calls into classes, etc. but I need to figure out the C calls first.
Thanks, T