Use Destinations in Foreign.Marshall.Pure / the System-Heap API
@Divesh-Otwani is already working on this.
Since Oct 8, 2020.
- Dominant language
- Haskell
- Stars
- 359
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
When using allocated system memory, we can avoid wasted use if we require that all memory we allocate is written to. (It might in fact turn out that we don't want this, or want things to be written to at-least once, or something.)
Describe the solution you'd like
Nonetheless, the feature requested is some kind of API like destination arrays where allocated memory is used only by some Memory a %1-> () function which is passed along to some HOF. The bottom line is you should not be able to allocate memory that you never use and free it.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.