5 Internals

This section contains information in the internals of Pyret, including its Javascript representations and FFI.

    5.1 Runtime API

      5.1.1 The Pyret Runtime

        5.1.1.1 Running Pyret Programs

        5.1.1.2 Creating Values

        5.1.1.3 Interacting with Objects

        5.1.1.4 Assertions

        5.1.1.5 Equality

        5.1.1.6 FFI Helpers

    5.2 FFI Helpers

      5.2.1 Equality

      5.2.2 Exceptions

      5.2.3 Lists

      5.2.4 Other Data Helpers

    5.3 Running Code (Safely)

      5.3.1 JS Pretending to be Pyret

      5.3.2 Asynchronous JS and Pyret

      5.3.3 Starting a New Pyret Stack

        5.3.3.1 Synchronous vs. Asynchronous Execution

        5.3.3.2 Result Data Structures

    5.4 Module Representation

      5.4.1 Representation

        5.4.1.1 Single Modules

        5.4.1.2 JavaScript Interop Example (node)

        5.4.1.3 Complete Programs