• Final SRFI 172: Two Safer Subsets of R7RS

    From Arthur A. Gleckler@21:1/5 to All on Sun Nov 10 22:29:20 2019
    Scheme Request for Implementation 172,
    "Two Safer Subsets of R7RS,"
    by John Cowan,
    has gone into "final" status.

    The document and an archive of the discussion are available at <https://srfi.schemers.org/srfi-172/>.

    Here's the abstract:

    This SRFI provides two libraries for use with R7RS that provide a way
    to sandbox the eval procedure to make it safer to use in evaluating
    Scheme expressions of doubtful provenance. The intention is to call
    eval, passing it an S-expression representing a Scheme procedure and
    the environment defined by one of these libraries. Since code
    evaluated by eval runs in a null lexical environment, the resulting
    procedure can then be invoked with less concern about possible side
    effects.

    Use of these libraries does not provide any sort of safety guarantee.
    There are still many loopholes uncaught, including attempts to process
    circular structure and over-allocation of memory. The claim is only
    that the probability of such an attack is reduced, not that it is
    eliminated. However, using these libraries is a simple provision that
    is easy to implement and easy to use. For higher safety, it can
    readily be combined with other provisions.

    Note that some minor changes were made in response to comments made
    during the last call period. Here are the diffs:

    <https://github.com/scheme-requests-for-implementation/srfi-172/compare/9f3ae0d9..8a8218a6>

    Many thanks to John and to everyone who contributed to the discussion
    of this SRFI.

    Regards,


    SRFI Editor

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)