Earlier quoted context omitted.
Out of interest, is there anything you can share about the particulars of your application? We did the same Flash vs. HTML5 analysis in the context of Facebook games, but in our experiments it looked like Flash still won handily in terms of performance.
Not just that, even the Google Chrome support for SVG is terrible, it crashes very quickly if you draw a lot of nodes. I also found very simple bugs like moving a SVG objects leaves a trail behind. A good vectorial support is needed to replace flash.
The V8 Myth: Why JavaScript is not a Worthy Competitor
61–70 of 100 posts
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#62Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#63I have absolutely no idea how I would write Hello World in Flash. What compiler do I need. Do I need a compiler. Do I need to buy it? Is that all I need? Compared to: $ vim helo.html alert("hellooooo"); And if you can't write that from scratch, ViewSource on most web pages will give you a good clue. That looks like trump for mindshare, disputed performance questions aside.
A couple of months ago I was looking at Flex. It's a complete nightmare to try and play around with. I downloaded the SDK and tried to make some kind of hello world thing but just trying to make a module with a single function and then call that function was not straightforward at all. I didn't even want a module but I have to have one. Fine. How do I make one? The docs don't even cover this sort of thing. There is b…
I did read O'Reilly's Flex book first though. I'm not sure people code Flex for fun, so good documentation costs money.
Was this your first time writing code for a GUI toolkit? Flex has an interesting model that merges XML definition of a UI with module-based code. I don't find it particular complex compared to say, writing an MFC application or C Win32 code to write a UI. I actually prefer it to the jungle of HTML, CSS, JS and dozens of JS libraries which aren't really geared for a professional type UI and fall down when you want to display 10,000 items in your table.
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#64Earlier quoted context omitted.
You are focusing on the wrong part of the conjecture, the point is, large code bases are being written in JavaScript everyday. Yet, People with the position like the author continue to argue that it can't happen, despite the evidence being readily available. I don't want to dodge your question thought, the answer is yes I have worked on some JavaScript code bases that are several MLoc. Which I would consider for conj…
For your argument to be believable, you shouldn't make unsubstantiated and prima facie bogus claims. Your post would've have the same message without that claim, but by putting it in it sticks out like a sore thumb and makes the rest of your argument moot for debating purposes.
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#65Earlier quoted context omitted.
Well, the problem (one problem) is that Javascript has no typing system. This makes running valid javascript code super, super slow at times. You can't promise to a javascript interpreter that you will always and only use the variable i_am_only_ever_an_integer as an 8 bit integer. This makes lots of things super slow.
Of course you can promise types to the JS engine. Ints in particular are easy. With modern type-inferring JITs like SpiderMonkey, an expression like "var x = 3;" will infer x to int, and there will be no type checks or unboxing. In more complex cases, you can add "|0". For example: function f(x) { x = x|0; ... } This has the effect of forcing an int interpretation for the argument, and there will be no type checks or…
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#66Earlier quoted context omitted.
You are focusing on the wrong part of the conjecture, the point is, large code bases are being written in JavaScript everyday. Yet, People with the position like the author continue to argue that it can't happen, despite the evidence being readily available. I don't want to dodge your question thought, the answer is yes I have worked on some JavaScript code bases that are several MLoc. Which I would consider for conj…
Which javascript project did you work on that had several million lines of code? If you can't tell us that, at least tell us what _kind_ of project it was please.
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#67So... Adobe is arguing that nobody will ever figure out how to put a better compiler in front of JavaScript under any circumstances, so we have to pack it in now? I realize current JIT sucks in many ways, but seriously... claiming that "we can put this compiler in front of our stuff and since the other guys can never, never figure out how to compile first, we will win forever" isn't just stupid. It seems willfully st…
Not knowing ActionScript, the point seems to boil down to no more than "statically typed languages will always be faster than dynamic ones". This is true no matter what, "open source brain" can't fix that. However, one could make the same argument for C++: Why Python is not a worthy competitor. Sounds silly? It is, just like the original post.
Not quite. Nobody claims that python will completely eliminate the need for C++, but there are people claiming that JS will replace flash.
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#68Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#69Disappointingly trivial post: 1) I don't know a single person that would seriously argue that dynamically typed languages can perform better than their statically typed cousins. 2) As we all know, programming is the art of making tradeoff. One common pair is ease of writing vs. performance... 3) I think Adobe should be more worried about making a flash player/plugin I can't use to warm my hands by playing video after…
Re: The V8 Myth: Why JavaScript is not a Worthy Competitor
#70Earlier quoted context omitted.
You are focusing on the wrong part of the conjecture, the point is, large code bases are being written in JavaScript everyday. Yet, People with the position like the author continue to argue that it can't happen, despite the evidence being readily available. I don't want to dodge your question thought, the answer is yes I have worked on some JavaScript code bases that are several MLoc. Which I would consider for conj…
Project complexity tends to scale exponentially-ish, so I was wondering what you considered "Largest codebases"... according to Googling, Windows is 50M, Android 12M. So a couple million LoC is pretty awesome. Static typing evangelists seem to have a blind spot: they persistently tend to assert that you can't write good and large dynamic codebases.
IIRC in webOS a substantial portion of the user-land utilizes JavaScript, as a whole one could surmise that they constitute modular parts of an overall system. I do not know what the TLoc on webOS is, but I would assume that it would have to be in the ball park of large. I think it is as valid as the total line count of windows or android it is also the problem with looking at these things from just a TLoc perspective.
Static typing evangelists seem to have a blind spot: they persistently tend to assert that you can't write good and large dynamic codebases.
Thanks you probably summed up my post better than I did.