native
native copied to clipboard
Dart packages related to FFI and native assets bundling.
C++ doesn't have a stable ABI, so direct interop isn't possible. Instead you should make a wrapper C API using `extern "C"`. There's a proposal to write a tool to...
To prepare for the downturn of the YAML API.
...which is fine if we don't do any tree-shaking for debug builds but it seems that we are doing "some" treeshaking which causes bugs such as https://github.com/dart-lang/http/issues/1838. We should find...
Let's say that we continue exposing the android activity via some method such as `Jni.androidActivity(int engineId)`. As long as we're running this on the main thread, in a synchronous method,...
ways to assess performance: - dart developer timeline events - Linux perf utility for Dart standalone (especially single-threaded/single-isolate performance) to see time spent in both Dart and native code some...
See https://github.com/dart-lang/native/pull/2670#discussion_r2409830494
When trying to improve the performance of a library using FFI, it could be useful to get timeline events for all FFI calls. These can be synchronous timeline events. For...
The current behavior of recording *all* `const` instantiations of an annotated class undermines this workflow. The report generated by `record_use` contains both 1. annotation usages (`@MyAnnotation(...)`), and 2. `const` instantiations...
We'd like to only rerun link hooks when they need to be rerun, and `resources.json`* is an input to link hooks. We can explore a few different options. 1. Always...
`dart test` runs in JIT mode, which means package authors can't use it to test that their link hooks and record-use annotations do the right thing. To make the tests...