Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: native_client_sdk/src/doc/migration/index.rst

Issue 2875303003: Add migration to WebAssembly information to PNaCl / NaCl docs. (Closed)
Patch Set: fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 .. _migration:
2
3 WebAssembly Migration Guide
4 ===========================
5
6 (P)NaCl Deprecation Announcements
7 ---------------------------------
8
9 We recently announced the deprecation of Portable NativeClient
10 as well as the deprecation of
11 `Chrome Apps
12 <https://blog.chromium.org/2016/08/from-chrome-apps-to-web.html>`_
13 outside of ChromeOS.
14 As a result, in the near future, PNaCl will no longer be supported in Chrome.
seththompson 2017/05/17 22:08:16 I think we should be sure to mention this is an "u
bradn 2017/05/18 05:39:25 Done by way of using the one below and reordering.
15 And NaCl will be supported only in the context of ChromeOS and Extensions.
16
17 We appreciate the investment you've made bringing native code to the Web
seththompson 2017/05/17 22:08:16 I think this sentence is a bit jarring: it starts
bradn 2017/05/18 05:39:25 Done.
18 with these pioneering solutions, but have now refocused our efforts
19 on the cross browser `WebAssembly <http://webassembly.org>`_ standard
20 in order to bring similar functionality to the Web in general.
21 While WebAssembly currently cannot match all of (P)NaCl's capabilities,
22 we are working to expand its capabilities in tandem with other
23 browsers, and believe most use cases will soon be covered.
24
25
26 Toolchain Migration
27 -------------------
28
29 For the majority of (P)NaCl uses cases we recommend transitioning
30 from the NaCl SDK to `Emscripten
31 <http://webassembly.org/getting-started/developers-guide/>`_.
32 While direct support for NaCl / Pepper APIs in not available,
33 we've attempted to list equivalents.
34 Migration is likely to be reasonably straightforward
35 if your application is portable to Linux, uses
36 `SDL <https://www.libsdl.org/>`_, or POSIX APIs.
37 For more challenging porting cases, please reach out on
38 native-client-discuss@googlegroups.com
39
40
41 API Migration
42 -------------
43
44 We've outlined here the status of Web Platform substitutes for each
45 of the APIs exposed to (P)NaCl.
46 Additionally, the table lists the library or option in Emscripten
47 that offers the closest substitute.
48
49 We expect to add shared memory threads support to WebAssembly in 2017,
50 as threads are crucial to matching (P)NaCl's most interesting use
51 cases. Migration items which assume forthcoming threads support
52 are marked below. If your application's flow control relies heavily on blocking
53 APIs, you may also find threads support is required for convenient porting.
54
55 While we've tried to be accurate in this table,
56 there are no doubt errors or omissions.
57 If you encounter one, please reach out to us on
58 native-client-discuss@googlegroups.com
59
60 .. contents::
61 :local:
62 :backlinks: none
63 :depth: 2
64
65 PPAPI
66 -----
67 .. raw:: html
68 :file: public.html
69
70 IRT
71 ---
72 .. raw:: html
73 :file: public.html
74
75 PPAPI (Apps)
76 ------------
77 .. raw:: html
78 :file: apps.html
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698