Skip to content

To what extent does inline-rust allow for memory safety? #21

Description

@georgewsinger

This is a theoretical question and perhaps not the best place to ask except I wanted to hear the author's perpsective: to what extent could one achieve memory safety (with Haskell FFI + inline-rust) if one were to

  1. Use inline-rust for all FFI calls.
  2. Avoid using any Foreign.Ptr.* calls (or any other functions) which have the capacity to manipulate pointers from outside the purview of the rust compiler.

If one followed these two rules, could one achieve memory safety in a Haskell project that uses lots of FFI?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions