Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #13 (closed enhancement: wontfix)

Opened 6 years ago

Last modified 4 years ago

Online compiler for examples and testing

Reported by: larsivi Assigned to: pragma
Priority: minor Milestone: 2.0
Component: Web frontend Version:
Keywords: Cc:

Description

Online compiler, put code in text field, get executable or object file back

Change History

05/05/06 12:50:41 changed by larsivi

  • owner changed from JJR to kylefurlong.
  • component changed from Documentation to Web frontend.

08/02/06 15:56:24 changed by larsivi

  • owner changed from kylefurlong to pragma.

02/01/07 13:57:19 changed by pragma

This should prove interesting. I've given it some thought, but there are a few unknowns that need some research and discussion.

  • Should it compile and return an object only, or should it attempt to execute online?
  • Should we allow coding, complete with "void main()", or do something akin to DSP, where the user is sandboxed.
  • What range of imports should be allowed (threading, filesystem, networking, etc.)?
  • If we opt to execute arbitrary code, how do we prevent run-away processes that eat gobs of CPU power? What about the process' permissions that runs the code?

I'm leaning towards DSP's model which relies upon DDL to work. Provided that porting all that to Tango proves easy (and it should), most of the above concerns (sans CPU usage) go away. The idea of thowing the user's code (almost verbatim) into a function, eliminates the use of import statements - which provides a huge amount of code security.

02/01/07 13:57:52 changed by pragma

  • status changed from new to assigned.

04/24/08 08:21:34 changed by mandel

Imo, a compiling service doesn't belong to the Tango site and the ticket can be closed.

Anyway, for those who only want to run D code online, there is codepad.org (mentioned in the Documentation section).

05/30/08 13:29:39 changed by larsivi

  • status changed from assigned to closed.
  • resolution set to wontfix.

'k - getting rid of this.