Posted: 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
mirhagk
Posted: 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
Posted: 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
Posted: 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
Posted: Fri Sep 09, 2011 6:44 pm Post subject: Re: Turing Interpreter - ICS3U Final Project