Tamarin (software) explained

Tamarin
Developer:Adobe Systems and Mozilla
Discontinued:yes
Operating System:Cross-platform
Programming Language:C++
Genre:Virtual Machine for ECMAScript
License:Tri-licensed GPL, LGPL, and MPL

Tamarin is a discontinued 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)[1] 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 across web browsers and Adobe Flash platform and ease the development of better performing rich web applications.[2]

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.[3] The contributed code is tri-licensed under the GPL, LGPL, and MPL licenses to be developed in Mozilla's Mercurial repository.[4] The contributed code is approximately 135,000 lines of code,[5] making it the largest single donation of code to the Mozilla project besides Netscape itself.[6]

There were plans to use Tamarin as part of Mozilla 2[7] (and therefore Firefox 4). The project to integrate Tamarin and SpiderMonkey was called "ActionMonkey",[8] but was canceled in 2008[9] 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,[10] to ECMAScript Harmony.[11]

Adobe continued to use Tamarin in its Flash Player, but it did not replace 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.[12]

What Tamarin is not

Adobe contributed code for its ActionScript Virtual Machine 2 and the JIT compiler. The ActionScript compiler is also open source as a part of Adobe Flex.[13] There is also CrossBridge, an open source C and C++ compiler.

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.[14] [15] IronMonkey is a project to map IronPython and IronRuby to Tamarin led by Seo Sanghyeon.[16] 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.[17] Neither project had production-quality releases and their current status is unclear.

Etymology

Both SpiderMonkey and Tamarin fulfill closely related goals and so were given names derived from types of monkeys (the spider monkey and the tamarin, respectively).

Further reading

External links

Notes and References

  1. Web site: Archived copy . 2017-03-25 . 2017-05-16 . https://web.archive.org/web/20170516155743/http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/actionscript/articles/avm2overview.pdf . dead .
  2. Web site: What Tamarin means to developers . November 7, 2006 . January 2, 2013 . Adobe Developer Connection . dead . https://web.archive.org/web/20130316094602/http://www.adobe.com/devnet/logged_in/ehuang_tamarin.html . March 16, 2013.
  3. Web site: Adobe and Mozilla Foundation to Open Source Flash Player Scripting Engine . Mozilla Foundation Press Center . Mozilla Foundation . November 7, 2006 . San Francisco . September 3, 2010.
  4. Web site: Tamarin Project . Mozilla Foundation . 2021-03-25 . 2016-10-03 . https://web.archive.org/web/20161003214723/https://developer.mozilla.org/en-US/docs/Archive/Mozilla/Tamarin . dead .
  5. Web site: Open Up . Penguin.SWF — Just another Adobe Blog site . Mike . Melanson . November 7, 2006 . September 3, 2010 . dead . https://web.archive.org/web/20080704140056/http://blogs.adobe.com/penguin.swf/2006/11/open_source_actionscript.html . July 4, 2008.
  6. Web site: Project Tamarin - Adobe's contribution to Mozilla . The Browser Den . dead . https://web.archive.org/web/20081011115749/http://www.browserden.co.uk/news/tamarin/index.shtml . October 11, 2008 .
  7. Web site: Mozilla 2 . Brendan's Roadmap Updates . MozillaZine . Brendan . Eich . Brendan Eich . October 13, 2006 . September 3, 2010 . dead . https://web.archive.org/web/20061025122530/http://weblogs.mozillazine.org/roadmap/archives/2006/10/mozilla_2.html . October 25, 2006.
  8. Web site: ActionMonkey . John . Resig . John Resig Blog . July 23, 2007 . September 3, 2010.
  9. Web site: JavaScript:ActionMonkey . MozillaWiki . September 4, 2008 . September 3, 2010 . Mozilla Foundation.
  10. Web site: Tamarin Project Introduction . Mozilla community . April 21, 2008 . January 1, 2013.
  11. Web site: A quick note on JavaScript engine components . Hacks.Mozilla.org . . March 8, 2010 . Christopher . Blizzard . September 3, 2010.
  12. Web site: State of Tamarin . mozilla.dev.tech.js-engine group . . Graydon . Hoare . September 3, 2010 . October 14, 2009.
  13. Web site: Compiling and Running applications . Mozilla . 2021-03-25.
  14. Web site: New Projects . Brendan's Roadmap Updates . Brendan . Eich . Brendan Eich . July 25, 2007 . September 3, 2010 . MozillaZine . dead . https://web.archive.org/web/20101114000859/http://weblogs.mozillazine.org/roadmap/archives/2007/07/new_projects.html . November 14, 2010.
  15. Web site: The Browser Scripting Revolution . John . Resig . August 8, 2007 . John Resig Blog . September 3, 2010.
  16. Web site: Tamarin:IronMonkey . MozillaWiki . . August 20, 2007 . September 3, 2010.
  17. Web site: Tamarin:ScreamingMonkey . MozillaWiki . . May 28, 2008 . September 3, 2010.