Slashdot Mirror


Adobe and Mozilla Foundation Collaborate on ECMAScript

gemal writes "I just saw a project called Tamarin (AVM2 open source) Flash9_DotReleases_Branch initial revision checked into the Mozilla CVS repository. Shortly afterwards came the following press release: ' Adobe and the Mozilla Foundation today announced that Adobe has contributed source code for the ActionScript Virtual Machine, the powerful standards-based scripting language engine in Adobe Flash Player, to the Mozilla Foundation. Mozilla will host a new open source project, called Tamarin, to accelerate the development of this standards-based approach for creating rich and engaging Web applications. This is a major milestone in bringing together the broader HTML and Flash development communities around a common language, and empowering the creation of even more innovative applications in the Web 2.0 world.' You can read about the Tamarin project on the Mozilla site."

142 comments

  1. Holy crap by Anonymous Coward · · Score: 0

    Okay, so it's actually only a part of Flash. Still amazing, especially since Adobe just decided to use WebKit rather than Gecko for Apollo's rendering engine.

    1. Re:Holy crap by Anonymous Coward · · Score: 1, Interesting

      Sheesh, but why do they have to keep reinventing the wheel? Why create some ECMAScript that no one has heard of? Why not just work on Javascript?? ;)

    2. Re:Holy crap by larry+bagina · · Score: 1

      Dreamweaver and Fireworks use Netscape's javascript interpreter, and include the source code:

      "Javascript Int Source Code.txt"

      The original source code to the JavaScript Interpreter was provided by Netscape Communications Corporation and the modifications to the source code are derived, directly or indirectly, from such code. The changes to the original code from Netscape Communications Corporation are documented in the accompanying Readme file.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    3. Re:Holy crap by Anonymous Coward · · Score: 0

      Still amazing, especially since Adobe just decided to use WebKit rather than Gecko for Apollo's rendering engine.

      No comercial product uses Gecko. It's a completely fucked-up mess, supporting arbitrary parts of SVG and CSS, all very half-assedly. The fact that companies rather spend millions in licensing good engines (Opera, WebKit) rather than trying to patch a piece of crap like Gecko should give the Firefox-zealots reason to think (of course, they will ignore these facts).

    4. Re:Holy crap by Anonymous Coward · · Score: 0

      It's basically what Macromedia did some time ago with ActionScript 1.0 - they tried make it more to the ECMAScript specs. It was easier to jump in for the AS 1.0 devs, it had more features, esp. regarding OO programming, but it sucked in terms of being confusing to the non-ActionScript developers, as well as being simply slow. It also had a lot of weird flash-only depreciated or simply stupid dependencies that annoyed their customers. That's why AS 3.0 came with a completely new, ES4 compliant engine. It's basically like saying 'bye bye to scripting and welcoming programming'.

      So if you worked more on 'archaic' JS engine you'd end up exactly like macromedia - bloating everything.

    5. Re:Holy crap by Fordiman · · Score: 2, Insightful

      It's called an update. Most likely, legacy ECMAScript (the 'JavaScript' you've been using since 1999, per ECMA-262) will work just as it always has. My guess is that Tamarin is going to have speed and syntax optimizations.

      Honestly. You're probably one of the guys who claim that "Javascript isn't programming". Eh. Maybe I shouldn't assume things.

      Still, the point is that the ECMA spec for inline browser c-like scripting has been updated at least three times since its standardization in 1999. Did you know that you can do Javascript in an object-oriented manner? Did you know that Flash's ActionScript is just ECMAScript with additional bindings (so is ColdFusions cfScript language)? How about the fact that you can pass inline functions as arguments? Have you ever used the "with" statement? Do you know DOM level 1? XMLHttpRequest? The 'in' clause in 'for'? Prototyped classes?

      No, seriously, there's a lot more to Javascript than there used to be, and if you figure out the more advanced features (and how to properly separate behavior, presentation and content), it's actually a pleasant language to work in. I for one welcome the updates and additions to the language that can give 2008's webpages the kick they deserve.

      --
      110100 1101000 1101000 1100110 0 1101111 1101000 1100011 1
    6. Re:Holy crap by HeroreV · · Score: 1

      ECMAScript began as a standardization of JavaScript. Now JavaScript, ActionScript, JScript, and other scripting languages are based on ECMAScript. Mozilla isn't creating a new language named "ECMAScript", they're just switching engines.

    7. Re:Holy crap by ivucica · · Score: 1

      ECMAScript IS Javascript. It's the standard around which Javascript is based ... It was made later than Javascript, but is still a basis for Javascript. Think of ECMAScript as the engine for Javascript ;)

    8. Re:Holy crap by SirTalon42 · · Score: 1

      WebKit is actually free software. WebKit is Apple's fork of KHTML (Konqueror's and KDE's rendering engine).

  2. Go open source go! by AxXium · · Score: 1

    Go open source go! This is great news for us Linux geeks. :)

    1. Re:Go open source go! by nickull · · Score: 1

      There are are lot of us within Adobe that haven't forgotten our roots and our first experiences with code often involved Open Source. Time to give back to the community. We also started RIA Forge and have some more open source projects on the go. www.riaforge.org. Tschuss! Duane Nickull

      --
      "Question everything, including this!" - http://technoracle.blogspot.com/
  3. My......God...... by ObsessiveMathsFreak · · Score: 5, Funny

    AJAX in Flash, with a Web 2.0 hype engine. May god have mercy on us all.

    --
    May the Maths Be with you!
    1. Re:My......God...... by Anonymous Coward · · Score: 0

      ECMAScript on top of n-tier application server technologies makes it easy to leverage AJAX technologies to create a seamless feature rich Web2.0 experience for our users! Then we can all run our desktops in the browser and be free! Free I say!

    2. Re:My......God...... by doom · · Score: 1
      ObsessiveMathsFreak wrote:
      AJAX in Flash, with a Web 2.0 hype engine. May god have mercy on us all.

      Don't worry too much, they're calling it part of the "Mozilla 2.0" project. They've got to break through the second system syndrome first.

      (second-second system?)

  4. Jumping the Gun by eldavojohn · · Score: 2, Informative
    I just saw a project called Tamarin (AVM2 open source) Flash9_DotReleases_Branch initial revision checked into the Mozilla CVS repository.
    While you may know more than you put in the summary, I suspect you are jumping the gun here. The fact that a Flash9_DotReleases_Branch tag shows up in an open source CVS repository is certainly no reason to infer that they will "open source Flash." Perhaps that tag referred to a point at which the project was compatible/comparable with Flash 9?

    In fact, after reading the project site, nowhere do they claim to be trying to open up Flash. Instead, it looks like they're going to re-implement the engine (tried before):
    The goal of the "Tamarin" project is to implement a high-performance, open source implementation of the ECMAScript 4th edition (ES4) language specification.
    ECMAScript version four is the language used by Flash, buy it could possibly be a derivative of Flash or an attempt to emulate Flash. Flex is an example of Adobe coaxing developers to use MXML and ActionScript and I suspect that this open source engine is no different. I imagine that it will lack the libraries and features of the licensed Flash Studio so that the developers will have to code a lot of the normal effect engines from scratch. Net effect, developers are given a little more freedom in coding and Adobe becomes the standard like they did with PDF. It looks like they're losing money on Studio licenses but instead they're cementing their stake in technology by offering basic services free and premium services at a ... well ... premium. Similar to what Google is doing and what Microsoft is learning. You know, like a heroin dealer the first few tricks are free but to get extra you gotta pony up.
    --
    My work here is dung.
    1. Re:Jumping the Gun by Anonymous Coward · · Score: 5, Informative

      You're incorrect. See this blog entry from an Flash Player engineer: http://www.kaourantin.net/2006/11/spidermonkeys-re lative-tamarin-joins.html

      It is not an attempt to re-implement the ActionScript Virtual Machine (runtime). It *is* the ActionScript Virtual Machine. Adobe and Mozilla are working together to build a common runtime, that already exists in Flash Player 9 and is already ECMAScript 4 compliant. Adobe just saved Mozilla a lot of time and hassle by giving them a high performance virtual machine that already implements the ECMAScript 4 spec.

      Any changes Mozilla makes will find its way into the Flash Player. Any changes Adobe makes will find its way into Firefox.

    2. Re:Jumping the Gun by splict · · Score: 1

      They are not offering flash but they are open sourcing the Verifier, JIT, core frameworks and the garbage collection engine http://www.kaourantin.net/2006/11/spidermonkeys-re lative-tamarin-joins.html. The the newest Adobe ECMAScript VM is small and very fast and further along than Spider Monkey. This is very good for everyone involved, I believe, and a nice step by Adobe. Mozilla/Firefox users get a better ECMAScript engine and Adobe can concentrate more on the flash side of the flash engine. Read more at the FAQ on Tamarin http://www.mozilla.org/projects/tamarin/faq.html

      --
      Any sufficiently advanced technology is indistinguishable from a yo-yo.-Enoch Root
    3. Re:Jumping the Gun by Anonymous Coward · · Score: 0

      Sorry dude, I've stopped believing blogs as most of them (including Linux on the Wii) are nothing but lies and hoaxes.

    4. Re:Jumping the Gun by coyote4til7 · · Score: 2, Informative

      Where did you read "open source flash"? The whole Slashdot summary and the linked project page all refer to ECMAScript, aka ActionScript, aka Javascript. The linked project page makes it pretty clear that Mozilla and Adobe plan to use the Tamarin project as they basis of JavaScript (in Mozilla projects) and the ActionScript _portion_ of the Flash Player. RTFSS (RTF Slashdot Summary) before inserting foot in mouth.

      --

      the clock on the wall says 4 til 7
    5. Re:Jumping the Gun by springMute · · Score: 1

      I find your theory pretty hard to follow.

      First, ActionScript (not "Flash") is based on ECMAScript, not the other way around. And I'd say it's hard for ECMAScript to try and "emulate" Flash. The ECMAScript specs aren't created by Adobe, you know, but by several engineers from companies like Apple, Adobe, Microsoft, Opera, etc, with Mozilla in the lead.

      Second, you've misunderstood the post, the press releases, and everything related to this news item. They're not open-sourcing the player. There's no "Flash Studio" (what?) libraries or features to be opened, and there's nothing for people to "code" like "normal effects".

      This is not related to Flash. It's related to the ECMAScript virtual machine, and something Mozilla can directly benefit from since they use a similar VM for their JavaScript execution. If anything, having this properly applied (2008 on according to their roadmap) will make HTML (specially Ajax) sites faster on Mozilla browsers, and Mozilla's own execution, not Flash.

      In sum, this is not the thread you're looking for.

    6. Re:Jumping the Gun by Anonymous Coward · · Score: 1, Informative

      The title read "Adobe and Mozilla Foundation Open Source Flash" when I read it before it went live. So essentially I jumped the gun when I wrote the post--which I entitled "Jumping the Gun."

    7. Re:Jumping the Gun by ccr65 · · Score: 1

      As I understand it, this is the final step to deploying Javascript 2.0 which was sceduled to be included in Firefox 3 anyway, but since Macromedia/Adobe have been using it for awhile, this helps get the ball rolling faster and allows (as mentioned) better integration. This will also mean that XUL will have the same script engine as Flex. It's not just Web 2.0 however. Anything done in Javascript can use the new OOP language features. Microsoft has been using a form of ECMA 4 as well, but it's anybody's guess as to when IE will get it.

    8. Re:Jumping the Gun by 99BottlesOfBeerInMyF · · Score: 3, Insightful

      Sorry dude, I've stopped believing blogs as most of them (including Linux on the Wii) are nothing but lies and hoaxes.

      It's one thing not to believe a random blog when it makes weird claims. It's another not to believe a blog from the person doing the work, when it is an expected move and is what the company talked about doing months ago. After the Adobe/Macromedia merger, Adobe stated they were working to integrate PDF (an open standard) and Flash to make for better, interactive Web functionality and that they planned to make the system open to encourage open source adoption.

    9. Re:Jumping the Gun by Anonymous Coward · · Score: 0

      While you may know more than you put in the summary, I suspect you are jumping the gun here.

      Gemal (the story submitter) is one of those people who tends to jump the gun - in the past, he's frequently announced "releases" of SeaMonkey and Firefox before they were ready, just as files start appearing on the staging FTP server or CVS files are tagged with a release tag.

    10. Re:Jumping the Gun by HeroreV · · Score: 1

      You're incorrect. ECMAScript is only at edition 3. There's work being done on edition 4, but it isn't here yet.

      JavaScript and ActionScript have extensions to ECMAScript that are expected to be incorporated into the 4th edition, and Tamarin will/does support those extensions.

  5. The title just changed! by Anonymous Coward · · Score: 1, Informative

    It was "Adobe and Mozilla to Open Source Flash" when it went live.

  6. If you need an ECMAScript parser.... by tcopeland · · Score: 3, Informative

    ...check out the Dojo project's JavaCC ECMAScript grammar.

    It looks like they rolled their own parser for Tamarin - AbcParse.cpp looks hand coded to me. Maybe that was more efficient than yacc?

    1. Re:If you need an ECMAScript parser.... by Anonymous Coward · · Score: 1, Interesting

      The file you linked to is an an ECMAScript parser. It's the bytecode parser -- Abc stands for ActionScript bytecode. Its the intermediate format that Adobe's compiler creates and stuffs into .swf files for execution. The virtual machien parses the bytecode and executes the instructions found.

      The Tamarin project does not include Adobe's Java ECMAScript compiler used to create the abd block. Instead, it contains a "self hosting" compiler, located in this directory. Specifically, the ECMAScript parser, written in ActionScript, is here. This is explained in the FAQ.

    2. Re:If you need an ECMAScript parser.... by mad.frog · · Score: 1

      Well, it *used* to stand for ActionscriptByteCode.

      Now, I think it just stands for... um... ABC.

      (Maybe if they had chosen a monkey with a name starting with "A", the acronyms would have been more meaningful...)

    3. Re:If you need an ECMAScript parser.... by tcopeland · · Score: 1

      > The file you linked to is an an ECMAScript parser.

      Oh, you mean, _not_ an ECMAScript parser. But you're right, and thanks for the correction.

      > the ECMAScript parser, written in ActionScript, is here.

      Thanks for the pointer! Wow, looks like they hand-rolled this as well... that's a doozy.

  7. And evil hackers everywhere rejoice... by 0x537461746943 · · Score: 1

    tt the thought of yet another way to attack your web browser.

    1. Re:And evil hackers everywhere rejoice... by starwed · · Score: 3, Insightful

      Actually, at the end of the day this sounds like it will increase security. Since Adobe and Mozilla plan to share exactly the same codebase, whereas now they maintain them seperately, that's one less surface to attack. And presumably having more people working on the same thing can't harm security either.

    2. Re:And evil hackers everywhere rejoice... by springMute · · Score: 1

      Technically, this won't change anything on any browser, just make JavaScript execution faster on Mozilla.

  8. Please add multithreading by Anonymous Coward · · Score: 3, Insightful

    Javascripts single-threaded design is the biggest roadblock on the way to a web-app platform.

    1. Re:Please add multithreading by vaderhelmet · · Score: 3, Interesting

      My biggest complaint is the fact that it doesn't complete execution on a function before moving to the next. Having to estimate execution time, then using a timer to fire dependant functions is a pain. This would be much better if it were a "jump and link" situation.

    2. Re:Please add multithreading by twofidyKidd · · Score: 2, Interesting
      I'm confused by this. It sounds like you're writing code like this:

      function thisX(args){
      SomeCode;
      SomeCode;
      thisX();
      }

      function thisY(args){
      SomeCode;
      thisY();
      }
      Where some function of thisY() is dependent on the execution of thisX(), except you're saying that thisX() runs slower than thisY(), so you write some sort of timeout to run thisY() after thisX has finished (by estimation, as you mentioned.)

      Why don't you do this instead:

      function thisX(args){
      SomeCode;
      SomeCode;
      return Var;
      }
      function thisY(args){
      SomeCode;
      SomeVar = thisX(args);
      }
      Such that the complete execution of function thisY() is dependent on the complete execution of function thisX() without having to set some timeout and basically, make your code wait around with fingers crossed for the first function to execute? I'm surprised you got modded up for this, and no one checked you before. The only time I ever use timeouts is when I actually want the code to run on human time, like "wait 5 seconds before refreshing some section of the page, or before you display an alert" or something to that effect, but never for code dependency. The parent's complaint regarding multithreaded is directed toward this, but the workaround is not to "time" your code.

      Then again, I could be way off base here, and I'm sure someone will "fix" me.
      --


      Hades, PoD: Official Advocate
    3. Re:Please add multithreading by Anc · · Score: 1

      I don't really see the problem. If don't want multithreading then you just don't use it. Multithreading doesn't mean that every function you call returns immediately and is processed in in it's own thread. Now that would not only be silly - it would make the processing s language virtually unusable. You must specifically request the new thread to be created.

      And btw, Mozilla's JavaScript implementation does support multiple threads.

    4. Re:Please add multithreading by BZ · · Score: 1

      JavaScript supports multiple threads quite nicely.

      JavaScript IN A WEB CONTEXT does not. That's a problem that's hard to solve without breaking lots of existing pages that assume the single-thread run-to-completion semantics and depend on it.

      In Gecko, the DOM code is also effectively single-threaded. Changing that could be done, but would likely have significant performance impact...

    5. Re:Please add multithreading by mad.frog · · Score: 1

      Multithreading isn't on the table, but the ECMAScript 4 proposal (which will eventually be implemented in Tamarin) does include generators and iterators, which is a nice partial step to some easier coding techniques:

      http://developer.mozilla.org/es4/proposals/iterato rs_and_generators.html

    6. Re:Please add multithreading by Anonymous Coward · · Score: 0

      There is no support for thread synchronization / mutual exclusion in the language. You can of course move the thread handling to the API, but that would be an ugly hack, not "supports multiple threads quite nicely". Besides, of course the point is that there is just one thread exposed to the web app. What good is threading if you can't use it?

    7. Re:Please add multithreading by HeroreV · · Score: 1

      JavaScript 1.7 already has generators and iterators. Even if they don't become part of ECMAScript 4, JavaScript will probably keep them.

      Anyway, there are many languages without native support for threads that do just fine with using libraries. See XPCOM's nsIThread.

  9. A Step in a direction by vaderhelmet · · Score: 3, Informative

    I'm not a huge fan of Flash in general. It is too much like FrontPage... A thousand script kiddies to every 1 intelligent user. However, I believe a closer interaction and level of support for scripting languages that are shared between standard HTML pages and embedded objects will simplify (and hopefully speed up) development. ECMA Script is a very powerful tool in the right hands and Flash has some very interesting capabilities when paired with the Flash Media Server or Red5 (OSS) My 7 cents.

    1. Re:A Step in a direction by foniksonik · · Score: 1

      Go here to see some really nice flash stuff: The FWA: Favourite Website Awards.

      --
      A fool throws a stone into a well and a thousand sages can not remove it.
    2. Re:A Step in a direction by Ash-Fox · · Score: 1

      Doesn't work with tabbed browsing (middle click). Looked at a few website... Click something and it just keeps going into loading loops for a while. I have trouble reading some of the text on those sites and I simply can't do [ctrl] & [+] to increase the font sizes.
      Not to mention I don't need to see distorted effects to display text on page.
      I'm not particularly amazed by 360 views of people or objects, quicktime could do this long ago.
      Nor am I particularly amazed by embedded movies in Flash either.
      Somehow, some of the sites on there absolutely didn't work for me (using flash 9 beta). Such as "HOW EDISON ARE YOU?" or Adobe's own FWA showcase.

      What the heck is it with sounds blurting out too? Don't I get a option to tell it not to play sound instead of it scaring the heck out of me with it's rumbling WHOOSH on my subwoofers?

      This is poor webdesign in my opinion, you don't Flash for a entire page. Perhaps for specific elements like doing your 360 views, but the entire page and content? No.

      --
      Change is certain; progress is not obligatory.
    3. Re:A Step in a direction by foniksonik · · Score: 1

      You're missing out on the backend expertise here. The FWA itself is a database driven content managed site. Resize your browser and see how it adds rows and columns to fill up the available space (ie: it's a flash 'liquid layout' ) and the content is all being loaded on the fly asynchronously... JIT for you to view it. See at the top right of the grid how it paginates the listings dynamically according to how many columns and rows you have showing? Watch it while you resize again so more rows are showing... now start thinking of how that can be useful for other subjects. Dynamic data with realtime responses and monitoring of user input. Would it help if they used a large clunky interface to demonstrate this? Maybe a datagrid with words instead of funky pictures?

      Anyways... did you go to http://www.flashearth.com/?

      Also, Don't you know not to browse the web with your sound turned up? That's like keeping your TV volume up while watching the weather channel and then being surprised by a commercial when you change it to a normal station.

      --
      A fool throws a stone into a well and a thousand sages can not remove it.
    4. Re:A Step in a direction by 0racle · · Score: 1
      Also, Don't you know not to browse the web with your sound turned up? That's like keeping your TV volume up while watching the weather channel and then being surprised by a commercial when you change it to a normal station.
      Oh well that makes complete sense, I'll just stop listening to music I like because some jackass can't put a button on their site.
      --
      "I use a Mac because I'm just better than you are."
    5. Re:A Step in a direction by Ash-Fox · · Score: 1
      The FWA itself is a database driven content managed site.
      In other words it's a flash interface to a CMS.
      Resize your browser and see how it adds rows and columns to fill up the available space (ie: it's a flash 'liquid layout' )
      Generally I'm browsing the web full-screen (F11). I was really annoyed at how the content wasn't already preloaded on the page, scrolling with the interface seemed very unnatural and slow loading because of this (not to mention my laptop fans were at maximum).
      Resize your browser and see how it adds rows and columns to fill up the available space (ie: it's a flash 'liquid layout' ) and the content is all being loaded on the fly asynchronously
      I still would of rathered a long page with thumbnails that dynamically changed positions (easy todo with basic HTML). Simply because I saw nothing wrong with it, and I still see nothing that innovative or new about this.
      now start thinking of how that can be useful for other subjects.
      Deviantart? I don't need Flash to make browsing that site unbareably slow and difficult to give out URL references to specific browsing thumbnails I'm looking at.
      Dynamic data with realtime responses and monitoring of user input.
      I don't consider Flash real time, if it's going to skip trying to show me a animation to display the animation, I also don't see how this is superior to AJAX, which works on far more platforms, browsers, doesn't break UI features.
      Would it help if they used a large clunky interface to demonstrate this?
      Seems like it's a clunky interface to me. Large? No, a bit too small to read.
      Maybe a datagrid with words instead of funky pictures?
      I'm opposed to Powerpoint presentations?
      Anyways... did you go to http://www.flashearth.com/?
      It's not as fluid/smooth as Google maps from what I can see -- just click dragging the area.
      Also, Don't you know not to browse the web with your sound turned up?
      I'm quite happy listening to music when I do things on my computer, not to mention I like to be notified when someone sends me a instant message/e-mail/says my name on IRC. I rarely ever browse flash based websites beyond Google video (lots of interesting speeches/demos are posted there).
      That's like keeping your TV volume up while watching the weather channel and then being surprised by a commercial when you change it to a normal station.
      I don't own a TV, that issue you mention being one of the reasons.
      --
      Change is certain; progress is not obligatory.
    6. Re:A Step in a direction by thinsoldier · · Score: 1

      "Not to mention I don't need to see distorted effects to display text on page."

      Agreed. We beg the ISPs for faster connections and go hungry to be able to afford cable and dsl all so we dont have to wait for information to download and be drawn. Why oh why do these bastards insist on simulating the dailup experiece when they clearly state on the "splash page" that this version is for "HIGH SPEED" connections?

  10. It can't be any worse than SpiderMonkey by Anonymous Coward · · Score: 2, Interesting

    This is really great news, assuming Mozilla can get over their "Not Invented Here" syndrome (see: Linux distros required to verify their patches with Mozilla) and replace SpiderMonkey (the current Mozilla JS engine) with it. Almost all the problems people have with excessive CPU use are related to the JS engine. Firefox's backend uses a LOT of JavaScript (not kidding!) and it can greatly slow the browser down, especially when there are a lot of extensions running.

    This is great news - assuming it replaces SpiderMonkey. The current JS engine in Mozilla is amazingly slow.

    1. Re:It can't be any worse than SpiderMonkey by Anonymous Coward · · Score: 0

      And this is related, how ?

    2. Re:It can't be any worse than SpiderMonkey by Anonymous Coward · · Score: 1, Interesting

      Because ActionScript IS JavaScript. Well, sort of - there are a number of extensions on top of it, but it's basically syntactic sugar. JavaScript and ActionScript use very similar backends.

      The main thing that Adobe is providing is a virtual machine designed to run ActionScript and, with little modification, JavaScript as fast as possible.

      The biggest slow down in Mozilla is its scripting interface. This should greatly help with that.

    3. Re:It can't be any worse than SpiderMonkey by wwahammy · · Score: 1

      To be fair though, while SpiderMonkey is slow, IE is just as bad.

    4. Re:It can't be any worse than SpiderMonkey by Rescate · · Score: 4, Informative

      From Frank Hecker, executive director of the Mozilla Foundation, at http://www.hecker.org/mozilla/adobe-mozilla-and-ta marin:

      The current SpiderMonkey JavaScript engine (used in Firefox, etc.) will not be replaced, as it does more than just provide a virtual machine; rather the Tamarin code will be integrated into SpiderMonkey. On compilers, the current SpiderMonkey engine can convert JavaScript to byte code, but does not have the ability to convert byte code to native machine instructions; this is a major feature that Tamarin provides. I don't know enough to comment on relative code quality; I'll leave this to others who've actually had experience with both code bases.
    5. Re:It can't be any worse than SpiderMonkey by BZ · · Score: 1

      > Almost all the problems people have with excessive CPU use are related to the JS engine.

      By "related to" do you mean "there's some JS involved somewhere, possibly calling native code where lots of time is spent"? Or you mean "I've profiled it, and the time is spent in the JS engine"?

      If you _haven't_ profiled it, then you're basically making assumptions that might or might not be right (but probably aren't, given most of the profiles of "JS is slow" bugs that I've seen -- in almost all cases the problem is actually in the DOM or layout code).

    6. Re:It can't be any worse than SpiderMonkey by cyfer2000 · · Score: 1

      I think the new stuff will become the "JIT" part for SpiderMonkey Mr. Brendan has been talking for years, if not ten years.

      --
      There is a spark in every single flame bait point.
    7. Re:It can't be any worse than SpiderMonkey by bunions · · Score: 1

      > Because ActionScript IS JavaScript. Well, sort of - there are a number of extensions on top of it, but it's basically syntactic sugar.

      Typesaftey isn't syntactic sugar.

      Javascript:

      var foo = 3;
      foo = "butts";//this is ok

      Actionscript:

      var foo:Number = 3;
      foo = "butts";//this is a compile-time error

      --
      there is no need to sign your posts. this isn't usenet. your username is right there above your post. stop it.
    8. Re:It can't be any worse than SpiderMonkey by DavidHOzAu · · Score: 1
      Typesaftey isn't syntactic sugar.
      But when the type-safety is optional, it is syntactic sugar.
    9. Re:It can't be any worse than SpiderMonkey by bunions · · Score: 1

      no, it's not. At least, that's not what I learned the definition as.

      http://en.wikipedia.org/wiki/Syntactic_sugar

      i += 3 vs i = i + 3 is syntactic sugar. A switch that enforces type safety is something else.

      --
      there is no need to sign your posts. this isn't usenet. your username is right there above your post. stop it.
  11. Web 2.0... by WarpSnotTheDark · · Score: 1

    Hmmmm. CMP Media is driving this thing...or O'Riley Media? I'm so confused.

  12. There's a detailed commentary by henni16 · · Score: 4, Informative

    ..on the issue by Mozilla Foundation's executive director: Frank Hecker's blog

  13. Help Democracy: +1, Inspirational by Anonymous Coward · · Score: 0, Informative


    Vote AGAINST Osama bin Laden's employer.

    From an undisclosed, secure bunker far away from President-VICE Richard B. Cheney's spider-hole,
    Kilgore Trout

  14. JIT for javascript by augustm · · Score: 3, Interesting

    Reading the various explanations on mozilla sites-
    this will (one day) give a just in time compiler
    and virtual machine for javascript in firefox.
    This should lead to big speedups in many
    web applications

    1. Re:JIT for javascript by JimRay · · Score: 1

      See, I just don't get this. I keep hearing "Yay! JIT for javascript" but my understanding of JIT is that it really works best for apps that are compiled down to bytecode (like Java applets and SWFs) first.

      Am I just missing something? Is there some intermediary bytecode compilation for JS files that is then further enhanced for specific platforms by JIT? And if so, why the intermediary step (JS -> bytecode, bytecode -> machine code) in the browser?

      Somebody please 'splain the advantage of dynamic translation for JS to me please?

      --
      My other computer is your Windows box
    2. Re:JIT for javascript by BZ · · Score: 1

      The current JavaScript engine in Gecko compiles the script to bytecode and then executes the bytecode... This is done during script parsing (not execution).

    3. Re:JIT for javascript by Abcd1234 · · Score: 1

      In fact, nearly every non-brain-dead scripting language does this (Perl, Python, Lisp, etc), with Ruby being one of the few exceptions. It's also one of the slowest, which is not a coincidence...

    4. Re:JIT for javascript by Fatalis · · Score: 1

      It's even better, most of Firefox's UI and extensions run on XUL and JavaScript, so with a better script engine Firefox itself will be faster too.

      --
      Deus est fatalis
  15. This can't be a good thing. by Anonymous Coward · · Score: 2, Insightful

    You're correct, this really can't be a good thing. Adobe and Mozilla are both companies that, in my experience, tend to put out extremely bloated and unstable software packages. And they do this for software that should be agile, and have a relatively low footprint.

    I like to compare their products to similar ones developed by the KDE community. Take KPDF, for instance. It manages to be much faster and more stable than Adobe's Acrobat Reader, yet performs the very same functionality. And I'm sure we've all experienced Acrobat Reader's plugin interacting poorly with various web browsers, including both Internet Explorer and Firefox. There was even that recent problem where it would pop up a modal dialog box behind the main Firefox window, thus rendering it inaccessible, and basically locking up Firefox.

    Then we can compare the Mozilla Project's Seamonkey and Firefox browsers to KDE's Konqueror. Konqueror proves to be lean, fast, and memory-efficient. Meanwhile, we routinely hear reports of memory leaks (often blamed on bad extensions or poor caching policies) causing Firefox processes to consume hundreds of MB of RAM. The few times that I have used Firefox, I have run into problems with it crashing.

    When two companies with that sort of a track record for putting out bloated, unstable software get together to collaborate, I can't help but think the outcome will be quite poor. At least we do have alternatives, such as KDE. It's those alternatives that I'll continue to use.

    1. Re:This can't be a good thing. by strider44 · · Score: 1, Insightful

      The reason why I use firefox instead of konqueror is simple: In firefox I have all the toolbars and required info including menus, navagation buttons and a bar, in one toolbar up the top. Konqueror doesn't yet allow me to do this. I think Konqueror's KHTML is quite neat in programming, but its user interface could still use some work.

    2. Re:This can't be a good thing. by mad.frog · · Score: 1, Informative

      Perhaps you should look at the code before calling it bloated.

    3. Re:This can't be a good thing. by Ant+P. · · Score: 0, Offtopic

      I'd use Konqueror, but Firefox has certain things I can't live without.

    4. Re:This can't be a good thing. by Nasarius · · Score: 0, Flamebait

      KPDF has the same functionality as Adobe Reader? Surely you jest. It doesn't even have a search function. I love KDE and all, but I still have to use acroread to do my work.

      --
      LOAD "SIG",8,1
    5. Re:This can't be a good thing. by Maian · · Score: 2, Insightful

      I won't deny that it may result in more memory usage, but the virtual machine would make Mozilla's JavaScript engine faster [1]. And remember that JS is extensively used in Mozilla's GUI, and in fact, they intend to migrate more non-critical C++ code to JS in the future (for faster development, security, etc.).

      [1] http://weblogs.mozillazine.org/roadmap/archives/20 06/11/project_tamarin.html

    6. Re:This can't be a good thing. by xENoLocO · · Score: 1

      And the rest of us will continue to live in the real world, where things like convenience and corporate product support matter. Not to mention bad markup.

      Also, I realize you're blaming the output and not the developers, but give the developers some credit here...

      --
      "The need to build the internet comes from something inside us, something programmed... something we can't resist."
    7. Re:This can't be a good thing. by nickull · · Score: 1

      I will disagree with your sentiment that both Adobe and Mozilla produce large bloated code bases. I think that given the stated requirements, both have done a good job. Nevertheless, if you don't like the code, at least now you can have a say and fix what you perceive is broken.

      --
      "Question everything, including this!" - http://technoracle.blogspot.com/
    8. Re:This can't be a good thing. by Tim+C · · Score: 1

      Like that's ever stopped anyone here.

    9. Re:This can't be a good thing. by Anonymous Coward · · Score: 0

      Why would I need to fix Adobe and Mozilla's bloated, ugly mess? I can just use KDE, which doesn't suffer from such problems in the first place, and so I do.

    10. Re:This can't be a good thing. by Anonymous Coward · · Score: 0

      Can we also request that you stop being smug and condescending, and instead just be happy with your browser/editor/shell/image viewer/ssh client that puts 50 tiny indistinguishable buttons at the top of every window.

      The rest of us who aren't aesthetically and ergonomically blind will use proper applications that don't have more buttons and dials than a fighter jet and that don't look like they were chiseled out of petrified dog shit and then decorated with blue sausages and vomit kebabs.

    11. Re:This can't be a good thing. by sillybilly · · Score: 1

      Adobe Acrobat 5 for me is still the fastest of all pdf readers in Linux, even if it has a relatively ugly motif interface look. As far as Windows goes, starting with Acrobat 6 things went very downhill in bloat, and my preferred version to use on Win2k is the last release official release for Win95, I think it's Acrobat 5.0.8. It's zippy, but it seldom complains of features not understood by this reader, upgrade, upgrade, upgrade, but it still displays things well anyway.

  16. So have I got this clear now? by Timesprout · · Score: 1, Insightful

    When Adobe does Flash its shit, bloated, resource hogging intrusiveness. When Mozilla does Flash its empowering and innovative.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
    1. Re:So have I got this clear now? by starwed · · Score: 2, Insightful

      No, you don't have this clear. This doesn't have much to do with flash at all. The only thing entering the mozilla code base is an EMCAscript VM. Flash will also use the same VM, and they'll enhance/maintain that VM jointly.

    2. Re:So have I got this clear now? by Anonymous Coward · · Score: 0

      It's not flash. It's JavaScript 2.0. JavaScript 1.7 is the current version in use in FF. In IE I believe it's 1.2. So until IE 8 comes out, you probably won't be able to use it anyways... assuming MS gets off their duff and fixes the back end.

    3. Re:So have I got this clear now? by Anonymous Coward · · Score: 0

      Sounds good to me...

      When we hang Microsoft from the yard arm, we're going to loop Adobe right next to it. Outside of these two monopolistic thugs, damn near every other technology company is wearing a halo.

  17. Read these before you spread FUD by md17 · · Score: 4, Informative

    Here is the official Adobe Announcement:
    http://www.adobe.com/aboutadobe/pressroom/pressrel eases/200611/110706Mozilla.html

    And here is a great blog post from Tinic, one of the Flash Player engineers:
    http://www.kaourantin.net/2006/11/spidermonkeys-re lative-tamarin-joins.html

    And the Tamarin FAQ:
    http://www.mozilla.org/projects/tamarin/faq.html

    Please read these before you post FUD. Oh wait... This is /. FUD away. ;)

  18. Jumping the Javascript Gun by Anonymous Coward · · Score: 0

    Excuse me but isn't Gecko an implimentation of ECMAScript aka Javascript?

    1. Re:Jumping the Javascript Gun by abdulla · · Score: 1

      Gecko is the rendering engine, it draws things. Spidermonkey is the javascript interpreter, it runs things.

    2. Re:Jumping the Javascript Gun by Anc · · Score: 1

      No, it isn't. Gecko is a rendering engine. The part of Mozilla platform responsible for JS interpreting is called Spidermonkey and it's quite a different component.

      Secondly, ECMAScript != JavaScript. JavaScript language is based on and compatible with ECMA specification but they are not the same. There are many different implementations of ECMAScript including Microsoft's JScript and Adobe's ActionScript.

  19. The unstated benefit: by Ayanami+Rei · · Score: 1

    64-bit support is being worked on currently now that the source code is intended to be used in multiple products.
    If and when this occurs, we could expect to see a 64-bit flash plugin (finally), as the main blocking factor was the ActionScript VM, according to developer blogs.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  20. Adobe needs to open the plugin's source... by mi · · Score: 1

    Especially — the Acrobat-plugin. You may not know this, but the plugin does little work other than spawning off an instance of acroread (a separate process). This means, they can keep their proprietary secrets intact, and open the source code of the plugin itself.

    This would allow various BSDs, for example, which can all run Linux executables, to have the plugin in their natively-compiled browsers. Same goes for 64-bit browsers on Linux (64-bit plugin can spawn off the 32-bit executable). Even on Linux, where native plugins are supplied by Adobe, it would allow bolder changes in the browser/plugin APIs (changes that may break the ABI).

    For example, Real has gone "all the way" and open-sourced their entire player (except for a few codecs). This allowed to fish out their plugin code, build it natively and use it with Real's own Linux executables (and full set of codecs), wherever that can run (such as FreeBSD/amd64).

    --
    In Soviet Washington the swamp drains you.
    1. Re:Adobe needs to open the plugin's source... by Anonymous Coward · · Score: 0

      You may not know this, but the plugin does little work other than spawning off an instance of acroread (a separate process).

      If that's true, then shouldn't it be rather easy to write a plugin from scratch?

    2. Re:Adobe needs to open the plugin's source... by mi · · Score: 1
      If that's true, then shouldn't it be rather easy to write a plugin from scratch?

      It is true. Open a PDF "page" in your firefox (with the plugin), and use ps to see an instance of acroread...

      Plugin and acroread communicate via a local domain socket (/tmp/a*). While it is possible to hack a "clean-room" implementation, the right thing to do is to get Adobe to release the official source. They don't have any "intellectual property" in the plugin — they should release its source for the benefit of all (Adobe included).

      --
      In Soviet Washington the swamp drains you.
  21. Open Source Compiler by mjbkinx · · Score: 2, Informative

    The ActionScript compiler isn't open source (but available for free as in beer), but haXe is. It's not ECMA262 v4, but a relative with some additional goodies, like its type system. It can compile for FlashPlayer 9, among other platforms, which uses the VM now known as Tamarin.

  22. Take it easy by springMute · · Score: 5, Informative
    Just because I know people will jump the gut and make comments totally unrelated to this news just so they have something to bitch about, here's what Mike (One of the lead Linux engineers at Adobe) had to say:

    Today, Adobe released the source for its ActionScript Virtual Machine to the Mozilla Foundation.

    That's what Adobe did. Since this blog is a common stop for open source-minded folk, I thought it might be pertinent to use this space to discuss what Adobe didn't do:

            * Adobe did not open source the Flash Player.
            * Adobe did not incorporate the Flash Player into Mozilla.
            * Adobe did not license Mozilla's HTML rendering engine.
            * Adobe did not purchase Mozilla, or vice versa.

    The project is specified by the name Tamarin, as in the monkey, in keeping with Mozilla's primate-naming conventions. Fun fact: Adobe is contributing around 135 KLOC (thousands of lines of code) of source code to the Tamarin project. So, in the grand tradition of open source collaboration, I invite you to jump right in.

    Also see Tinic Uro's blog for more information.

    This is not related to porting or open-sourcing Flash at all. It's all about ECMAScript, which is what JavaScript and ActionScript uses. This doesn't mean Mozilla will support ActionScript either, as it's just the virtual machine that's being opened, not the 'internal' functionality.
    1. Re:Take it easy by jesser · · Score: 1

      This doesn't mean Mozilla will support ActionScript either, as it's just the virtual machine that's being opened, not the 'internal' functionality.

      ActionScript and JavaScript are both extensions of ECMAScript 3. Mozilla and Adobe (among others) are working on an ECMAScript 4 specification that will incorporate many of the extensions, so I actually expect JavaScript and ActionScript to converge quite a bit over the next few years.

      Note that I'm just talking about the programming languages, not the DOM for manipulating HTML/XML documents in Firefox or the APIs for manipulating movies and animations in Flash.

      --
      The shareholder is always right.
  23. Request, Please. by LifesABeach · · Score: 1, Interesting

    What are Mozilla's intentions now with respect to SVG? One can not ignore that the specification of SVG with respect to Adobe's Flash product. To my thinking, SVG, or its spawn, is the direction of future web developement.

    1. Re:Request, Please. by Metaphorically · · Score: 1

      Scripting is separate from the graphics. Maybe having a more closely related VM under the hood will make it easier for people to port applications from Flash to SVG on Mozilla though. I hope.

      --
      more of the same on Twitter.
    2. Re:Request, Please. by Anonymous Coward · · Score: 0

      Please, please can someone answer this question? I am developing some javascripted SVG stuff at the moment, and very much want to know if I'm going in the dight direction by doing that. Currently, Firefox's performance is apalling when compared with Adobe's SVG plugin.

    3. Re:Request, Please. by MikeFats · · Score: 1

      The SVG project might actually benefit from this development, as it will impact the speed of javascript. A big chunk of SVG's "interactive" component is javascript.

    4. Re:Request, Please. by sillybilly · · Score: 1

      I think if SVG really flies, it would revolutionize the web, unfortunately SVG is too open and unpatented. What MS figured out with Suse and what Adobe might be after here, is that, at least in the US, ( unlike in the EU for now, but that's only a matter of time, money and effort), patents work well against open source, so if we can hijack the open source people to code for free to our patent, then we can still demand people using the code to pay up for our "technology", we just have other people doing the development work and implementing our patents. Best way to make money - patent something, tell people to do the work free based on that patent, then go sell your customers the patented technology bundled with the code you had others create for free. Best way to make money.

  24. Mod parent DOWN! by Anonymous Coward · · Score: 0

    The parent is clearly FUD, someone please mod it down, not up!

  25. Regarding Sig by Anonymous Coward · · Score: 0

    President Bush has DONE some of the points there, although the article says that it is only claimed he wants to do those (*cough* *state of fear + militarization* *coug* )

  26. ECMAScript != Flash by msobkow · · Score: 1

    ECMAScript with support for VRML and related vector/plane graphics animation technology could compete with something like Flash, but I wouldn't call it a replacement.

    I would call it a standards-based answer to Microsoft's clumsy attempt to create a competing "standard" that only runs on WinXX. FUD for FUD, the battle over market share continues to be about media mind share, not quality, performance, scalability, portability, or any other technical "issue". Heck, most of the FUD bombs launched aren't even demos, much less production products.

    --
    I do not fail; I succeed at finding out what does not work.
    1. Re:ECMAScript != Flash by Metaphorically · · Score: 1

      Um, that "vector/plane graphics animation technology" is called SVG. VRML is a whole 'nother ball game. SVG is accessible from the DOM and thereby Javascript. SVG is already in Firefox and getting better with each release. By the time this new VM is available (2008 they predict), it's conceivable that the new VM combined with the SVG implementation that's in place by then could be another option comparable to Flash. Of course developers would probably also have to contend with deploying on whatever WinFX is by then too.

      --
      more of the same on Twitter.
  27. Mod parent up! by Anthracks · · Score: 1

    The /. summary is pretty worthless (is anyone surprised?). This is only related to Flash inasmuch as Flash has a JavaScript VM / JIT Compiler, and that technology has been released to Mozilla so that they can take advantage of those performance improvements. At least that's how I read the news from people actually involved.

    Brendan Eich's blog
    Frank Hecker's blog

    --
    Rock over London, Rock on Chicago. Wheaties: Breakfast of Champions.
  28. ECMAScript... by Bizzeh · · Score: 2, Interesting

    ...needs a less stupid name

    1. Re:ECMAScript... by Anonymous Coward · · Score: 0

      Oh, I know, I know!

      ACME Script! (One Language to bind them all...)

    2. Re:ECMAScript... by Maian · · Score: 1

      Or you could simply just say JavaScript, since practically no one intends to code in pure ECMAScript (JS code just usually ends up being compatible with ES)... Okay, JavaScript's a stupid name too, but it's too late to change names now.

    3. Re:ECMAScript... by nova_ostrich · · Score: 1

      People could just start using the original name: LiveScript.

      --
      It's scary being a Flash and Flex developer on Slashdot. You guys are unnaturally rabid.
  29. Linux distros required to include LOGO .. by rs232 · · Score: 1

    "This is really great news, assuming Mozilla can get over their "Not Invented Here" syndrome (see: Linux distros required to verify their patches with Mozilla)"

    They're free to use any patches as long as they don't call it Firefox. From what I can figure out it is a dispute over the use of the logo. Debian are happy to use the codebase they just don't want to include the logo. It's also not unreasonable for Mozilla to want to verify patches for Mozilla Firefox.

    was Re:It can't be any worse than SpiderMonkey

    --
    davecb5620@gmail.com
  30. AJAX and Flash by metamatic · · Score: 1

    Careful... I got in a massive flamewar with a guy from OpenLaszlo who was adamant that Flash applications are AJAX web applications, because they use asynchronous XML and JavaScript.

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    1. Re:AJAX and Flash by Metaphorically · · Score: 1

      Everybody wants a crack at the buzzwords :)

      --
      more of the same on Twitter.
  31. uhhh by Nasarius · · Score: 1, Troll

    Obviously I'm stuck on KDE 3.3, because apparently 3.4 and 3.5 have versions of KPDF that can find text. I stand corrected.

    --
    LOAD "SIG",8,1
    1. Re:uhhh by stuckinarut · · Score: 0

      Ouch! You send two reasonable posts IMO and you get flamebait and troll, karma gets a hammering. Where's some mod points when you need them?

  32. The beginning of the end of Firefox by Anonymous Coward · · Score: 0

    There is not a single web technology that rivals the pure evil and depravity of javascript and flash.

    This is the first and most significant nail in Mozilla's coffin.

  33. Actionscript 100 times slower than qbasic by Dwedit · · Score: 1

    In my personal tests, Actionscript is over 100 times slower than Quickbasic. Why the hell is that the case? Both are interpreted languages. Actionscript even compiles to bytecode before it's executed, and I think Quickbasic does something similar as well. Does static typing alone really cause a language to run faster? Or is it just what happens when you design interpreters for high vs. low-specification processors?

    1. Re:Actionscript 100 times slower than qbasic by mjbkinx · · Score: 1

      In my personal tests, Actionscript is over 100 times slower than Quickbasic. Why the hell is that the case? Both are interpreted languages. Actionscript even compiles to bytecode before it's executed, and I think Quickbasic does something similar as well. Does static typing alone really cause a language to run faster? Or is it just what happens when you design interpreters for high vs. low-specification processors?

      With which version of the FlashPlayer did you do that test?
      Tamarin is the VM introduced for FlashPlayer 9, aka. AVM2. The above sounds like you tested on AVM1, which is included in FP9 for backwards compatibility. AVM2/Tamarin is JIT compiled, and significantly faster than AVM1. If you want to test, you will need to specifically compile for it, either by using Adobe's free as in beer Flex SDK if you like to use ActionScript 3, or haXe for an open source alternative that has some aditional features.

  34. Mozarella Foundation by DonZorro · · Score: 1

    The headline at inquirer reads "Adobe Hands Mozarella Foundation Flash Code"

    http://www.theinquirer.net/default.aspx?article=35 584

  35. Jumping the Gun-Hole Javascript, Batman! by Anonymous Coward · · Score: 0

    I'm wondering if this will close some of the Javascript holes that Mozilla has been having recently?

  36. Benchmarks by mjbkinx · · Score: 2, Informative
  37. No 64 bit version by obender · · Score: 1
    From Tinic's blog:

    # If you study the source code you'll realize that a 64bit port is NOT a recompile away. We are actively working on the 64bit port, the source code right now is still 32bit until the changes required are stabilized.
    Is this a gift to Mozilla or is it: please fix it for us?
    1. Re:No 64 bit version by springMute · · Score: 1

      Oh great, so when Adobe closes something, they're being assholes who doesn't embrace OS. When they do open it, they're assholes who expect people to fix their mistakes.

      Dude.

  38. Light PDF parsers: XPDF and Foxit. by Tei · · Score: 2, Informative

    Take KPDF, for instance. It manages to be much faster and more stable than Adobe's Acrobat Reader, yet performs the very same functionality.

    I disagree. KDPF is really nice, and the next version will be impresive. But still theres minimal support for some advanced features, like scripting. Yea, only a subset of users need some byzarre features like that one, but still.. seems that adobe support a lot of these, maybe 99% of what PDF mean.
    As a example (scripting) you need a javascript engine, maybe Spidermonkey, and add it to KPDF. Theres actually no javascript engine on KPDF, and adding spidermonkey is somewhat easy, but still is some work to do.

    Seems... that is reallly hard to create a good parsing engine for pdf. This why KPDF is based on XPDF and theres only a few PDF viewers. And once you can parse a PDF file and render simple stuff, is enough for 90% of people. But theres still that 10% that use advanced features, that need HUGE ammounts to work.

    I only know 3 pdf engines:

      - XPDF engine (that KPDF and Evince use). Fast but not complete.
      - Foxit engine. Fast but not complete.
      - Adobe engine. Slow but complete.

    Once you add more features to a application. You need to do more stuff on startup. Maybe init some static arrays, load and parse config files, dynamically call more librarys that also need build stuff...

    Imho, theres out here a engineer on Adobe that is frustrated because Adobe reader at core is lighting fast, but all the CRAP that need to load slowdown the whole thing to the actual mud-style.

    note to self: Ask the Okula developpers to support CBR.

    --

    -Woof woof woof!

    1. Re:Light PDF parsers: XPDF and Foxit. by Neoncow · · Score: 1

      After hearing about Foxit reader from various sources, I decided to try it out. It's amazingly fast compared to adobe's reader, but I'm sort of disappointed at not being able to open pdfs within the browser. I tried looking, but is there any browser integration for Foxit?

  39. SpiderMonkey IS the worst, hands down. by SimHacker · · Score: 1

    Why as a matter of fact, yes, somebody HAS profiled SpiderMonkey. And you might be interested in knowing just how fat and slow it is compared to other languages.

    The Computer Language Shootout demonstrates that SpiderMonkey JavaScript is not only THE WORST language, in terms of BOTH slow speed and huge size, but also TWICE AS BAD AS THE SECOND WORST. SpiderMonkey loses the Computer Language Shootout by a long shot. Even bigger than the Republicans are going to lose this election!

    So the assumption that SpiderMonkey is fat and slow is extremely correct, by a long shot. Just like the assumption that the Republicans are corrupt and incompetent.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
    1. Re:SpiderMonkey IS the worst, hands down. by BZ · · Score: 1

      > Why as a matter of fact, yes, somebody HAS profiled SpiderMonkey.

      What you link to is not a profile, but a benchmark. Not the same thing at all.

      And note that nowhere did I say that SpiderMonkey is a very fast programming language. It's not, of course. It's got its speed issues. Not having carefully read the exact source of the benchmark you quote, I can't tell you how much of the performance shown on that benchmark is due to innate slowness and how much is due to poorly-written code, but I suspect it's more of the former than the latter.

      What I objected to was the claim by "Anonymous Coward" that "almost all" Mozilla performance problems are related to SpiderMonkey. Some are, most are not. Telling which is the case involves doing a profile (figuring out which parts of the code time is spent in). Just running a benchmark does NOT give you this information.

  40. Yes, this is nice... by jo42 · · Score: 1

    ...but when can I have it for IE6 and/or IE7?

    1. Re:Yes, this is nice... by hutchy · · Score: 1

      When the worms are done with you!

  41. Re: Did you profile it yourself by Anonymous Coward · · Score: 0

    How would someone new to the idea get an introduction to profiling which specific functionality of a program at a given time required the most CPU power (or RAM, video, HD read time, etc?)?

  42. GREAT news for OpenLaszlo, Firefox and AJAX! by SimHacker · · Score: 3, Informative

    OpenLaszlo's Legals Project will benefit immensely from this, because the OpenLaszlo compiler will directly target the AVM2 virtual machine that was just released as Open Source! Thanks to AVM2, Firefox will be a much better AJAX application delivery and development platform. OpenLaszlo is in a position to take excellent advantage of that, for the benifit of users as well as developers. Not only will AVM2 make OpenLaszlo applications run faster on Firefox, but opening up the AVM2 virtual machine will make it possible to develop much more powerful debuggers and integrated development environments.

    All AJAX applications running on Firefox benefit, but Firefox itself will also benefit from integrating AVM2, because so much of FireFox is written in JavaScript itself.

    AVM2 will be a huge improvement, because Firefox's current JavaScript interpreter, SpiderMonkey, is so extremely inefficient and wasteful of memory, that not only does it come in last in the computer language shootout, but it's actually TWICE as band and the next worst language, Smalltalk! (That's REALLY BAD.)

    An important feature currently missing from Firefox that I'm looking forward to is a way to load pre-compiled binary bytecode into Firefox (like SWF9 files but without the graphics), instead of parsing and re-compiling the JavaScript source text every time. That's one of Flash's major advantages over browser-based JavaScript: it can quickly load and run pre-compiled AJAX applications much faster, thanks to the fact that it doesn't have to parse and compile huge amounts of JavaScript source code text files every time it starts up.

    -Don

    What is OpenLaszlo "Legals"?

    "Legals" is an OpenLaszlo project to provide a single application environment that supports multiple deployment runtimes. OpenLaszlo 3.x supports Flash 7 and 8 now, but Legals will extend that reach to include DHTML as well as Flash 9. And with the necessary infrastructure in place, we anticipate further runtimes will be developed by the OpenLaszlo community.

    The OpenLaszlo "Legals" project began at the start of 2006. We are projecting final availability by the end of the year. Developers interested in helping make Legals a reality are invited to contact us. Developers wishing to get a head-start building applications on top of Legals will be able to do so with our beta release in a few months.

    Many people ask about the back story for the project name. The name, Legals, is a tribute to a well-known local restaurant in Boston where a lunch meeting inspired the team to launch this project.

    See Legals FAQ for commonly asked questions and answers.

    The Architecture

    With Legals, the OpenLaszlo architecture is being remodularized into a true multi-runtime platform. OpenLaszlo generates script source that is compatible with ECMAScript Release 3, while leveraging extensions from ECMAScript Release 4. From there, multiple compiler backends generate JavaScript in the native dialect of the destination runtime: ActionScript 2 or 3, JScript 5.6, JavaScript 1.4+, and so on.

    The OpenLaszlo runtime library is being refactored into two parts: multiple kernels containing runtime-specific code, and a cross-runtime library written in standard ECMA-3. As part of the runtime library, the OpenLaszlo class system has been rewritten in ECMA-3 and includes several innovative new features.

    The OpenLaszlo runtime library delivers a common baseline of functionality across all supported runtimes. This gives the developer a rich environment in which to build full-featured web applications. In addition, Legals will include runtime-specific extensions so t

    --
    Take a look and feel free: http://www.PieMenu.com
    1. Re:GREAT news for OpenLaszlo, Firefox and AJAX! by BZ · · Score: 1

      > An important feature currently missing from Firefox that I'm looking forward to is a way
      > to load pre-compiled binary bytecode into Firefox

      Actually, that feature exists and is used in Firefox at startup. See http://lxr.mozilla.org/seamonkey/source/js/src/jsx drapi.h#45 for the API.

      Now you can't do it from inside the JavaScript language. But any consumer of the C JSAPI can do this.

    2. Re:GREAT news for OpenLaszlo, Firefox and AJAX! by SimHacker · · Score: 1

      I didn't realize that SpiderMonkey already had a way to load pre-compiled JavaScript code. Is there any reason it's not possible to allow web pages to download pre-compiled JavaScript byte code as well? That would really benefit AJAX applications.

      For Firefox with the AVM3, the most obvious format to use for pre-compiled byte code would be SWF files, which contain codes for graphics as well as byte codes. Firefox could just ignore or trap on unsupported graphics codes. And then all the tools that support SWF files (like the OpenLaszlo compiler) could be applied to Firefox.

      (Of course I don't mean JavaScript compiled into machine instructions (that's the job of the JIT), so the security of downloading uncompiled JavaScript text and precompiled binary JavaScript byte codes should be identical).

      -Don

      --
      Take a look and feel free: http://www.PieMenu.com
    3. Re:GREAT news for OpenLaszlo, Firefox and AJAX! by BZ · · Score: 1

      > Is there any reason it's not possible to allow web pages to download pre-compiled
      > JavaScript byte code as well?

      Probably not, except it involves freezing the bytecode format. The XDR format is not guaranteed stable across releases -- its primary purpose is effectively for a compiled-stuff cache, with fallback on the original script if the cache XDR version doesn't match the running version.

  43. Re:If you need an ECMAScript parser: OpenLaszlo by SimHacker · · Score: 1

    The OpenLaszlo compiler also has an ECMAScript parser, and it outputs Flash bytecode. The Legals Project will support the AMV3 runtime, which Adobe just made Open Source and Mozilla will be incorporated into Firefox.

    Adobe open sourcing AVM3 and Firefox incorporating it is great news for OpenLaszlo, because it dovetails so nicely with the roadmap already in place!

    Opening up AVM3 also enables the development of open source debuggers and integrated development environments like Eclipse, and makes it possible to embed an efficient JavaScript engine into any application, which has enormous long term benefits for everyone.

    Please, I beg: somebody write an AVM2 back-end for SWIG! That would totally rock. It's an essential tool for wrapping libraries and extending languages, that SpiderMonkey's sorely missing.

    -Don

    From the OpenLaszlo Project Legals FAQ:

    Q: What is the Legals project?

    A: Legals is a project to extend OpenLaszlo to target multiple runtimes. For our initial release, we will be supporting AVM2 (Flash 7 and 8), AVM3 (Flash 9), and DHTML. It is also possible to extend legals to other runtimes in the future.

    --
    Take a look and feel free: http://www.PieMenu.com
  44. Yes. by RandomPrecision · · Score: 1

    Yes.

  45. How fast is it against Perl/Python/Ruby? by Anonymous Coward · · Score: 0

    I hope it will be soon in the Computer Language Shootout.
    It is jit based dynamic language VM so, could it be used to implement Perl/Python/Ruby?

  46. cross-browser removeFlash(); ? by Anonymous Coward · · Score: 0

    now THAT would be an application.
    Flash is free in the way that Adobe is free to change anything about it whenever it feels like it.
    I stick to free video formats and SVG

  47. damn it! by Anonymous Coward · · Score: 0

    i didn't install noscript for nothing!

  48. Flash is DRM in disguise by macraig · · Score: 1

    Flash is just a sneaky way of implementing a form of DRM for Web documents, since it can hide or obfuscate source files that would otherwise have been directly accessible under good old HTML. The real "Web 2.0" is one we need to WORRY about and fear, not herald... the real Web 2.0 will be one based upon information-restrictive technologies like Flash. HTML was designed with "open source" in mind... can any form of Flash-like Web interface ever truly be called open source? Do we really want to continue to encourage this form of Web design? Personally, I avoid any Web site which is entirely designed with Flash.

  49. Keep Mozilla Away from IE! by cogno64 · · Score: 1
  50. Re:It's worse than that, listen up by Douglas+Goodall · · Score: 1

    The ECMA script documents contain Microsoft Patented technology, and if you use te documents, you have to license the technology from Microsoft for Money. ECMA is a patent troll trap, BEWARE.