News for hackers. Stuff that matters.
Re:Intel Bringing SIMD to JavaScript by pekk on Wednesday June 11, 2014 @12:48PM (#7878964)
Why not bring SIMD to Lua or Python? Or Lisp, or Haskell? Why not just bring SIMD on the web to anyone who wants it?

Will we have to explain to our grandchildren why they can only write code in some flavor of Javascript? Will it make sense, then, to wave our hands at ActiveX? Or do we have any better ideas for the future?

Mozilla's mission to protect the web from all languages but Javascript is locking us into a future where there will be no choice and nothing better than Javascript, because there will be neither an audience nor hardware support for anything but Javascript.

Re:Intel Bringing SIMD to JavaScript by dragonwriter on Wednesday June 11, 2014 @01:03PM (#7879075)
> Will we have to explain to our grandchildren why they can only write code in some flavor of Javascript?

No, because while JavaScript is the "common" language of the web, its not the only language you can code in on the web -- there are plenty of implementations of other languages with it as a compilation target.

The value of having a guaranteed-to-be-everywhere target language for the web, even if it isn't the preferred development language of every developer, are fairly obvious.

> Mozilla's mission to protect the web from all languages but Javascript is locking us into a future where there will be no choice and nothing better than Javascript

As long as JavaScript keeps getting better -- and, particularly, as long as it is spurred on in that by efforts which propose alternative standard languages for the web with compelling stories so that JS has to keep moving forward in order to be acceptable as the universal, guaranteed target language -- that's fine. "Nothing better than JavaScript" isn't a real limitation if JavaScript is a moving target.

Re:Intel Bringing SIMD to JavaScript by gfxmonk on Wednesday June 11, 2014 @08:56PM (#7881283)
> "Nothing better than JavaScript" isn't a real limitation if JavaScript is a moving target

JS is only a "moving target" in the sense that stuff is being added to it. If you could make a perfect language by just adding things, then we'd be fine.

But the nature of the language itself is not going to change, because that would break backwards compatibility. The type system, prototype inheritance, `this`, type coercions, etc. There are plenty of undesirable things in JS which we're stuck with (unless we break compatibility, in which case it might as well be a different language).

Re:Intel Bringing SIMD to JavaScript by mtdewcmu on Wednesday June 11, 2014 @03:50PM (#7880060)
>>No, because while JavaScript is the "common" language of the web, its not the only language you can code in on the web -- there are plenty of implementations of other languages with it as a compilation target.

Yes. If you prefer low-level programming, then write C++ and compile it to Javascript: http://leaningtech.com/duetto/

You can have your low-level cake and eat your high-level Javascript too.

Re:Intel Bringing SIMD to JavaScript by ripter on Wednesday June 11, 2014 @01:06PM (#7879087)
They either have to bring SIMB to every language or to none at all?

They want to improve web application performance. JavaScript is the only language that works on the web. So they are bringing it to JavaScript. That doesn't mean they won't bring it to other languages in the future.

It doesn't make sense to improve HTML5 game performance by bringing SIMD to Lua or Python.

Re:Intel Bringing SIMD to JavaScript by azakai on Wednesday June 11, 2014 @01:11PM (#7879124)
This is a blogpost by someone at Intel, showing SIMD speedups in Firefox and Chrome. I don't understand why you're using it to criticize JavaScript?
Re:Intel Bringing SIMD to JavaScript by bydo on Wednesday June 11, 2014 @01:23PM (#7879172)
Because the more effort put into improving JavaScript performance, the more entrenched something terrible yet ubiquitous becomes, and the less chance we get of replacing it with something that is not a cyclopean horror?
Re:Intel Bringing SIMD to JavaScript by dragonwriter on Wednesday June 11, 2014 @01:27PM (#7879191)
Personally, I think its a good thing that JS gets SIMD support -- since Dart has it, and it would be better if the discussion over whether a new standard language to replace JS was needed was over language fundamentals, not one competitor or the other missing useful features that aren't part of the fundamental language structure.
Re:Intel Bringing SIMD to JavaScript by spankalee on Wednesday June 11, 2014 @01:50PM (#7879346)
Plus, Dart will be able to use SIMD support when compiling to JavaScript :)
Re:Intel Bringing SIMD to JavaScript by azakai on Wednesday June 11, 2014 @01:42PM (#7879295)
I don't think it's reasonable to avoid improving something because it might then be less likely to be replaced. We do need improvements right now.

The only way around the problem you raise is to make something truly better, and convince people to use it instead.

Re:Intel Bringing SIMD to JavaScript by woah on Wednesday June 11, 2014 @01:40PM (#7879282)
Haha wow. It's just a programming language. == vs === got you tripped up?
Re:Intel Bringing SIMD to JavaScript by CmonDev on Wednesday June 11, 2014 @12:54PM (#7879009)
SIMD will be available for .NET => Python.NET.

PS: this is called "open web" - locking everything and everyone to one language to try and halt innovation.

Re:Intel Bringing SIMD to JavaScript by nawitus on Wednesday June 11, 2014 @01:03PM (#7879073)
You can always escape the "JavaScript lock-in" with a compile-to-JavaScript language. Thanks to asm.js and related performance improvements, you can even compile a "JavaScript binary" that looks nothing like vanilla JavaScript but is still fast.
Re:Intel Bringing SIMD to JavaScript by varunrau on Wednesday June 11, 2014 @12:54PM (#7879005)
For python, can't you use SIMD by way of C extensions?
Re:Intel Bringing SIMD to JavaScript by pekk on Wednesday June 11, 2014 @12:55PM (#7879015)
On the web? Try substituting the name of a different language for Javascript on the linked press release, and see why it doesn't work.
Re:Intel Bringing SIMD to JavaScript by ahoge on Wednesday June 11, 2014 @03:26PM (#7879938)
Huh? If JavaScript the compiler target supports SIMD, your SIMD-supporting language can make use of that.

Dart will do that. Python, Haskell, or whatever are free to do the same.

Re:Intel Bringing SIMD to JavaScript by CmonDev on Thursday June 12, 2014 @04:01AM (#7882294)
I think he is talking about real support and not crappy transpilation.
Re:Intel Bringing SIMD to JavaScript by ahoge on Thursday June 12, 2014 @01:15PM (#7884650)
I don't see how that would be related to SIMD support in JavaScript.