{"id":342391,"date":"2022-12-10T15:00:51","date_gmt":"2022-12-10T15:00:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=342391"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=342391","title":{"rendered":"<span>\u0418\u0433\u0440\u0430 \u0416\u0438\u0437\u043d\u044c \u0438 Julia<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0432\u043e\u0438\u0445<a href=\"https:\/\/habr.com\/ru\/post\/646541\/\" rel=\"noopener noreferrer nofollow\"> \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 <\/a>\u043f\u043e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u0438\u0433\u0440\u0435 \u0436\u0438\u0437\u043d\u044c \u044f \u0432\u044b\u0434\u0432\u0438\u043d\u0443\u043b \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443: <strong>\u041f\u0435\u0440\u0432\u0430\u044f \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0430<\/strong>\u00a0\u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f &#8216;\u0434\u0432\u0438\u0436\u0443\u0445\u0438&#8217; &#8212;\u00a0<em>\u0432 \u0448\u0438\u0440\u043e\u043a\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0435\u0439 p \u043e\u0442 0.1 \u0434\u043e 0.7, \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f &#8216;\u0434\u0432\u0438\u0436\u0443\u0445\u0438&#8217; &#8216;\u043f\u0435\u043f\u0435\u043b&#8217; \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c, \u043e\u043a\u043e\u043b\u043e 0.27<\/em>  <\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/703378\/\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0444\u0440\u0430\u043a\u0442\u0430\u043b \u0420\u0438\u043c\u0430\u043d\u0430<\/a>, \u044f \u0431\u044b\u043b \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u043f\u0435\u0440\u0435\u0441\u0435\u0441\u0442\u044c \u0441 Python \u043d\u0430 Julia \u0438\u0437-\u0437\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u0438 \u043d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u043b \u043e\u0431 \u044d\u0442\u043e\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u043c\u043e\u0433 \u043d\u0430 Julia \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10k x 10k, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u041a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u0432\u0430\u0441 \u0436\u0434\u0435\u0442 \u0438 \u0432\u0438\u0434\u0435\u043e.<\/p>\n<h2>\u0412\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430 \u043e\u0442 \u044f\u0437\u044b\u043a\u0430 Julia<\/h2>\n<p>\u0412\u044b\u0431\u043e\u0440 Julia \u0431\u044b\u043b \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u043d &#8212; \u044f \u0438\u0441\u043a\u0430\u043b \u044f\u0437\u044b\u043a, \u0433\u0434\u0435 \u0438\u043c\u0435\u043b\u0430\u0441\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f zeta \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0420\u0438\u043c\u0430\u043d\u0430. \u0412 Python \u044d\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e mpmath, \u0438 \u0431\u044b\u043b\u0430 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0439. \u0412 scipy \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0438 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>\u042f\u0437\u044b\u043a Julia \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0435\u0434\u043a\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u0441\u0435\u0431\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 \u043d\u0438\u043c \u043f\u043b\u043e\u0442\u043d\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439.<\/p>\n<p>\u041c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e Julia &#8212; \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 \u0434\u043b\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430, \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u043f\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u0430 Julia. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u041f\u0438\u0442\u043e\u043d\u0435: \u0438 [] \u0441\u043f\u0438\u0441\u043a\u0438-\u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438 tuples, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f:<\/p>\n<pre><code class=\"julia\">function Sum(a,b)   return a+b end<\/code><\/pre>\n<p>\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0432 \u041f\u0438\u0442\u043e\u043d\u0435, \u0434\u043b\u044f \u0446\u0435\u043b\u044b\u0445, \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0445, \u0438 \u0438\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c. (\u0414\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &#8212; \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Julia \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f &#8212; \u043f\u043e\u0447\u0435\u043c\u0443?). \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0430\u044f \u043d\u0430\u043c \u0443\u0442\u0438\u043d\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f, \u043d\u043e \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u044f\u0437\u044b\u043a\u0435. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 Julia \u043c\u043e\u0436\u0435\u0442 &#8216;\u043f\u043e\u0434\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u044b\u0432\u0430\u0442\u044c&#8217; \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044d\u0442\u0438\u043c \u043d\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f &#8212; \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0443\u0437\u043a\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0435\u0439. <\/p>\n<p><strong>\u0423\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0418\u043d\u0434\u0435\u043a\u0441\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 1. \u041d\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u0430\u0435\u0448\u044c, \u043a\u0430\u043a \u043a \u043b\u0435\u0432\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c\u0443 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043d\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044f <s>\u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 \u0410\u043d\u0433\u043b\u0438\u0438<\/s> \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0441 Fortran IV.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435, \u0437\u043d\u0430\u043a \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c, 2b \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 2*b<\/p>\n<\/li>\n<li>\n<p>\u0421\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0442\u043e\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c unicode \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0434\u043b\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0440\u043e\u0432, \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430  \u2140  \u225f  \u2282  \u0438\u0442\u0434.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041c\u0430\u043a\u0440\u043e\u0441\u044b<\/strong><\/p>\n<p>\u0421\u0438\u043b\u043e\u0439 \u044f\u0437\u044b\u043a\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441 \u0443\u0436\u0435 <em>parsed syntax tree<\/em>, \u0430 \u043d\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u042d\u0442\u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0430\u0448 \u043a\u043e\u0434. \u0414\u0430, \u043a\u043e\u0434 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0432 \u0433\u043b\u0443\u0431\u0438\u043d\u0435 \u0436\u0438\u0432\u0435\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435 LISP.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0435\u0440\u0435\u043c \u043a\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044f \u0438 \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Threads<a class=\"mention\" href=\"\/users\/threads\">@threads<\/a>&#8212; \u043f\u0440\u043e\u0441\u0438\u043c Julia \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0446\u0438\u043a\u043b \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 threads:<\/p>\n<pre><code class=\"julia\">function randomseed(prob, size, board)   cellcnt=0   Threads.@threads for y in 1:size     r = rand(size)     for x in 1:size   if r[x] &lt; prob     board[x,y] = 1         cellcnt[tid] += 1   end     end   end   return cellcnt end<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435! \u041f\u0440\u0430\u0432\u0434\u0430, \u043c\u044b \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443: \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0441\u0435\u0435\u0442 \u043f\u043e\u043b\u0435, \u0430 \u0432\u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 cellcnt \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u0435, \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043d\u0438\u0436\u0435\u043d\u043d\u044b\u043c \u0438\u0437-\u0437\u0430 \u043d\u0435\u0430\u0442\u043e\u043c\u0430\u0440\u043d\u043e\u0441\u0442\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439. \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u043c, \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0438 \u0438 \u043f\u043e\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c reduce, \u0432\u043e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f:<\/p>\n<pre><code class=\"julia\">function randomseed(prob, size, board)   trd = Threads.nthreads()   cellcnt=zeros(Int32, trd)   Threads.@threads for y in 1:size     tid = Threads.threadid()     r = rand(size)     for x in 1:size   if r[x] &lt; prob     board[x,y] = 1         cellcnt[tid] += 1   end     end   end   cellcntgbl = 0   for i in 1:trd     cellcntgbl += cellcnt[i]   end   return cellcntgbl end<\/code><\/pre>\n<p>(\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0440\u0435\u0434\u0430 \u0441\u0432\u043e\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a, \u0438 \u043f\u043e\u0442\u043e\u043c \u043e\u043d\u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f)<\/p>\n<p>\u0415\u0441\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441\u044b turbo \u0438 simd &#8212; \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u043f\u0430\u0440\u0440\u0430\u043b\u0435\u043b\u0438\u0442\u044c \u0446\u0438\u043a\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. \u041e\u043d\u0438 \u0442\u043e\u0436\u0435 \u043f\u043e\u043f\u044b\u0442\u0430\u044e\u0441\u044c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043d\u043e \u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b.<\/p>\n<h2>\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440 \u0432 \u0438\u0433\u0440\u0435 \u0416\u0438\u0437\u043d\u044c<\/h2>\n<p>\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440 \u043d\u0430 \u043f\u043e\u043b\u0435, \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e, \u0437\u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0445\u043e\u0434 \u0438 \u0432 \u043c\u043d\u043e\u0433\u0438\u0445 \u0442\u0440\u0435\u0434\u0430\u0445. \u042f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b\u0441\u044f \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 6&#215;6:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/315\/c1b\/a4e\/315c1ba4e6b1358c0f9f527ad0ff9b99.png\" width=\"769\" height=\"660\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/315\/c1b\/a4e\/315c1ba4e6b1358c0f9f527ad0ff9b99.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0434 \u0434\u0435\u0442\u0435\u043a\u0446\u0438\u0438 \u0444\u0438\u0433\u0443\u0440 \u043d\u0430 Julia \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0431\u0435\u0437\u0443\u043c\u043d\u043e, \u043d\u043e \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d (\u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430):<\/p>\n<pre><code class=\"julia\">  m64 = (((((s[1]&lt;&lt;6)+s[2])&lt;&lt;6)+s[3])&lt;&lt;6)+s[4] # 6 bit wide   m65 = (m64&lt;&lt;6)+s[5]   m66 = (m65&lt;&lt;6)+s[6]   m53 = ((((s[1]&amp;31)&lt;&lt;5)+(s[2]&amp;31))&lt;&lt;5)+(s[3]&amp;31) # 5 bit wide   m54 = (m53&lt;&lt;5)+(s[4]&amp;31)   m55 = (m54&lt;&lt;5)+(s[5]&amp;31)   m56 = (m55&lt;&lt;5)+(s[6]&amp;31)   m44 = ((((((s[1]&amp;15)&lt;&lt;4)+(s[2]&amp;15))&lt;&lt;4)+(s[3]&amp;15))&lt;&lt;4)+(s[4]&amp;15) # 4 bit wide   m45 = (m44&lt;&lt;4)+(s[5]&amp;15)   m46 = (m45&lt;&lt;4)+(s[6]&amp;15)   m35=  ((((((((s[1]&amp;7)&lt;&lt;3)+(s[2]&amp;7))&lt;&lt;3)+(s[3]&amp;7)))&lt;&lt;3)+(s[4]&amp;7))+(s[5]&amp;7)  # now we can compare the rest of the slider   if (m44 == 1632) cnt_block[tid] += 1 end   if (m65 in (3220224, 4532352)) cnt_hive[tid] += 1 end   if (m66 in (206086400, 69804800, 206127616, 139535104)) cnt_loaf[tid] += 1 end   if (m55 in (403584, 141696, 206976, 141504)) cnt_boat[tid] += 1 end   if (m55 == 141440) cnt_tub[tid] += 1 end   if (m53 in (448, 1168)) cnt_blinker[tid] += 1 end   if (m64 in (59136, 115584, 288288, 157248)) cnt_toad[tid] +=1 end   if (m66 in (71901696, 139010304, 205529856, 201917184)) cnt_toad[tid] +=1 end   if (m66 in (408969600, 102336000)) cnt_beacon[tid] +=1 end   if (m55 in (75968, 206912, 272768, 403712, 460928, 467072, 133568, 139712, 268672, 399616, 78016, 208960, 137536, 143680, 333952, 340096))     cnt_glider[tid] += 1  <\/code><\/pre>\n<p>\u041f\u043e \u043f\u043e\u043b\u044e \u0435\u0434\u0443\u0442 6 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432 s, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f 6 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0438\u0442. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 &#8216;\u043e\u043a\u043d\u0430&#8217; m \u0440\u0430\u0437\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b. \u041a\u043e\u0433\u0434\u0430 \u043e\u043a\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u0435\u0435 \u0444\u0438\u0433\u0443\u0440\u044b, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 m \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u044b\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443. \u0414\u043b\u044f \u0444\u0438\u0433\u0443\u0440 \u0442\u0438\u043f\u0430 block \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e, \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0430\u0437\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u0443 \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u0430).<\/p>\n<p>\u0421\u0430\u043c\u0438 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435.<\/p>\n<h2>\u0412\u0438\u0434\u0435\u043e<\/h2>\n<p>\u0414\u043b\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b 10k * 10k (\u0442\u043e\u0440, \u0432\u0435\u0440\u0445 \u0441\u043a\u043b\u0435\u0435\u043d \u0441 \u043d\u0438\u0437\u043e\u043c \u0438 \u043f\u0440\u0430\u0432\u044b\u0439 \u043a\u0440\u0430\u0439 \u0441 \u043b\u0435\u0432\u044b\u043c) \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e 30% \u0438 3% \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u043d\u0430 15000 \u0448\u0430\u0433\u043e\u0432. \u0426\u0432\u0435\u0442 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u043e \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0440\u0442\u0432\u043e\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0421\u0438\u043d\u0438\u0439 &#8212; \u043c\u0435\u0440\u0442\u0432\u0430\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u044f &#8212; blocks, blinkers<\/p>\n<\/li>\n<li>\n<p>\u0417\u0435\u043b\u0435\u043d\u044b\u0439 &#8212; \u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0436\u0438\u0437\u043d\u044c<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0430\u0441\u043d\u044b\u0439 &#8212; \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043b\u0435 10k * 10k \u0441\u0436\u0438\u043c\u0430\u043b\u043e\u0441\u044c \u0432 10 \u0440\u0430\u0437 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u043e\u0441\u0438, \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u0443\u044e \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0446\u0432\u0435\u0442\u043e\u0432 (\u0433\u043e\u043b\u0443\u0431\u043e\u0439 &#8212; \u0441\u043c\u0435\u0441\u044c \u0436\u0438\u0432\u043e\u0439 \u0438 \u043d\u0435\u0436\u0438\u0432\u043e\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0438)<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=ywHn2wahs0M\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u0432\u0438\u0434\u0435\u043e<\/a><\/p>\n<h2>\u0413\u0440\u0430\u0444\u0438\u043a\u0438<\/h2>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044e \u043f\u0440\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/599\/2ac\/f13\/5992acf13043ec2238960efcb521a617.png\" width=\"821\" height=\"657\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/599\/2ac\/f13\/5992acf13043ec2238960efcb521a617.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u0448\u0438\u0440\u043e\u043a\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439, \u043e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0432\u0435\u0440\u043d\u043e \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 9%<\/p>\n<p><strong>\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0436\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043e\u043b\u044f?<\/strong><\/p>\n<p>\u0421\u0440\u0430\u0432\u043d\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u043b\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 6%:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8c8\/dea\/7e9\/8c8dea7e9e71b575e3c5e6dd4160c908.png\" width=\"787\" height=\"623\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8c8\/dea\/7e9\/8c8dea7e9e71b575e3c5e6dd4160c908.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u043e\u043b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0430\u0434\u043a\u0438\u0435, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0443 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/a88\/ae7\/1f5\/a88ae71f5b087bfd75791b4d38cb43ee.png\" width=\"819\" height=\"658\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a88\/ae7\/1f5\/a88ae71f5b087bfd75791b4d38cb43ee.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u043f\u043b\u0435\u0441\u043a \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 130 &#8212; 250-\u0433\u043e \u0448\u0430\u0433\u0430, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u043c\u0430\u043b\u044b\u0445 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044f\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0442 \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u044b:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/114\/77d\/0bf\/11477d0bf0094cad061f1e235fc139c4.png\" width=\"766\" height=\"625\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/114\/77d\/0bf\/11477d0bf0094cad061f1e235fc139c4.png\"\/><figcaption><\/figcaption><\/figure>\n<p><strong>\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0435\u0442\u043e\u043a, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u0440\u0430\u0437\u043d\u044b\u043c \u0444\u0438\u0433\u0443\u0440\u0430\u043c:<\/strong><\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 6%:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/690\/0b0\/a82\/6900b0a82b82a27bb73e8cd7ee3ce342.png\" width=\"1006\" height=\"724\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/690\/0b0\/a82\/6900b0a82b82a27bb73e8cd7ee3ce342.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 30%:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/298\/3ee\/8e6\/2983ee8e6a2f8911f497575df3772012.png\" width=\"1023\" height=\"841\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/298\/3ee\/8e6\/2983ee8e6a2f8911f497575df3772012.png\"\/><figcaption><\/figcaption><\/figure>\n<h2>Performance<\/h2>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u044f 10k*10k \u043e\u0434\u0438\u043d \u0448\u0430\u0433 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u043c\u043e\u0435\u043c <strong>AMD Ryzen 5 3600X 6-Core Processor                3.79 GHz:<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\"><strong>Threads<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\"><strong>TIme, seconds<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>Millions Cells per Second<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">1.00048<\/p>\n<\/td>\n<td>\n<p align=\"left\">99.952<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.526<\/p>\n<\/td>\n<td>\n<p align=\"left\">190.11<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">4<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.294<\/p>\n<\/td>\n<td>\n<p align=\"left\">340.13<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">6<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.269<\/p>\n<\/td>\n<td>\n<p align=\"left\">371.74<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">8<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.245<\/p>\n<\/td>\n<td>\n<p align=\"left\">408.16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">12<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.255<\/p>\n<\/td>\n<td>\n<p align=\"left\">392.15<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \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:\/\/habr.com\/ru\/post\/704640\/\"> https:\/\/habr.com\/ru\/post\/704640\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0441\u0432\u043e\u0438\u0445<a href=\"https:\/\/habr.com\/ru\/post\/646541\/\" rel=\"noopener noreferrer nofollow\"> \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0441\u0442\u0430\u0442\u0435\u0439 <\/a>\u043f\u043e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u0438 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u0438\u0433\u0440\u0435 \u0436\u0438\u0437\u043d\u044c \u044f \u0432\u044b\u0434\u0432\u0438\u043d\u0443\u043b \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443: <strong>\u041f\u0435\u0440\u0432\u0430\u044f \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0430<\/strong>\u00a0\u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f &#8216;\u0434\u0432\u0438\u0436\u0443\u0445\u0438&#8217; &#8212;\u00a0<em>\u0432 \u0448\u0438\u0440\u043e\u043a\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0435\u0439 p \u043e\u0442 0.1 \u0434\u043e 0.7, \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f &#8216;\u0434\u0432\u0438\u0436\u0443\u0445\u0438&#8217; &#8216;\u043f\u0435\u043f\u0435\u043b&#8217; \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c, \u043e\u043a\u043e\u043b\u043e 0.27<\/em>  <\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/703378\/\" rel=\"noopener noreferrer nofollow\">\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0444\u0440\u0430\u043a\u0442\u0430\u043b \u0420\u0438\u043c\u0430\u043d\u0430<\/a>, \u044f \u0431\u044b\u043b \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u043f\u0435\u0440\u0435\u0441\u0435\u0441\u0442\u044c \u0441 Python \u043d\u0430 Julia \u0438\u0437-\u0437\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u0438 \u043d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u043b \u043e\u0431 \u044d\u0442\u043e\u043c. \u041e\u0434\u043d\u0430\u043a\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u044f \u043c\u043e\u0433 \u043d\u0430 Julia \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 10k x 10k, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b \u043d\u0430 \u043d\u043e\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435. \u041a\u0430\u043a \u0432\u0441\u0435\u0433\u0434\u0430, \u0432\u0430\u0441 \u0436\u0434\u0435\u0442 \u0438 \u0432\u0438\u0434\u0435\u043e.<\/p>\n<h2>\u0412\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430 \u043e\u0442 \u044f\u0437\u044b\u043a\u0430 Julia<\/h2>\n<p>\u0412\u044b\u0431\u043e\u0440 Julia \u0431\u044b\u043b \u0441\u043a\u043e\u0440\u0435\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u043d &#8212; \u044f \u0438\u0441\u043a\u0430\u043b \u044f\u0437\u044b\u043a, \u0433\u0434\u0435 \u0438\u043c\u0435\u043b\u0430\u0441\u044c \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f zeta \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0420\u0438\u043c\u0430\u043d\u0430. \u0412 Python \u044d\u0442\u0430 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u0447\u0438\u0441\u0435\u043b \u0441 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e mpmath, \u0438 \u0431\u044b\u043b\u0430 \u043e\u0447\u0435\u043d\u044c \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e\u0439. \u0412 scipy \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0435 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0438 \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442.<\/p>\n<p>\u042f\u0437\u044b\u043a Julia \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0440\u0435\u0434\u043a\u0438\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u0441\u0435\u0431\u0435 \u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0441 \u043d\u0438\u043c \u043f\u043b\u043e\u0442\u043d\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043d\u0435\u0439.<\/p>\n<p>\u041c\u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e Julia &#8212; \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u0432\u044b\u0431\u043e\u0440 \u0434\u043b\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430, \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435 \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u0435\u043b\u0430\u044e\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u0438, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u043f\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u0430 Julia. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432\u0441\u0435, \u0447\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u041f\u0438\u0442\u043e\u043d\u0435: \u0438 [] \u0441\u043f\u0438\u0441\u043a\u0438-\u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u043c\u043d\u043e\u0433\u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0438 tuples, \u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f:<\/p>\n<pre><code class=\"julia\">function Sum(a,b)   return a+b end<\/code><\/pre>\n<p>\u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0432 \u041f\u0438\u0442\u043e\u043d\u0435, \u0434\u043b\u044f \u0446\u0435\u043b\u044b\u0445, \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445, \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0445, \u0438 \u0438\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c. (\u0414\u043b\u044f \u0441\u0442\u0440\u043e\u043a \u043d\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &#8212; \u0441\u0442\u0440\u043e\u043a\u0438 \u0432 Julia \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u043a\u043e\u043c \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f &#8212; \u043f\u043e\u0447\u0435\u043c\u0443?). \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0430\u044f \u043d\u0430\u043c \u0443\u0442\u0438\u043d\u0430\u044f \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f, \u043d\u043e \u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u044f\u0437\u044b\u043a\u0435. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 Julia \u043c\u043e\u0436\u0435\u0442 &#8216;\u043f\u043e\u0434\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u044b\u0432\u0430\u0442\u044c&#8217; \u0432\u0435\u0440\u0441\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>\u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u044d\u0442\u0438\u043c \u043d\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f &#8212; \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0443\u0437\u043a\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0445 \u0432\u0435\u0449\u0435\u0439. <\/p>\n<p><strong>\u0423\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u0438:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0418\u043d\u0434\u0435\u043a\u0441\u044b \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e) \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 1. \u041d\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u0430\u0435\u0448\u044c, \u043a\u0430\u043a \u043a \u043b\u0435\u0432\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0435\u043c\u0443 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e. \u0412\u043f\u0440\u043e\u0447\u0435\u043c, \u043c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u043c\u043d\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044f <s>\u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 \u0410\u043d\u0433\u043b\u0438\u0438<\/s> \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0441 Fortran IV.<\/p>\n<\/li>\n<li>\n<p>\u041a\u0430\u043a \u0432 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0435, \u0437\u043d\u0430\u043a \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c, 2b \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 2*b<\/p>\n<\/li>\n<li>\n<p>\u0421\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u0442\u043e\u043d\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c unicode \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0434\u043b\u044f \u043a\u0432\u0430\u043d\u0442\u043e\u0440\u043e\u0432, \u043d\u0435\u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430  \u2140  \u225f  \u2282  \u0438\u0442\u0434.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041c\u0430\u043a\u0440\u043e\u0441\u044b<\/strong><\/p>\n<p>\u0421\u0438\u043b\u043e\u0439 \u044f\u0437\u044b\u043a\u0430 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0439 \u0441 \u0443\u0436\u0435 <em>parsed syntax tree<\/em>, \u0430 \u043d\u0435 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438. \u042d\u0442\u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0430\u0448 \u043a\u043e\u0434. \u0414\u0430, \u043a\u043e\u0434 \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u0432 \u0433\u043b\u0443\u0431\u0438\u043d\u0435 \u0436\u0438\u0432\u0435\u0442 \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u0435 LISP.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0435\u0440\u0435\u043c \u043a\u043e\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u043b\u044f \u0438 \u043f\u0435\u0440\u0435\u0434 \u043d\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Threads<a class=\"mention\" href=\"\/users\/threads\">@threads<\/a>&#8212; \u043f\u0440\u043e\u0441\u0438\u043c Julia \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0446\u0438\u043a\u043b \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 threads:<\/p>\n<pre><code class=\"julia\">function randomseed(prob, size, board)   cellcnt=0   Threads.@threads for y in 1:size     r = rand(size)     for x in 1:size   if r[x] &lt; prob     board[x,y] = 1         cellcnt[tid] += 1   end     end   end   return cellcnt end<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u0438 \u0432\u0441\u0435! \u041f\u0440\u0430\u0432\u0434\u0430, \u043c\u044b \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0443: \u043a\u043e\u0434 \u0432\u044b\u0448\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0441\u0435\u0435\u0442 \u043f\u043e\u043b\u0435, \u0430 \u0432\u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 cellcnt \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442 \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u0435, \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043d\u0438\u0436\u0435\u043d\u043d\u044b\u043c \u0438\u0437-\u0437\u0430 \u043d\u0435\u0430\u0442\u043e\u043c\u0430\u0440\u043d\u043e\u0441\u0442\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0438 \u043a\u043e\u043b\u043b\u0438\u0437\u0438\u0439. \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0430\u0442\u043e\u043c\u0430\u0440\u043d\u044b\u043c, \u043b\u0443\u0447\u0448\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u0438 \u0438 \u043f\u043e\u0442\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c reduce, \u0432\u043e\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f:<\/p>\n<pre><code class=\"julia\">function randomseed(prob, size, board)   trd = Threads.nthreads()   cellcnt=zeros(Int32, trd)   Threads.@threads for y in 1:size     tid = Threads.threadid()     r = rand(size)     for x in 1:size   if r[x] &lt; prob     board[x,y] = 1         cellcnt[tid] += 1   end     end   end   cellcntgbl = 0   for i in 1:trd     cellcntgbl += cellcnt[i]   end   return cellcntgbl end<\/code><\/pre>\n<p>(\u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u0440\u0435\u0434\u0430 \u0441\u0432\u043e\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a, \u0438 \u043f\u043e\u0442\u043e\u043c \u043e\u043d\u0438 \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f)<\/p>\n<p>\u0415\u0441\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441\u044b turbo \u0438 simd &#8212; \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0441\u043f\u0430\u0440\u0440\u0430\u043b\u0435\u043b\u0438\u0442\u044c \u0446\u0438\u043a\u043b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439. \u041e\u043d\u0438 \u0442\u043e\u0436\u0435 \u043f\u043e\u043f\u044b\u0442\u0430\u044e\u0441\u044c \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0430\u0448\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443, \u043d\u043e \u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b.<\/p>\n<h2>\u0420\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u043d\u0438\u0435 \u0444\u0438\u0433\u0443\u0440 \u0432 \u0438\u0433\u0440\u0435 \u0416\u0438\u0437\u043d\u044c<\/h2>\n<p>\u041c\u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u043d\u044b\u0445 \u0444\u0438\u0433\u0443\u0440 \u043d\u0430 \u043f\u043e\u043b\u0435, \u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e, \u0437\u0430 \u043e\u0434\u0438\u043d \u043f\u0440\u043e\u0445\u043e\u0434 \u0438 \u0432 \u043c\u043d\u043e\u0433\u0438\u0445 \u0442\u0440\u0435\u0434\u0430\u0445. \u042f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b\u0441\u044f \u0444\u0438\u0433\u0443\u0440\u0430\u043c\u0438 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 6&#215;6:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0434 \u0434\u0435\u0442\u0435\u043a\u0446\u0438\u0438 \u0444\u0438\u0433\u0443\u0440 \u043d\u0430 Julia \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0431\u0435\u0437\u0443\u043c\u043d\u043e, \u043d\u043e \u043e\u043d \u043e\u0447\u0435\u043d\u044c \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u0435\u043d (\u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430):<\/p>\n<pre><code class=\"julia\">  m64 = (((((s[1]&lt;&lt;6)+s[2])&lt;&lt;6)+s[3])&lt;&lt;6)+s[4] # 6 bit wide   m65 = (m64&lt;&lt;6)+s[5]   m66 = (m65&lt;&lt;6)+s[6]   m53 = ((((s[1]&amp;31)&lt;&lt;5)+(s[2]&amp;31))&lt;&lt;5)+(s[3]&amp;31) # 5 bit wide   m54 = (m53&lt;&lt;5)+(s[4]&amp;31)   m55 = (m54&lt;&lt;5)+(s[5]&amp;31)   m56 = (m55&lt;&lt;5)+(s[6]&amp;31)   m44 = ((((((s[1]&amp;15)&lt;&lt;4)+(s[2]&amp;15))&lt;&lt;4)+(s[3]&amp;15))&lt;&lt;4)+(s[4]&amp;15) # 4 bit wide   m45 = (m44&lt;&lt;4)+(s[5]&amp;15)   m46 = (m45&lt;&lt;4)+(s[6]&amp;15)   m35=  ((((((((s[1]&amp;7)&lt;&lt;3)+(s[2]&amp;7))&lt;&lt;3)+(s[3]&amp;7)))&lt;&lt;3)+(s[4]&amp;7))+(s[5]&amp;7)  # now we can compare the rest of the slider   if (m44 == 1632) cnt_block[tid] += 1 end   if (m65 in (3220224, 4532352)) cnt_hive[tid] += 1 end   if (m66 in (206086400, 69804800, 206127616, 139535104)) cnt_loaf[tid] += 1 end   if (m55 in (403584, 141696, 206976, 141504)) cnt_boat[tid] += 1 end   if (m55 == 141440) cnt_tub[tid] += 1 end   if (m53 in (448, 1168)) cnt_blinker[tid] += 1 end   if (m64 in (59136, 115584, 288288, 157248)) cnt_toad[tid] +=1 end   if (m66 in (71901696, 139010304, 205529856, 201917184)) cnt_toad[tid] +=1 end   if (m66 in (408969600, 102336000)) cnt_beacon[tid] +=1 end   if (m55 in (75968, 206912, 272768, 403712, 460928, 467072, 133568, 139712, 268672, 399616, 78016, 208960, 137536, 143680, 333952, 340096))     cnt_glider[tid] += 1  <\/code><\/pre>\n<p>\u041f\u043e \u043f\u043e\u043b\u044e \u0435\u0434\u0443\u0442 6 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432 s, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f 6 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0438\u0442. \u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432 \u043f\u0435\u0440\u0435\u0443\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 &#8216;\u043e\u043a\u043d\u0430&#8217; m \u0440\u0430\u0437\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u044b. \u041a\u043e\u0433\u0434\u0430 \u043e\u043a\u043d\u043e \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e\u0447\u043d\u043e \u043f\u0440\u0430\u0432\u0435\u0435 \u0444\u0438\u0433\u0443\u0440\u044b, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 m \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0430\u0432\u043d\u044b\u043c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443. \u0414\u043b\u044f \u0444\u0438\u0433\u0443\u0440 \u0442\u0438\u043f\u0430 block \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e, \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0438\u0433\u0443\u0440\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0430\u0437\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a \u0443 \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u0430).<\/p>\n<p>\u0421\u0430\u043c\u0438 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0438\u0441\u043b\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u043d\u0430 \u041f\u0438\u0442\u043e\u043d\u0435.<\/p>\n<h2>\u0412\u0438\u0434\u0435\u043e<\/h2>\n<p>\u0414\u043b\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u044b 10k * 10k (\u0442\u043e\u0440, \u0432\u0435\u0440\u0445 \u0441\u043a\u043b\u0435\u0435\u043d \u0441 \u043d\u0438\u0437\u043e\u043c \u0438 \u043f\u0440\u0430\u0432\u044b\u0439 \u043a\u0440\u0430\u0439 \u0441 \u043b\u0435\u0432\u044b\u043c) \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c\u044e 30% \u0438 3% \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043b\u0430\u0441\u044c \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044f \u043d\u0430 15000 \u0448\u0430\u0433\u043e\u0432. \u0426\u0432\u0435\u0442 \u043f\u0438\u043a\u0441\u0435\u043b\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u043e \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043c\u0435\u0440\u0442\u0432\u043e\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0438:<\/p>\n<ul>\n<li>\n<p>\u0421\u0438\u043d\u0438\u0439 &#8212; \u043c\u0435\u0440\u0442\u0432\u0430\u044f \u043c\u0430\u0442\u0435\u0440\u0438\u044f &#8212; blocks, blinkers<\/p>\n<\/li>\n<li>\n<p>\u0417\u0435\u043b\u0435\u043d\u044b\u0439 &#8212; \u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0436\u0438\u0437\u043d\u044c<\/p>\n<\/li>\n<li>\n<p>\u041a\u0440\u0430\u0441\u043d\u044b\u0439 &#8212; \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u0422\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043b\u0435 10k * 10k \u0441\u0436\u0438\u043c\u0430\u043b\u043e\u0441\u044c \u0432 10 \u0440\u0430\u0437 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u043e\u0441\u0438, \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0440\u0430\u0437\u043d\u0443\u044e \u044f\u0440\u043a\u043e\u0441\u0442\u044c \u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u0446\u0432\u0435\u0442\u043e\u0432 (\u0433\u043e\u043b\u0443\u0431\u043e\u0439 &#8212; \u0441\u043c\u0435\u0441\u044c \u0436\u0438\u0432\u043e\u0439 \u0438 \u043d\u0435\u0436\u0438\u0432\u043e\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0438)<\/p>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=ywHn2wahs0M\" rel=\"noopener noreferrer nofollow\">\u0412\u043e\u0442 \u0432\u0438\u0434\u0435\u043e<\/a><\/p>\n<h2>\u0413\u0440\u0430\u0444\u0438\u043a\u0438<\/h2>\n<p>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044e \u043f\u0440\u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u0448\u0438\u0440\u043e\u043a\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0438\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u0439, \u043e\u0434\u043d\u0430\u043a\u043e \u044d\u0442\u043e \u0432\u0435\u0440\u043d\u043e \u043b\u0438\u0448\u044c \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 9%<\/p>\n<p><strong>\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0430\u0436\u043d\u043e \u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043e\u043b\u044f?<\/strong><\/p>\n<p>\u0421\u0440\u0430\u0432\u043d\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u043b\u044f \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0445 \u043f\u043e\u043b\u0435\u0439 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0434\u043b\u044f \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 6%:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u043e\u043b\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0430\u0434\u043a\u0438\u0435, \u0447\u0442\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0443 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u043e\u0432:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0441\u0442\u0430\u0442\u0438, \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0432\u0441\u043f\u043b\u0435\u0441\u043a \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 130 &#8212; 250-\u0433\u043e \u0448\u0430\u0433\u0430, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u0440\u0438 \u043c\u0430\u043b\u044b\u0445 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044f\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u044e\u0442 \u0433\u043b\u0430\u0439\u0434\u0435\u0440\u044b:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p><strong>\u041a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u044f \u043a\u043b\u0435\u0442\u043e\u043a, \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0449\u0438\u0445 \u0440\u0430\u0437\u043d\u044b\u043c \u0444\u0438\u0433\u0443\u0440\u0430\u043c:<\/strong><\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 6%:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 30%:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h2>Performance<\/h2>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u044f 10k*10k \u043e\u0434\u0438\u043d \u0448\u0430\u0433 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u043c\u043e\u0435\u043c <strong>AMD Ryzen 5 3600X 6-Core Processor                3.79 GHz:<\/strong><\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\"><strong>Threads<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\"><strong>TIme, seconds<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>Millions Cells per Second<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">1.00048<\/p>\n<\/td>\n<td>\n<p align=\"left\">99.952<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.526<\/p>\n<\/td>\n<td>\n<p align=\"left\">190.11<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">4<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.294<\/p>\n<\/td>\n<td>\n<p align=\"left\">340.13<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">6<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.269<\/p>\n<\/td>\n<td>\n<p align=\"left\">371.74<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">8<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.245<\/p>\n<\/td>\n<td>\n<p align=\"left\">408.16<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"136\" width=\"136\">\n<p align=\"left\">12<\/p>\n<\/td>\n<td data-colwidth=\"176\" width=\"176\">\n<p align=\"left\">0.255<\/p>\n<\/td>\n<td>\n<p align=\"left\">392.15<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \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:\/\/habr.com\/ru\/post\/704640\/\"> https:\/\/habr.com\/ru\/post\/704640\/<\/a><br \/><\/br><\/br><\/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-342391","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342391","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=342391"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/342391\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=342391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=342391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=342391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}