Skip to content

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

@georgewsinger

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?

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