Frank Mitchell

Computer Science 310 notes, part 4

Still more notes from Bruce Bolden’s Computer Science 310 course, “Programming Languages”. Part 3 can be found someplace else.

2 May 2005

Presentations today! Yay for learning new languages!

Mumps

Example of slots:

SET A = "abc"
SET A(1,2) = "def"

Here’s a global:

SET ^A("first_name") = "Bob"

The VA also uses this.

Cg

http://developer.nvidia.com

http://cgshaders.org/

More Mumps

Division:

/ returns decimal answer
\ returns truncated integer

Ada

Python

Icon

Example of output:

write("This is output number ", var)

Example of goal driven:

if < (x | 5) then write("y = ", y)

http://www.cs.arizona.edu/icon/

Sather

http://www.icsi.berkeley.edu/~sather/

Mumps

http://google.com/search?q=mumps+language

Mumps

“Mumps is a lousy language with one great data type.”

Ada

http://gnat.com/

http://sw-eng.falls-church.va.us/ajpo_databases/ada95_validated_compilers.html

Lucid

Mercury

If-then-else:

(if Goal then
    do this
;
else
    do that
).

Goal:

(Goal -> expression1 ; expression2).

Switches:

(
    Comparison 1
    Clause 1
;
    Comparison 2
    Clause 2
).

Tcl

More Tcl

http://www.tcl.tk/

http://www.activestate.com/

StarLogo

http://education.mit.edu/starlogo/

Haskell