The Next Browser Scripting Language Is — C?
mad.frog writes to tell us that in a recent talk by Adobe's Scott Petersen he demonstrated a new toolchain that he has been working on (and soon to be open-sourced) that allows C code to be run by the Tamarin virtual machine. "The toolchain includes lots of other details, such as a custom POSIX system call API and a C multimedia library that provides access to Flash. And there's some things that Petersen had to add to Tamarin, such as a native byte array that maps directly to RAM, thereby allowing the VM's "emulation" of memory to have only a minor overhead over the real thing. The end result is the ability to run a wide variety of existing C code in Flash at acceptable speeds. Petersen demonstrated a version of Quake running in a Flash app, as well as a C-based Nintendo emulator running Zelda; both were eminently playable, and included sound effects and music."
Now we can finally get this "web operating system" thing I've heard so much about...
Same as the old boss.
We can write PHP! And then browser security will be top notch.
You mean my preferred language has just become cool?
Ok, this is either great news or the world is about to end.
I think I'll go stand in a doorway for an hour or two, just to be on the safe side.
A learning experience is one of those things that say, 'You know that thing you just did? Don't do that.' - D. Adams
... is definitely going to be browser-FORTRAN.
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
All that and a free dozen eggs every 10 secs. What will they think of next?
The more you run away from it, the closer you get to it. So now things are as inevitable as Death, Taxes and C.
A frightful three-some indeed.
MMO Quests are like orgasms:
You may solo them, I prefer them in a group.
The circle is now complete. When C left Unix it was but the back-end. Now, it is the API.
It's a secret to everyone.
Slashdot Burying Stories About Slashdot Media Owned
I feel a great disturbance in the force as if a million admins suddenly screamed in terror . . .
Well, there's spam egg sausage and spam, that's not got much spam in it.
Those who don't remember ActiveX are doomed to reinvent it. Poorly.
Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
... can it run Linux?
only an API of evil, Darth!
For example, does it support buffer overruns? Double free's?
"Long run is a misleading guide to current affairs. In the long run we are all dead." (John Maynard Keynes)
A poorly re-invented ActiveX? I feel like I've just stared into the abyss, and seen Bill staring back at me.
If the "byte array mapped to RAM" installed in Tamarin allows the code to store anywhere in the interpreter's space, that's a huge security hole.
Yes, it is a security hole. It is also a huge win.
The ability to perform pointer arithmetic and manipulate RAM without overhead is indispensable in many applications. I have personally had to suffer mitigation of GC overhead, bounds checking, extra copies, etc. on the JVM, CLR and the AVM. CLR gives you a fairly easy way out with "unmanaged" code. Where you lack this ability you must struggle to prevent unnecessary copies and allocations and still end up with a lower performing result.
Obviously this is inappropriate for insecure web distribution, but there are *many* vertical applications that could leverage this. Think smartphones. You could eradicate nearly all "native" code if you could only do pointer arithmetic in ActionScript. Down at the bottom, where it really counts, buffers are filled and buses are driven, "managed" memory is unacceptable, period.
Low level languages such as C will not be threatened by challengers that lack pointer arithmetic. Simple as that.
That's because you're not 2.0 enough. Everything gets better when run inside a browser. If you have Firefox, you can type chrome://browser/content/browser.xul into the URL^H^H^HAwesome bar. That will run Firefox inside Firefox, exponentially increasing the awesomeness. I tried it and I came when I reached the third layer. That's how awesome running stuff inside a browser is.
I really hope Firefox 4 will have full DirectX 12 support so I can play all my games inside it as well. Also, the next CPU enhancement (like SSE or 3DNow!) will most probably be something that specifically speeds up browsers. Because running stuff in browsers is that awesome and everyone will do it in the furure, even BIOS vendors.
USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)