ToonTalk

ToonTalk

ToonTalk is a computer programming system intended to be programmed by children. The "Toon" part stands for cartoon. The system's presentation is in the form of animated characters, including robots that can be trained by example.

ToonTalk was influenced by the Janus computer programming language and the Actor model. The main communication abstraction in ToonTalk is the bird/nest pair. When you (the programmer or a robot) give an object to a bird, she flies to her nest and puts the object in it, then returns. If one or more objects already occupy the nest, the bird puts the new one underneath the others.

A ToonTalk program is a sequence of rules, where each rule has a head and a tail. The head is a pattern that can be matched against the argument, which must be a tuple. In ToonTalk's presentation, a rule appears as a robot, a program as a team of robots, and a tuple as a box that can have any number of holes or compartments in which objects may be placed. The alphabet of objects includes number pads, text pads, other boxes, robot teams, birds, nests, etc., etc. ("Object" here does not mean in the object-oriented programming sense, but rather in the everyday sense where if I give you an object, I don't have it anymore). A process consists of a box with a team of robots working on it. If none of the patterns matches the box, the process suspends. Otherwise, the first rule that matches, fires. The end of the tail of the rule can either destroy the process, or continue it with the same team. In case the pattern calls for something other than an empty nest where an empty nest is present, the process suspends until some bird should place something on the nest (usually as a result of the actions of other processes). A nest with something on it matches the pattern as though the nest were not there, just the (top) something. The actions in the tail also manipulate the something rather than the whole nest. Consequently, a nest can be used to program a future.

ToonTalk can be given an imperative reading or a declarative reading. If we ignore certain constructs designed to facilitate I/O, we can see ToonTalk as not having any shared access to mutable memory. The bird/nest mechanism resembles the communication in the Actor model, but with the additional power to be able to pass nests around and for a process to hold more than one nest (which is also true in Janus). A difference between communication in the Actor model and in ToonTalk is that ToonTalk preserves the order of the messages; however, ToonTalk can also provide an indeterministic merge of message streams.

External links

* [http://www.toontalk.com/ Main Site]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • List of programming languages by category — Programming language lists Alphabetical Categorical Chronological Generational This is a list of programming languages grouped by category. Some languages are listed in multiple categories. Contents …   Wikipedia

  • Visual programming language — A Visual programming language (VPL) is any programming language that lets users specify programs by manipulating program elements graphically rather than by specifying them textually. A VPL allows programming with visual expressions, spatial… …   Wikipedia

  • Stagecast Creator — is a visual programming language intended for use in teaching programming to children. It is based on the programming by demonstration concept, where rules are created by giving examples of what actions should take place in a given situation. It… …   Wikipedia

  • Alice (software) — Infobox Software name = Alice caption = Basic animation of an ice skater author = Carnegie Mellon University released = 1999 latest release version = 2.0 latest release date = April 5, 2005 programming language = Java genre = Educational license …   Wikipedia

  • Janus (programming language) — Janus is a computer programming language partially described by K. Kahn and Vijay A. Saraswat in [http://doi.acm.org/10.1145/97946.97955 Actors as a special case of concurrent constraint (logic) programming ] , in SIGPLAN Notices , October 1990.… …   Wikipedia

  • List of games supporting force feedback — This is a list of PC games that support force feedback.PC GamesAction/Adventure* Abomination * * Allegiance * * * B.F.R.I.S. * Black White * BreakNeck * Bugriders * Carmageddon II * Carmageddon TDR2000 * * * Cold Fear * Colin McRae Rally 2 * Colt …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”