Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code execution #65

Open
buhman opened this issue Dec 16, 2014 · 3 comments
Open

code execution #65

buhman opened this issue Dec 16, 2014 · 3 comments

Comments

@buhman
Copy link
Member

buhman commented Dec 16, 2014

because @polyzen is too shy to open this himself, I'm opening it.

It's desired to execute code and provide stdout similar to how codepad does things.

I imagine we'd sandbox execution in containers, where each execution enters a copy-on-write btrfs snapshot. We could limit resource utilization and execution time via normal container mechanisms.

I've heard something about the html form being bloat; so this wouldn't involve writing anything AJAXy, nor would it involve blocking the POST until the paste is complete. Instead we'd return http code 202 ACCEPTED on POST. It's likely also an appropriate response for GET when we're (still) not ready yet.

We'll also need to make sure we do cache invalidation when we're ready. Likely the container master general would do an internal callback request to give the results.

Questions:

  • How do we want to format the result? Should it just be a normal paste?
  • What languages do we want to support initially? Python? C? Anything else?
@HalosGhost
Copy link
Contributor

additionally, the option to support specific compilers/interpreters would be very cool (e.g., clang instead of gcc or luajit instead of lua).

@buhman buhman assigned buhman and unassigned jdppettit Dec 16, 2014
@buhman
Copy link
Member Author

buhman commented Dec 16, 2014

I don't feel like @silverp1 fully understands this, however he seemed ok with the idea. Will proceed.

@polyzen
Copy link

polyzen commented Dec 16, 2014

Pretty sure you mean @GermainZ ;)

@buhman buhman removed their assignment Apr 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants