{"id":232123,"date":"2021-12-22T09:00:48","date_gmt":"2021-12-22T01:00:48","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=232123"},"modified":"2021-12-18T00:05:39","modified_gmt":"2021-12-17T16:05:39","slug":"webassembly-goes-from","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/webassembly-goes-from.html","title":{"rendered":"WebAssembly \u4ece\u6d4f\u89c8\u5668\u8d70\u5411\u4e91\u539f\u751f"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u8fc7\u53bb\u51e0\u5e74\uff0c\u4e91\u8ba1\u7b97\u7684\u8fb9\u754c\u4e0d\u65ad\u5411\u8fb9\u7f18\u4fa7\u5ef6\u4f38\u3002\u4f5c\u4e3a\u4e91\u539f\u751f\u6280\u672f\u4e8b\u5b9e\u6807\u51c6\u7684 Kubernetes+ \u5bb9\u5668\u7ec4\u5408\uff0c\u81ea\u7136\u4e5f\u88ab\u5f88\u591a\u4eba\u8003\u8651\u90e8\u7f72\u5230\u8fb9\u7f18\u4fa7\uff0c\u4ee5\u63d0\u9ad8\u8fb9\u7f18\u5e94\u7528\u90e8\u7f72\u7684\u6548\u7387\u548c\u4fbf\u5229\u6027\uff0c\u964d\u4f4e\u8fb9\u7f18\u5e94\u7528\u4e0e\u786c\u4ef6\u4e4b\u95f4\u7684\u8026\u5408\u5ea6\u3002\u4e0d\u8fc7 Kubernetes+ \u5bb9\u5668\u7ec4\u5408\u5e76\u975e\u4e07\u7528\u826f\u836f\uff0c\u5bf9\u4e8e\u8fb9\u7f18\u8ba1\u7b97\u573a\u666f\u6765\u8bf4\uff0c\u5b83\u4eec\u8fd8\u662f\u592a\u91cd\u4e86\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u8fb9\u7f18\u8bbe\u5907\u901a\u5e38\u786c\u4ef6\u8d44\u6e90\u6709\u9650\uff0c\u6ca1\u6709\u8db3\u591f\u7684\u8d44\u6e90\u90e8\u7f72\u8fd0\u884c\u5b8c\u6574\u7684 Kubernetes\u3002\u5176\u4ed6\u95ee\u9898\u8fd8\u6709\uff1a\u5f88\u591a\u8fb9\u7f18\u8bbe\u5907\u57fa\u4e8e ARM \u67b6\u6784\uff0c\u4f46\u5927\u90e8\u5206 Kubernetes \u53d1\u884c\u7248\u4e0d\u652f\u6301 ARM \u67b6\u6784\uff1b\u8fb9\u7f18\u8bbe\u5907\u6240\u5904\u73af\u5883\u590d\u6742\uff0c\u65e0\u6cd5\u4fdd\u8bc1\u7a33\u5b9a\u53ef\u9760\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u800c Kubernetes \u4e0d\u652f\u6301\u79bb\u7ebf\u8fd0\u884c\uff0c\u7b49\u7b49\u3002\u4e3a\u4e86\u89e3\u51b3\u5305\u542b\u4f46\u4e0d\u9650\u4e8e\u4ee5\u4e0a Kubernetes \u5728\u8fb9\u7f18\u8ba1\u7b97\u573a\u666f\u4e0b\u7684\u6311\u6218\uff0c\u66f4\u597d\u5730\u5c06 Kubernetes \u4ece\u4e91\u7aef\u5ef6\u4f38\u5230\u8fb9\u7f18\uff0c\u4e1a\u5185\u5df2\u7ecf\u8bde\u751f\u4e86\u591a\u4e2a\u57fa\u4e8e\u539f\u751f Kubernetes \u4f18\u5316\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u6bd4\u5982\u534e\u4e3a\u5f00\u6e90\u7684 KubeEdge\u3001\u963f\u91cc\u5f00\u6e90\u7684 OpenYurt\u3001\u817e\u8baf\u5f00\u6e90\u7684 SuperEdge\u3001Rancher \u5f00\u6e90\u7684 K3s \u7b49\uff0c\u5e76\u4e14\u8fd9\u56db\u4e2a\u9879\u76ee\u90fd\u5df2\u7ecf\u88ab\u4e91\u539f\u751f\u8ba1\u7b97\u57fa\u91d1\u4f1a\uff08\u4e0b\u6587\u7b80\u79f0 CNCF\uff09\u63a5\u6536\u3002<\/p>\n

\u800c\u4f20\u7edf\u5bb9\u5668\u65b9\u6848\u6bd4\u5982 Docker\uff0c\u95ee\u9898\u4e0e Kubernetes \u7c7b\u4f3c\uff0c\u5b83\u8fd8\u662f\u4e00\u4e2a\u76f8\u5bf9\u91cd\u7684\u5bb9\u5668\u8fd0\u884c\u65f6\uff0c\u955c\u50cf\u5927\u5c0f\u5f88\u5bb9\u6613\u5c31\u8fbe\u5230\u4e00\u4e24\u767e MB \u4ee5\u4e0a\uff0c\u5bf9\u4e8e\u8d44\u6e90\u4e0d\u8db3\u7684\u786c\u4ef6\u2014\u2014\u8fb9\u7f18\u573a\u666f\u6709\u4e0d\u5c11\u5185\u5b58\u548c\u78c1\u76d8\u7a7a\u95f4\u5c0f\u4e8e 1GB \u7684\u5fae\u578b\u8bbe\u5907\uff0cDocker \u4e5f\u4e0d\u662f\u4e00\u4e2a\u7406\u60f3\u7684\u9009\u62e9\u3002<\/p>\n

\u8fb9\u7f18\u8ba1\u7b97\u4e0d\u4ec5\u9700\u8981\u66f4\u8f7b\u91cf\u7684 Kubernetes\uff0c\u4e5f\u9700\u8981\u66f4\u8f7b\u91cf\u3001\u66f4\u5feb\u7684\u5bb9\u5668\u65b9\u6848\uff0cWebAssembly \u5c31\u662f\u8fd1\u51e0\u5e74\u51fa\u73b0\u7684\u4e00\u4e2a\u65b0\u9009\u62e9\u3002<\/p>\n

2021 \u5e74\uff0c\u4e91\u539f\u751f\u793e\u533a\u5bf9 WebAssembly \u7684\u5174\u8da3\u6108\u53d1\u6d53\u539a\uff0cWebAssembly \u5728\u4e91\u539f\u751f\u65b9\u5411\u4e5f\u5341\u5206\u6d3b\u8dc3\u3002\u5230\u76ee\u524d\u4e3a\u6b62\uff0cCNCF \u5df2\u7ecf\u6b63\u5f0f\u63a5\u6536\u4e86\u81f3\u5c11\u4e09\u4e2a WebAssembly \u9879\u76ee\uff0c\u5305\u62ec\uff1aWasmEdge Runtime\uff0c\u4e00\u4e2a\u4e91\u539f\u751f WebAssembly runtime\uff1bwasmCloud\uff0c\u4e00\u4e2a WebAssembly \u5e94\u7528\u7a0b\u5e8f\u6846\u67b6\uff1bKrustlet\uff0c\u4e00\u4e2a\u5728 Kubernetes pods \u4e2d\u8fd0\u884c WebAssembly \u7a0b\u5e8f\u7684\u5de5\u5177\u3002\u5176\u4e2d\uff0cWasmEdge \u548c Kruslet \u901a\u8fc7\u4e24\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\uff0c\u505a\u5230\u4e86\u8ba9 Kubernetes \u96c6\u7fa4\u4e2d\u7684 WebAssembly \u5de5\u4f5c\u8d1f\u8f7d\u53ef\u4ee5\u4e0e\u4f20\u7edf\u5bb9\u5668\uff08\u4f8b\u5982 containerd\u3001Docker \u548c CRI-O\uff09\u5e76\u5217\u8fd0\u884c\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u4e0e\u7ba1\u7406 Docker \u5e94\u7528\u7a0b\u5e8f\u5b8c\u5168\u76f8\u540c\u7684\u5de5\u5177\u6765\u7ba1\u7406 WebAssembly \u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n

\u800c\u8bf4\u5230 WebAssembly \u6700\u521d\u4e0e Docker\u3001\u4e91\u539f\u751f\u4ea7\u751f\u5173\u8054\uff0c\u5c31\u4e0d\u5f97\u4e0d\u63d0 Docker \u8054\u5408\u521b\u59cb\u4eba Solomon Hykes \u5728 2019 \u5e74 3 \u6708\u4efd\u53d1\u5e03\u7684\u4e00\u6761\u63a8\u6587\u3002\u4ed6\u5728\u63a8\u6587\u4e2d\u8868\u793a\uff1a\u5982\u679c WASM\uff08WebAssembly\uff09\u548c WASI\uff08WebAssembly System Interface, WASM \u7cfb\u7edf\u63a5\u53e3\uff09\u5728 2008 \u5e74\u5c31\u5df2\u7ecf\u5b58\u5728\uff0c\u90a3\u5c31\u6ca1\u6709\u5fc5\u8981\u521b\u5efa Docker \u4e86\u3002<\/p>\n

\"\"<\/p>\n

\u8fd9\u6761\u63a8\u6587\u5728\u793e\u533a\u91cc\u5f15\u8d77\u4e86\u5f88\u5927\u7684\u53cd\u54cd\uff0c\u6709\u8d5e\u540c\u8005\uff0c\u4f46\u66f4\u591a\u7684\u662f\u8d28\u7591\uff1aWebAssembly \u8fd9\u4e2a\u53d1\u6e90\u4e8e\u6d4f\u89c8\u5668\u7684\u4e1c\u897f\uff0c\u600e\u4e48\u7a81\u7136\u5c31\u80fd\u5728\u670d\u52a1\u7aef\u53d6\u4ee3 Docker \u4e86\u5462\uff1f\u968f\u540e Solomon \u53c8\u53d1\u5e03\u4e86\u4e00\u6761\u63a8\u6587\u89e3\u91ca\u9053\uff1aWebAssembly \u4e0d\u4f1a\u53d6\u4ee3 Docker\uff0c\u4f46\u662f\u53ef\u4ee5\u60f3\u8c61\u672a\u6765 WebAssembly \u5e94\u7528\u5bb9\u5668\u5c06\u4e0e Linux \u5bb9\u5668\u3001Windows \u5bb9\u5668\u5728 Docker \u4e2d\u5e76\u5217\u8fd0\u884c\u3002\u5982\u4eca\uff0cSolomon \u8bf4\u7684\u672a\u6765\u5df2\u7ecf\u6210\u4e3a\u73b0\u5b9e\uff0c\u53ea\u4e0d\u8fc7\u4ed6\u539f\u8bdd\u4e2d\u7684 Docker \u66ff\u6362\u6210 Kubernetes \u66f4\u51c6\u786e\u3002<\/p>\n

\"\"<\/p>\n

Crun \u662f Kubernetes \u793e\u533a\u91cc\u6700\u6d41\u884c\u7684\u5bb9\u5668\u8fd0\u884c\u4e0e\u7ba1\u7406\u5de5\u5177\uff0c\u7531\u7ea2\u5e3d\u8f6f\u4ef6\u53d1\u8d77\uff0c\u4e00\u5f00\u59cb\u53ea\u652f\u6301\u57fa\u4e8e Linux \u7684\u5e94\u7528\u5bb9\u5668\u3002\u4f46\u6700\u8fd1 crun \u9879\u76ee\u5df2\u7ecf\u6b63\u5f0f\u652f\u6301 WasmEdge\uff0c\u80fd\u540c\u65f6\u8fd0\u884c\u4e0e\u7ba1\u7406 WasmEdge \u5bb9\u5668\u955c\u50cf\u4e0e Linux \u5bb9\u5668\u955c\u50cf\u3002\u901a\u8fc7 crun \u7684\u5e95\u5c42\u652f\u6301\uff0c\u76ee\u524d WebAssembly \u5df2\u7ecf\u878d\u5165\u5230\u4e86\u6574\u4e2a Kubernetes \u751f\u6001\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528 Kubernetes\u3001Containerd\u3001CRIO \u3001Docker Hub \u6765\u7ba1\u7406 WebAssembly \u955c\u50cf\u3002<\/p>\n

\u90a3\u4e48\uff0cWebAssembly \u662f\u5982\u4f55\u4ece\u524d\u7aef\u8d70\u5411\u540e\u7aef\u7684\uff1fWasmEdge \u5728\u5176\u4e2d\u626e\u6f14\u4ec0\u4e48\u6837\u7684\u89d2\u8272\uff1f\u672a\u6765\u5728\u5e9e\u5927\u7684\u4e91\u539f\u751f\u751f\u6001\u4e2d\uff0cWebAssembly \u53c8\u4f1a\u5360\u636e\u4ec0\u4e48\u6837\u7684\u4f4d\u7f6e\uff1fInfoQ \u8fd1\u65e5\u6709\u5e78\u4e13\u8bbf\u4e86 WasmEdge \u9879\u76ee\u521b\u59cb\u4eba Michael Yuan\uff0c\u8bf7\u4ed6\u8ddf\u6211\u4eec\u804a\u804a\u4ed6\u5bf9\u4e8e WebAssembly \u7684\u601d\u8003\uff0c\u4ee5\u53ca WasmEdge \u7684\u53d1\u5c55\u5386\u7a0b\u548c\u5b9a\u4f4d\u3002<\/p>\n

WebAssembly \u4ece\u6d4f\u89c8\u5668\u8d70\u5411\u4e91\u539f\u751f<\/strong><\/p>\n

Michael \u6709\u4e00\u4e2a\u867d\u7136\u53ef\u80fd\u5f15\u53d1\u4e89\u8bba\u4f46\u5f88\u6709\u610f\u601d\u7684\u7406\u8bba\uff0c\u4ed6\u8ba4\u4e3a\uff0c\u540e\u7aef\u7684\u6280\u672f\u6bcf\u9694\u5341\u5e74\u5de6\u53f3\u603b\u8981\u91cd\u65b0\u53d1\u660e\u4e00\u6b21\u8f6e\u5b50\u30021999-2000 \u5e74 Java \u7ed9\u540e\u7aef\u5e26\u6765\u4e86\u9769\u547d\u6027\u7684\u53d8\u5316\uff0c\u5341\u5e74\u540e\u4e3b\u89d2\u6362\u6210\u4e86 JavaScript\uff0c\u539f\u672c JavaScript \u4e00\u76f4\u662f\u524d\u7aef\u8bed\u8a00\uff0c\u4f46\u81ea Node.js \u8bde\u751f\u540e\u8d8a\u6765\u8d8a\u591a\u4eba\u4e5f\u5728\u540e\u7aef\u4f7f\u7528 JavaScript \u4e86\u3002\u8fd9\u80cc\u540e\u7684\u903b\u8f91\u5728\u4e8e\uff0c\u5f00\u53d1\u8005\u9700\u8981\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u4e14\u5bb9\u6613\u7406\u89e3\u7684\u6280\u672f\uff0c\u4f46\u540e\u7aef\u7c7b\u8f6f\u4ef6\u6bcf\u53d1\u5c55\u5230\u4e00\u5b9a\u9636\u6bb5\u4e4b\u540e\u90fd\u4f1a\u53d8\u5f97\u76f8\u5f53\u590d\u6742\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u4f1a\u6709\u5f00\u53d1\u8005\u60f3\u91cd\u9020\u4e00\u4e2a\u590d\u6742\u5ea6\u6ca1\u90a3\u4e48\u9ad8\u7684\u65b0\u8f6e\u5b50\u51fa\u6765\uff0c\u6bcf\u5341\u5e74\u5de6\u53f3\u5c31\u4f1a\u6709\u4e00\u4e2a\u8fd9\u6837\u7684\u5468\u671f\u30022019 \u5e74\u6b63\u597d\u662f\u4e00\u4e2a\u65b0\u5341\u5e74\u5468\u671f\u7684\u5f00\u59cb\uff0c\u800c WebAssembly \u5c31\u662f Michael \u8ba4\u4e3a\u7684\u8fd9\u4e00\u4e2a\u5341\u5e74\u5468\u671f\u7684\u65b0\u8f6e\u5b50\uff0c\u5728\u4ed6\u770b\u6765\uff0cWebAssembly \u4e5f\u4f1a\u4ece\u524d\u7aef\u8f6c\u79fb\u5230\u540e\u7aef\u7136\u540e\u628a\u540e\u7aef\u9769\u547d\u6389\u3002<\/p>\n

WebAssembly \u53d1\u6e90\u4e8e\u6d4f\u89c8\u5668\u7aef\uff0c\u6700\u521d\u4e3b\u8981\u8bbe\u8ba1\u6765\u6539\u5584 JavaScript \u7684 Native \u6027\u80fd\u548c\u4ee3\u7801\u6267\u884c\u6548\u7387\u30022019 \u5e74 12 \u6708 5 \u65e5\uff0cWebAssembly \u7ecf\u8fc7\u4e07\u7ef4\u7f51\u8054\u76df\uff08W3C\uff09\u63a8\u8350\uff0c\u4e0e HTML\u3001CSS \u548c JavaScript \u4e00\u8d77\uff0c\u6210\u4e3a\u4e86 Web \u7684\u7b2c\u56db\u79cd\u8bed\u8a00\u3002<\/p>\n

2021 \u5e74 7 \u6708\uff0c\u8ba1\u7b97\u673a\u534f\u4f1a\u7f16\u7a0b\u8bed\u8a00\u7279\u522b\u5174\u8da3\u5c0f\u7ec4\u5c06\u5176\u4eab\u6709\u76db\u8a89\u7684\u7f16\u7a0b\u8bed\u8a00\u8f6f\u4ef6\u5956\uff08Programming Language Software Award\uff09\u9881\u7ed9\u4e86 WebAssembly\uff0c\u9ad8\u5ea6\u80af\u5b9a\u4e86 WebAssembly \u4f5c\u4e3a\u201c\u81ea JavaScript \u4ee5\u6765\u7b2c\u4e00\u79cd\u5728 Web \u6d4f\u89c8\u5668\u4e2d\u5e7f\u6cdb\u91c7\u7528\u7684\u65b0\u8bed\u8a00\u201d\u7684\u6210\u5c31\u3002<\/p>\n

\u4e0d\u8fc7 Michael \u8ba4\u4e3a WebAssembly \u66f4\u5927\u7684\u5e02\u573a\u5728\u540e\u7aef\u3002\u867d\u7136 WebAssembly \u5728\u6d4f\u89c8\u5668\u91cc\u786e\u5b9e\u53d1\u6325\u4e86\u91cd\u8981\u4f5c\u7528\uff0c\u4f46\u6ca1\u6709\u8fbe\u5230\u201c\u5fc5\u8981\u201d\u7684\u7a0b\u5ea6\uff0c\u201c\u6709\u4e86\u6700\u597d\uff0c\u4f46\u6ca1\u6709\u4e5f\u80fd\u7528\u201d\u3002WebAssembly \u5728\u524d\u7aef\u5b8c\u6210\u7684\u6700\u91cd\u8981\u4e5f\u6700\u6709\u610f\u4e49\u7684\u4e00\u4ef6\u4e8b\u60c5\uff0c\u662f\u5728 Google\u3001Apple\u3001Mozilla\u3001\u5fae\u8f6f\u8fd9\u6837\u7684\u5927\u5382\u548c W3C \u8fd9\u6837\u7684\u7ec4\u7ec7\u8054\u5408\u63a8\u52a8\u4e0b\uff0c\u5b9e\u73b0\u4e86\u5f88\u597d\u7684\u6807\u51c6\u5316\uff0c\u8fd9\u662f\u540e\u6765\u7684\u6280\u672f\u5f88\u96be\u53bb\u8ddf WebAssembly \u7ade\u4e89\u7684\u5730\u65b9\u3002\u4e5f\u6b63\u56e0\u4e3a\u5df2\u7ecf\u901a\u8fc7\u6d4f\u89c8\u5668\u7aef\u505a\u597d\u4e86\u6807\u51c6\u5316\uff0cWebAssembly \u624d\u6709\u53ef\u80fd\u4ece\u524d\u7aef\u8d70\u5411\u540e\u7aef\uff0c\u624d\u53ef\u80fd\u5728\u540e\u7aef\u505a\u66f4\u591a\u7684\u4e8b\u60c5\u3002<\/p>\n

Michael \u8ba4\u4e3a\u73b0\u5728 WebAssembly \u60f3\u8981\u89e3\u51b3\u7684\u95ee\u9898\uff0c\u8ddf\u5b83\u521a\u8bde\u751f\u65f6\u60f3\u8981\u89e3\u51b3\u7684\u95ee\u9898\u662f\u4e00\u81f4\u7684\u3002\u8fd9\u4e2a\u6838\u5fc3\u95ee\u9898\u5c31\u662f\u8981\u5728\u4e00\u4e2a\u5927\u578b\u5e94\u7528\u7a0b\u5e8f\u91cc\uff0c\u7ed9\u5f00\u53d1\u8005\u63d0\u4f9b\u4e00\u4e2a\u53ef\u4ee5\u5199\u6269\u5c55\u7684\u673a\u4f1a\u3002\u4e00\u5f00\u59cb\u662f\u5728\u6d4f\u89c8\u5668\u91cc\u9762\u53ef\u4ee5\u5199\u5e94\u7528\uff0c\u8fd9\u5c31\u662f\u5bf9\u6d4f\u89c8\u5668\u7684\u4e00\u79cd\u6269\u5c55\uff0c\u53ea\u662f\u539f\u6765\u53ea\u80fd\u7528 JavaScript \u5199\uff0c\u73b0\u5728\u6709\u4e86\u4e00\u4e2a\u65b0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528 C++ \u5199\u3001\u53ef\u4ee5\u7528 Rust \u5199\uff0c\u7136\u540e\u7f16\u8bd1\u6210 WebAssembly \u53bb\u8fd0\u884c\u3002<\/p>\n

\u800c\u4eca\u5929\u7684 WebAssembly \u5e94\u7528\u4f9d\u7136\u5ef6\u7eed\u7740\u8fd9\u4e2a\u60f3\u6cd5\u3002\u6bd4\u5982\u5728\u8fb9\u7f18\u8ba1\u7b97\u573a\u666f\uff0c\u6216\u8005\u5728 SaaS \u5e94\u7528\u573a\u666f\uff0c\u90fd\u662f\u6709\u4e00\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u6216\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ee5\u524d\u8fd9\u4e2a\u7cfb\u7edf\u5916\u90e8\u5f00\u53d1\u8005\u662f\u8fdb\u4e0d\u53bb\u7684\uff0c\u5982\u679c\u8981\u5b89\u5168\u5730\u8fd0\u884c\u5916\u90e8\u5f00\u53d1\u8005\u63d0\u4ea4\u7684\u4ee3\u7801\uff0c\u4e00\u4e2a\u65b9\u6cd5\u5c31\u662f\u628a\u4ee3\u7801\u88c5\u5728 Docker \u91cc\u8fd0\u884c\u3002\u4f46\u662f Docker \u53c8\u592a\u91cd\u4e86\uff0c\u6709\u4e86 WebAssembly \u5c31\u53ef\u4ee5\u6253\u5f00\u4e00\u4e2a\u53e3\u5b50\uff0c\u628a\u4efb\u4f55\u4e00\u4e2a\u8f6f\u4ef6\u90fd\u53d8\u6210\u5e73\u53f0\u3002\u8fd9\u4e5f\u662f\u76ee\u524d\u6d41\u884c\u7684\u4e00\u4e2a\u5927\u8d8b\u52bf\uff0c\u5373\u201c\u8f6f\u4ef6\u5e73\u53f0\u5316\u201d\u3002<\/p>\n

\u6240\u4ee5 WebAssembly \u9664\u4e86\u662f\u4e00\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u4e5f\u88ab\u89c6\u4f5c\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u3001\u5feb\u901f\u3001\u5b89\u5168\u548c\u591a\u8bed\u8a00\u7684\u51fd\u6570\u201c\u5bb9\u5668\u201d\uff0c\u548c Docker \u5c5e\u4e8e\u4e0d\u540c\u62bd\u8c61\u5c42\u6b21\u3002\u5982\u4f55\u7406\u89e3\uff1f<\/p>\n

Michael \u8868\u793a\u5bb9\u5668\u76f8\u5173\u6280\u672f\u53ef\u4ee5\u5206\u4e3a\u4e09\u4e2a\u62bd\u8c61\u5c42\u6b21\uff0c\u5176\u4e2d\u865a\u62df\u673a\u662f\u5728\u8ba1\u7b97\u673a\u5c42\u9762\u7684\u62bd\u8c61\uff1b\u5e94\u7528\u5bb9\u5668\u5982 Docker \u662f\u5728\u64cd\u4f5c\u7cfb\u7edf\u5c42\u9762\u7684\u62bd\u8c61\uff1bWebAssembly \u5219\u662f\u5728\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u7a0b\u5c42\u9762\u7684\u62bd\u8c61\uff0c\u5b83\u4e0e JVM\u3001V8 \u90fd\u5c5e\u4e8e\u9ad8\u7ea7\u8bed\u8a00\u865a\u62df\u673a\uff0c\u62bd\u8c61\u7a0b\u5ea6\u6700\u9ad8\u3002<\/p>\n

\u5728\u4e00\u822c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u9762\u80fd\u5e72\u7684\u4e8b\u60c5\u5728 Docker \u91cc\u9762\u90fd\u80fd\u5e72\uff0c\u4f46 WebAssembly \u4e0d\u662f\uff0c\u5b83\u5c55\u73b0\u51fa\u6765\u7684\u662f\u4e00\u4e2a\u6267\u884c\u73af\u5883\uff0c\u53ea\u80fd\u6267\u884c\u7f16\u8bd1\u597d\u7684\u5b57\u8282\u7801\u5e94\u7528\uff0c\u4e0d\u8d77\u64cd\u4f5c\u7cfb\u7edf\u7684\u4f5c\u7528\u3002\u6240\u4ee5\u5b83\u9700\u8981\u7684\u5de5\u5177\u94fe\u6700\u590d\u6742\uff0c\u4f46\u76f8\u5e94\u5730\u4e5f\u80fd\u5e26\u6765\u6027\u80fd\u7684\u5de8\u5927\u63d0\u5347\u3002\u6839\u636e WasmEdge \u56e2\u961f\u7684\u6d4b\u8bd5\u7ed3\u679c\uff0c\u5728\u51b7\u542f\u52a8\u4e0a WebAssembly \u80fd\u505a\u5230\u6bd4 Docker \u5feb 100 \u500d\uff1b\u5728\u6267\u884c\u65f6\u95f4\u4e0a\uff0cWebAssembly \u6bd4 Docker \u5feb 10%-50%\u3002\u5728 Docker \u53ea\u4f5c\u4e3a\u6267\u884c\u73af\u5883\u7684\u573a\u666f\uff0c\u5373\u628a\u7a0b\u5e8f\u5199\u597d\u4e86\u653e\u5230 Docker \u91cc\u6267\u884c\uff0c\u6267\u884c\u5b8c\u4e4b\u540e\u5c31\u5173\u95ed Docker\uff0c\u6ca1\u6709\u7528\u6237\u4e92\u52a8\u7684\u60c5\u51b5\uff0c\u5c31\u662f WebAssembly \u80fd\u591f\u5b8c\u5168\u53d6\u4ee3 Docker \u7684\u4e00\u4e2a\u5e94\u7528\u573a\u666f\u3002\u800c\u8fb9\u7f18\u8ba1\u7b97\u91cc\u6709\u5927\u91cf\u8fd9\u6837\u7684\u573a\u666f\uff0c\u8fd9\u4e5f\u662f WasmEdge \u8fd9\u4e2a\u5f00\u6e90\u9879\u76ee\u7784\u5b9a\u7684\u76ee\u6807\u573a\u666f\u3002<\/p>\n

\u501f\u52a9 WebAssembly \u8fd9\u6837\u7684\u65b9\u6848\uff0c\u5c31\u80fd\u5728\u8fb9\u7f18\u573a\u666f\u8de8\u5e73\u53f0\u5730\u3001\u8f7b\u91cf\u7ea7\u5730\u3001\u5feb\u901f\u5730\u7528\u4e91\u539f\u751f\u7406\u5ff5\u548c\u4e91\u539f\u751f\u5de5\u5177\u53bb\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u3002Michael \u8868\u793a\uff0cKubernetes+Docker \u8fd9\u5957\u65b9\u6cd5\u5728\u8fb9\u7f18\u4fa7\u63a8\u8fdb\u9047\u5230\u4e86\u5f88\u5927\u963b\u529b\uff0c\u800c WebAssembly \u662f\u5728\u6b63\u786e\u65f6\u95f4\u51fa\u73b0\u7684\u4e00\u4e2a\u6b63\u786e\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n

WasmEdge \u7684\u751f\u6001\u5b9a\u4f4d<\/strong><\/p>\n

\u6700\u521d\u51b3\u5b9a\u8981\u505a\u4e00\u4e2a WebAssembly \u65b9\u5411\u7684\u5f00\u6e90\u9879\u76ee\u65f6\uff0cMichael \u548c\u56e2\u961f\u6210\u5458\u5c31\u60f3\u597d\u4e86\u8981\u505a WebAssembly Runtime\u3002\u5f53\u65f6\u5e02\u573a\u4e0a\u5df2\u6709\u7684 WebAssembly Runtime \u90fd\u6709\u4e24\u4e2a\u95ee\u9898\u3002\u4e00\u4e2a\u95ee\u9898\u662f\u90fd\u805a\u7126\u5728\u6d4f\u89c8\u5668\u573a\u666f\uff0c\u5176\u4e2d\u4e00\u4e2a\u975e\u5e38\u7a81\u51fa\u7684\u4f8b\u5b50\u662f\u8c37\u6b4c\u7684 V8\u3002V8 \u582a\u79f0\u5de5\u7a0b\u5947\u8ff9\uff0c\u5b83\u662f\u4e00\u4e2a\u975e\u5e38\u590d\u6742\u3001\u5de5\u7a0b\u5316\u7a0b\u5ea6\u975e\u5e38\u9ad8\u7684\u8f6f\u4ef6\uff0c\u5185\u7f6e\u4e00\u4e2a WebAssembly Runtime\u3002\u4f46 V8 \u662f\u4e13\u4e3a\u8c37\u6b4c\u6d4f\u89c8\u5668\u4f18\u5316\u7684\uff0c\u5b83\u6c38\u8fdc\u4e0d\u53ef\u80fd\u628a\u91cc\u9762\u7684 WebAssembly \u5355\u62c6\u51fa\u6765\uff0c\u800c\u662f\u5fc5\u987b\u8981\u548c JavaScript \u6574\u5957\u7ed1\u5728\u4e00\u8d77\uff0c\u5bfc\u81f4\u4f53\u79ef\u589e\u52a0\u4e86\u51e0\u5341\u500d\u3002\u4f46\u6d4f\u89c8\u5668\u9700\u8981 JavaScript\uff0c\u540e\u7aef\u4e0d\u9700\u8981\uff0c\u540e\u7aef\u9700\u8981\u7684\u53ea\u662f WebAssembly \u8fd9\u5757\uff0c\u4f46 V8 \u53c8\u4e0d\u4f1a\u628a\u5b83\u5355\u72ec\u62ff\u51fa\u6765\u3002\u56e0\u6b64\u8fd9\u7c7b Runtime \u5e76\u4e0d\u80fd\u5f88\u597d\u5730\u6ee1\u8db3\u540e\u7aef\u7684\u4f7f\u7528\u9700\u6c42\u3002\u53e6\u4e00\u4e2a\u95ee\u9898\u662f\uff0c\u5176\u4ed6\u7684 WebAssembly Runtime \u90fd\u662f\u6807\u51c6\u9a71\u52a8\u7684\uff0c\u8ddf\u968f WebAssembly \u6807\u51c6\uff0c\u5728\u6269\u5c55\u65b9\u9762\u505a\u7684\u4e0d\u592a\u597d\u3002<\/p>\n

\u7531\u4e8e\u4e00\u5f00\u59cb\u56e2\u961f\u8fd8\u4e0d\u80fd\u786e\u5b9a\u672a\u6765\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\uff0c\u56e0\u6b64\u53ea\u662f\u60f3\u505a\u4e00\u4e2a\u6bd4\u8f83\u8f7b\u91cf\u7ea7\u3001\u6613\u6269\u5c55\u3001\u80fd\u591f\u9488\u5bf9\u5404\u79cd\u5e94\u7528\u573a\u666f\u4f18\u5316\u7684\u5f00\u6e90 WebAssembly Runtime\u3002\u6700\u521d\u5728\u7ed9\u9879\u76ee\u53d6\u540d\u5b57\u8fd9\u4ef6\u4e8b\u4e0a\u4e5f\u6bd4\u8f83\u968f\u610f\uff0c\u76f4\u63a5\u6cbf\u7528\u4e86\u521b\u4e1a\u516c\u53f8\u7684\u540d\u5b57 Second State\uff0c\u5c06\u5f00\u6e90\u9879\u76ee\u547d\u540d\u4e3a Second State VM\uff0c\u5373 SSVM\u3002\u76f4\u5230\u4eca\u5e74\u9879\u76ee\u88ab CNCF \u7eb3\u5165\u6258\u7ba1\u4e4b\u524d\uff0c\u7531\u4e8e CNCF \u8981\u6c42\u5f00\u6e90\u9879\u76ee\u7684\u540d\u5b57\u91cc\u4e0d\u80fd\u6709\u516c\u53f8\u7684\u5546\u6807\uff0c\u56e2\u961f\u624d\u5f00\u59cb\u8003\u8651\u7ed9\u9879\u76ee\u6362\u4e2a\u540d\u5b57\u3002\u8fd9\u65f6\u5019\u56e2\u961f\u5bf9\u4e8e\u8fd9\u4e2a\u9879\u76ee\u7684\u5b9a\u4f4d\u5df2\u7ecf\u6709\u4e86\u66f4\u6e05\u6670\u7684\u89c4\u5212\uff0c\u5c31\u662f\u8981\u5c06\u5b83\u7528\u5728\u5e94\u8be5\u4f7f\u7528 Docker \u800c Docker \u7528\u4e0d\u8d77\u6765\u7684\u5730\u65b9\uff0c\u5373\u628a\u4e91\u539f\u751f\u8fd9\u5957\u7406\u5ff5\u548c\u5de5\u5177\u5e94\u7528\u5230\u8fb9\u7f18\u8ba1\u7b97\u573a\u666f\uff0c\u8fd9\u4e5f\u662f WasmEdge \u8fd9\u4e2a\u540d\u5b57\u7684\u7531\u6765\u3002<\/p>\n

\u5982\u4eca\u4e1a\u754c\u5df2\u7ecf\u56f4\u7ed5 WebAssembly \u6784\u5efa\u8d77\u4e86\u4e00\u4e2a\u975e\u5e38\u5e9e\u5927\u7684\u751f\u6001\uff0cRuntime \u53ef\u4ee5\u8bf4\u662f\u6574\u4e2a\u751f\u6001\u4e2d\u6700\u5e95\u5c42\u7684\u57fa\u7840\u8bbe\u65bd\uff08\u4e0b\u56fe\u662f\u4ee5 WasmEdge \u4e3a\u4f8b\u63cf\u7ed8\u7684 WebAssembly \u751f\u6001\u56fe\uff09\u3002\u5176\u4e2d\u6700\u6709\u4ee3\u8868\u6027\u7684\u9879\u76ee\u5305\u62ec WasmEdge\u3001V8\u3001Wasmtime\u3001WAMR \u7b49\uff0c\u4e0d\u540c Runtime \u5404\u6709\u5404\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u5316\u70b9\u3002<\/p>\n

\"\"<\/p>\n

Runtime \u63d0\u4f9b\u4e86\u4e00\u4e2a\u8fd0\u884c\u4ee3\u7801\u7684\u5730\u65b9\uff0c\u4f46\u5982\u679c\u6bcf\u884c\u4ee3\u7801\u90fd\u8981\u4ece\u5934\u5199\u7684\u8bdd\uff0c\u5bf9\u4e8e\u5f00\u53d1\u8005\u6765\u8bf4\u592a\u9ebb\u70e6\u4e86\uff0c\u6240\u4ee5\u5f00\u53d1\u8005\u4e00\u822c\u4f1a\u4f7f\u7528\u6846\u67b6\u3002\u5728 Runtime \u4e4b\u4e0a\u8fd8\u4f1a\u6709\u8fd0\u884c\u8fd9\u4e9b\u6846\u67b6\u7684\u5e94\u7528\u670d\u52a1\u5668\uff0c\u8fd9\u6837\u7684\u5e94\u7528\u670d\u52a1\u5668\u5728 Java \u975e\u5e38\u5e38\u89c1\uff0c\u6bd4\u5982 WildFly (Jboss)\u3001ColdFusion\u3001Apache Tomcat\u3001Apache TomEES \u7b49\u7b49\uff0cJavaScript \u4e5f\u6709 Node.js \u4e0e Deno \u4e24\u4e2a\u5e94\u7528\u670d\u52a1\u5668\u3002WebAssembly \u73b0\u5728\u5df2\u7ecf\u6709\u4e86 wasmCloud \u4e0e Suborbital \u4e24\u5bb6\u521b\u4e1a\u516c\u53f8\uff0c\u672a\u6765\u52bf\u5fc5\u5c06\u6d8c\u73b0\u51fa\u66f4\u591a\u5e94\u7528\u670d\u52a1\u5668\u3002<\/p>\n

Runtime \u4e4b\u4e0b\u5219\u662f\u5404\u79cd\u5404\u6837\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u786c\u4ef6\u67b6\u6784\uff0c\u6bcf\u4e00\u4e2a WebAssembly Runtime \u90fd\u4f1a\u652f\u6301\u4e00\u4e9b\u81ea\u5df1\u8ba4\u4e3a\u6bd4\u8f83\u91cd\u8981\u7684\u786c\u4ef6\u548c\u64cd\u4f5c\u7cfb\u7edf\u7684\u7ec4\u5408\u3002Runtime \u7684\u4e1c\u897f\u5411\u5219\u662f\u7f16\u8bd1\u5668\u548c\u5de5\u5177\u94fe\uff0c\u56e0\u4e3a WebAssembly \u662f\u5b57\u8282\u7801\uff0c\u5c31\u9700\u8981\u4e0a\u6e38\u751f\u6001\u7684\u652f\u6301\uff0c\u6bd4\u5982\u8981\u5c06 Rust \u7f16\u8bd1\u6210 WebAssembly\uff0c\u5c31\u9700\u8981 Rust \u7f16\u8bd1\u5668\u7684\u652f\u6301\u3002\u7531\u4e8e\u6807\u51c6\u5316\u505a\u5f97\u597d\uff0c\u76ee\u524d\u5f88\u591a\u7f16\u8bd1\u5668\u9879\u76ee\u548c\u7f16\u7a0b\u8bed\u8a00\u7684\u7f16\u8bd1\u5668\u9488\u5bf9 WebAssembly \u7684\u7f16\u8bd1\u5de5\u5177\u94fe\u90fd\u5df2\u7ecf\u6709\u4e86\u5f88\u597d\u7684\u652f\u6301\u3002<\/p>\n

\u5bf9\u4e8e\u5f53\u524d\u7684 WebAssembly \u751f\u6001\uff0c\u8fd8\u6709\u4e00\u4e2a\u5f88\u591a\u4eba\u4f1a\u597d\u5947\u7684\u95ee\u9898\uff1a\u6211\u4eec\u9700\u8981\u8fd9\u4e48\u591a Runtime \u5417\uff1f<\/p>\n

Michael \u8868\u793a\uff0c\u73b0\u5728\u8fd8\u662f\u9700\u8981\u7684\uff0c\u56e0\u4e3a\u8fd8\u5904\u5728\u4e00\u4e2a\u767e\u82b1\u9f50\u653e\u7684\u9636\u6bb5\uff0c\u6700\u540e\u54ea\u4e2a Runtime \u80fd\u8d62\u8fd8\u4e0d\u4e00\u5b9a\u3002\u4ed6\u8ba4\u4e3a\uff0c\u4ece\u957f\u671f\u6765\u770b\uff0c\u6700\u7ec8 Runtime \u5e94\u8be5\u4f1a\u6536\u655b\u4e3a 2-3 \u4e2a\uff0c\u4ece\u5206\u5e03\u5f0f\u96c6\u7fa4\u7684\u8fd0\u7ef4\u89d2\u5ea6\u8003\u8651\uff0c\u5bf9\u4e8e\u5f88\u591a\u5e94\u7528\u573a\u666f\uff0c\u7279\u522b\u662f\u50cf\u533a\u5757\u94fe\u8fd9\u6837\u7684\u573a\u666f\uff0c\u8fd8\u662f\u9700\u8981\u6709\u591a\u4e2a Runtime \u7684\u3002<\/p>\n

\u201c\u5176\u5b9e\u73b0\u5728\u5e02\u573a\u5df2\u7ecf\u6536\u655b\u5f97\u5dee\u4e0d\u591a\u4e86\uff0c\u80fd\u591f\u6570\u5f97\u4e0a\u53f7\u7684 Runtime \u57fa\u672c\u4e5f\u5c31\u56db\u4e2a\uff1aWasmEdge\u3001Wasmtime\u3001Wasmer \u548c WAMR\uff08WebAssembly Micro Runtime\uff09\u3002\u6211\u89c9\u5f97\u80af\u5b9a\u8fd8\u4f1a\u7ee7\u7eed\u6dd8\u6c70\uff0c\u76f4\u5230\u5269\u4e0b\u6700\u540e\u7684 2-3 \u4e2a\u3002\u201d<\/p>\n

\u5f53\u7136\u8fd8\u6709\u4e00\u4e2a\u53ef\u80fd\u6027\uff0c\u5c31\u662f\u672a\u6765\u6240\u6709 Runtime \u90fd\u628a\u529f\u80fd\u505a\u7684\u5dee\u4e0d\u591a\uff0c\u5927\u5bb6\u90fd\u8d8b\u4e8e\u6807\u51c6\u5316\u4e86\u3002\u4e0d\u8fc7 Michael \u8868\u793a\uff0c\u867d\u7136\u6709\u5f88\u591a\u6807\u51c6\u5316\u7684\u6269\u5c55\uff0c\u4f46\u4e0d\u662f\u6bcf\u4e2a Runtime \u90fd\u4f1a\u9009\u62e9\u53bb\u505a\uff0c\u56e0\u4e3a\u5927\u5bb6\u6709\u4e0d\u540c\u7684\u4fa7\u91cd\u70b9\u3002\u8fd8\u662f\u4ee5 V8 \u4e3a\u4f8b\uff0c\u73b0\u5728\u5f88\u591a\u5728\u540e\u7aef\u505a\u7684\u6269\u5c55\uff0cV8 \u5c31\u4e0d\u60f3\u505a\uff0c\u56e0\u4e3a\u8fd9\u4e9b\u5728\u6d4f\u89c8\u5668\u573a\u666f\u6ca1\u6709\u610f\u4e49\uff0c\u505a\u4e86\u8fd9\u4e9b\u9664\u4e86\u589e\u52a0\u6f5c\u5728 Bug \u4ee5\u5916\uff0c\u6ca1\u6709\u4ec0\u4e48\u5176\u4ed6\u597d\u5904\u3002<\/p>\n

WasmEdge \u76ee\u524d\u7684\u91cd\u70b9\u662f\u63a8\u52a8 WebAssembly \u66f4\u5feb\u5730\u6574\u5408\u5230\u540e\u7aef\u751f\u6001\u91cc\u9762\uff0c\u8fdb\u800c\u5f80\u4e91\u539f\u751f\u548c\u8fb9\u7f18\u8ba1\u7b97\u65b9\u5411\u8d70\u5f97\u66f4\u8fdc\u3001\u66f4\u5feb\u3002\u524d\u4e0d\u4e45\uff0c\u56e2\u961f\u4e0e FutureWei \u5408\u4f5c\u4e3a seL4 \u548c WasmEdge \u6784\u5efa\u4e86\u4e00\u4e2a WebAssembly \u7ba1\u7406\u4ee3\u7406\uff0c\u4f7f WebAssembly \u5b57\u8282\u7801\u5e94\u7528\u7a0b\u5e8f\u80fd\u5728 seL4 RTOS \u4e0a\u7b80\u5355\u5730\u88ab\u90e8\u7f72\u548c\u6267\u884c\uff0c\u8fd9\u6837\u4e00\u6765\u5728\u5982\u81ea\u52a8\u9a7e\u9a76\u6c7d\u8f66\u3001\u65e0\u4eba\u673a\u8fd9\u6837\u7684\u8fb9\u7f18\u8bbe\u5907\u4e0a\u4e5f\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u5bb9\u5668\u3002<\/p>\n

\u6b64\u5916\uff0c\u5982\u672c\u6587\u5f00\u5934\u6240\u8ff0\uff0ccrun \u76ee\u524d\u5df2\u7ecf\u5408\u5e76\u4e86 WasmEdge \u7684\u8d21\u732e\uff0c\u5728\u8bfb\u53d6\u5bb9\u5668\u955c\u50cf\u65f6\u80fd\u591f\u81ea\u52a8\u68c0\u6d4b\u5b83\u5230\u5e95\u662f\u7528\u4e8e WasmEdge \u8fd8\u662f containerd\/Docker\uff0c\u7136\u540e\u542f\u52a8\u548c\u7ba1\u7406\u76f8\u5e94\u7684 runtime\/ \u5bb9\u5668\uff0c\u8fd9\u6837\u4e00\u6765 WebAssembly \u5c31\u80fd\u591f\u65e0\u7f1d\u878d\u5165\u73b0\u6709\u7684 K8s \u751f\u6001\u3002\u800c\u4e14\u5f00\u53d1\u8005\u5bf9\u6b64\u662f\u65e0\u611f\u77e5\u7684\uff0c\u5f00\u53d1\u8005\u7528 WebAssembly \u7f16\u5199\u7684\u5e94\u7528\u7a0b\u5e8f\u7f16\u8bd1\u540e\u63a8\u5230 Docker Hub \u91cc\u9762\uff0c\u5c31\u80fd\u7528 K8s \u751f\u6001\u4e2d\u7684\u5de5\u5177\u76f4\u63a5\u7ba1\u7406\u4e86\u3002<\/p>\n

\u8fd9\u662f WasmEdge \u5411\u8fb9\u7f18\u4e91\u539f\u751f\u8d70\u51fa\u7684\u7b2c\u4e00\u6b65\uff0c\u63a5\u4e0b\u6765\u56e2\u961f\u4f1a\u5728\u8fb9\u7f18\u573a\u666f\u5bfb\u627e\u66f4\u591a\u7528\u6237\u6848\u4f8b\uff0c\u5728\u5f97\u5230\u5145\u5206\u9a8c\u8bc1\u4e4b\u540e\uff0c\u518d\u8003\u8651\u628a WebAssembly \u79fb\u5230\u6570\u636e\u4e2d\u5fc3\u6765\u53d6\u4ee3\u73b0\u6709\u7684\u57fa\u7840\u8bbe\u65bd\u7684\u53ef\u80fd\u6027\u3002<\/p>\n

\u53d6\u4ee3 Docker \u7684\u53ef\u80fd\u6027<\/strong><\/p>\n

\u4e24\u5e74\u524d\uff0cWebAssembly \u4ee5\u8d85\u4e4e\u9884\u6599\u7684\u53d1\u5c55\u901f\u5ea6\u95ef\u5165\u5927\u5bb6\u7684\u89c6\u7ebf\uff0c\u4e00\u5ea6\u88ab\u89c6\u4e3a Web \u65b0\u6280\u672f\u6d6a\u6f6e\u7684\u4e3b\u89d2\uff0c\u5f53\u65f6\u5f88\u591a\u4eba\u8ba4\u4e3a 2020 \u5e74\u4f1a\u662f\u4e00\u4e2a WebAssembly \u5e94\u7528\u767e\u82b1\u9f50\u653e\u7684\u5e74\u4efd\u3002\u4f46 2020 \u5e74\u4e00\u573a\u7a81\u5982\u5176\u6765\u7684\u75ab\u60c5\uff0c\u8ba9 WebAssembly \u5728\u5f88\u591a\u65b9\u9762\u7684\u53d1\u5c55\u90fd\u653e\u6162\u4e86\u811a\u6b65\uff0c\u4e0d\u8fc7\u793e\u533a\u5e76\u6ca1\u6709\u505c\u4e0b\u5bf9\u65b0\u65b9\u5411\u7684\u63a2\u7d22\u548c\u5c1d\u8bd5\u30022021 \u5e74\uff0cWebAssembly \u8fce\u6765\u4e86 Web \u6d4f\u89c8\u5668\u4e4b\u5916\u7684\u7206\u70b8\u6027\u589e\u957f\uff0c\u5c24\u5176\u662f\u5728\u670d\u52a1\u5668\u7aef\u548c\u4e91\u539f\u751f\u73af\u5883\u3002<\/p>\n

Michael \u8ba4\u4e3a\uff0c\u5f53\u524d WebAssembly \u6b63\u5904\u5728\u4e00\u4e2a\u7c7b\u4f3c Java \u5728 2001-2002 \u5e74\u7684\u9636\u6bb5\u3002\u540e\u7aef\u5e94\u7528\u521a\u521a\u5f00\u59cb\uff0c\u867d\u7136\u5f88\u591a\u4eba\u8fd8\u662f\u4f1a\u89c9\u5f97\u8fd9\u4e2a\u4e1c\u897f\u53ef\u4ee5\u653e\u5230\u540e\u7aef\u6709\u4e9b\u5947\u602a\uff0c\u4f46\u8ba4\u771f\u7814\u7a76\u4e4b\u540e\u4e5f\u80fd\u8ba4\u53ef\u8fd9\u4e2a\u601d\u8def\u662f make sense \u7684\u3002\u5927\u5bb6\u5bf9\u4e8e WebAssembly \u7684\u5174\u8da3\u4e5f\u975e\u5e38\u6d53\u539a\uff0c\u5373\u4f7f\u4e0d\u4e00\u5b9a\u6709\u9700\u6c42\uff0c\u4e5f\u6709\u5f88\u5f3a\u70c8\u7684\u60f3\u6cd5\u8981\u8bd5\u8bd5\u770b\u6709\u4ec0\u4e48\u529e\u6cd5\u53ef\u4ee5\u628a WebAssembly \u7528\u8d77\u6765\u3002Michael \u89c9\u5f97\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u610f\u601d\u7684\u9636\u6bb5\uff0c\u201c\u751f\u6001\u65e9\u671f\u5c31\u662f\u8fd9\u6837\uff0cRust \u8bed\u8a00\u4e00\u5f00\u59cb\u4e5f\u662f\u4e00\u6837\u3002\u5c31\u662f\u6709\u4e8b\u6ca1\u4e8b\uff0c\u4ee5\u524d\u7528 C++ \u5199\u7684\uff0c\u73b0\u5728\u7528 Rust \u91cd\u5199\u3002\u793e\u533a\u5bf9\u8fd9\u4e2a\u4e1c\u897f\u6709\u5174\u8da3\uff0c\u7136\u540e\u5927\u5bb6\u90fd\u5728\u627e\u8fd9\u4e2a\u4e1c\u897f\u80fd\u6709\u4ec0\u4e48\u7528\u3002\u201d<\/p>\n

\u5728\u4ed6\u770b\u6765\uff0c\u8fd9\u662f\u4e00\u4e2a\u884c\u4e1a\u53d1\u5c55\u7684\u524d\u594f\u3002\u65e9\u671f\u5f00\u53d1\u8005\u53ef\u80fd\u4e0d\u77e5\u9053\u81ea\u5df1\u7684\u5e94\u7528\u573a\u666f\u662f\u4ec0\u4e48\uff0c\u4f46\u4ed6\u5c31\u662f\u8981\u7528\u8fd9\u4e2a\u6280\u672f\u3002\u5982\u679c\u884c\u4e1a\u6ca1\u6709\u8fd9\u4e2a\u8fc7\u7a0b\u7684\u8bdd\uff0c\u5c31\u4e0d\u4f1a\u6709\u4eba\u53bb\u63a8\u52a8\u6280\u672f\u5411\u524d\u8d70\uff0c\u6280\u672f\u5176\u5b9e\u662f\u8d77\u4e0d\u6765\u7684\u3002\u8fd9\u4e5f\u662f\u4ed6\u770b\u597d WebAssembly \u53d1\u5c55\u7684\u539f\u56e0\u4e4b\u4e00\uff0c\u4f46\u4ed6\u540c\u65f6\u4e5f\u5766\u8a00\uff0cWebAssembly \u8981\u771f\u6b63\u505a\u5230\u5e94\u7528\u7684\u7206\u53d1\u3001\u751a\u81f3\u80fd\u591f\u6323\u5230\u94b1\uff0c\u8fd8\u9700\u8981\u4e00\u6bb5\u65f6\u95f4\u3002\u201c\u5c31\u50cf\u5728 2001-2002 \u5e74\u4e4b\u540e\u53c8\u8fc7\u4e86\u51e0\u5e74\uff0c\u624d\u5f00\u59cb\u6709\u56f4\u7ed5 Java \u7684\u9879\u76ee\u8d5a\u5230\u94b1\u3002\u201d<\/p>\n

\u636e Michael \u4ecb\u7ecd\uff0c\u81ea\u4ece\u52a0\u5165 CNCF \u4e4b\u540e\uff0cWasmEdge \u9879\u76ee\u7684\u793e\u533a\u6d3b\u8dc3\u5ea6\u6709\u4e86\u5f88\u660e\u663e\u7684\u63d0\u5347\u3002\u76f8\u8f83\u4e8e\u5728 GitHub \u4e0a\u6709\u591a\u5c11\u9897 Star\uff0c\u56e2\u961f\u66f4\u770b\u91cd\u6709\u591a\u5c11\u5916\u90e8\u5f00\u53d1\u8005\u5728\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u7684\u8d21\u732e\u548c\u8ba8\u8bba\u3002\u76ee\u524d WasmEdge \u793e\u533a\u4e2d\u5df2\u7ecf\u6709\u4e0a\u767e\u4e2a Second State \u516c\u53f8\u4ee5\u5916\u7684\u5f00\u53d1\u8005\u7ed9\u9879\u76ee\u63d0\u4ea4 Issue\uff0c\u8d21\u732e\u4ee3\u7801\u7684\u5f00\u53d1\u8005\u4e5f\u6709\u6570\u5341\u4eba\u3002\u8fd9\u5176\u4e2d\u65e2\u6709\u6765\u81ea\u534e\u4e3a\u3001\u7ea2\u5e3d\u3001\u5fae\u8f6f\u3001\u8682\u8681\u96c6\u56e2\u7b49\u5927\u5382\u7684\u5f00\u53d1\u8005\uff0c\u4e5f\u6709\u6765\u81ea\u5982 YOMO \u8fd9\u6837\u7684\u521b\u4e1a\u516c\u53f8\u7684\u5f00\u53d1\u8005\u3002<\/p>\n

\u6b64\u5916\uff0c\u5728\u793e\u533a\u5c42\u9762\u7684\u5408\u4f5c\u4e0a\uff0c\u73b0\u5728\u4e5f\u5df2\u7ecf\u6709\u5f88\u591a\u57fa\u4e8e Kubernetes \u7684\u4ea7\u54c1\u4e0e WasmEdge \u5c55\u5f00\u5408\u4f5c\uff0c\u6bd4\u5982 Linkerd\u3001KubeEdge\u3001SuperEdge \u7b49\u3002\u540c\u6837\u662f\u4ee5\u5c06\u4e91\u539f\u751f\u4ece\u6570\u636e\u4e2d\u5fc3\u5ef6\u4f38\u5230\u8fb9\u7f18\u7aef\u4e3a\u76ee\u6807\uff0cKubeEdge\u3001SuperEdge \u4e0e WasmEdge \u4e4b\u95f4\u5176\u5b9e\u80fd\u5f62\u6210\u5f88\u597d\u7684\u4e92\u8865\uff0c\u5982\u679c\u8bf4 KubeEdge+Docker \u662f\u8f7b\u91cf\u7ea7 + \u91cd\u91cf\u7ea7\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u90a3\u4e48 KubeEdge+WasmEdge \u5c31\u662f\u8f7b\u91cf\u7ea7 + \u8f7b\u91cf\u7ea7\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n

\u5728\u6280\u672f\u6f14\u8fdb\u4e0a\uff0cWasmEdge \u4e0d\u662f\u4e00\u4e2a\u6807\u51c6\u9a71\u52a8\u7684\u9879\u76ee\uff0c\u8fd9\u8ddf\u540c\u4e3a WebAssembly Runtime \u7c7b\u578b\u7684 Wasmtime \u6709\u5f88\u5927\u7684\u4e0d\u540c\u3002WasmEdge \u66f4\u591a\u662f\u4e00\u4e2a\u7531\u5e94\u7528\u573a\u666f\u9a71\u52a8\u7684\u9879\u76ee\uff0c\u5373\u9700\u6c42\u6765\u81ea\u4e8e\u793e\u533a\u4f19\u4f34\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898\uff0c\u7531\u793e\u533a\u6765\u6307\u5bfc\u9879\u76ee\u7684\u6280\u672f\u7814\u53d1\u65b9\u5411\uff0c\u56e0\u6b64\u5bf9\u4e8e\u793e\u533a\u4ea4\u6d41\u548c\u4e92\u52a8\u4e5f\u4f1a\u66f4\u52a0\u770b\u91cd\u3002<\/p>\n

\u5bf9\u4e8e WebAssembly \u5728\u65b0\u4e00\u5e74\u7684\u53d1\u5c55\uff0cMichael \u505a\u4e86\u4e00\u4e2a\u76f8\u5bf9\u4e50\u89c2\u7684\u9884\u6d4b\u3002\u5728\u4ed6\u770b\u6765\uff0cWebAssembly \u5c06\u4f1a\u5728\u8fb9\u7f18\u7aef\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\uff0c\u4eca\u5929\u5728\u8fb9\u7f18\u5f88\u591a\u60f3\u7528 Docker \u4f46\u53c8\u7528\u4e0d\u4e86\u7684\u573a\u666f\uff0c\u4f1a\u88ab WebAssembly \u7ed9\u5403\u6389\uff0c\u5c24\u5176\u662f\u5728 KubeEdge \u8fd9\u6837\u7684\u6846\u67b6\u7684\u52a0\u6301\u4e0b\u3002\u201c\u5728\u8fb9\u7f18\u7aef\u53d6\u5f97\u6210\u529f\u4e4b\u540e\uff0c\u5b83\u5c31\u4f1a\u50cf\u519c\u6751\u5305\u56f4\u57ce\u5e02\uff0c\u91cd\u65b0\u8fdb\u5230\u6570\u636e\u4e2d\u5fc3\u91cc\u9762\u53bb\u3002\u201d<\/p>\n

\u5bf9\u4e8e WasmEdge\uff0cMichael \u975e\u5e38\u5e0c\u671b\u5b83\u80fd\u591f\u4f7f\u6700\u540e\u6210\u529f\u7684 2 \u4e2a Runtime \u4e2d\u7684\u4e00\u4e2a\u3002\u201c\u8bf4\u5b9e\u8bdd\uff0c\u6211\u89c9\u5f97\u5f88\u5927\u6982\u7387\u6700\u540e\u4f1a\u662f Wasmtime \u548c\u6211\u4eec\u3002\u4e24\u4e2a\u9879\u76ee\u5404\u81ea\u805a\u7126\u4e0d\u540c\u7684\u65b9\u5411\uff0cWastime \u805a\u7126\u4e8e Fastly \u90a3\u5957\u548c\u6807\u51c6\u5316\uff0c\u6211\u4eec\u805a\u7126\u4e8e\u6ee1\u8db3\u8fb9\u7f18\u8ba1\u7b97\u548c\u8fb9\u7f18\u8bbe\u5907\u7684\u9700\u6c42\u3002\u201d\u4ed6\u8865\u5145\u8868\u793a\uff0cWasmEdge \u73b0\u5728\u662f CNCF \u7684\u9879\u76ee\uff0c\u800c\u4e0d\u662f Second State \u7684\u9879\u76ee\uff0cSecond State \u53ea\u662f\u4e3a\u9879\u76ee\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5f00\u53d1\u8005\u3002\u4ed6\u5e0c\u671b\uff0c\u66f4\u591a\u5bf9 WebAssembly \u611f\u5174\u8da3\u7684\u4eba\u80fd\u591f\u805a\u5408\u5230 WasmEdge \u9879\u76ee\u91cc\u6765\uff0c\u5927\u5bb6\u4e00\u8d77\u628a\u8fd9\u4e2a\u9879\u76ee\u5efa\u8bbe\u597d\uff0c\u6700\u7ec8\u63a8\u52a8 WebAssembly \u751f\u6001\u66f4\u597d\u7684\u53d1\u5c55\uff0c\u8fd9\u4e5f\u662f\u56e2\u961f\u51b3\u5b9a\u5c06\u9879\u76ee\u6350\u8d60\u7ed9 CNCF \u7684\u521d\u8877\u548c\u671f\u671b\u3002\u201c\u6211\u4eec\u7b2c\u4e00\u662f\u5e0c\u671b WebAssembly \u793e\u533a\u80fd\u505a\u597d\uff0c\u793e\u533a\u597d\u4e86\u4e4b\u540e\uff0c\u624d\u80fd\u591f\u628a WasmEdge \u505a\u5927\uff0cWasmEdge \u505a\u5927\uff0c\u6211\u4eec\u624d\u80fd\u591f\u6709\u524d\u9014\uff0c\u8fd9\u5bb6\u516c\u53f8\u624d\u4f1a\u6709\u524d\u9014\u3002\u201d<\/p>\n

\u91c7\u8bbf\u5609\u5bbe\u4ecb\u7ecd<\/strong>\uff1a<\/p>\n

Michael Yuan\uff0c\u6bd5\u4e1a\u4e8e\u5fb7\u514b\u8428\u65af\u5927\u5b66\u5965\u65af\u6c40\u5206\u6821\uff0c\u83b7\u5f97\u535a\u58eb\u5b66\u4f4d\uff0c\u5728\u5f00\u53d1\u548c\u5546\u4e1a\u5316\u5f00\u6e90\u8f6f\u4ef6\u65b9\u9762\u62e5\u6709\u4e30\u5bcc\u7684\u7ecf\u9a8c\u3002Michael \u662f JBoss \u7684\u65e9\u671f\u5458\u5de5\uff0c\u88ab Red Hat \u6536\u8d2d\u4e4b\u540e\uff0c\u4f5c\u4e3a\u4ea7\u54c1\u7ecf\u7406\u89c1\u8bc1\u4e86\u4e16\u754c\u4e0a\u7b2c\u4e00\u4e2a\u6210\u529f\u7684\u5f00\u6e90\u5546\u4e1a\u6a21\u5f0f\u3002Michael \u8457\u6709 5 \u672c\u56fd\u9645\u77e5\u540d\u51fa\u7248\u793e\u51fa\u7248\u7684\u6280\u672f\u4e66\u7c4d\u30022019 \u5e74 Michael \u53d1\u8d77\u4e86 WasmEdge \u9879\u76ee\uff0c\u63d0\u4f9b\u4e0b\u4e00\u4ee3\u4e91\u539f\u751f\u548c\u8fb9\u7f18\u8ba1\u7b97\u7684\u6267\u884c\u73af\u5883\u3002<\/p>\n

WasmEdge \u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/WasmEdge\/WasmEdge<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fb9\u7f18\u8bbe\u5907\u901a\u5e38\u786c\u4ef6\u8d44\u6e90\u6709\u9650\uff0c\u6ca1\u6709\u8db3\u591f\u7684\u8d44\u6e90\u90e8\u7f72\u8fd0\u884c\u5b8c\u6574\u7684 Kubernetes\u3002\u5176\u4ed6\u95ee\u9898\u8fd8\u6709\uff1a\u5f88\u591a\u8fb9\u7f18\u8bbe\u5907\u57fa\u4e8e […]<\/p>\n","protected":false},"author":1470,"featured_media":232125,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-232123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/232123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=232123"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/232123\/revisions"}],"predecessor-version":[{"id":232502,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/232123\/revisions\/232502"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/232125"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=232123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=232123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=232123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}