HTML5 is a browser based technology. No matter how robust they become, desktop applications won't disappear, which is why the second part is fallacy. Even Silverlight has its place in Microsoft's strategies. HTML5 is the language of choice in Microsoft for internet applications; Silverlight is still Microsoft's language of choice for intranet applications. There is a big difference.
-wraith808
+1
Let's see someone do
this in HTML5 and JavaScript:
void imdctf(float* time_signal, float* mdct_line, mdctf_plan* m_plan) // Looks like JavaScript has already failed at this point.
{
float *xr, *xi, r0, i0, r1, i1; // And if it didn't fail above, it will here.
float *cos_tw, *sin_tw, c, s;
int N4, N2, N34, N54, n;
N4 = (m_plan->N) >> 2;
N2 = 2 * N4;
N34 = 3 * N4;
N54 = 5 * N4;
cos_tw = m_plan->twiddle;
sin_tw = cos_tw + 1;
/* pre-twiddle */
xr = (float*) m_plan->fft_in; // Oh god... This will destroy...
xi = xr + 1;
for(n = 0; n < N2; n += 2) // Bring on the nukes!
{
r0 = mdct_line[n];
i0 = mdct_line[N2-1-n];
c = cos_tw[n];
s = sin_tw[n];
xr[n] = -2.f * (i0 * s + r0 * c); // KILL! MAIM! DESTROY!
xi[n] = -2.f * (i0 * c - r0 * s); // RUB IN SALT! POUR IN IODINE!
}
// etc. etc.
Sure, JavaScript can do a lot, but it CANNOT (in the practical sense) do heavy lifting.
By the same token, trying to emulate a browser (HTML5 and JavaScript) in C is nothing short of insane. Can it do it? Of course. Is it practical? No.
Different technologies have different places. Trying to force them into the wrong hole is doomed to failure.
It's the whole "I have a hammer, so everything looks like a nail" thing. Well, there are such things as screws out there as well...
HTML5 and JavaScript will enable fast, cheap, and easy development of all sorts of applications. But they won't be doing certain kinds of applications.
That only means that some cool stuff will get added to Windows 8. It doesn't mean that everything else is invalidated.
Microsoft fully supports F#. For a reason. It does a job that other languages don't do.
While JSON looks like crippled XML, it does have a purpose, and fills a role that XML doesn't neatly fill. Can you be more expressive in XML? Sure. Is that always needed? No.
It seems like every time a new technology comes out, someone wants to pee on an older one. Sometimes that's justified. But only when they address the same problems in the same circumstances. That isn't the case with .NET and HTML5/JavaScript. They address different problems in different circumstances. Is there overlap? Sure. Then it's just a matter of preference or prioritizing.
It kind of reminds me of kids complaining about not liking math. Well... It turns out that sometimes you need math... It also turns out that sometimes you need to know a bit about history, and sometimes about geography, and sometimes about chemistry, and sometimes about...
I only see the new goodies in Win8 being a good thing.