Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Running Turing from a website
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
s3arkay




PostPosted: Fri Sep 22, 2006 9:22 am   Post subject: Running Turing from a website

I heard from my friend that you can put a Turing program onto a website.

Does anyone know how to do that?

Lets say someone visits my website, and then I want the turing program to run on the certain page without them downloading or hitting anything.

Any ideas?
Sponsor
Sponsor
Sponsor
sponsor
do_pete




PostPosted: Fri Sep 22, 2006 10:41 am   Post subject: (No subject)

It's impossible to do that as far as I know.
Tony




PostPosted: Fri Sep 22, 2006 12:06 pm   Post subject: (No subject)

thx for your comment, but it is entirely possible.

Remember CGI? That old school setup where a compiled executable would handle dynamic web requests?
Quote:

A CGI program can be written in any language that allows it to be executed on the system

such as Turing!
It could even serve up images that it generates and saves to a temp folder.

So yeah, one could use Turing to run a website. It's just that noone has been using CGI for years (ever since PHP and such hit the main stream).

Unless ofcourse you mean an embedded applet such as Java... then no, no you can't
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
s3arkay




PostPosted: Fri Sep 22, 2006 2:10 pm   Post subject: (No subject)

Tony wrote:
thx for your comment, but it is entirely possible.

Remember CGI? That old school setup where a compiled executable would handle dynamic web requests?
Quote:

A CGI program can be written in any language that allows it to be executed on the system

such as Turing!
It could even serve up images that it generates and saves to a temp folder.

So yeah, one could use Turing to run a website. It's just that noone has been using CGI for years (ever since PHP and such hit the main stream).

Unless ofcourse you mean an embedded applet such as Java... then no, no you can't



How do you use cgi then? lol
s3arkay




PostPosted: Mon Sep 25, 2006 2:23 pm   Post subject: (No subject)

anyone know how to do it?
NikG




PostPosted: Mon Sep 25, 2006 5:39 pm   Post subject: (No subject)

Well #1 is you'll need a site that supports CGI.
#2, you'll need permission to run apps on that site.

#1 might be hard because, like Tony said, php is the new thing.
#2 is probably impossible! If sites allowed people to run their own apps, there's no telling what could happen (although I'm sure you have nothing but good intentions).
richcash




PostPosted: Mon Sep 25, 2006 6:19 pm   Post subject: (No subject)

Well, I know nothing at all about CGI, but I'm just wondering if you could make your own website and implement CGI (does anyone know whether it's free or not?). Why couldn't you use a web page? (which I'm sure you couldn't, or people would do it!)
Tony




PostPosted: Mon Sep 25, 2006 6:37 pm   Post subject: (No subject)

sites allowing people to run applications? Shocked Ok, probabably not for free..

Though it's pretty easy to set up your own computer to run an Apache webserver and anything else you would like.

But the bottom line is that it's simply more practical to use an embedded, interpreter language to power the dynamic content of any web page. So s3arkay - why Turing?
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
BenLi




PostPosted: Tue Sep 26, 2006 3:12 pm   Post subject: (No subject)

im gonna take a wild guess... either he's just curious or its the only language he knows
s3arkay




PostPosted: Fri Sep 29, 2006 5:12 pm   Post subject: (No subject)

BenLi wrote:
im gonna take a wild guess... either he's just curious or its the only language he knows


Both... but I guess Im not going to be able to lol
Dan




PostPosted: Fri Sep 29, 2006 6:47 pm   Post subject: (No subject)

You could also make your own webserver in turing (witch i have seen done befor) and then you could make it output what every you whonted.

How ever with CGI or making your own webserver your output will be limted to html/xml and such formates. Witch means you could not make an embed game like you whould with java applets or have anything behond what you get with a html webpage.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
wtd




PostPosted: Sun Oct 01, 2006 1:09 pm   Post subject: (No subject)

Tony wrote:
It's just that noone has been using CGI for years (ever since PHP and such hit the main stream).


PHP scripts are CGI applications. That fancy new Rails app? It's a CGI application.

http://en.wikipedia.org/wiki/Common_Gateway_Interface
Tony




PostPosted: Sun Oct 01, 2006 4:06 pm   Post subject: (No subject)

That's a good point.. I should have known that Smile

I mean just the use of pre-compiled executables. And before I get corrected on that as well, I am aware of using Java with WebSphere / WebLogic (and the like), and they get a category of their own Razz
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 13 Posts ]
Jump to:   


Style:  
Search: