You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Activity
cdsmith commentedon Jan 1, 2022
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.