let me send relevant pictures to my friends while we chat
play

Let me send relevant pictures to my friends while we chat. Select a - PowerPoint PPT Presentation

Let me send relevant pictures to my friends while we chat. Select a picture from a collection Show pictures aligned with text Send pictures over a chat connection Locate relevant items Display a collection of pictures Confirm a selection


  1. ‘Let me send relevant pictures to my friends while we chat.’ Select a picture from a collection Show pictures aligned with text Send pictures over a chat connection Locate relevant items Display a collection of pictures Confirm a selection Builder Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); } }

  2. ‘Let me send relevant pictures to my friends while we chat.’ Select a picture from a collection Show pictures aligned with text Send pictures over a chat connection Locate relevant items Display a collection of pictures Confirm a selection Builder Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); } }

  3. Let people specify their instructions informally • avoid premature precision • more helpful to programmers • enable a new generation of flexible, FSE intelligent(?) programs 2010

  4. Managing Ambiguity by Example Kenneth C. Arnold and Henry Lieberman MIT Media Lab & Mind Machine Project {kcarnold,lieber}@media.mit.edu

  5. Informality Managing Ambiguity by Example Kenneth C. Arnold and Henry Lieberman MIT Media Lab & Mind Machine Project {kcarnold,lieber}@media.mit.edu

  6. Informality vs. Ambiguity • Specs and tests are formal but ambiguous. • Formal = controlled semantics; incl. programming languages.

  7. Select a picture from a collection Show pictures aligned with text Send pictures over a chat connection Executing informal descriptions is hard!

  8. Strategy: Examples Clarify Send relevant pictures to my friends Select a picture while we chat from a collection Send pictures over a chat connection Locate relevant items Display a collection of pictures Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); Builder } }

  9. Strategy: Examples Clarify Send relevant pictures to my friends Select a picture while we chat from a collection Send pictures over a chat connection Locate relevant items Display a collection of pictures Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); Builder } }

  10. Strategy: Examples Clarify Send relevant pictures to my friends Select a picture while we chat from a collection Send pictures over a chat connection Locate relevant items Display a collection of pictures Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); Builder } }

  11. Two hard parts • Acquiring and interacting with examples • Zones: integrate intent into development process • Finding appropriate examples for new queries • use code features and natural language background knowledge

  12. Progress on both fronts • Acquiring and interacting with examples • Zones : integrate intent into development process • Finding appropriate examples for new queries • ProcedureSpace : relates code and informal descriptions using code features and natural language background knowledge

  13. Zones Demo

  14. Backend: Code search? • At the lowest level (directly to code), if keywords match, maybe. • Finding vocabulary is a large part of the problem-solving process • Need to understand the relationship between code and statements of its purpose

  15. ProcedureSpace Relates Code and Descriptions natural language background knowledge descriptions follow kind of movement chase opposite of lead (forever forever > pointTowards: (pointTowards: "mouse") forever > forward: (forward: 10)) pointTowards: ~ forward: code fragments static analysis

  16. Informal Inference AnalogySpace (Speer et al., AAAI 2008)

  17. Informal Inference AnalogySpace (Speer et al., AAAI 2008)

  18. Informal Inference AnalogySpace (Speer et al., AAAI 2008)

  19. Informal Inference AnalogySpace (Speer et al., AAAI 2008)

  20. Informal Inference AnalogySpace (Speer et al., AAAI 2008)

  21. Informal Inference ������� ������� �������������������� �������������������� ��� ��� ��� ��� AnalogySpace (Speer et al., AAAI 2008)

  22. Can also blend multiple knowledge sources. Like code and descriptions. Blending (Havasi et al., IEEE Intelligent Systems 2009)

  23. ProcedureSpace Blends Code and Descriptions • Zones Annotations code fragments English features • Code Features Purpose Annotations English ConceptNet • static analysis now, concepts dynamic analysis soon? domain-specific knowledge code Static • Commonsense Knowledge structural Analysis features • Domain Knowledge

  24. Search Results Users searched for • gravity • follow player neither result was annotated

  25. Related Ideas • Keyword Programming: Match keywords, align types, synthesize code. (Little and Miller, ASE ’07) • Example-Centric Programming: integrated search for examples (Brandt et al., CHI ’10)

  26. Natural Language Programming • Many attempts to formalize or restrict natural language. • But that’s unnatural!

  27. Natural Language Programming • Many attempts to formalize or restrict natural language. • But that’s unnatural! • Imprecision is a feature.

  28. Tests, not code?

  29. ‘Let me send relevant pictures to my friends while we chat.’ Select a picture from a collection Show pictures aligned with text Send pictures over a chat connection Locate relevant items Display a collection of pictures Confirm a selection Builder Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); } }

  30. ‘Let me send relevant pictures to my friends while we chat.’ Select a picture from a collection Show pictures aligned with text Send pictures over a chat connection Locate relevant items Display a collection of pictures Confirm a selection Builder Chat { void sendPicture(Picture p) { byte[] data = p.serialize(); sendMessage(Messages.PIC, data); } }

  31. Let programmers be informal!

  32. Have you heard of x ? • Probably not. • Talk afterwards, or email: kcarnold@mit.edu • (thanks, Professor Forrest)

  33. Getting familiar with existing programs

  34. Try on Python, Java, ... the essence of the analysis is simple

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend