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

Username:   Password: 
 RegisterRegister   
 Turing Interpreter - ICS3U Final Project
Index -> Programming, Turing -> Turing Submissions
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
trishume




PostPosted: Wed Sep 07, 2011 5:52 pm   Post subject: Re: Turing Interpreter - ICS3U Final Project

How would you link the turing library functions to another language? If it's possible that's awesome. I could write an OpenGL drawing extension for turing.
Sponsor
Sponsor
Sponsor
sponsor
mirhagk




PostPosted: Thu Sep 08, 2011 6:45 am   Post subject: RE:Turing Interpreter - ICS3U Final Project

Well you would have difficulties doing it within Turing. But if the interpreter was written in like C++ for example, you could easily write the basic functions, and then just find the standard library and include those in every Turing program it runs.

From there it's just a matter of overriding each of the draw functions or something.

Actually this kind of gave me an idea to use Turing as an interface to communicate with another program that will run and take care of Turing's drawing. The only thing is getting the two programs to communicate, I could use the loopback address, or I could use a text file, but I'm not sure what the fastest way would be.
trishume




PostPosted: Thu Sep 08, 2011 3:02 pm   Post subject: Re: Turing Interpreter - ICS3U Final Project

The turing standard library is not written in turing. It is written in C or something. The turing source has not been released so you can not use the standard library in another language. Also, sockets and text files would both be way too slow for graphics.
mirhagk




PostPosted: Thu Sep 08, 2011 7:57 pm   Post subject: RE:Turing Interpreter - ICS3U Final Project

They have a folder of predefs.... I know that there are some functions that you will need to implement, but a lot of of the standard library are interfaces for just a couple core functions.
trishume




PostPosted: Fri Sep 09, 2011 6:44 pm   Post subject: Re: Turing Interpreter - ICS3U Final Project

cool. I'll have to take a look at that.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 20 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: