Tamarin (software)
Developer(s) | Adobe Systems and Mozilla |
---|---|
Development status | Active |
Written in | C++ |
Operating system | Cross-platform |
Type | Virtual Machine for ECMAScript |
License | Tri-licensed GPL, LGPL, and MPL |
Website | developer.mozilla.org/en/Tamarin |
Tamarin is a free software virtual machine with just-in-time compilation (JIT) support intended to implement the 4th edition of the ECMAScript (ES4) language standard. Tamarin source code originates from ActionScript Virtual Machine 2 (AVM2) developed by Adobe Systems, as introduced within Adobe Flash Player 9, which implements ActionScript 3 scripting language. ActionScript Virtual Machine 2 was donated as open-source to Mozilla Foundation on November 7, 2006, to develop Tamarin as a high-performance virtual machine, with the support from broad Mozilla community, to be used by Mozilla and Adobe Systems in the next generation of their JavaScript and ActionScript engines with the ultimate aim to unify the scripting languages accross web browsers and Adobe Flash platform and ease the development of rich better performing web applications.[1]
Contents |
Tamarin and Mozilla
The source code, including the just-in-time compiler and conservative garbage collector, was donated to the Mozilla Foundation on November 7, 2006.[2] The contributed code is tri-licensed under the GPL, LGPL, and MPL licenses to be developed in Mozilla's Mercurial repository.[3] The contributed code is approximately 135,000 lines of code,[4] making it the largest single donation of code to the Mozilla project besides Netscape itself.[5]
There were plans to use Tamarin as part of Mozilla 2[6] (and therefore Firefox). The project to integrate Tamarin and SpiderMonkey was called "ActionMonkey",[7] but was canceled in 2008[8] because Tamarin's interpreter turned out to be slower than SpiderMonkey's and because the plans of ECMAScript development shifted from ECMAScript 4, which was partially implemented by then existing Tamarin source code and was meant to be completed by joined efforts of Adobe, Mozilla and its community within the Tamarin Project,[9] to ECMAScript Harmony.[10]
Tamarin continues to be used in Adobe Flash Player, but it has not replaced SpiderMonkey as the JavaScript engine of Mozilla applications.
The only part of Tamarin used in modern Mozilla applications (i.e. Firefox 3.5+) via SpiderMonkey is NanoJIT, a module that is used to generate native code when performing just-in-time compilation.[11]
What Tamarin is not
Adobe contributed code for its ActionScript Virtual Machine 2 and the JIT compiler. The ActionScript compiler is also open source and can be downloaded from: http://opensource.adobe.com/svn/opensource/flex/sdk/sandbox/asc-redux/[12]
Tamarin is not the same as Adobe Flash Player, which remains closed source. The Tamarin virtual machine is only a part of Flash Player.
Related projects
Two projects related to Tamarin were announced on July 25, 2007 in Brendan Eich's keynote at The Ajax Experience West: IronMonkey and ScreamingMonkey.[13][14] IronMonkey is a project to map IronPython and IronRuby to Tamarin led by Seo Sanghyeon.[15] ScreamingMonkey's goal is to allow Tamarin to run within non-Mozilla browsers (thus allowing them to understand JavaScript 2), starting with Internet Explorer. The project is led by Mark Hammond.[16] Neither project had production-quality releases and their current status is unclear.
Etymology
Both SpiderMonkey and Tamarin fulfill closely related goals and so were both dubbed after monkeys (the spider monkey and the tamarin, respectively).
References
- ^ "What Tamarin means to developers". Adobe Developer Connection. November 7, 2006. http://www.adobe.com/devnet/logged_in/ehuang_tamarin.html. Retrieved January 2, 2013.
- ^ "Adobe and Mozilla Foundation to Open Source Flash Player Scripting Engine". Mozilla Foundation Press Center. San Francisco: Mozilla Foundation. November 7, 2006. http://www.mozilla.com/en-US/press/mozilla-2006-11-07.html. Retrieved September 3, 2010.
- ^ "Tamarin Project". Mozilla Foundation. https://developer.mozilla.org/en/Tamarin. Retrieved September 3, 2010.
- ^ Melanson, Mike (November 7, 2006). "Open Up". Penguin.SWF — Just another Adobe Blog site. http://blogs.adobe.com/penguin.swf/2006/11/open_source_actionscript.html. Retrieved September 3, 2010.
- ^ "Project Tamarin - Adobe's contribution to Mozilla". The Browser Den. http://www.browserden.co.uk/news/tamarin/index.shtml.[dead link]
- ^ Eich, Brendan (October 13, 2006). "Mozilla 2". Brendan's Roadmap Updates. MozillaZine. http://weblogs.mozillazine.org/roadmap/archives/2006/10/mozilla_2.html. Retrieved September 3, 2010.
- ^ Resig, John (July 23, 2007). "ActionMonkey". John Resig Blog. http://ejohn.org/blog/actionmonkey/. Retrieved September 3, 2010.
- ^ "JavaScript:ActionMonkey". MozillaWiki. Mozilla Foundation. September 4, 2008. https://wiki.mozilla.org/index.php?title=JavaScript:ActionMonkey&oldid=107405. Retrieved September 3, 2010.
- ^ "Tamarin Project Introduction". Mozilla community. April 21, 2008. http://www-archive.mozilla.org/projects/tamarin/. Retrieved January 1, 2013.
- ^ Blizzard, Christopher (March 8, 2010). "A quick note on JavaScript engine components". Hacks.Mozilla.org. Mozilla Foundation. http://hacks.mozilla.org/2010/03/a-quick-note-on-javascript-engine-components/. Retrieved September 3, 2010.
- ^ Hoare, Graydon (October 14, 2009). "State of Tamarin".
mozilla.dev.tech.js-engine
group. Google Groups. http://groups.google.com/group/mozilla.dev.tech.js-engine/msg/04e49d6407c33bd3. Retrieved September 3, 2010. - ^ "Compiling and Running applications". https://developer.mozilla.org/En/Tamarin/Tamarin_Build_Documentation#Compiling_and_running_applications.
- ^ Eich, Brendan (July 25, 2007). "New Projects". Brendan's Roadmap Updates. MozillaZine. http://weblogs.mozillazine.org/roadmap/archives/2007/07/new_projects.html. Retrieved September 3, 2010.
- ^ Resig, John (August 8, 2007). "The Browser Scripting Revolution". John Resig Blog. http://ejohn.org/blog/the-browser-scripting-revolution/. Retrieved September 3, 2010.
- ^ "Tamarin:IronMonkey". MozillaWiki. Mozilla Foundation. August 20, 2007. https://wiki.mozilla.org/index.php?title=Tamarin:IronMonkey&oldid=65786. Retrieved September 3, 2010.
- ^ "Tamarin:ScreamingMonkey". MozillaWiki. Mozilla Foundation. May 28, 2008. https://wiki.mozilla.org/index.php?title=Tamarin:ScreamingMonkey&oldid=94625. Retrieved September 3, 2010.
Further reading
- "Project Tamarin" - blog post by Brendan Eich, Mozilla CTO.
- "Adobe, Mozilla, and Tamarin" - blog post by Frank Hecker, Mozilla Foundation executive director.
- "A Quick Introduction to Tamarin Tracing" - blog post by Chris Double, Mozilla developer
- "Implementing Native Methods in Tamarin Tracing" - blog post by Chris Double
- "Extending Tamarin Tracing with Forth" - blog post by Chris Double
- Profiling Runtime Generated and Interpreted Code using the VTune Performance Analyzer
External links
- Project page
- Tamarin documentation at developer.mozilla.org
|
|