Questions tagged [google-nativeclient]

Native Client (NaCl) and Portable Native Client (PNaCl) are open-source technologies for executing compiled code in a browser sandbox. PNaCl is portable and preferred but has a few limitations. Questions about the tool chain and SDK for Native Client as well as questions concerning behaviors of the resulting applications should use this tag. Questions involving HTML and JavaScript components used with Native Client may need those tags as well or instead.

The Native Client (NaCl) and Portable Native Client (PNaCl) open-source technologies are designed to run operating system independent, native compiled code securely inside browsers by containing the compiled code in a sandbox. The result is to provide the raw speed needed for browser based applications to compete with traditional software like 3D games, video editing, and other applications. Native Client gives languages like C and C++ the same level of portability and safety that JavaScript provides on the web today.

There are two versions of Native Client: Native Client using the native code of a specific target hardware and Portable Native Client using a portable hardware independent code. The Portable Native Client code is translated to Native Client code for the current hardware at the time it is executed in the sandbox.

Portable Native Client is preferred since one executable can run on multiple hardware while Native Client requires multiple hardware specific versions. However Portable Native Client does have a few limitations and Native Code may be required for a specific application.

A complete application is expected to use Native Client (PNaCl or NaCl) with HTML along with any needed JavaScript and CSS styles (JavaScript and CSS may be included in the HTML file or as separate files). An embed tag with a type of application/x-pnacl for Portable Native Client or application/x-nacl for Native Client is used in an HTML file specifying the application's manifest file to download and start the Native Client application.

Applications may be published through the Chrome Web Store.

From the SDK download page.

Platforms

Native Client supports several operating systems, including Windows, Linux, OSX, and ChromeOS. It supports several architectures including on x86-32, x86-64, ARM, and MIPS.

446 questions
6
votes
2 answers

Error on Chromium ARC Compilation when configure

Getting errors as below, when I follow step 4 of the instruction from Getting Started with ARC Open Source on Linux. OS is Ubuntu 14.04 LTS running in Hyper-V. UBUNTU14:~/arc$ ./configure ERROR:root:While running …
Won
  • 1,795
  • 2
  • 12
  • 22
6
votes
1 answer

How to use Chrome Extension functions (NaCl) in my website?

I have a website and a Google Chrome extension. The extension uses the NaCl API (JavaScript) to write/read files (C++) from user's computer. My question is: Can I load my extension in my website, for example, in an iFrame and keep its functions? I…
6
votes
1 answer

C++ Difference Between const char* and const char[]

I read a question on the difference between: const char* and const char[] where as for a while, I though arrays were just syntactic sugar for pointers. But something is bugging me, I have a pice of code similar to the following: namespace…
6
votes
2 answers

avformat_open_input return value, error code on NaCl Module

I'm trying to port FFmpeg into my NaCl module. So far, my module linked ffmpeg and SDL libraries. It already can play YUV format video which is directed load into memory and copy into YUVOverlay buffer (it's very easy). Now, I want to use ffmpeg to…
Jar
  • 185
  • 3
  • 10
5
votes
2 answers

Can I access the filesystem with Google NaCl?

Since Google NaCl is C++, will I be able to access the file system somehow? That's pretty much needed if I am to create a game or a desktop app.
Tower
  • 98,741
  • 129
  • 357
  • 507
5
votes
2 answers

With Native Client (NaCl) is it possible to embed a server in a page that can accept incoming requests?

Is it possible to open a port using Native Client that other browsers can connect to? Like a browser to browser connection?
Alexis
  • 23,545
  • 19
  • 104
  • 143
5
votes
2 answers

What are the differences between Microsoft's ActiveX and Google's Native Client?

Microsoft's ActiveX and Google's Native Client both allow you to build web applications that execute native compiled code inside the browser. Besides the fact that they operate on different browsers and operating systems, what are the technical…
Rudiger
  • 59
  • 3
5
votes
0 answers

Including ffmpeg with Chrome?

I'm trying to do something similare to VideoStream They include ffmpeg with nacl and include it in a chrome app I've beeen working on it, but I can't have the naclportlist ffmpeg working on my project ! The reasons are those nacl doesn't work with…
alexino2
  • 101
  • 10
5
votes
1 answer

Is chrome.fileSystem usable inside google Native Client

Is it possible to use chrome.fileSystem inside NaCl? Thanks
5
votes
1 answer

PNaCl support for Rust

I want to execute intensive computations on client side in chrome with PNaCl (and avoid C++)...Since Rust use llvm as a backend (which is the PNaCl input), it seems an interesting option. But Rust currently uses a fork of llvm, and the only example…
nicoxx
  • 111
  • 2
5
votes
1 answer

Can't get NaCl C++ module to load file from within packaged app

I have a chrome packaged app that also includes a PNaCl/NaCl C++ module, as well as some data files which the NaCl module needs to read in. However, I am not able to get it to read in the files. I set it up according to all the documentation and…
danf
  • 293
  • 3
  • 12
5
votes
3 answers

launch my installed application from chrome browser

My requirement is to launch my installed application from chrome browser if it is installed on client machine, If not installed then I wanted to start download. What is best recommended solution for chrome? So fare i tried following used NPAPI, but…
5
votes
2 answers

What other programming languages run on PNaCl?

As I understand it, PNaCl is designed to support C and C++. Has anyone managed to get any other languages (that compile to native code) to run in PNaCl?
J D
  • 48,105
  • 13
  • 171
  • 274
5
votes
3 answers

Google chrome extension with NPAPI moving to NaCl

I have recently developed a google chrome extension that uses an NPAPI plugin made using the FireBreath framework. I just now found out that google will shortly discontinue these types of plugins and eventually ban all existing extensions that use…
5
votes
1 answer

Can I use Gambit-C, Mlton, or Chicken Scheme with Google's Native Client

Those functional language compilers can each compile a functional language to C code. Google's NaCl SDK can compile C. Is it reasonable to create Native Client applications by compiling first with one of those other compilers and running the…
1
2
3
29 30