News for hackers. Stuff that matters.
Re:Chromium Blog: A sneak peek at the Native Client SDK by equark on Wednesday May 12, 2010 @01:46PM (#1341656)
This looks horrendous. Watch the video for the hello world example. It's probably 100 lines of unintelligible code.

Miguel de Icaza's CLI for the web idea (http://tirania.org/blog/archive/2010/May-03.html) looks like a much better approach.

Re:Chromium Blog: A sneak peek at the Native Client SDK by weavejester on Wednesday May 12, 2010 @02:05PM (#1341720)
It doesn't really matter that the code is unintelligible. One can use higher-level languages on top.

What isn't so good is that NaCl targets the architecture of the host machine. So you're not going to be able to run a NaCl app compiled on x86 on a browser running under ARM. Someone please correct me if I'm wrong.

Miguel suggesting CLI isn't exactly surprising ;), but personally I'd prefer to use a sandboxed VM based on LLVM. CLI makes too many assumptions about the architecture of your language, whilst LLVM is more low-level.

Re:Chromium Blog: A sneak peek at the Native Client SDK by Detrus on Wednesday May 12, 2010 @02:28PM (#1341793)
You can compile your binary for multiple architectures, check the type of processor and give it the appropriate binary.

They also have the LLVM option so that old binaries keep working on new architectures without recompiling and rewriting NaCl for them, but it has downsides http://blog.chromium.org/2010/03/native-client-and-web-porta...

The reason they didn't go with LLVM as the main approach was performance. Google wants there to be no distinction between desktop and web apps, and for web apps to have even 60% of desktop performance is still unacceptable. 90+% is more like it.

Re:Chromium Blog: A sneak peek at the Native Client SDK by weavejester on Wednesday May 12, 2010 @02:43PM (#1341835)
It's good to know that there's work being done in marrying LLVM to NaCl. Even 60% performance seems a very fair trade-off for low-level, platform-neutral, sandboxed binaries.
Re:Chromium Blog: A sneak peek at the Native Client SDK by nimrody on Wednesday May 12, 2010 @02:28PM (#1341791)
Regarding LLVM -- See the comment about PNaCl (Portable Native Code Client). This is portable code based on LLVM intermediate representation.
Re:Chromium Blog: A sneak peek at the Native Client SDK by enneff on Wednesday May 12, 2010 @02:14PM (#1341756)
Go runs under NaCl - check out setting up a rendering context for a simple tetris game: http://golang.org/src/pkg/exp/4s/4s.go It's literally a couple of lines in the main function. Pretty straightforward.

I think the guys here chose a less-than-ideal way of demoing the interface for this video, which is surprising.

Re:Chromium Blog: A sneak peek at the Native Client SDK by valisystem on Wednesday May 12, 2010 @01:59PM (#1341700)
You just have to port your CLI to native client and it's done, the ugly code is wrote once and then shared.