David wrote:
> Thomas Hruska a écrit :
>> David wrote:
>>   
>>> Funny since they are the solutions.
>>>     
>> Drat.  You beat me to the reply.
>>
>>   
> 
> I will mark this day with a white stone (as we say here) :)
> (I am not sure how to translate this)
> 
>> Sometimes I wish there was an Internet-based "compile and run online" 
>> site where you can paste some C/C++ code and it compiles and runs _on 
>> the host_ and displays the result all within a single browser session. 
>> Behind the scenes, it would run in a temporary sandbox environment set 
>> up solely for that compile and run (protecting the main environment from 
>> malicious code).  Then people wouldn't be lazy and not try out example 
>> code before making replies like the above.
>>
>>   
> 
> The online judge of the ACM problem set site is near to what you dream of.
> Perhaps.
> 
> I don't think It will be to much difficult to made one.

"Dream of" might be too strong of a phrase.  "Wish for" is better.

The ACM problem site (Valladolid - or something like that) judging 
script is pretty sophisticated but they don't allow things like file I/O 
or sockets - which significantly simplifies things.  Throw file I/O into 
the mix and security of the system becomes a nightmare...but you need 
file I/O for a lot of basic examples people post on c-prog.  Not for 
this example, but others.  There's a lot that can go wrong and not much 
that can go right.  Their system also depends on sending e-mail results 
because problems are processed through a queue.  I want something that 
puts the results in the same browser session (probably involving AJAX'ey 
goodness).  And it would also be nice to have a "virtual console" via 
AJAX where you can type stuff into a 'cin'ed app. and have the typed 
letters be forwarded from the browser to the app.

This would be a great project for a student who's brain is gnawing its 
way out in class.  That is, you fully comprehend what is being taught 
and are bored to tears and want something useful and HARD (yet extremely 
cool) to do.  This is not an easy project when you place the security of 
the host system at top-priority and yet want to allow file I/O, sockets, 
and other things.  Blocking those things is easy.  Allowing such things 
makes security of the host hard to impossible.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* VerifyMyPC 2.3
Change tracking and management tool.
Reduce tech. support times from 2 hours to 5 minutes.

Free for personal use, $10 otherwise.
http://www.CubicleSoft.com/VerifyMyPC/

Reply via email to