tweag / tweag/linear-base

Use Destinations in Foreign.Marshall.Pure / the System-Heap API

Open
#249 0 comments 0 reactions 1 assignee View on GitHub

@Divesh-Otwani is already working on this.

Since Oct 8, 2020.

type: feature request
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.