|
||||||
The Turing Programming LanguageUsing the Language of Alan Turing, father of modern computingWhile thousands call for an apology for the treatment of Alan Turing, computer programmers can use the language inspired by the father of modern computing
In 1952 Alan Turing (often called the father of modern computing) underwent a procedure that most people would find unacceptable today. He was chemically castrated and, even though he was famous for his WWII code breaking work at Bletchley Park, all of his security privileges were revoked at GCHQ (the UK Government Communications Headquarters). Two years later he was dead, having taken committed suicide at the age of 42 by taking cyanide. And the crime that ruined his career and ultimately ended his life? He was homosexual. Now the BBC reports that at long last thousands call for Turing apology. Whilst many programmers will be well aware of the legacy of Alan Turing, and may even have signed the petition requesting that the British Prime Minister to apologize for the prosecution of Alan Turing that led to his untimely death, they may not be aware that there is a programming language that bears his name. The Turing Programming LanguageThe Turing Programming language has, of course, no direct links to Alan Turing himself. Ric Holt and James Cordy, from the University of Toronto, developed Turing in 1982. They developed it as a teaching language and it is still used in many Ontario high schools. Obtaining the Turing Programming LanguageThe Turing programming language was produced by Holt Software Inc. who have since ceased operating. However, before they went out of business they placed the language into the public domain and so the files for the language can now be found on the Computer Science Canada web site. These files consist of:
The programmer will need to:
Once that's all been done then the programmer will find that they have a new folder containing the Turing executable. Creating a Simple Turing ApplicationThe programmer starts the Turing programming language by double clicking on the Turing application (as shown in figure 1 at the bottom of this article), and that will open up the IDE (as shown in figure 2). This can then be used by the programer to enter Turing's simple and clean syntax, for example: var a: int
a:=5
put "The number is ", a
Here an integer is defined and then displayed (as shown in figure 3). The file can now be saved and reused and required. The Turing Programming Language and User InputsThe "put" method displays information on the screen and so, quite logically, the "get" method obtains an input from the user, for example: var ip: real
put "Enter an angle in degrees:"
get ip
put "The cosine of ", ip, " is ", cosd(ip)
The result of this can be seen in figure 4 and, although simple, shows how quickly a useful application can be development. This is even more useful when the programmer considers that Turing has:
And so, as well as an effective teaching tool for high school students, Turing is also a powerful language for the professional programmer. BNC101
The copyright of the article The Turing Programming Language in Computer Programming Languages is owned by Mark Alexander Bain. Permission to republish The Turing Programming Language in print or online must be granted by the author in writing.
|
||||||
|
|
||||||
|
|
||||||