[vm/ffi] ☂️ Exploration of dart:ffi2
using new language features
#54504
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
type-enhancement
A request for a change that isn't a bug
Dart has gotten a fair amount of new language features since the
dart:ffi
API was designed. The most notable recent feature is extension types. We should explore whether it would be worth introducing a new FFI API that would leverage new language features.Things to explore:
Pointer
s as extension types onint
.Pointer
andTypedData
.int
, and floating native types as views ondouble
.There are a lot of technical complexities to consider as well:
Pointer
addresses on 32 bit are not 64 bit integers.TypedDataBase
which is not visible in the user type hierarchy.Related issues:
FfiNative
s more concise #50097The text was updated successfully, but these errors were encountered: