80 likes | 286 Views
Tcl. Alex Kampe Andrew Rush. About and History. Stands for Tool Command Language Used for rapid prototyping, GUIs, and scripted applications Created by John Ousterhout in 1988 out of frustration Currently 500,000+ active developers of Tcl. About and History, cont’d.
E N D
Tcl Alex Kampe Andrew Rush
About and History • Stands for Tool Command Language • Used for rapid prototyping, GUIs, and scripted applications • Created by John Ousterhout in 1988 out of frustration • Currently 500,000+ active developers of Tcl
About and History, cont’d • All data types can be manipulated as strings • All operations are commands • Was designed to interface with the C language, but also interfaces with C++, Java, and other languages now • “Safe Tcl” developed for using within email messages
AcessingTcl from RUCS • Logon to RUCS. • At the prompt, enter tclsh. • You can then enter commands and run a Tcl script!
Tcl vs. Java TCL: set out [open file.txt a] Java: • PrintWriter out = new PrintWriter(new FileOutputStream("file.txt",true));
Tcl vs. Java, cont’d TCL: set numbers [expr 1+2] set text “hello” puts “$numbers” puts “$text” Java: int numbers = 1+2; string text = “hello”; System.out.println(numbers); System.out.println(text);
References • http://en.wikipedia.org/wiki/Tcl • http://www.eweek.com/c/a/Application-Development/Tcl-Programming-Language-20-Things-You-Dont-Know-865925