77 Mass Ave.

(Page 3 of 9)

  • July 2005
  • By MIT News Staff

Speaking the Same Language
A Media Lab project makes programming more natural
By Lisa Scanlon

Hugo liu '01, Mng '02, a doctoral candidate at the Media Lab, remembers a particularly grueling introductory programming class he took as an undergrad: it was "pretty hellish," he recalls. This was partly because programming languages, he says, are "rigid and unaccommodating to people's natural input." Liu, who is interested in cognitive linguistics, wondered whether he could make programming more intuitive by having a computer derive code directly from natural language. The result was an interface, called Metafor, that translates English sentences into fragments of code. For example, noun phrases are interpreted as program objects, and verbs are interpreted as functions. Although Metafor doesn't produce complete programs, it can be used as a brainstorming tool to teach students how to write better code and to help programmers outline large projects, Liu says.

To use Metafor, programmers simply type in sentences--such as "Pac-Man is a character who loves to run through a maze and eat dots"--that describe the programs they want to write. Metafor parses the sentences into verbs, subjects, and objects and then translates those pieces into series of properties, functions, and if-then rules. By seeing how their sentences translate into code, students learn how to rephrase their statements to result in more-efficient programs, Liu says. In a paper he presented earlier this year, Liu described how Metafor could help beginning and intermediate programmers code faster.

Print

Close Comments

To comment, please sign in or register

Forgot my password

Guest (xiaqing)

  • 2108 Days Ago
  • 05/07/2006

how to inprove skill and company

please tell me the mistake in the game,how to correct it. footwork,poise,top line,music,et. make friends with me. i love freedom live and imaging mind in the ballroom dance. my web is www.seehaha.com/who/4278 , my email: xiaqing1964@hotmail.com my home phone:08602558818439 warm welcome may be you shall tour round china ,i can help you.

Reply

Advertisement

MAGAZINE

Can We Build Tomorrow's Breakthroughs?

Manufacturing in the United States is in trouble. That's bad news not just for the country's economy but for the future of innovation.

Videos

Meet 2011 TR35 Winner Jesse Robbins

More

Advertisement

Technology Review Lists

TR50

Our list of the 50 most innovative companies, including the following:

BIND Biosciences

ARM Holdings

Google

Twitter

More

Advertisement
Advertisement