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
0
votes
1 answer

Storing user data for a C-based Native Client instance

I have been working on C-based Native Client module for Google Chrome. Many of the module functions that are called by the NaCl system have a parameter of PP_Instance which uniquely identifies the module instance. My question: Is there any way to…
Multimedia Mike
  • 12,660
  • 5
  • 46
  • 62
-1
votes
3 answers

Google Native Client - How to protect the source code?

With Google Native Client, can the source code be protected so that, unlike JavaScript, it is not visible in the client? If so, how? Thanks!
Edove
  • 1
  • 1
-1
votes
1 answer

c_str() returns empty string

For some reason c_str() returns empty string, the parameter const chart**out_function will hold a method name for file operations like fopen so basically what I do is converting a string I have to c_str() but I get an empty string below is how I do…
Mohammad Abu Musa
  • 1,117
  • 2
  • 10
  • 32
-1
votes
1 answer

Mounting two locations with html5fs and different PERSISTENT and TEMPORARY types

I am using nacl_io library in my project. Is it possible to mount two locations with html5fs file system but different type PERSISTENT and TEMPORARY at the same time? Thanks.
KaBa
  • 285
  • 3
  • 16
-1
votes
1 answer

Native Client(NACI) can invoke a third-party DLL file?

I want to know that Native Client(NACI) can invoke a third-party DLL file?
fx-116211
  • 21
  • 1
-1
votes
1 answer

NPAPI plugin to NACL

:) Well, I have NPAPI plugin, and I need convert it to Native Client (NACL). I have all C/C++ code, but It has not made by me. So I' just a beginner about C/C++ plugins. I have been reading about NACL, and starting with the tutorial and first…
esneyderp
  • 111
  • 1
  • 12
-1
votes
1 answer

Switch platform spotlight not working?

this is the built version this is the game view version settings it was working fine before and building the same untill i switched platforms and built web player version and google native client version, i cannot find anything on it, before i…
JRowan
  • 6,824
  • 8
  • 40
  • 59
-2
votes
1 answer

On 21 Sept 2016, Is pepper_49 the stable release right NOW?

Naclsdk list indicates pepper_49 as the stable release C:\nacl_sdk>naclsdk.bat list Bundles: I: installed *: update available I sdk_tools (stable) vs_addin (dev) pepper_44 (post_stable) I pepper_45 (post_stable) pepper_46…
menrfa
  • 1,527
  • 12
  • 13
-2
votes
1 answer

how to call simple addition function in c file from javascript through native client

I have installed **naclsdk** with stable pepper35 version. i found getting started tutorial for c++ but i cant find any simple tutorial for c.As i new to chrome-native client it will be helpful if any one tells how to call simple c function from…
-3
votes
1 answer

Has anyone ported a standard toolkit onto pepper?

I was wondering if anyone has ported a standard toolkit like gdk (gtk), qt (kde) or fltk to the pepper api? Or written a cross platform api that includes pepper? I would like to write my code to work with both X11 and nacl.
hildred
  • 453
  • 11
  • 29
-4
votes
1 answer

Source code for chrome plugin "NaCl Development Environment"

I am looking for source code of Google chrome plugin "NaCl Development Environment". Not sure if source code for it is yet open. Can someone please help me with it.
Xinus
  • 29,617
  • 32
  • 119
  • 165
1 2 3
29
30