Skip to content

Isolate cells #8

@WASDetchan

Description

@WASDetchan

Currently, bight uses lua environments to isolate cells. Each cell evaluation has it's own _G, which is deleted after the evaluation. That _G provides access to some shared (between cells evaluated on the same interpreter) tables, such as math. Data may be shared trough them, including GET function, which may result in it outliving its lifetime and causing UB on next use.
Possible solutions:

  • Forbid access to those tables completely, and only allow math through the re-exported functions
  • Make those tables read-only (how?)
  • Allow sharing data in general, but solve the problem of sharing GET (how?)

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