Skip to content

Support running code from GitHub #1558

Open

Description

@3noch

The codeworld-api package plus the amazing Haskell IDE in VSCode means there is a fantastic local development story for CodeWorld. But I'd still like the ability to share my creations with others. Ignoring complex issues like dependencies, Code.World could allow GitHub to be an alternative storage provider of source code. Sharing the runnable program could be as simple as using a URL with a GitHub link in it.

Activity

  1. cdsmith commented on Jan 1, 2022

    @cdsmith
    Collaborator

    I have no objection to this. I suspect it could be implemented entirely on the client. See https://github.com/google/codeworld/blob/master/web/js/codeworld.js#L297 for the existing code that loads a hash from a URL. You could presumably add a new hash style and load the source from GitHub instead of the CodeWorld server. In fact, perhaps you could allow code to be loaded from an arbitrary URL.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions