{"id":5446,"date":"2019-12-24T20:02:46","date_gmt":"2019-12-24T11:02:46","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=5446"},"modified":"2019-12-24T20:02:46","modified_gmt":"2019-12-24T11:02:46","slug":"%e5%85%a5%e9%96%80%ef%bc%81webassembly%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=5446","title":{"rendered":"\u5165\u9580\uff01WebAssembly\u3092\u8a66\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u8a00\u8a9e\u7684\u306b\u306f<code>PHP<\/code>\u3068\u4e26\u3093\u3067<code>JavaScript<\/code>\u306b\u95a2\u3059\u308b\u8a18\u4e8b\u3082\u591a\u304f\u516c\u958b\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u306e\u3082\u3001<code>JavaScript<\/code>\u306f\u7279\u306b\u3053\u3053\uff15\u5e74\u307b\u3069\u3067\u6025\u901f\u306b\u767a\u5c55\u3057\u3001\u4eba\u6c17\u3092\u7372\u5f97\u3057\u3066\u3044\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001<code>JavaScript<\/code>\u3067\u306e\u51e6\u7406\u304c\u591a\u304f\u306a\u3063\u3066\u304f\u308b\u3068\u3001\u305f\u307e\u306b\u554f\u984c\u70b9\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u306f\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">\u51e6\u7406\u304c\u9045\u304f\u306a\u308b<\/strong><\/p>\n<p>\u3068\u3044\u3046\u70b9\u3067\u3059\u3002<\/p>\n<p>\u3069\u3046\u3057\u3066\u3082\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u51e6\u7406\u306f\u3001\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3068\u6bd4\u3079\u308b\u3068\u30b9\u30d4\u30fc\u30c9\u3067\u52a3\u3063\u3066\u3057\u307e\u3046\u306e\u306f\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001\u3053\u3093\u306a\u72b6\u6cc1\u3092\u5927\u304d\u304f\u5909\u3048\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u6280\u8853\u304c\u3042\u308b\u306e\u3092\u3054\u5b58\u77e5\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u305d\u308c\u304c\u4eca\u56de\u30c6\u30fc\u30de\u306e\u30fb\u30fb\u30fb<\/p>\n<p><strong style=\"font-size: 35px;\">WebAssembly\uff08\u3046\u3047\u3076\u3042\u305b\u3093\u3076\u308a\u30fc\uff09<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\uff01<\/p>\n<p>\u4eca\u56de\u306f<code>WebAssembly<\/code>\u3092\u4f7f\u3063\u3066<code>JavaScript<\/code>\u306e\u51e6\u7406\u3092\u9ad8\u901f\u5316\u3059\u308b\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u307e\u305f\u3001\u6700\u5f8c\u306b\u300c\u3069\u308c\u3060\u3051\u51e6\u7406\u304c\u65e9\u304f\u306a\u3063\u3066\u3044\u308b\u304b\u300d\u3092\u691c\u8a3c\u3059\u308b\u305f\u3081\u306b\u3001<code>WebAssembly<\/code>\u3092\u4f7f\u3063\u305f\u30b3\u30fc\u30c9\u3068<code>JavaScript<\/code>\u3060\u3051\u306e\u30b3\u30fc\u30c9\u3067\u30b9\u30d4\u30fc\u30c9\u3092\u6bd4\u8f03\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u7686\u3055\u3093\u306e\u304a\u5f79\u306b\u7acb\u3066\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\ud83d\ude0a\u2728<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3566 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png\" alt=\"\" width=\"306\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1.png 306w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/04\/no_1-287x300.png 287w\" sizes=\"auto, (max-width: 306px) 100vw, 306px\" \/><\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Google Chrome 79<\/p>\n<h1>WebAssembly\u3068\u306f\uff1f<\/h1>\n<p><code>WebAssembly<\/code>\u3068\u306f\u7d50\u5c40\u4f55\u304b\u3068\u3044\u3046\u8a71\u306a\u3093\u3067\u3059\u304c\u3001\u7c21\u5358\u306b\u8a00\u3046\u3068<strong>\u300c\u51e6\u7406\u304c\u91cd\u3044\u90e8\u5206\u3060\u3051\u9ad8\u901f\u306a\u30b3\u30fc\u30c9\u3092\u3064\u304b\u3063\u3061\u3083\u304a\u3046\uff01\u300d<\/strong>\u3068\u3044\u3046\u6280\u8853\u3067\u3059\u3002<\/p>\n<p>\u8eca\u3067\u8a00\u3046\u3068\u3001\u6700\u521d\u3068\u6700\u5f8c\u4e0b\u9053\u3060\u3051\u3069\u3001\u9014\u4e2d\u306f\u9ad8\u901f\u9053\u8def\u3092\u4f7f\u3063\u3066\u30d3\u30e5\u30fc\u30f3\uff01\u3063\u3066\u6642\u9593\u3092\u77ed\u7e2e\u3059\u308b\u30a4\u30e1\u30fc\u30b8\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p><strong>\uff08\u30a4\u30e1\u30fc\u30b8\uff09<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5452\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_3.png\" alt=\"\" width=\"285\" height=\"82\" \/><\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u4eca\u56de\u306f\u30c6\u30b9\u30c8\u3068\u3057\u3066\u3001<strong>\u300c\uff11\u301c300,000\u306e\u6570\u5b57\u306e\u9593\u306b\u7d20\u6570\u304c\u3044\u304f\u3064\u3042\u308b\u304b\u300d<\/strong>\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002\uff08\u306a\u305c\u4e2d\u9014\u534a\u7aef\u306a\u6570\u5b57\u304b\u3068\u3044\u3046\u3068\u3001\u305d\u308c\u4ee5\u4e0a\u3060\u3068\u6642\u9593\u304c\u304b\u304b\u308a\u3059\u304e\u3066\u3057\u307e\u3063\u305f\u304b\u3089\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u6570\u5b57\u306f\u7686\u3055\u3093\u306ePC\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\n<h1>WebAssembly\u306e\u30d5\u30a1\u30a4\u30eb\u300c.wasm\u300d\u3092\u3064\u304f\u308b<\/h1>\n<p><code>WebAssembly<\/code>\u306fC\u8a00\u8a9e\u306a\u3069\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u6700\u521d\u306f\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u3060\u3051\u3067\u30b2\u30f3\u30ca\u30ea\u30fb\u30fb\u30fb\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u3068\u601d\u3046\u306e\u3067\u3001\u4eca\u56de\u306f\u30aa\u30f3\u30e9\u30a4\u30f3\u4e0a\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<a href=\"https:\/\/wasdk.github.io\/WasmFiddle\/\" target=\"_blank\" rel=\"noopener noreferrer\">WasmFiddle<\/a>\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3092\u5229\u7528\u3057\u3066\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u3001\u5de6\u5074\u306bC\u8a00\u8a9e\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304f\u90e8\u5206\u304c\u3042\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5454\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_4.png\" alt=\"\" width=\"640\" height=\"404\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_4.png 640w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_4-300x189.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<pre><strong>#include &lt;stdbool.h&gt;\r\n\r\nbool isPrime(num) {\r\n  for(int i = 2; i &lt; num; i++) {\r\n    if(num % i == 0) return false;\r\n  }\r\n  return num &gt; 1;\r\n}\r\n\r\nint countPrimeNumbers(maxNumber) {\r\n  int count = 0;\r\n  for(int i = 0; i &lt; maxNumber; i++) {\r\n    if(isPrime(i)) {\r\n      count++;\r\n    }\r\n  }\r\n  return count;\r\n}<\/strong><\/pre>\n<p>\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u305f\u3089\u3001\u30da\u30fc\u30b8\u4e0a\u90e8\u306b\u3042\u308b<strong>\u300cBuild\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5455\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_5.png\" alt=\"\" width=\"116\" height=\"34\" \/><\/p>\n<p>\u30d3\u30eb\u30c9\u304c\u5b8c\u4e86\u3057\u305f\u3089\u30da\u30fc\u30b8\u4e2d\u7a0b\u306b\u3042\u308b<strong>\u300cWasm\u300d<\/strong>\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5456\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_6.png\" alt=\"\" width=\"165\" height=\"30\" \/><\/p>\n<p>\u3059\u308b\u3068\u3001\u81ea\u52d5\u3067<strong>\u300cprogram.wasm\u300d<\/strong>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u304c<code>WebAssembly<\/code>\u306e\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u4eca\u56de\u306f<strong>\u300ccount_prime_numbers.wasm\u300d<\/strong>\u3068\u3044\u3046\u540d\u524d\u306b\u5909\u66f4\u3057\u3066<code>http:\/\/******\/wasm\/count_prime_numbers.wasm<\/code>\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u30b5\u30a4\u30c8\u306b\u8a2d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5457\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_7.png\" alt=\"\" width=\"403\" height=\"140\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_7.png 403w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_7-300x104.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/p>\n<p>\u203b \u3053\u306e\u4f8b\u306f<code>Laravel<\/code>\u3092\u4f7f\u3063\u305f\u4f8b\u3067\u3059\u306e\u3067\u3001\u3054\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u8a2d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h1>WebAssembly\u3067\u30b3\u30fc\u30c9\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30d6\u30e9\u30a6\u30b6\u304b\u3089<code>WebAssembly<\/code>\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;meta charset=\"UTF-8\"&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;script&gt;\r\n\r\n    const maxNumber = 300000;\r\n\r\n    <strong>fetch('\/wasm\/count_prime_numbers.wasm')<\/strong>\r\n<strong>        .then(response =&gt; {<\/strong>\r\n\r\n<strong>            return response.arrayBuffer();<\/strong>\r\n\r\n<strong>        })<\/strong>\r\n<strong>        .then(bytes =&gt; {<\/strong>\r\n\r\n<strong>            return WebAssembly.instantiate(bytes);<\/strong>\r\n\r\n<strong>        })<\/strong>\r\n<strong>        .then(obj =&gt; {<\/strong>\r\n\r\n<strong>            console.log('1 \u301c '+ maxNumber +'\u306b\u3042\u308b\u7d20\u6570\u306e\u6570\u306f\u3001'+ obj.instance.exports.countPrimeNumbers(maxNumber) +' \u500b');<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n&lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3053\u306e\u4e2d\u3067\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u3001\u307e\u305a\u5148\u307b\u3069\u7528\u610f\u3057\u305f<code>count_prime_numbers.wasm<\/code>\u306b<code>fetch()<\/code>\u3092\u4f7f\u3063\u3066Ajax\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3001\u305d\u306e\u5185\u5bb9\u3092\u4f7f\u3063\u3066<code>WebAssembly<\/code>\u3092\u8d77\u52d5\u3001\u305d\u3057\u3066\uff08<code>WebAssembly<\/code>\u5185\u3067\uff09\u7d20\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><code>JavaScript<\/code>\u5185\u3067\u306e\u4f7f\u3044\u65b9\u306f\u7c21\u5358\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h1>\u30b9\u30d4\u30fc\u30c9\u3092\u6bd4\u8f03\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u6b21\u306b<code>WebAssembly<\/code>\u3092\u4f7f\u3063\u305f\u5834\u5408\u3068\u3001<code>JavaScript<\/code>\u3060\u3051\u3067\u5b9f\u884c\u3057\u305f\u5834\u5408\u306f\u3069\u308c\u3050\u3089\u3044\u51e6\u7406\u30b9\u30d4\u30fc\u30c9\u304c\u9055\u3046\u304b\u3092\u691c\u8a3c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f<code>WebAssembly<\/code>\u3092\u4f7f\u3063\u305f\u5834\u5408\u306e\u30b3\u30fc\u30c9\u3067\u3059\u3002\uff08\u5148\u307b\u3069\u306e\u30b3\u30fc\u30c9\u306b\u5b9f\u884c\u6642\u9593\u304c\u5206\u304b\u308b\u30b3\u30fc\u30c9\u3092\u3064\u3051\u8db3\u3057\u307e\u3057\u305f\uff09<\/p>\n<pre>\/***  WebAssembly ***\/\r\n\r\nconst maxNumber = 300000;\r\n<strong>const startTime = performance.now();<\/strong>\r\n\r\nfetch('\/wasm\/count_prime_numbers.wasm')\r\n    .then(response =&gt; {\r\n\r\n        return response.arrayBuffer();\r\n\r\n    })\r\n    .then(bytes =&gt; {\r\n\r\n        return WebAssembly.instantiate(bytes);\r\n\r\n    })\r\n    .then(obj =&gt; {\r\n\r\n        <strong>console.log('1 \u301c '+ maxNumber +'\u306b\u3042\u308b\u7d20\u6570\u306e\u6570\u306f\u3001'+ obj.instance.exports.countPrimeNumbers(maxNumber) +' \u500b');<\/strong>\r\n\r\n<strong>        const endTime = performance.now();<\/strong>\r\n<strong>        console.log('\u8a08\u7b97\u306b\u304b\u304b\u3063\u305f\u6642\u9593\uff1a '+ (endTime - startTime) +' \u30df\u30ea\u79d2');<\/strong>\r\n\r\n    });<\/pre>\n<p>\u3067\u306f\u3001\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5459\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_1.png\" alt=\"\" width=\"347\" height=\"117\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_1.png 347w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_1-300x101.png 300w\" sizes=\"auto, (max-width: 347px) 100vw, 347px\" \/><\/p>\n<p>\u7d0414\u79d2\u304b\u304b\u3063\u3066\u307e\u3059\u306d\u3002<\/p>\n<p>\u3067\u306f\u3001\u540c\u3058\u5185\u5bb9\u3092JavaScript\u3060\u3051\u3067\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<br \/>\n\u30b3\u30fc\u30c9\u306f\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n<pre>\/*** JavaScript ***\/\r\n\r\nconst maxNumber = 300000;\r\n<strong>const startTime = performance.now();<\/strong>\r\n\r\nconst isPrime = num =&gt; {\r\n\r\n    for(let i = 2; i &lt; num; i++) {\r\n\r\n        if(num % i === 0) {\r\n\r\n            return false;\r\n\r\n        }\r\n\r\n    }\r\n\r\n    return (num &gt; 1);\r\n\r\n};\r\n\r\nconst countPrimeNumbers = maxNumber =&gt; {\r\n\r\n    let count = 0;\r\n\r\n    for(let i = 0; i &lt; maxNumber; i++) {\r\n\r\n        if(isPrime(i)) {\r\n\r\n            count++;\r\n\r\n        }\r\n\r\n    }\r\n\r\n    return count;\r\n\r\n};\r\n\r\n<strong>console.log('1 \u301c '+ maxNumber +'\u306b\u3042\u308b\u7d20\u6570\u306e\u6570\u306f\u3001'+ countPrimeNumbers(maxNumber) +' \u500b');<\/strong>\r\n\r\n<strong>const endTime = performance.now();<\/strong>\r\n<strong>console.log('\u8a08\u7b97\u306b\u304b\u304b\u3063\u305f\u6642\u9593\uff1a '+ (endTime - startTime) +' \u30df\u30ea\u79d2');<\/strong><\/pre>\n<p>\u5b9f\u884c\u7d50\u679c\u306f\u3053\u3061\u3089\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5458\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_2.png\" alt=\"\" width=\"351\" height=\"118\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_2.png 351w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/12\/web_assembly_2-300x101.png 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/p>\n<p>\u306a\u3093\u3068\u3001\u7d0423\u79d2\u306a\u306e\u3067\u3001\u3055\u3063\u304d\u3068\u6bd4\u3079\u308b\u30681.7\u500d\u307b\u3069\u306e\u6642\u9593\u304c\u304b\u304b\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3084\u306f\u308a<code>WebAssembly<\/code>\u306f\u9ad8\u901f\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u3044\u3044\u3067\u3059\u306d\ud83d\ude0a\u2728<\/p>\n<h1>\u3061\u306a\u307f\u306b\uff1a\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u30d6\u30e9\u30a6\u30b6<\/h1>\n<p>2019.12.24\u73fe\u5728\u3001<a href=\"https:\/\/caniuse.com\/#feat=wasm\" target=\"_blank\" rel=\"noopener noreferrer\">Can I use<\/a>\u3092\u898b\u308b\u3068IE\u4ee5\u5916\u306e\u4e3b\u8981\u306a\u30d6\u30e9\u30a6\u30b6\u306f\u307b\u307c\u5168\u3066<code>WebAssembly<\/code>\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u79c1\u3082\u500b\u4eba\u7684\u306b\u6c17\u306b\u306a\u3063\u3066\u3044\u305f<code>WebAssembly<\/code>\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u306a\u305c\u6ce8\u76ee\u3057\u3066\u3044\u305f\u304b\u3068\u8a00\u3046\u3068\u3001\u3082\u3057<code>Vue<\/code>\u3084<code>React<\/code>\u306a\u3069\u304c\u30d5\u30eb\u306b<code>WebAssembly<\/code>\u5316\u3059\u308b\u3068\u30b3\u30fc\u30c9\u304c\u65e9\u304f\u306a\u308b\u3060\u308d\u3046\u3068\u8003\u3048\u3066\u3044\u305f\u304b\u3089\u3067\u3059\u3002\uff08\u305d\u308c\u3063\u3066\u6280\u8853\u7684\u306b\u53ef\u80fd\u304b\u306a\uff1f\uff1f\uff09<\/p>\n<p>\u3068\u306b\u304b\u304f\u3001\u3082\u3057\u7686\u3055\u3093\u306e\u30b5\u30a4\u30c8\u306b\u3042\u308b<code>JavaScript<\/code>\u306e\u30b9\u30d4\u30fc\u30c9\u304c\u9045\u3044\u5834\u5408\u306f<code>WebAssembly<\/code>\u3092\u4f7f\u3063\u3066\u307f\u308b\u306e\u3082\u3044\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305c\u3072\u6d3b\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-461 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/38.png\" alt=\"\" width=\"294\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/38.png 294w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2018\/04\/38-276x300.png 276w\" sizes=\"auto, (max-width: 294px) 100vw, 294px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u3053\u306e\u30d6\u30ed\u30b0\u3067\u306f\u8a00\u8a9e\u7684\u306b\u306fPHP\u3068\u4e26\u3093\u3067JavaScript\u306b\u95a2\u3059\u308b\u8a18\u4e8b\u3082\u591a\u304f\u516c\u958b\u3057\u3066\u304d\u307e\u3057\u305f\u3002 \u3068\u3044\u3046\u306e\u3082\u3001JavaScript\u306f\u7279\u306b\u3053\u3053\uff15\u5e74\u307b\u3069\u3067\u6025 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=5446\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u5165\u9580\uff01WebAssembly\u3092\u8a66\u3057\u3066\u307f\u305f&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":5462,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[200],"class_list":["post-5446","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-webassembly"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5446"}],"version-history":[{"count":11,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5446\/revisions"}],"predecessor-version":[{"id":5465,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/5446\/revisions\/5465"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/5462"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}