codeworld icon indicating copy to clipboard operation
codeworld copied to clipboard

Support running code from GitHub

Open 3noch opened this issue 3 years ago • 1 comments

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.

3noch avatar Dec 30 '21 22:12 3noch

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.

cdsmith avatar Jan 01 '22 03:01 cdsmith