{"id":333739,"date":"2022-05-27T15:01:57","date_gmt":"2022-05-27T15:01:57","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=333739"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=333739","title":{"rendered":"<span>Go \u043f\u0440\u043e\u0442\u0438\u0432 Rust \u2014 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0438<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/663526\/\">\u041d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0437\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0432 Go \u0438 Rust<\/a> \u043a\u043e\u043b\u043b\u0435\u0433\u0430 <a href=\"https:\/\/habr.com\/ru\/users\/cpmonster\/\" class=\"user_link\">cpmonster<\/a> \u043f\u0440\u0438\u0432\u0451\u043b \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/p>\n<p>  <\/p>\n<blockquote><p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Rust \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 \u0447\u043b\u0435\u043d\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Go: 367 \u043c\u043b\u043d. \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u0440\u043e\u0442\u0438\u0432 44 \u043c\u043b\u043d.<\/p><\/blockquote>\n<p>\u041d\u0443, \u0432 1.5 \u0440\u0430\u0437\u0430\u2026 \u041d\u0443, \u0432 2 \u0440\u0430\u0437\u0430\u2026 \u041d\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=jdR0z2Zf3t4\" rel=\"nofollow noopener noreferrer\">\u0441\u0435\u043c\u044c \u0433\u0432\u0430\u0440\u0434\u0435\u0439\u0446\u0435\u0432 \u0437\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f<\/a> \u2014 \u044d\u0442\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0442\u0443\u0442 &#171;\u0433\u0432\u0430\u0440\u0434\u0435\u0439\u0446\u0435\u0432&#187; \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043e\u0441\u044c\u043c\u0438!<\/p>\n<p>  <\/p>\n<p>\u0418\u043b\u0438 \u043d\u0435\u0442, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c? \u0412 \u043e\u0431\u0449\u0435\u043c, \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u043f\u0435\u0440\u0435\u0441\u0438\u043b\u0438\u043b \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044b \u0438 \u044f \u043f\u0440\u043e\u0432\u0451\u043b \u0441\u0432\u043e\u0451 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h1 id=\"povtorenie--mat-ucheniya-i-osnova-nauchnogo-metoda\">\u041f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u2014 \u043c\u0430\u0442\u044c \u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u043e\u0441\u043d\u043e\u0432\u0430 \u043d\u0430\u0443\u0447\u043d\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430<\/h1>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b. \u041d\u0443\u0436\u043d\u044b <a href=\"https:\/\/github.com\/aka-author\/conctest\" rel=\"nofollow noopener noreferrer\">\u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 Go \u0438 Rust (\u0443 \u043c\u0435\u043d\u044f \u0432\u0435\u0440\u0441\u0438\u0438 1.18 \u0438 1.61, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e).<\/p>\n<p>  <\/p>\n<p>\u0418\u0434\u0451\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 <code>go\/src<\/code> \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c <code>go run concgo.go s<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">Cycles per second           70,621,468<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0430\u043f\u043a\u0435 <code>rust<\/code> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c <code>cargo run s<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">Cycles per second         25,562,372<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430\u0434\u043e \u0436\u0435, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430 Rust \u0432 \u0442\u0440\u0438 \u0440\u0430\u0437\u0430 \u043d\u0438\u0436\u0435, \u0447\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430 Go! <\/p>\n<p>  <\/p>\n<p>\u0410, \u043d\u0435\u0442 \u2014 \u044d\u0442\u043e \u0436\u0435 <code>debug<\/code>, \u0432\u043e\u0442 \u0442\u0430\u043a \u043d\u0430\u0434\u043e: <code>cargo run --release s<\/code>. \u0421\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">Cycles per second        603,500,301<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430, \u0432\u0441\u0451 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043b\u043e\u0441\u044c, \u0442\u0435 \u0436\u0435 8+ \u0440\u0430\u0437. \u0423 \u043c\u0435\u043d\u044f \u0438 \u0434\u043e \u0447\u0442\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u043c\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0441\u043b\u043e\u0436\u0438\u043b\u043e\u0441\u044c \u043c\u043d\u0435\u043d\u0438\u0435, \u0447\u0442\u043e Rust &#171;\u0433\u043e\u0442\u043e\u0432\u0438\u0442&#187; \u0431\u043e\u043b\u0435\u0435 \u0431\u044b\u0441\u0442\u0440\u044b\u0435 &#171;\u0447\u0438\u0441\u043b\u043e\u0434\u0440\u043e\u0431\u0438\u043b\u043a\u0438&#187;, \u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 \u044d\u0442\u043e \u0436\u0435 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 &#171;\u0443\u043d\u0438\u0436\u0435\u043d\u0438\u0435&#187; \u0434\u043b\u044f Go. \u0414\u0430 \u043d\u0435\u0443\u0436\u0442\u043e \u0432\u0441\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a?! \u0411\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  <\/p>\n<h1 id=\"kuda-smotret\">\u041a\u0443\u0434\u0430 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c?<\/h1>\n<p>  <\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u044e\u0434\u0430:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/aka-author\/conctest\/blob\/026bec6ac901813bed97d8dd0244c457275f2276\/go\/src\/concgo.go#L66\" rel=\"nofollow noopener noreferrer\">Go: iterate()<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/aka-author\/conctest\/blob\/026bec6ac901813bed97d8dd0244c457275f2276\/rust\/src\/main.rs#L268\" rel=\"nofollow noopener noreferrer\">Rust: iterate()<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0442\u0440\u0438\u043f\u043b\u0435\u0442\u043e\u0432 \u043f\u043e\u0434\u0432\u0435\u0440\u0433\u0430\u044e\u0442\u0441\u044f \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u044f\u043c.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c <code>s<\/code> \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <a href=\"https:\/\/github.com\/aka-author\/conctest\/blob\/026bec6ac901813bed97d8dd0244c457275f2276\/go\/src\/concgo.go#L341\" rel=\"nofollow noopener noreferrer\">count_cycles_per_sec()<\/a>. \u0418\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0435, \u043d\u0430\u0434\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 &#171;\u0432\u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0438&#187; \u2014 \u0442.\u0435. \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435. \u0427\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0430\u043d\u0430\u043b\u0438\u0437.<\/p>\n<p>  <\/p>\n<h1 id=\"chto-pishut\">\u0427\u0442\u043e \u043f\u0438\u0448\u0443\u0442?<\/h1>\n<p>  <\/p>\n<p>\u0421\u0430\u043c \u0430\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0442\u0430\u043a\u043e\u0435 \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435:<\/p>\n<p>  <\/p>\n<blockquote><p>\u0415\u0449\u0435 \u043e\u0434\u043d\u043e \u0432\u0430\u0436\u043d\u043e\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 Go \u0438 Rust, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044c \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 Rust \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430. <\/p><\/blockquote>\n<p>\u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435, \u0434\u0430. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432 Go \u043b\u0435\u0433\u043a\u043e \u0438 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e &#171;\u0443\u0431\u0435\u0433\u0430\u044e\u0442 \u0432 \u043a\u0443\u0447\u0443&#187;, \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u044d\u0442\u043e\u0433\u043e \u044f \u0438 \u043d\u0430\u0447\u0430\u043b \u0441\u0432\u043e\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">func BenchmarkIterate(b *testing.B) {     for i := 0; i &lt; b.N; i++ {         iterate(random_triplet(), 1000000)     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0435\u0442, \u0442\u0443\u0442 \u0432\u0441\u0435 \u0447\u0438\u0441\u0442\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">cpu: Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz BenchmarkIterate BenchmarkIterate-4       79      14,405,887 ns\/op         0 B\/op          0 allocs\/op PASS ok      <\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0435\u0440\u0441\u0438\u044f \u0438\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432:<\/p>\n<p>  <\/p>\n<blockquote><p>\u0410 \u043f\u043e\u0447\u0435\u043c\u0443 \u0432\u0435\u0440\u0441\u0438\u044f Go \u0442\u0430\u043a\u0430\u044f \u0441\u0442\u0430\u0440\u0430\u044f (1.14.2 \u0432\u044b\u043f\u0443\u0449\u0435\u043d\u0430 2020-04-08)?<\/p><\/blockquote>\n<p>\u041d\u0430 Go 1.18 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043d\u0435 \u043b\u0443\u0447\u0448\u0435.<\/p>\n<p>  <\/p>\n<p>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0432\u044b\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u044f \u0432 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0439, \u043f\u043e \u0442\u0438\u043f\u0443 \u0442\u0430\u043a\u043e\u0433\u043e:<\/p>\n<p>  <\/p>\n<blockquote><p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043d\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e. \u0418 \u0432\u0441\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u044b\u0442\u0435\u043a\u0430\u044e\u0442 \u0438\u0437 \u044d\u0442\u043e\u0433\u043e.<br \/>  \u0411\u043e\u043b\u0435\u0435 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0433\u043e\u0440\u0443\u0442\u0438\u043d\u044b \u0441 async \u043a\u043e\u0434\u043e\u043c, \u0432 \u0438\u0434\u0435\u0430\u043b\u0435 \u2014 \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0430 \u0433\u043e\u043b\u043e\u043c tokio<\/p><\/blockquote>\n<p>\u0412\u0441\u0451 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 <code>go run concgo.go s<\/code> \u0432\u0435\u0434\u0451\u0442 \u043a \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435, \u0442\u0430\u043a \u0447\u0442\u043e \u0444\u0435\u043d\u043e\u043c\u0435\u043d \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0437\u0443\u0447\u0435\u043d \u0431\u0435\u0437 \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0433\u043e\u0440\u0443\u0442\u0438\u043d \u0438 tokio.<\/p>\n<p>  <\/p>\n<h1 id=\"popytka-nomer-2\">\u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u043d\u043e\u043c\u0435\u0440 2<\/h1>\n<p>  <\/p>\n<p>\u0421 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 Go <a href=\"https:\/\/pkg.go.dev\/cmd\/compile\" rel=\"nofollow noopener noreferrer\">\u043d\u0435\u0433\u0443\u0441\u0442\u043e<\/a>, \u0441\u043a\u043e\u0440\u0435\u0435 \u0435\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0438 &#171;\u0434\u0435\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438&#187; (<code>-l -N<\/code>) \u2014 \u0442\u0430\u043a \u0447\u0442\u043e \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u043c\u0438 \u0442\u0435\u043a\u0441\u0442\u0430\u043c\u0438.<\/p>\n<p>  <\/p>\n<p>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u0442\u0438\u043f <code>Triplet<\/code> \u0432 Rust \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u043a\u0430\u043a \u043a\u043e\u0440\u0442\u0435\u0436 (tuple):<\/p>\n<p>  <\/p>\n<pre><code class=\"rust\">type Triplet = (f64, f64, f64);<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0434\u043b\u044f Go \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0441\u0438\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">type Triplet = [3]float64<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 Go \u0431\u043e\u043b\u0435\u0435 \u0431\u043b\u0438\u0437\u043a\u0438\u043c \u043a \u043a\u043e\u0440\u0442\u0435\u0436\u0443 \u0442\u0438\u043f\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">type Triplet struct{ f0, f1, f2 float64 }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0447\u0443\u0434\u0435\u0441\u043d\u043e\u0433\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 godbolt \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0435\u0441\u0442\u044c \u043b\u0438 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u043d\u043e\u043c \u043a\u043e\u0434\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 <a href=\"https:\/\/godbolt.org\/z\/McaPczEEe\" rel=\"nofollow noopener noreferrer\">\u0442\u0430\u043a\u0438\u043c\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f\u043c\u0438<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">type Triplet = [3]float64 type Triplet2 struct{ f0, f1, f2 float64 } ... var t Triplet t[0] = 10. t[1] = 11. t[2] = 12. printTriplet(t)  var t2 Triplet2 t2.f0 = 20. t2.f1 = 21. t2.f2 = 22. printTriplet2(t2)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0435\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">MOVSD   $f64.4024000000000000(SB), X0 MOVSD   X0, (SP) MOVSD   $f64.4026000000000000(SB), X0 MOVSD   X0, 8(SP) MOVSD   $f64.4028000000000000(SB), X0 MOVSD   X0, 16(SP) CALL    \"\".printTriplet(SB)  MOVSD   $f64.4034000000000000(SB), X0 MOVSD   $f64.4035000000000000(SB), X1 MOVSD   $f64.4036000000000000(SB), X2 CALL    \"\".printTriplet2(SB)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0435\u0437 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b, \u0430 \u0441 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u044b \u2014 \u0447\u0435\u0440\u0435\u0437 \u0441\u0442\u0435\u043a. \u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u043b\u0438\u044f\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c!<\/p>\n<p>  <\/p>\n<p>\u042f \u0441\u0434\u0435\u043b\u0430\u043b fork \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0432 \u043d\u0451\u043c \u043f\u0430\u043f\u043e\u0447\u043a\u0443 <code>go2\/src<\/code>, \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b <code>Triplet<\/code>. <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/main\/go2\/src\/concgo.go\" rel=\"nofollow noopener noreferrer\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/a> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">210,349,179<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435\u0433\u043e \u0432 3 \u0433\u0432\u0430\u0440\u0434\u0435\u0439\u0446\u0430, \u0443\u0436\u0435 \u043d\u0435 \u0442\u0430\u043a \u043e\u0431\u0438\u0434\u043d\u043e. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <code>iterate()<\/code>:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/main\/go2\/src\/iterate.asm\" rel=\"nofollow noopener noreferrer\">go2\/src\/iterate.asm<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/main\/rust\/iterate.asm\" rel=\"nofollow noopener noreferrer\">rust\/iterate.asm<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<p>Go \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 <code>get_next_triplet()<\/code>, \u043d\u043e <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/8250df4222fba0a7eb8a81f700f0633befdfb6db\/go2\/src\/iterate.asm#L90\" rel=\"nofollow noopener noreferrer\">\u043d\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u044d\u0442\u043e\u0433\u043e<\/a> \u0434\u043b\u044f <code>is_convergent()<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">;*** concgo.go#76   >       if is_convergent(triplet, next_triplet) &amp;&amp; !prokukarek { 0x4ab357     0f10d9                 MOVUPS X1, X3                0x4ab35a     0f10e2                 MOVUPS X2, X4                0x4ab35d     0f10e8                 MOVUPS X0, X5                0x4ab360     0f10c6                 MOVUPS X6, X0                0x4ab363     e8b8feffff             CALL main.is_convergent(SB)     <\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u0432\u043e\u0442 Rust \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0441\u043d\u0430\u0449\u0430\u0435\u0442 <code>iterate.asm<\/code> \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0435\u0445\u043d\u0438\u043a\u043e\u0439. \u0412\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432\u044b \u0442\u0438\u043f\u0430 <code>call std::io::stdio::_print<\/code>, \u043d\u043e \u043e\u043d\u0438 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 <code>is_convergent(triplet, next_triplet)<\/code> \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0440\u0430\u0437\u043d\u0438\u0446\u0430.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u0435\u0440\u0441\u0438\u0438 Go \u0444\u0443\u043d\u043a\u0446\u0438\u044e <code>is_convergent()<\/code> \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/1f9d089445119c3ce84191d9efb43e53a4db5d29\/go3\/src\/concgo.go#L77\" rel=\"nofollow noopener noreferrer\">\u0432\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">\/\/if is_convergent(triplet, next_triplet) &amp;&amp; !prokukarek { if approx_eq(triplet.f0, next_triplet.f0) &amp;&amp;     approx_eq(triplet.f1, next_triplet.f1) &amp;&amp;     approx_eq(triplet.f2, next_triplet.f2) &amp;&amp; !prokukarek {     print_convergency(initial_triplet, step, triplet.f2)     prokukarek = true }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043f\u0430\u043f\u043a\u0430 <code>go3\/src<\/code>, \u0437\u0430\u043f\u0443\u0441\u043a \u0438\u0437 \u043d\u0435\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">Cycles per second          393,081,761<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0441\u0435 \u0440\u0430\u0432\u043d\u043e 1.5 \u0433\u0432\u0430\u0440\u0434\u0435\u0439\u0446\u0430, \u0438 \u044d\u0442\u043e \u043f\u0440\u0438 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u044b, \u0441\u043c. <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/main\/go3\/src\/iterate.asm\" rel=\"nofollow noopener noreferrer\">go3\/src\/iterate.asm<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0438\u0448\u0435\u043d\u043a\u0438 \u043d\u0430 \u0442\u043e\u0440\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c <code>Triplet<\/code>\u0432 \u0432\u0435\u0440\u0441\u0438\u0438 \u0434\u043b\u044f Rust <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/1f9d089445119c3ce84191d9efb43e53a4db5d29\/rust2\/src\/main.rs#L237\" rel=\"nofollow noopener noreferrer\">\u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"rust\">type Triplet = [f64; 3];<\/code><\/pre>\n<p>  <\/p>\n<p>\u0411\u0443\u0434\u0435\u0442 \u043b\u0438 \u0440\u0430\u0437\u043d\u0438\u0446\u0430? \u041d\u0435\u0442. \u0410\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/1f9d089445119c3ce84191d9efb43e53a4db5d29\/rust\/iterate.asm#L51\" rel=\"nofollow noopener noreferrer\">\u0440\u0430\u0437<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">let applicant = triplet.0 + triplet.1 - triplet.2; movapd  xmm0, xmm7 movapd  xmm7, xmm8 movapd  xmm8, xmm6 movapd  xmm6, xmm0 addsd   xmm6, xmm7 subsd   xmm6, xmm8 movapd  xmm1, xmm6 andpd   xmm1, xmm9 <\/code><\/pre>\n<p>  <\/p>\n<p>\u0410\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 <a href=\"https:\/\/github.com\/maxim-ge\/conctest\/blob\/1f9d089445119c3ce84191d9efb43e53a4db5d29\/rust2\/iterate.asm#L51\" rel=\"nofollow noopener noreferrer\">\u0434\u0432\u0430<\/a>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">let applicant = triplet[0] + triplet[1] - triplet[2]; movapd  xmm0, xmm7 movapd  xmm7, xmm8 movapd  xmm8, xmm6 movapd  xmm6, xmm0 addsd   xmm6, xmm7 subsd   xmm6, xmm8 movapd  xmm1, xmm6 andpd   xmm1, xmm9<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"nekotorye-razmyshleniya\">\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f<\/h1>\n<p>  <\/p>\n<ul>\n<li>\u041f\u0443\u0442\u0451\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u043e\u0434\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u0432\u0435\u0441\u0442\u0438 \u043e\u0442 &#171;Rust \u043d\u0430 \u0433\u043e\u043b\u043e\u0432\u0443 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Go&#187; \u043a &#171;Rust \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435 Go&#187;<\/li>\n<li>\u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0440\u0435\u0447\u044c \u0438\u0434\u0451\u0442 \u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435<\/li>\n<li>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u043e\u0301\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0448\u0430 \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0443\u043f\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0432 <a href=\"https:\/\/github.com\/golang\/go\/wiki\/CompilerOptimizations#function-inlining\" rel=\"nofollow noopener noreferrer\">\u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f<\/a> \u0432 Go: function should be simple enough, the number of AST nodes must less than the budget (80)<\/li>\n<li>\u0421 \u0445\u043e\u0434\u0443 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0443 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 <code>\/\/go:inline<\/code>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0442\u043c\u0435\u043d\u044f\u043b\u0430 \u0431\u044b \u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f<\/li>\n<li>\u0422\u0430\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0443\u0436\u0435 <a href=\"https:\/\/github.com\/golang\/go\/issues\/21536\" rel=\"nofollow noopener noreferrer\">\u0431\u044b\u043b\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043e<\/a> \u0438 \u0432\u0438\u0441\u0438\u0442 \u0432 \u0441\u0442\u0430\u0442\u0443\u0441\u0435 FrozenDueToAge, \u043f\u0435\u0440\u0432\u044b\u0439 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0433\u043b\u0430\u0441\u0438\u0442: &#171;This proposal has basically no chance of being accepted&#187; \ud83d\ude42<\/li>\n<li>\u0412\u0438\u0434\u0438\u043c\u043e, \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u044b \u0431\u044b\u043b\u043e \u0431\u044b <code>\/\/go:tryinline<\/code><\/li>\n<li>\u041d\u043e \u0434\u0430\u0436\u0435 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0440\u0430\u0437\u0430<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/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\/668166\/\"> https:\/\/habr.com\/ru\/post\/668166\/<\/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-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/663526\/\">\u041d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u0437\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u0432 Go \u0438 Rust<\/a> \u043a\u043e\u043b\u043b\u0435\u0433\u0430 <a href=\"https:\/\/habr.com\/ru\/users\/cpmonster\/\" class=\"user_link\">cpmonster<\/a> \u043f\u0440\u0438\u0432\u0451\u043b \u0432\u0435\u0441\u044c\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b:<\/p>\n<p>  <\/p>\n<blockquote><p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Rust \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0430 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0438 \u0447\u043b\u0435\u043d\u043e\u0432 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0447\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0430 Go: 367 \u043c\u043b\u043d. \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u0440\u043e\u0442\u0438\u0432 44 \u043c\u043b\u043d.<\/p><\/blockquote>\n<p>\u041d\u0443, \u0432 1.5 \u0440\u0430\u0437\u0430\u2026 \u041d\u0443, \u0432 2 \u0440\u0430\u0437\u0430\u2026 \u041d\u043e <a href=\"https:\/\/www.youtube.com\/watch?v=jdR0z2Zf3t4\" rel=\"nofollow noopener noreferrer\">\u0441\u0435\u043c\u044c \u0433\u0432\u0430\u0440\u0434\u0435\u0439\u0446\u0435\u0432 \u0437\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f<\/a> \u2014 \u044d\u0442\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0442\u0443\u0442 &#171;\u0433\u0432\u0430\u0440\u0434\u0435\u0439\u0446\u0435\u0432&#187; \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u043e\u0441\u044c\u043c\u0438!<\/p>\n<p>  <\/p>\n<p>\u0418\u043b\u0438 \u043d\u0435\u0442, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c? \u0412 \u043e\u0431\u0449\u0435\u043c, \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u0430 \u043f\u0435\u0440\u0435\u0441\u0438\u043b\u0438\u043b \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044b \u0438 \u044f \u043f\u0440\u043e\u0432\u0451\u043b \u0441\u0432\u043e\u0451 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435.<\/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-333739","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333739","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=333739"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/333739\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}