Consider expanding ExternResult to allow for non-pointer "result" data #252
Labels
No labels
A-build
A-cli
A-core
A-design
A-edn
A-ffi
A-query
A-sdk
A-sdk-android
A-sdk-ios
A-sync
A-transact
A-views
A-vocab
P-Android
P-desktop
P-iOS
bug
correctness
dependencies
dev-ergonomics
discussion
documentation
duplicate
enhancement
enquiry
good first bug
good first issue
help wanted
hygiene
in progress
invalid
question
ready
size
speed
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: greg/mentat#252
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'd like to explore reifying data (if that's a correct use of this term) which we may want to return over the FFI channel.
As I'm working on #698, a common pattern is:
I want to avoid having to manage memory across FFI, as that complicates matters. The only thing an external consumer may need is data itself, not internal pointers to data.
A trivial generalization may be, "for a given query/operation, give me result value (a string, a number, an array, a map, a ...), or an indication of absence, or fail gracefully". Data itself is a representation of some internal system state at a point in time, but not necessarily a reference to that state.