The brasilian PM groups are talking to build one kind of pseudo-interactive-perl-shell by web. The idea behind this pseudo-shell-interactive is to create e-learning course of Perl, where students will could do classes exercises direct on her/his web browser. Our first course will be PerlIntro.POD translated to e-learning course.
We think this could be very nice for Windows users, and for someone that just would like try Perl.
Well with this idea, now we are talking how to implement this on real world, and divided this implementation on 2 possible technology, as :
* Server-side
Where we will use a web browser (with JavaScript+AJAX) just to get the user command and run this command on Perl instance install at server.
Here we are afraid about security at server (there is a way to run this remote code in a safe way at server ?) and how big will be server to run many interactive users ?
* Client-side
Where we will use a web browser to work as pseudo-shell-interactive, embedding Perl on a Java Applet or other stranger technology.
I would like help to figure-out one good way to implement this pseudo-interactive-perl-shell by web, or just say "Don't waste time with this stupid idea :( !!!".
Thanks,
Can you explain why you chose a web browser talking to one server?
It sounds like you're trying to reinvent a wheel. Think about it: If you need people to talk to one central server, give them ssh accounts with a restricted shell and let them write and run Perl there. If you want to let them use Perl without having to install anything locally, suggest they use a Knoppix disk. (Can ActivePerl be run from a CD?)
I'm sorry to suggest that you look for another solution. Can you explain your requirements in more detail?
One would suppose they're wanting to rip off to imitate :) something like http://tryruby.hobix.com/.
Fletch and Cap'n Steve answered your question as I would. This idea is based on the "Try Ruby", where I could see a little about this languange without install anything on my machine, and why not do the same for Perl ?
Can ActivePerl be run from a CD?
I've been able to run Perl and TinyPerl from a BartPE CD as well as running PerlIDE to debug scripts under WindowsXP.
The big problem with using BartPE is that each user would have to build his/her own CD because of copyright. So I don't believe BartPE would be a good solution. However, as proof of concept it shows that you can get Perl to run off a CD on Windows.
Mike
I suppose you could do much the same thing with a secure server and user login system, but since you generally want to test your code locally before uploading it anyway, I don't see how this approach really improves things.
This will work well for a 'regular' course, but the idea here is just to 'try Perl' on the fly by web browser, if it's possible
perlmonks.org content © perlmonks.org and bioMan, BUU, Cap'n Steve, cdarke, Fletch, jpeg, shonorio, TedPride
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03