{"id":274513,"date":"2016-02-18T12:04:37","date_gmt":"2016-02-18T09:04:37","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274513"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274513","title":{"rendered":"Neon: Node + Rust"},"content":{"rendered":"<p>       \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"http:\/\/calculist.org\/blog\/2015\/12\/23\/neon-node-rust\/\">Neon: Node + Rust<\/a>&quot;.<\/p>\n<p>  Javascript \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b\u0430 rust-\u043e\u0432\u0441\u043a\u0430\u044f \u0442\u0435\u043c\u0430 <a href=\"http:\/\/blog.rust-lang.org\/2015\/08\/14\/Next-year.html\">\u0431\u0435\u0441\u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/a> (\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 [\u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435] \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u0438 \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u044b\u043c), \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0436\u0434\u0443\u0449\u0438\u0445 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u0445 \u043f\u0435\u043d\u0434\u0430\u043b\u0435\u0439 \u2014 \u0438\u0445 \u0435\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f! \u042f \u0442\u0443\u0442 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0430\u0434 <a href=\"https:\/\/github.com\/dherman\/neon\">Neon<\/a> \u2014 \u043d\u0430\u0431\u043e\u0440\u043e\u043c API \u0438 \u0442\u0443\u043b\u0437\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043b\u0430\u044e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 Node \u043d\u0430 Rust.<\/p>\n<h3>TL;DR:<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dherman\/neon\">Neon<\/a> \u2014 \u044d\u0442\u043e API \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445, \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0445 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 Node \u043d\u0430 Rust<\/li>\n<li>Neon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c Rust-\u0430 \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u043a\u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c\u044e<\/li>\n<li><a href=\"https:\/\/github.com\/dherman\/neon-cli\">Neon-cli<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c Neon \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0434\u0430\u0435\u0442 \u043b\u0435\u0433\u043a\u0438\u0439 \u0441\u0442\u0430\u0440\u0442\u2026 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446&#8230;<\/li>\n<li>\u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043c\u043e\u0449\u044c!!!<\/li>\n<\/ul>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h3> \u042f \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c Rust, \u0432\u044b \u0442\u043e\u0436\u0435 \u043d\u0430\u0443\u0447\u0438\u0442\u0435\u0441\u044c<\/h3>\n<p>  \u042f \u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0433\u043a\u0438\u043c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e (<i>\u041b\u0430\u0440\u0440\u0438 \u0423\u043e\u043b\u043b \u0442\u043e\u0436\u0435 \u0441 \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b, \u043f\u0440\u0438\u043c. \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a\u0430<\/i>) \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e <a href=\"https:\/\/github.com\/dherman\/neon-cli\">Neon-cli<\/a>, \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432 \u043e\u0434\u043d\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0433\u0435\u043d\u0435\u0440\u0438\u0442 \u0448\u0430\u0431\u043b\u043e\u043d Neon \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043d\u0438\u0447\u0435\u043c \u0438\u043d\u044b\u043c \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u043c <code>npm install<\/code><br \/>  \u0422\u0443\u0442 \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0431\u044b \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441 Neon, \u0441\u0442\u0430\u0432\u0438\u043c Neon-cli: <code>npm install -g neon-cli<\/code>, \u0437\u0430\u0442\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<pre><code class=\"bash\">% neon new hello ...follow prompts... % cd hello % npm install % node -e 'require(&quot;.\/&quot;)' <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043e\u0441\u043e\u0431\u043e \u043d\u0435\u0432\u0435\u0440\u0443\u044e\u0449\u0438\u0445 \u044f \u0442\u0443\u0442 \u0432\u044b\u043b\u043e\u0436\u0438\u043b <a href=\"https:\/\/raw.githubusercontent.com\/dherman\/neon-cli\/master\/screencast.gif\">\u0441\u043a\u0440\u0438\u043d\u043a\u0430\u0441\u0442<\/a>, \u0442\u0430\u043a \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h3>\u041b\u043e\u0432\u043b\u044e \u0442\u0435\u0431\u044f \u043d\u0430 \u0441\u043b\u043e\u0432\u0435 [Take Thee at thy Word]<\/h3>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 Neon-\u0430, \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 <a href=\"https:\/\/github.com\/dherman\/wc-demo\">\u0434\u0435\u043c\u043e<\/a> (\u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u043e\u0432). \u0414\u0435\u043c\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u2014 \u0447\u0438\u0442\u0430\u0435\u043c \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u0438\u0435 \u043f\u044c\u0435\u0441 \u0428\u0435\u043a\u0441\u043f\u0438\u0440\u0430 \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0441\u043b\u043e\u0432\u0430 \u00ab\u0442\u0435\u0431\u044f\u00bb (<i>I Take Thee at <b>thy<\/b> Word \u2014 \u0446\u0438\u0442\u0430\u0442\u0430 \u0438\u0437 \u0420\u043e\u043c\u0435\u043e \u0438 \u0414\u0436\u0443\u043b\u044c\u0435\u0442\u0442\u044b<\/i>) \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u0432\u0430\u043d\u0438\u043b\u044c\u043d\u043e\u043c javascript. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u043e\u0439 \u043a\u043e\u0434 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0445 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0438:<\/p>\n<pre><code class=\"javascript\">function search(corpus, search) {   var ls = lines(corpus);   var total = 0;   for (var i = 0, n = ls.length; i &lt; n; i++) {     total += wcLine(ls[i], search);   }   return total; } <\/code><\/pre>\n<p>  \u041f\u043e\u0438\u0441\u043a \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0440\u0430\u0437\u0431\u0438\u0435\u043d\u0438\u0435 \u043d\u0430 \u0441\u043b\u043e\u0432\u0430 \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u043b\u043e\u0432\u0430 \u0441 \u0438\u0441\u043a\u043e\u043c\u044b\u043c:<\/p>\n<pre><code class=\"javascript\">function wcLine(line, search) {   var words = line.split(' ');   var total = 0;   for (var i = 0, n = words.length; i &lt; n; i++) {     if (matches(words[i], search)) {       total++;     }   }   return total; } <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u0432\u0448\u0438\u0435 \u0437\u0430 \u043a\u0430\u0434\u0440\u043e\u043c \u0434\u0435\u0442\u0430\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 <a href=\"https:\/\/github.com\/dherman\/wc-demo\/blob\/master\/lib\/search.js\">\u044d\u0442\u043e\u043c \u043a\u043e\u0434\u0435<\/a>, \u043e\u043d \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u0438 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u044b\u0439 (\u0431\u0435\u0437 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439)<br \/>  \u041d\u0430 \u043c\u043e\u0435\u043c \u043d\u043e\u0443\u0442\u0435 \u043a\u043e\u0434 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e \u0432\u0441\u0435\u043c \u043f\u044c\u0435\u0441\u0430\u043c \u0428\u0435\u043a\u0441\u043f\u0438\u0440\u0430 \u0437\u0430 280-290ms. \u041d\u0435 \u0442\u0430\u043a \u0443\u0436 \u0438 \u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u043a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0435\u0441\u0442\u044c \u043a \u0447\u0435\u043c\u0443 \u0441\u0442\u0440\u0435\u043c\u0438\u0442\u044c\u0441\u044f.<\/p>\n<h3>\u0418 \u0441\u0435\u043b\u044c\u0441\u043a\u043e\u043c\u0443 \u0432\u0435\u0441\u0435\u043b\u044c\u044e \u043f\u0440\u0435\u0434\u0430\u0434\u0438\u043c\u0441\u044f [ Fall Into our Rustic Revelry ]<\/h3>\n<p>  \u041e\u0434\u043d\u043e \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 Rust-\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0434\u0438\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u043c \u0438 \u0447\u0438\u0442\u0430\u0435\u043c\u044b\u043c. \u0412 <a href=\"https:\/\/github.com\/dherman\/wc-demo\/blob\/master\/src\/lib.rs\">Rust-\u043e\u0432\u0441\u043a\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438<\/a> \u043a\u043e\u0434 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u0432\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043e\u0447\u0442\u0438 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a JS \u043a\u043e\u0434:<\/p>\n<pre><code class=\"rust\">let mut total = 0; for word in line.split(' ') {     if matches(word, search) {         total += 1;     } } total \/\/ \u0432 Rust \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c `return` \u043f\u0440\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <\/code><\/pre>\n<p>  \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u043c\u0438 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f\u043c\u0438 <i>\u0431\u0435\u0437 \u043f\u043e\u0442\u0435\u0440\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/i> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 (\u043f\u0435\u0440\u0435\u0431\u0438\u0440\u0430\u044e\u0449\u0438\u0435) \u043c\u0435\u0442\u043e\u0434\u044b \u043a\u0430\u043a <code>filter<\/code> \u0438 <code>fold<\/code> (\u0430\u043d\u0430\u043b\u043e\u0433\u0438 <code>Array.prototype.filter<\/code> \u0438 <code>Array.prototype.reduce<\/code> \u0432 JS):<\/p>\n<pre><code class=\"rust\">line.split(' ')     .filter(|word| matches(word, search))     .fold(0, |sum, _| sum + 1) <\/code><\/pre>\n<p>  \u041c\u043e\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b (\u043d\u0430 \u0441\u043a\u043e\u0440\u0443\u044e \u0440\u0443\u043a\u0443) \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 (\u043d\u0430 \u043f\u0430\u0440\u0443 \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434) \u043f\u0440\u0438\u0440\u043e\u0441\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438. \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u0430\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f Rust-\u043e\u0432\u0441\u043a\u043e\u0439 \u043f\u0430\u0440\u0430\u0434\u0438\u0433\u043c\u044b \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u0441 \u043d\u0443\u043b\u0435\u0432\u043e\u0439 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\u044e, \u0433\u0434\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u0434\u0430\u044e\u0442 \u0432 \u0438\u0442\u043e\u0433\u0435 \u0441\u0440\u0430\u0432\u043d\u0438\u043c\u044b\u0439 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 (\u0437\u0430 \u0441\u0447\u0435\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u043b\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u043a\u0430\u0437 \u043e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a \u0433\u0440\u0430\u043d\u0438\u0446) \u043a\u043e\u0434, \u0447\u0435\u043c \u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043d\u044b\u0439. <br \/>  \u041d\u0430 \u043c\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u043a\u0435 Rust-\u043e\u0432\u0441\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0437\u0430 80-85ms. \u041d\u0435\u043f\u043b\u043e\u0445\u043e, \u0442\u0440\u0435\u0445\u043a\u0440\u0430\u0442\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u0441\u0447\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Rust-a, \u043f\u0440\u0438\u0447\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u043e\u0431\u044a\u0435\u043c\u043e\u043c \u043a\u043e\u0434\u0430 (60 \u0441\u0442\u0440\u043e\u043a \u0432 JS, 70 \u2014 Rust). \u0418 \u043a\u0441\u0442\u0430\u0442\u0438, \u044f \u0442\u0443\u0442 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u043a\u0440\u0443\u0433\u043b\u044f\u044e \u0447\u0438\u0441\u043b\u0430 \u2014 \u044d\u0442\u043e \u0432\u0435\u0434\u044c \u043d\u0435 rocket scince, \u044f \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0447\u0442\u043e \u0432\u044b <b>\u043c\u043e\u0436\u0435\u0442\u0435<\/b> \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f Rust, \u043d\u043e \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438.<\/p>\n<h3>\u0418 \u043d\u0438\u0442\u044c \u0438\u0445 \u0436\u0438\u0437\u043d\u0438 \u043f\u0440\u044f\u0434\u0435\u0442\u0441\u044f [Their Thread of Life is Spun]<\/h3>\n<p>  \u041d\u043e \u044d\u0442\u043e \u0435\u0449\u0435 \u043d\u0435 \u0432\u0441\u0435! Rust \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043e\u0435-\u0447\u0442\u043e \u043f\u043e\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435 \u0434\u043b\u044f Node: \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043b\u0435\u0433\u043a\u043e \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0448 \u043a\u043e\u0434, \u043f\u0440\u0438\u0447\u0435\u043c <a href=\"http:\/\/blog.rust-lang.org\/2015\/04\/10\/Fearless-Concurrency.html\">\u0431\u0435\u0437 \u043d\u043e\u0447\u043d\u044b\u0445 \u043a\u043e\u0448\u043c\u0430\u0440\u043e\u0432 \u0438 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u0430, \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e<\/a>. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u043d\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u044d\u0442\u043e\u0433\u043e \u043d\u0430 Rust:<\/p>\n<pre><code class=\"rust\">let total = vm::lock(buffer, |data| {     let corpus = data.as_str().unwrap();     let lines = lines(corpus);     lines.into_iter()          .map(|line| wc_line(line, search))          .fold(0, |sum, line| sum + line) }); <\/code><\/pre>\n<p>  <code>vm::lock<\/code> API \u0434\u0430\u0435\u0442 Rust-\u0442\u0440\u0435\u0434\u0430\u043c \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a Node-\u043e\u0431\u044a\u0435\u043a\u0442\u0443 <code>Buffer<\/code> (\u0442\u043e \u0435\u0441\u0442\u044c \u043a \u0441\u0442\u0440\u043e\u0433\u043e \u0442\u0438\u043f\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0443), \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044f \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 JS \u043a\u043e\u0434\u0430.<\/p>\n<p>  \u0427\u0442\u043e \u0431\u044b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b <a href=\"http:\/\/smallcultfollowing.com\/babysteps\/blog\/2015\/12\/18\/rayon-data-parallelism-in-rust\/\">\u043d\u043e\u0432\u044b\u0439 Rayon \u043e\u0442 Niko Matsakis<\/a> \u2014 \u043d\u0430\u0431\u043e\u0440 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0445 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0434\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u0435\u043c \u0446\u0435\u043f\u043e\u0447\u043a\u0443 <code>into_iter\/map\/fold\/<\/code> \u043d\u0430 \u044d\u0442\u043e:<\/p>\n<pre><code class=\"rust\">lines.into_par_iter()      .map(|line| wc_line(line, search))      .sum() <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u2014 Rayon \u043d\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f Neon, \u043f\u0440\u043e\u0441\u0442\u043e Rayon \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0438\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 Rust, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 Neon \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<br \/>  \u0421 \u044d\u0442\u0438\u043c\u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u043e\u0439 \u0434\u0432\u0443\u0445\u044f\u0434\u0435\u0440\u043d\u044b\u0439 MacBook Air \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0434\u0435\u043c\u043a\u0443 \u0437\u0430 50ms \u0432\u043c\u0435\u0441\u0442\u043e 85ms \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438.<\/p>\n<h3>Bridge Most Valiantly, with Excellent Discipline<\/h3>\n<p>  \u042f \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u043b\u0441\u044f \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0433\u043b\u0430\u0434\u043a\u043e\u0439, \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e. \u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b Rust, \u0444\u0443\u043d\u043a\u0446\u0438\u0438 Neon \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443, \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 <code>Call<\/code> \u043e\u0431\u044a\u0435\u043a\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442 JavaScript \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"rust\">fn search(call: Call) -&gt; JS&lt;Integer&gt; {     let scope = call.scope;     \/\/ ...     Ok(Integer::new(scope, total)) } <\/code><\/pre>\n<p>  \u041e\u0431\u044a\u0435\u043a\u0442 <code>scope<\/code> \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442 \u0445\u0430\u043d\u0434\u043b\u044b (Handle) \u0432 V8 heap-\u0435. Neon API \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0442\u0438\u043f\u043e\u0432 Rust \u2014 \u044d\u0442\u043e \u0434\u0430\u0435\u0442 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044e \u0447\u0442\u043e \u0432\u0430\u0448 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0443\u0440\u043e\u043d\u0438\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c Handles \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 (<i>\u0442\u0443\u0442 <a href=\"https:\/\/habrahabr.ru\/post\/72592\/\">\u043a\u043e\u0432\u044b\u0440\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u0438\u0448\u043a\u0430\u0445 Node<\/a>, \u0437\u0430\u043e\u0434\u043d\u043e \u0438 Handle \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u2026 2009-\u044b\u0439, \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0442\u0430\u043a \u0443\u0436\u0435 \u043d\u0435 \u043f\u0438\u0448\u0443\u0442&#8230;<\/i>).<\/p>\n<p>  \u0421\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b JS \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u0430 \u0434\u043e \u0431\u0435\u0437\u043e\u0431\u0440\u0430\u0437\u0438\u044f:<\/p>\n<pre><code class=\"javascript\">var myNeonModule = require('neon-bridge').load(); <\/code><\/pre>\n<p>  <\/p>\n<h3>\u041e\u0442\u0447\u0435\u0433\u043e \u044d\u0442\u043e\u0442 \u0448\u0443\u043c? [Wherefore is this noise]<\/h3>\n<p>  \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043c\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e \u0431\u044b \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0441. \u041f\u043e\u043c\u0438\u043c\u043e \u0444\u0430\u043d\u0430, \u044f \u0434\u0443\u043c\u0430\u044e \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u2014 \u0441\u0438\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b \u0437\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Rust \u0432 Node. \u0422\u0430\u043a \u043a\u0430\u043a \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u0430 Rust \u0440\u0430\u0441\u0442\u0435\u0442, \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f Node \u043a \u043b\u0438\u0431\u0430\u043c Rust. \u041a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u044f \u043d\u0430\u0434\u0435\u044e\u0441\u044c Neon \u0441\u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u0434\u043b\u044f Node \u043c\u0435\u043d\u0435\u0435 \u0431\u043e\u043b\u0435\u0437\u043d\u0435\u043d\u043d\u044b\u043c. \u0421 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438 \u0432\u0440\u043e\u0434\u0435 <a href=\"https:\/\/blogs.windows.com\/buildingapps\/2015\/05\/12\/bringing-node-js-to-windows-10-iot-core\/\">node-uwp<\/a> \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0430\u0436\u0435 \u0441\u0442\u043e\u0438\u0442 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 Neon \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0443\u0440\u043e\u0432\u043d\u044f \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 \u043d\u0430\u0434 JS-engine (<i>\u0447\u0442\u043e \u0431\u044b \u044d\u0442\u043e \u043d\u0438 \u0437\u043d\u0430\u0447\u0438\u043b\u043e<\/i>).<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c \u0442\u0443\u0442 \u043c\u043e\u0440\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e\u2026 <a href=\"https:\/\/github.com\/dherman\/neon\">\u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c<\/a>! \u0414\u043b\u044f \u0442\u0435\u0445 \u043a\u0442\u043e \u0445\u043e\u0447\u0435\u0442 \u043f\u043e\u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u2014 \u044f \u0441\u043e\u0437\u0434\u0430\u043b <a href=\"http:\/\/rustbridge.slack.com\/\">\u0447\u0430\u0442\u0438\u043a \u0432 Slack \u0434\u043b\u044f community<\/a>, \u0438\u043d\u0432\u0430\u0439\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c <a href=\"http:\/\/rustbridge-community-slackin.herokuapp.com\/\">\u0442\u0443\u0442<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 IRC \u043a\u0430\u043d\u0430\u043b <code>#neon<\/code> \u043d\u0430 <a href=\"https:\/\/wiki.mozilla.org\/IRC\">Mozilla IRC<\/a>(<code>irc.mozilla.org<\/code>).<\/p>\n<h3>\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>  \u0422\u0443\u0442 \u043c\u043d\u043e\u0433\u043e \u0432 \u0447\u0435\u043c \u0435\u0449\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438 \u0442\u043e\u043d\u043d\u044b \u043d\u0435\u0434\u043e\u0434\u0435\u043b\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u043e \u0438 \u0442\u043e \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0437 \u043f\u043e\u043c\u043e\u0449\u0438: <a href=\"http:\/\/oppenlander.me\/articles\/rust-ffi\"> Andrew Oppenlander\u2019s blog post <\/a> \u0434\u0430\u043b \u043c\u043d\u0435 \u043d\u0430\u0449\u0443\u043f\u0430\u0442\u044c \u043f\u043e\u0447\u0432\u0443 \u043f\u043e\u0434 \u043d\u043e\u0433\u0430\u043c\u0438, Ben Noordhuis \u0438 Marcin Cie\u015blak \u043d\u0430\u0443\u0447\u0438\u043b\u0438 \u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c V8, \u044f \u0443\u0442\u0430\u0449\u0438\u043b \u043f\u0430\u0440\u0443 \u043f\u0440\u0438\u0435\u043c\u043e\u0432 \u0438\u0437 <a href=\"https:\/\/github.com\/TooTallNate\/node-bindings\/blob\/master\/bindings.js\">\u0437\u043b\u043e\u0434\u0435\u0439\u0441\u043a\u0438 \u0433\u0435\u043d\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 <\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e Nathan Rajlich; Adam Klein \u0438 Fedor Indutny \u043f\u043e\u043c\u043e\u0433\u043b\u0438 \u043f\u043e\u043d\u044f\u0442\u044c V8 API, Alex Crichton \u043f\u043e\u043c\u043e\u0433 \u043c\u043d\u0435 \u0441 \u0442\u0430\u0438\u043d\u0441\u0442\u0432\u043e\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0438, Niko Matsakis \u043f\u043e\u043c\u043e\u0433 \u0441 \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c API \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u0430 Yehuda Katz \u043f\u043e\u043c\u043e\u0433 \u0441\u043e \u0432\u0441\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u0434\u0438\u0437\u0430\u0439\u043d\u043e\u043c.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u043d\u044f\u043b\u0438 \u0438\u0437 \u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u2014 <a href=\"https:\/\/github.com\/dherman\/neon\">\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u044b \u0442\u043e\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043c\u043e\u0447\u044c<\/a>!       <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/277453\/\"> https:\/\/habrahabr.ru\/post\/277453\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 &quot;<a href=\"http:\/\/calculist.org\/blog\/2015\/12\/23\/neon-node-rust\/\">Neon: Node + Rust<\/a>&quot;.<\/p>\n<p>  Javascript \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0430\u0438\u043d\u0442\u0440\u0438\u0433\u043e\u0432\u0430\u043b\u0430 rust-\u043e\u0432\u0441\u043a\u0430\u044f \u0442\u0435\u043c\u0430 <a href=\"http:\/\/blog.rust-lang.org\/2015\/08\/14\/Next-year.html\">\u0431\u0435\u0441\u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/a> (\u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 [\u043d\u0438\u0437\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u043e\u0435] \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u044b\u043c \u0438 \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u044b\u043c), \u043d\u043e \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0436\u0434\u0443\u0449\u0438\u0445 \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u044b\u0445 \u043f\u0435\u043d\u0434\u0430\u043b\u0435\u0439 \u2014 \u0438\u0445 \u0435\u0441\u0442\u044c \u0443 \u043c\u0435\u043d\u044f! \u042f \u0442\u0443\u0442 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0430\u0434 <a href=\"https:\/\/github.com\/dherman\/neon\">Neon<\/a> \u2014 \u043d\u0430\u0431\u043e\u0440\u043e\u043c API \u0438 \u0442\u0443\u043b\u0437\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u043b\u0430\u044e\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 Node \u043d\u0430 Rust.<\/p>\n<h3>TL;DR:<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/dherman\/neon\">Neon<\/a> \u2014 \u044d\u0442\u043e API \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u044b\u0441\u0442\u0440\u044b\u0445, \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0445 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 Node \u043d\u0430 Rust<\/li>\n<li>Neon \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c Rust-\u0430 \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u043a\u043e\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c\u044e<\/li>\n<li><a href=\"https:\/\/github.com\/dherman\/neon-cli\">Neon-cli<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043b\u0435\u0433\u043a\u043e \u0438 \u043d\u0435\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c Neon \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u0434\u0430\u0435\u0442 \u043b\u0435\u0433\u043a\u0438\u0439 \u0441\u0442\u0430\u0440\u0442\u2026 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446&#8230;<\/li>\n<li>\u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043c\u043e\u0449\u044c!!!<\/li>\n<\/ul>\n<p>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-274513","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=274513"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274513\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}