1 / 18

Tangle: A General Purpose, Concurrent, Object Oriented, Actor Based Programming Language

Tangle: A General Purpose, Concurrent, Object Oriented, Actor Based Programming Language. Chris Wailes and Graham Price. Buzzword Soup. General Purpose Not designed for a specific application domain or machine architecture Concurrent and Object Oriented

horace
Download Presentation

Tangle: A General Purpose, Concurrent, Object Oriented, Actor Based Programming Language

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tangle: A General Purpose, Concurrent, Object Oriented, Actor Based Programming Language Chris Wailes and Graham Price

  2. Buzzword Soup • General Purpose • Not designed for a specific application domain or machine architecture • Concurrent and Object Oriented • Every object is viewed as being executed concurrently • Actor Based • Message passing acts as serialization point

  3. Why a New Language? • Concurrency is a new concern for the average programmer •  Fortran, C, Java • Fighting to add concurrency to a serial paradigm is a loosing battle • Concurrency is HARD • Execution environment • How many cores do you write your code for?

  4. Current Concurrent Languages Issues • Erlang (1986) • Actor model • Functional language tradition • Fortress (2008) • Chapel (2010) • Clik (2009) • Orc (2009) • Titanium (2005) • Kilim (2008) • Extended Java • x10 (2004) • ZPL (2005) • HPF(1993)

  5. Current Concurrent Languages Issues • Erlang (1986) • Actor model • Functional language tradition • Fortress (2008) • Chapel (2010) • Clik (2009) • Orc (2009) • Titanium (2005) • Kilim (2008) • Extended Java • x10 (2004) • ZPL (2005) • HPF(1993) • Annotations (Death) • Concurrency Constructs • Limited Parallelism

  6. The Tangle Architecture Tangle To LLVM Bytecode

  7. The Tangle Architecture Runtime to LLVM Bytecode

  8. The Tangle Architecture Clang + Response Closure Linker Pass -> Native Binary

  9. Concurrency in Tangle • Parallelism extracted by the runtime environment • Asynchronous message sends • Futures • Hints can be given to the runtime • Runtime is smart (or it will be) • Load balancing • Data locality • Can identify hot objects

  10. The Tangle Runtime Environment

  11. The Tangle Runtime Environment

  12. The Tangle Runtime Environment

  13. The Tangle Runtime Environment

  14. The Tangle Runtime Environment

  15. Tangle Example class DSApp     state         :Peer NextPeer     end     def skip         NewPeer = NextPeer get next; get next         print (NewPeer get name)         transition NextPeer -> NewPeer     end end

  16. The Only Serial Tangle Program class Serial     state     end     def main         1 + 1     end end

  17. Future Work • Embeded Objects • Tail Recursion Optimization • Object Clustering • Object Load Balancer • Compile Time Pattern Matching • Standard Library • New Type System • Interfaces

  18. Conclusion  • Tangle is a new parallel language • Implicit Parallelism • Runtime Management System • LLVM Compiler Infrastructure • Get Involved • Code hosted at www.launchpad.net/tangle • Make your own runtime • Windows • Mac • Cell

More Related