{"id":501249,"date":"2026-11-01T20:51:51","date_gmt":"2026-11-01T17:51:51","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=501249"},"modified":"2026-11-01T20:51:51","modified_gmt":"2026-11-01T17:51:51","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=501249","title":{"rendered":"\u0422\u044b \u043d\u0435 \u0431\u043e\u0439\u0441\u044f, \u044d\u0442\u043e Goose"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h3>\n<ul>\n<li>\n<p><a href=\"#intro\" rel=\"noopener nofollow\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#how_it_works\" rel=\"noopener nofollow\">\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#compiler_restrictions\" rel=\"noopener nofollow\">\u0413\u0434\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0431\u044c\u0451\u0442 \u043f\u043e \u0440\u0443\u043a\u0430\u043c<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#benchmarks\" rel=\"noopener nofollow\">\u0417\u0430 \u0447\u0442\u043e \u0431\u043e\u0440\u043e\u043b\u0438\u0441\u044c (\u043c\u0430\u0433\u0438\u044f)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#benchmark_caveats\" rel=\"noopener nofollow\">\u0421\u0430\u043c\u043e\u0440\u0430\u0437\u043e\u0431\u043b\u0430\u0447\u0435\u043d\u0438\u0435 (\u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438)<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#closures\" rel=\"noopener nofollow\">\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#threads\" rel=\"noopener nofollow\">\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0442\u043e\u043a\u0438<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#array_indexing\" rel=\"noopener nofollow\">\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#conclusion\" rel=\"noopener nofollow\">\u0418\u0442\u0430\u043a, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 Goose?<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#sources\" rel=\"noopener nofollow\">\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/a><\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"intro\" id=\"intro\"><\/a><\/p>\n<h3>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h3>\n<p>\u042f\u0437\u044b\u043a \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 Goose \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b Wouter van Oortmerssen. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e <a href=\"https:\/\/aardappel.github.io\/goose\/#authors\" rel=\"noopener nofollow\">\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430<\/a>, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0418\u0418-\u043c\u043e\u0434\u0435\u043b\u0438 Claude Fable. \u0412 \u0447\u0451\u043c \u0430\u0432\u0442\u043e\u0440 \u0431\u044b\u043b \u0437\u0430\u043c\u0435\u0447\u0435\u043d \u0440\u0430\u043d\u0435\u0435: <a href=\"https:\/\/aardappel.github.io\/lobster\/philosophy.html\" rel=\"noopener nofollow\">\u042f\u041f Lobster<\/a>, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0432 2010 \u0433\u043e\u0434\u0443, \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 <a href=\"https:\/\/opensource.googleblog.com\/2014\/06\/flatbuffers-memory-efficient.html\" rel=\"noopener nofollow\">FlatBuffers<\/a>, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u0430\u044f Google \u0432 2014-\u043c.<\/p>\n<p>\u0411\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434 \u0443 \u0430\u0432\u0442\u043e\u0440\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u043e\u043b\u0438\u0434\u043d\u044b\u0439, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0436\u0435 \u043d\u0430 \u201c\u0433\u0443\u0441\u044f\u201d \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0438\u0448\u043a\u0430 Goose \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u041a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u044a\u044f\u0432\u0438\u0442\u044c \u0442\u0440\u0438 \u043d\u0435\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0431\u0443\u043a\u0432\u0443 \u201c\u0411\u201d:<\/p>\n<ol>\n<li>\n<p>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u0437 \u0437\u0430\u0442\u0435\u0439: \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0442\u0438\u043f\u0430 \u044f\u0432\u043d\u044b\u0445 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0439 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0436\u0438\u0437\u043d\u0438<\/p>\n<\/li>\n<li>\n<p>\u0411\u044b\u0441\u0442\u0440\u043e: \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<\/ol>\n<p>\u0412 \u0433\u0440\u0443\u0431\u043e\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u0437\u043d\u0430\u043a\u043e\u043c, \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0430\u043a\u0446\u0435\u043d\u0442\u044b \u0442\u0430\u043a:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u042f\u0437\u044b\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0411\u0435\u0437 \u0437\u0430\u0442\u0435\u0439<\/p>\n<\/th>\n<th>\n<p align=\"left\">\u0411\u044b\u0441\u0442\u0440\u043e<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Go<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u25d0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2b24<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u25d4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">JavaScript<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u25d0<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2b24<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u25d4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Dart<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2b24<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2b24<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u25d4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Rust<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2b24<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u25ef<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u2b24<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><code>\u2b24<\/code> \u2013 \u0434\u0430; <code>\u25d0<\/code> \u2013 \u0441 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u043c\u0438; <code>\u25d4<\/code> \u2013 \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e; <code>\u25ef<\/code> \u2013 \u043d\u0435\u0442.<\/p>\n<p>\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435:<\/p>\n<ul>\n<li>\n<p>Go \u0438 JavaScript: \u0431\u0435\u0437 \u0437\u0430\u0442\u0435\u0439 \u0438 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 \u043e\u0431\u044b\u0447\u043d\u043e\u043c Go-\u043a\u043e\u0434\u0435 \u0431\u0435\u0437 <code>unsafe<\/code> \u0438 \u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 JavaScript \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0442\u0438\u043f\u0430 dangling pointers \u0438 use-after-free, \u043d\u043e \u0432 \u043e\u0431\u043e\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0433\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: \u0432 Go \u2013 \u043c\u0435\u0436\u0434\u0443 goroutines, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c\u0438 \u0441 \u043e\u0431\u0449\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u0432 JavaScript \u2013 \u043c\u0435\u0436\u0434\u0443 agents (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Web Workers), \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 <code>SharedArrayBuffer<\/code>. \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0441 GC \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0451\u0448\u0435\u0432\u043e, \u043d\u043e \u043f\u043e\u0438\u0441\u043a \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u044e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c latency spikes. \u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 1 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e, 2 \u2013 \u0434\u0430, 3 \u2013 \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p>Dart: \u0431\u0435\u0437 \u0437\u0430\u0442\u0435\u0439 \u0438 \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f\u043c\u0438. \u0413\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0432 \u0447\u0438\u0441\u0442\u043e\u043c Dart-\u043a\u043e\u0434\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043c\u043e\u0434\u0435\u043b\u044c\u044e isolates. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u044d\u0442\u0430 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f \u043d\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 FFI \u0438 JavaScript-\u0438\u043d\u0442\u0435\u0440\u043e\u043f. \u0415\u0441\u0442\u044c GC, \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u043b\u044e\u0441\u0430\u043c\u0438 \u0438 \u043c\u0438\u043d\u0443\u0441\u0430\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 1 \u0438 2 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u0430 3 \u2013 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>Rust: safe Rust \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 GC. \u0417\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u201c\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0440\u0443\u043d\u0430\u043c\u0438\u201d \u0432 \u0442\u0435\u043a\u0441\u0442\u0435: <code>fn longest&lt;'a&gt;(a: &amp;'a str, b: &amp;'a str) -&gt; &amp;'a str { if a.len() &gt;= b.len() { a } else { b } }<\/code>. \u0415\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u201c\u0437\u0430\u0442\u0435\u0439\u201d \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0441 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f\u043c\u0438; \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f <a href=\"https:\/\/habr.com\/ru\/articles\/588917\/\" rel=\"noopener nofollow\">\u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435<\/a>. \u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 1 \u0438 3 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u0430 2 \u2013 \u043d\u0435\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0422\u0443\u0442 \u043d\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043d\u0435\u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0440\u0438\u043b\u0435\u043c\u043c\u0430: \u201c\u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0438\u0437 \u0442\u0440\u0451\u0445\u201d.<\/p>\n<p>Goose \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044f \u0432\u0441\u0435 \u0442\u0440\u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0438 \u0434\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0435: \u201c\u0411\u0435\u0440\u0435\u0436\u043d\u043e\u201d, \u0442\u043e \u0435\u0441\u0442\u044c \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u0430\u043c\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p><a class=\"anchor\" name=\"how_it_works\" id=\"how_it_works\"><\/a><\/p>\n<h3>\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/h3>\n<p>\u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e Goose \u043a\u0430\u043a \u0430\u0440\u0435\u043d\u044b. \u041a\u0442\u043e \u043f\u0438\u0441\u0430\u043b, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043d\u0430 Go \u0438\u043b\u0438 Rust, \u0442\u043e\u0442 \u0437\u043d\u0430\u0435\u0442 \u043f\u0440\u043e \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e. \u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u0431\u0449\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0436\u0438\u0437\u043d\u0438 \u0437\u0434\u0435\u0441\u044c \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435. \u041a\u0430\u0436\u0434\u0430\u044f \u0442\u0430\u043a\u0430\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0430\u0440\u0435\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e data stacks \u2013 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0445 \u0430\u043b\u043b\u043e\u043a\u0430\u0442\u043e\u0440\u043e\u0432. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0442\u0435\u043a\u0430 \u0435\u0441\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f <code>top<\/code>, \u0442\u043e \u0435\u0441\u0442\u044c bump-\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0431\u0430\u0439\u0442. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 <strong>\u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442<\/strong>, \u0441\u043a\u043e\u043b\u044c\u043a\u043e data stacks \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435.<\/p>\n<p>\u041a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 runtime \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre><code>\/\/ \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0443\u0436\u043d\u044b \u0442\u0440\u0438 data stacks.const int64_t N = 3;\/\/ Runtime \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u043b\u044f \u043d\u0438\u0445 \u043f\u0430\u043c\u044f\u0442\u044c.gs_stack_block(N);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>Runtime \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438 <strong>\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442<\/strong> \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e data stack (\u043a\u043e\u0434 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0451\u043d):<\/p>\n<pre><code>static void gs_stack_block(int64_t n) {    \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c N \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0435\u0439. \u0421\u0430\u043c\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u0441\u0442\u0435\u043a\u043e\u0432 \u0437\u0434\u0435\u0441\u044c \u0435\u0449\u0451 \u043d\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f.    gs_stks = calloc(n &gt; 0 ? n : 1, sizeof(gs_stack));    \/\/ \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e data stack \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u0438.    for (int64_t i = 0; i &lt; n; i++) {        gs_stks[i].top = gs_reserve_region(&amp;gs_stks[i]);    }    gs_nstks = n;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 N, \u0430 runtime N \u0440\u0430\u0437 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 <code>gs_reserve_region<\/code>. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432: \u0432 Linux \u0447\u0435\u0440\u0435\u0437 <code>mmap<\/code>, \u0432 Windows \u0447\u0435\u0440\u0435\u0437 <code>VirtualAlloc<\/code>. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 data stack <strong>\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f<\/strong> 2 \u0413\u0411 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430. <strong>\u0420\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c<\/strong> \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. Guard-\u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/src\/runtime\/runtime.h#L1014-L1034\" rel=\"noopener nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 runtime<\/a>.<\/p>\n<p>\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 data stack \u2013 \u044d\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <code>top<\/code> \u0438 \u0441\u0434\u0432\u0438\u0433 <code>top<\/code> \u0432\u043f\u0435\u0440\u0451\u0434. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>a<\/code> \u0441\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u043c, <code>b<\/code> \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0446\u0438\u043a\u043b\u043e\u043c, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0441\u0442\u0451\u0442 <code>c<\/code>:<\/p>\n<pre><code class=\"rust\">fn make_b() -&gt; i32[] {    var result: i32[&gt;..] = [];    for i: i32 in 5 {        result.push(i);    }    return result;}fn main() {    var a: i32[] = [1, 2, 3];    var b: i32[] = make_b();    var c: i32[&gt;..] = [];    for i: i32 in 1000 {        c.push(i);    }    print(a.len, b.len, c.len);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0412\u043d\u0443\u0442\u0440\u0438 <code>make_b<\/code> \u043c\u0430\u0441\u0441\u0438\u0432 <code>result<\/code> \u0440\u0430\u0441\u0442\u0451\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0442\u0440\u043e\u0438\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 <code>i32[]<\/code> \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 <code>b<\/code>, \u0431\u0435\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438. \u0413\u043e\u0442\u043e\u0432\u044b\u0439 <code>b<\/code> \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 resizable, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0440\u0445 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0439 <code>c<\/code>:<\/p>\n<pre><code>data stack 0: [ a ][ b ][ c \u0440\u0430\u0441\u0442\u0451\u0442............. ] -&gt; top<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u041c\u0430\u0441\u0441\u0438\u0432 <code>c<\/code> \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0435 \u0441\u0442\u0435\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441\u0434\u0432\u0438\u0433\u043e\u043c <code>top<\/code> \u0438 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442. \u041f\u0440\u0430\u0432\u0438\u043b\u043e Goose: \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0442\u0435\u043a\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u201c\u0436\u0438\u0432\u043e\u0439\u201d resizable-\u043c\u0430\u0441\u0441\u0438\u0432. \u0415\u0441\u043b\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0436\u0438\u0432\u0443\u0442 \u0442\u0440\u0438 \u0442\u0430\u043a\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0442\u0440\u0438 \u0441\u0442\u0435\u043a\u0430:<\/p>\n<pre><code class=\"rust\">var a: i32[&gt;..] = [];var b: i32[&gt;..] = [];var c: i32[&gt;..] = [];for i: i32 in 1000 {    a.push(i);    b.push(i);    c.push(i);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<pre><code>data stack 0: [ a \u0440\u0430\u0441\u0442\u0451\u0442................ ] -&gt; topdata stack 1: [ b \u0440\u0430\u0441\u0442\u0451\u0442................ ] -&gt; topdata stack 2: [ c \u0440\u0430\u0441\u0442\u0451\u0442................ ] -&gt; top<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0418\u0442\u043e\u0433\u043e: Goose \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e data stacks, \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u0435\u0442 \u0438\u0445 bump-\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0431\u043b\u0430\u0441\u0442\u044c\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/docs\/goose_spec.md#12-memory-model\" rel=\"noopener nofollow\">\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 Goose<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"compiler_restrictions\" id=\"compiler_restrictions\"><\/a><\/p>\n<h3>\u0413\u0434\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0431\u044c\u0451\u0442 \u043f\u043e \u0440\u0443\u043a\u0430\u043c<\/h3>\n<p>\u0417\u0430 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u041d\u0438\u0436\u0435 \u2013 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432.<\/p>\n<p>\u0420\u0430\u0441\u0442\u0443\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0418\u043d\u0430\u0447\u0435 \u0435\u0433\u043e \u0440\u043e\u0441\u0442 \u0437\u0430\u0442\u0440\u0451\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u043b\u0435:<\/p>\n<pre><code class=\"rust\">struct S {    tail: i64[&gt;..],    after: i64,}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: resizable field tail of struct S must be the final field<\/code><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/resizable_mid.goose#L1-L9\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0430 \u0438\u043b\u0438 \u0441\u0440\u0435\u0437 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442:<\/p>\n<pre><code class=\"rust\">fn bad() -&gt; i64[:] {    var local: i64[1] = [42];    return local[..];}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: returning a reference rooted in local, which dies with this function<\/code><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/block_slice_escape.goose#L1-L6\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p>\u041d\u0435\u043b\u044c\u0437\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432, \u043f\u043e\u043a\u0430 \u0435\u0449\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0440\u0435\u0437 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"rust\">var buf: u8[&gt;..] = [65];let s: const u8[:] = buf;buf.pop();print(s);<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: cannot pop buf while s is still used<\/code><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/slice_binding_shrink.goose#L1-L9\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0440\u0430\u0441\u0442\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432, \u043f\u043e\u043a\u0430 \u043d\u0430 \u0435\u0433\u043e \u0432\u0435\u0440\u0448\u0438\u043d\u0435 \u0435\u0449\u0451 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:<\/p>\n<pre><code class=\"rust\">fn make(words: u8[][&gt;..]&amp;) -&gt; u8[] {    words.push(\"side effect\");    return \"result\";}var words: u8[][&gt;..] = [];words.push(make(words));<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: cannot call make, which grows words: the element pushed into words is still under construction, and the growth would land inside it<\/code><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/construct_grow_push.goose#L1-L8\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"benchmarks\" id=\"benchmarks\"><\/a><\/p>\n<h3>\u0417\u0430 \u0447\u0442\u043e \u0431\u043e\u0440\u043e\u043b\u0438\u0441\u044c (\u043c\u0430\u0433\u0438\u044f)<\/h3>\n<p>\u041d\u0438\u0436\u0435 \u2013 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Goose \u043f\u043e\u0434 Clang \u043e\u043f\u0435\u0440\u0435\u0434\u0438\u043b \u0438 \u043b\u0443\u0447\u0448\u0438\u0439 safe Rust, \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e C++ \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043d\u0430 10%. \u0412\u0440\u0435\u043c\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043e \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 <code>large<\/code>; \u043f\u0430\u043c\u044f\u0442\u044c \u2013 \u043f\u0438\u043a\u043e\u0432\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 (<code>peak working set<\/code>) \u0442\u043e\u0439 \u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 gap \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 Goose \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">Goose, \u043c\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">Expert C++, \u043c\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">Gap<\/p>\n<\/th>\n<th>\n<p align=\"left\">Safe Rust, \u043c\u0441<\/p>\n<\/th>\n<th>\n<p align=\"left\">Gap<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#records\" rel=\"noopener nofollow\"><code>records<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">441,0<\/p>\n<\/td>\n<td>\n<p align=\"left\">625,5<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,42\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">891,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,02\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#interp\" rel=\"noopener nofollow\"><code>interp<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">67,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">93,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,38\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">87,5<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,29\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#words\" rel=\"noopener nofollow\"><code>words<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">1199,5<\/p>\n<\/td>\n<td>\n<p align=\"left\">1987,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,66\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">2084,0<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,74\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#bintrees\" rel=\"noopener nofollow\"><code>bintrees<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">203,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">406,9<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,00\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">235,4<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,16\u00d7<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 gap \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 Goose \u043c\u0435\u043d\u044c\u0448\u0435.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<p align=\"left\">\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a<\/p>\n<\/th>\n<th>\n<p align=\"left\">Goose, \u041c\u0411<\/p>\n<\/th>\n<th>\n<p align=\"left\">Expert C++, \u041c\u0411<\/p>\n<\/th>\n<th>\n<p align=\"left\">Gap<\/p>\n<\/th>\n<th>\n<p align=\"left\">Safe Rust, \u041c\u0411<\/p>\n<\/th>\n<th>\n<p align=\"left\">Gap<\/p>\n<\/th>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#records\" rel=\"noopener nofollow\"><code>records<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">149,0<\/p>\n<\/td>\n<td>\n<p align=\"left\">556,9<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,74\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">593,4<\/p>\n<\/td>\n<td>\n<p align=\"left\">3,98\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#interp\" rel=\"noopener nofollow\"><code>interp<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">28,0<\/p>\n<\/td>\n<td>\n<p align=\"left\">63,4<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,26\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">57,0<\/p>\n<\/td>\n<td>\n<p align=\"left\">2,04\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#words\" rel=\"noopener nofollow\"><code>words<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">535,6<\/p>\n<\/td>\n<td>\n<p align=\"left\">638,4<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,19\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">675,9<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,26\u00d7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\"><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#bintrees\" rel=\"noopener nofollow\"><code>bintrees<\/code><\/a><\/p>\n<\/td>\n<td>\n<p align=\"left\">31,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">35,8<\/p>\n<\/td>\n<td>\n<p align=\"left\">1,13\u00d7<\/p>\n<\/td>\n<td>\n<p align=\"left\">31,5<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430 1% \u0431\u043e\u043b\u044c\u0448\u0435<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u043e\u0434 expert C++ \u0430\u0432\u0442\u043e\u0440 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435 \u043e\u0441\u043e\u0431\u044b\u0435 \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445: \u0430\u0440\u0435\u043d\u044b \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, tagged union \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e open-addressing \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u043c\u0435\u0441\u0442\u043e <code>unordered_map<\/code>. \u0414\u043b\u044f Rust \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 expert \u043d\u0435\u0442: \u0432\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f safe, \u043d\u043e \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 Rust \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u0436\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u201c\u043d\u0430\u0438\u0432\u043d\u044b\u0439\u201d: \u0434\u043b\u044f \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u044d\u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u0430\u044f <code>Vec<\/code>-\u0430\u0440\u0435\u043d\u0430 \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 <code>u32<\/code>, \u0430 \u0434\u043b\u044f <code>words<\/code> \u2013 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e open-addressing \u0442\u0430\u0431\u043b\u0438\u0446\u0430. Rust \u0441\u043e\u0431\u0440\u0430\u043d \u0441 <code>-O -C codegen-units=1<\/code>. <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#reading-the-rust-rows-historical\" rel=\"noopener nofollow\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 Rust<\/a>.<\/p>\n<ul>\n<li>\n<p><code>records<\/code> \u0441\u0442\u0440\u043e\u0438\u0442 \u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437 16 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 variant-\u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430 \u0435\u0433\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442. Goose \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 variable-size enum: \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430, \u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f inline. Expert-\u0432\u0430\u0440\u0438\u0430\u043d\u0442 C++ \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 <code>std::string<\/code> \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0431\u0443\u0444\u0435\u0440\u043e\u043c, \u0430 Rust \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 <code>enum<\/code> \u0438 <code>String<\/code>; \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Rust \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0440\u0443\u043f\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430. \u0417\u0434\u0435\u0441\u044c \u0432\u044b\u0438\u0433\u0440\u044b\u0448 Goose \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u044f\u0437\u044b\u043a\u0430, \u0431\u0435\u0437 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u043b\u043e\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u043b\u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439.<\/p>\n<\/li>\n<li>\n<p><code>interp<\/code> \u0441\u0442\u0440\u043e\u0438\u0442 \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0432\u043e\u0441\u0435\u043c\u044c \u0440\u0430\u0437 \u0435\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442. Goose \u0445\u0440\u0430\u043d\u0438\u0442 \u043b\u0438\u0441\u0442\u044c\u044f \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0443\u0437\u043b\u044b \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0443\u043b\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438. \u0411\u044b\u0441\u0442\u0440\u044b\u0435 C++ \u0438 Rust \u0442\u043e\u0436\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0430\u0440\u0435\u043d\u0443, \u043d\u043e \u0445\u0440\u0430\u043d\u044f\u0442 \u0443\u0437\u043b\u044b \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442 \u0438\u0445 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438. \u041f\u0443\u043b \u0432 Goose \u0443\u043a\u0430\u0437\u0430\u043d \u044f\u0432\u043d\u043e, \u0437\u0430\u0442\u043e \u043a\u043e\u0434 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<\/li>\n<li>\n<p><code>words<\/code> \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0437 16 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0441\u043b\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c: \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Goose, \u043a\u0430\u043a \u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b C++ \u0438 Rust, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0432\u0440\u0443\u0447\u043d\u0443\u044e open-addressing \u0442\u0430\u0431\u043b\u0438\u0446\u0443. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Goose \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c <code>dictionary<\/code> \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b 1473,4 \u043c\u0441 \u0438 423,6 \u041c\u0411 \u2013 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 C++ \u0438 Rust \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u043d\u0435\u0435 \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0443\u0447\u043d\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0430 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e, \u043d\u043e \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0435\u0433\u043e \u0441 \u043d\u0443\u043b\u044f.<\/p>\n<\/li>\n<li>\n<p><code>bintrees<\/code> \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442 \u0438 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f. \u0412\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0440\u0435\u043d\u0430. \u0412 Rust \u044d\u0442\u043e <code>Vec<\/code> \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 <code>u32<\/code> \u0438 \u0440\u0443\u0447\u043d\u044b\u043c <code>clear()<\/code>, \u0432 C++ \u2013 <code>vector<\/code>-\u0430\u0440\u0435\u043d\u0430, \u0430 \u0432 Goose \u2013 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0441\u0431\u0440\u043e\u0441\u043e\u043c <code>top<\/code> \u043f\u0440\u0438 \u0432\u044b\u0445\u043e\u0434\u0435 \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. Goose \u0432\u0441\u0451 \u0435\u0449\u0451 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432 \u0432\u0438\u0434\u0435 \u043f\u0443\u043b\u0430, \u043d\u043e \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0441\u0445\u0435\u043c\u0443 \u0432\u043b\u0430\u0434\u0435\u043d\u0438\u044f \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0437\u043b\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>Goose \u0447\u0430\u0441\u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442 \u043f\u043b\u043e\u0442\u043d\u0443\u044e \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0443, \u0430\u0440\u0435\u043d\u044b \u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043c\u0435\u0436\u0434\u0443 \u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u044f\u0437\u044b\u043a\u0430. \u0422\u0430\u043c, \u0433\u0434\u0435 \u0432 C++ \u0438 safe Rust \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0431\u0443\u0444\u0435\u0440\u0430\u043c, \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c, Goose \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u0436\u0435 \u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0448: \u0432 <code>bintrees<\/code> Goose \u0437\u0430\u043d\u044f\u043b 31,8 \u041c\u0411 \u043f\u0440\u043e\u0442\u0438\u0432 31,5 \u041c\u0411 \u0443 Rust.<\/p>\n<p><a class=\"anchor\" name=\"benchmark_caveats\" id=\"benchmark_caveats\"><\/a><\/p>\n<h3>\u0421\u0430\u043c\u043e\u0440\u0430\u0437\u043e\u0431\u043b\u0430\u0447\u0435\u043d\u0438\u0435 (\u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438)<\/h3>\n<p>\u0422\u0443\u0442 \u043d\u0430\u0434\u043e \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0430\u0432\u0442\u043e\u0440 Goose \u0434\u043e\u0431\u0440\u043e\u0441\u043e\u0432\u0435\u0441\u0442\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md?plain=1#L120-L135\" rel=\"noopener nofollow\">\u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0448\u0438 Goose<\/a>, \u0448\u0443\u043c \u0438 <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md?plain=1#L1014-L1060\" rel=\"noopener nofollow\">\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0438<\/a>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u201c\u0440\u0430\u0437\u043e\u0431\u043b\u0430\u0447\u0435\u043d\u0438\u0435\u201d \u0437\u0434\u0435\u0441\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0441\u043a\u043e\u0440\u0435\u0435 \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u201c\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u043c\u0443 \u0448\u0443\u043c\u0443\u201d \u0432\u043e\u043a\u0440\u0443\u0433 Goose.<\/p>\n<ul>\n<li>\n<p>\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u044b\u0448\u0435 \u0441\u043e\u0437\u043d\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u043e\u0448\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u044b\u0438\u0433\u0440\u044b\u0448\u0430 Goose, \u0430 \u043d\u0435 \u0432\u0435\u0441\u044c \u043d\u0430\u0431\u043e\u0440 \u0438\u0437 16 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u043e\u0432. \u041e\u043d\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u0447\u0438, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0430\u043c\u044f\u0442\u0438 Goose \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u043e \u043d\u0435 \u0441\u0440\u0435\u0434\u043d\u044e\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u044f\u0437\u044b\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md#across-all-benchmarks\" rel=\"noopener nofollow\">\u041e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0430\u0432\u0442\u043e\u0440\u0430<\/a> \u043e\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 16 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u043e\u0432. \u0412 \u043d\u0435\u0439 \u0438\u0442\u043e\u0433\u043e\u0432\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u0438 \u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u044c\u0441\u044f \u043a \u0440\u0430\u0437\u043d\u044b\u043c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u043c Goose, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043a\u0430\u043a \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0434\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u044b \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0431\u0435\u0437 \u0437\u0430\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0437\u0430 \u044f\u0434\u0440\u0430\u043c\u0438. \u0421\u0430\u043c \u0430\u0432\u0442\u043e\u0440 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0448\u0443\u043c\u043e\u043c \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0432 10%, \u0430 \u0434\u043b\u044f <code>graph<\/code> \u0438 <code>lru<\/code> \u2013 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0432 15%. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0434\u043e\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u043f\u0440\u0435\u0432\u043e\u0441\u0445\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u044f\u0437\u044b\u043a\u0430.<\/p>\n<\/li>\n<li>\n<p>Goose \u0432\u044b\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u043d\u0435 \u0432\u0435\u0437\u0434\u0435: <code>calc<\/code> \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043d\u0430 Rust, <code>lru<\/code> \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 Rust \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 MSVC \u0438 \u0432\u044b\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 Clang, \u0430 <code>scene<\/code> \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0434 MSVC \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0440\u0430\u0432\u0435\u043d Rust \u043f\u043e\u0434 Clang. \u041f\u043b\u043e\u0441\u043a\u0438\u0435 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0432 <code>particles<\/code> \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b \u0432\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u044f\u0437\u044b\u043a\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<p><a class=\"anchor\" name=\"closures\" id=\"closures\"><\/a><\/p>\n<h3>\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f<\/h3>\n<p>\u0412 Goose \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e:<\/p>\n<pre><code class=\"rust\">fn each_pair&lt;T, F&gt;(xs: T[:]) {    for i in 0..xs.len - 1 {        F(xs[i], xs[i + 1]);    }}fn print_pair(a: i64, b: i64) {    print(a, \" \", b);}fn main() {    var xs: i64[] = [4, 8, 15, 16, 23, 42];    each_pair(xs, print_pair);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p><code>F<\/code> \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441 <code>print_pair<\/code> \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e <code>each_pair<\/code> \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0430 \u0432\u044b\u0437\u043e\u0432 <code>F(...)<\/code> \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432 \u043f\u0440\u044f\u043c\u043e\u0439 \u0432\u044b\u0437\u043e\u0432 \u0438\u043b\u0438 \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u0432 \u0446\u0438\u043a\u043b. Function values \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438: \u044d\u0442\u043e \u043d\u0435 closure-\u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p>\u0412\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438 \u0431\u043b\u043e\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043d\u043e \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043a\u0438\u043d\u0443\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u044b. Function value \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0438\u043b\u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 <code>if<\/code> \u0438\u043b\u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u0431\u044b\u0447\u043d\u0443\u044e \u0444\u0430\u0431\u0440\u0438\u043a\u0443 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f:<\/p>\n<pre><code class=\"rust\">fn make_counter() {    var n = 0;    fn next() -&gt; i64 {        n++;        return n;    }    return next;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: function values cannot be returned<\/code><\/p>\n<\/blockquote>\n<p>\u0426\u0435\u043d\u0430 \u0442\u0430\u043a\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 \u2013 \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 callbacks, \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0438\u043b\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f. \u0417\u0430\u0442\u043e \u0434\u043b\u044f <code>map<\/code>, <code>filter<\/code>, <code>sort<\/code> \u0438 \u043f\u043e\u0445\u043e\u0436\u0438\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b closure-\u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u043b\u043b\u043e\u043a\u0430\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u044d\u0442\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/docs\/goose_spec.md#76-static-function-values\" rel=\"noopener nofollow\">\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 Goose<\/a>; \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/fnval_return.goose\" rel=\"noopener nofollow\">\u0442\u0435\u0441\u0442\u043e\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"threads\" id=\"threads\"><\/a><\/p>\n<h3>\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0442\u043e\u043a\u0438<\/h3>\n<p>Goose \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 data races \u0432 \u0447\u0438\u0441\u0442\u043e\u043c \u043a\u043e\u0434\u0435 \u0432\u0435\u0441\u044c\u043c\u0430 \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c: \u0443 \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u043d\u0435\u0442 \u043e\u0431\u0449\u0435\u0439 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0424\u0443\u043d\u043a\u0446\u0438\u044f, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043a\u0430\u043a <code>thread_fn<\/code>, \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0432\u0441\u0435\u043c \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u043c \u0435\u044e \u043a\u043e\u0434\u043e\u043c \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 data stacks \u0438 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043f\u0438\u044f\u043c\u0438 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, worker \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u044e \u043a\u043e\u043f\u0438\u044e <code>counter<\/code>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 main \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0430\u043f\u0435\u0447\u0430\u0442\u0430\u0435\u0442 <code>0<\/code>:<\/p>\n<pre><code class=\"rust\">var counter = 0;thread_fn increment() {    counter++;}fn main() {    thread_wait(thread_spawn(increment));    print(counter); \/\/ 0}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0417\u0430\u0434\u0430\u043d\u0438\u044f \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u0438 <code>qput&lt;T&gt;<\/code> \u0438 <code>qget&lt;T&gt;<\/code>. \u0427\u0435\u0440\u0435\u0437 \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043b\u043e\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0431\u0435\u0437 \u0441\u0441\u044b\u043b\u043e\u043a \u0438 \u0441\u0440\u0435\u0437\u043e\u0432: \u043e\u043d\u0438 \u043b\u0435\u0436\u0430\u0442 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e \u0438 \u043a\u043e\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c <code>memcpy<\/code>. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f\u0437\u044b\u043a\u0443 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b locks, atomics \u0438 memory ordering. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u044d\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u0432 <a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/docs\/tutorial.md#14-threads-that-share-nothing\" rel=\"noopener nofollow\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 Goose<\/a>.<\/p>\n<pre><code class=\"rust\">struct Job { n: i32 }struct Result { n: i32 }thread_fn worker() {    let job = qget&lt;Job&gt;();    qput(Result { n: job.n * 2 });}fn main() {    let id = thread_spawn(worker);    qput(Job { n: 21 });    let result = qget&lt;Result&gt;();    thread_wait(id);    print(result.n); \/\/ 42}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0426\u0435\u043d\u0430 \u0442\u0430\u043a\u043e\u0439 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438 \u2013 \u043d\u0435\u043b\u044c\u0437\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u043a\u0435\u0448 \u0438\u043b\u0438 \u0433\u0440\u0430\u0444 \u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0443\u0436\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434 \u043d\u0435 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f:<\/p>\n<pre><code class=\"rust\">thread_fn worker(value: i64&amp;) {    print(value);}fn main() {    var value = 42;    thread_spawn(worker, &amp;value);}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: thread_fn parameters must be flat, not i64&amp;<\/code><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/thread_flat.goose#L1-L10\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"array_indexing\" id=\"array_indexing\"><\/a><\/p>\n<h3>\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432<\/h3>\n<p>\u0415\u0441\u043b\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440, \u0443 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u0435\u0442 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0430\u0433\u0430. \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 <code>entries[i]<\/code>, \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<pre><code class=\"rust\">struct Entry {    text: u8[],}fn main() {    var entries: Entry[&gt;..] = [];    entries.push(Entry { text: \"a\" });    entries.push(Entry { text: \"much longer\" });    for entry in entries { print(entry.text); } \/\/ \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442    print(entries[1].text);                      \/\/ \u043e\u0448\u0438\u0431\u043a\u0430}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<blockquote>\n<p><code>error: arrays of variable-size elements cannot be indexed, only iterated; for random access, keep your own array of references to them<\/code><\/p>\n<\/blockquote>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\/seq_index.goose#L1-L7\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a>.<\/p>\n<p>Goose \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0441\u043a\u0440\u044b\u0442\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0439: \u043c\u0430\u0441\u0441\u0438\u0432 \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c, \u043d\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f, \u0438\u043d\u0434\u0435\u043a\u0441 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u044f\u0432\u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0441\u0441\u044b\u043b\u043e\u043a:<\/p>\n<pre><code class=\"rust\">struct Entry {    text: u8[],}fn main() {    var entries: Entry[&gt;..] = [];    var entry_at: (Entry&amp;)[&gt;..] = [];    entry_at.push(entries.push(Entry { text: \"a\" }));    entry_at.push(entries.push(Entry { text: \"much longer\" }));    print(entry_at[1].text); \/\/ \"much longer\"}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043f\u043b\u043e\u0442\u043d\u043e \u0443\u043f\u0430\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438, \u0430 <code>entry_at[i]<\/code> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f.<\/p>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/docs\/tutorial.md#an-index-for-variable-size-elements\" rel=\"noopener nofollow\">\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441 \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0431\u0430\u0439\u0442\u043e\u0432\u044b\u043c \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u043c<\/a>.<\/p>\n<p><a class=\"anchor\" name=\"conclusion\" id=\"conclusion\"><\/a><\/p>\n<h3>\u0418\u0442\u0430\u043a, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 Goose?<\/h3>\n<p>\u0412\u044b\u043d\u0435\u0441\u0435\u043c \u0437\u0430 \u0441\u043a\u043e\u0431\u043a\u0438 \u0437\u0440\u0435\u043b\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0421\u0442\u043e\u0438\u0442 \u043b\u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c, \u0434\u0430 \u0438\u043b\u0438 \u043d\u0435\u0442? \u041d\u0435\u0442. \u0418\u043b\u0438 \u0434\u0430. \u0417\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430.<\/p>\n<p>\u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430 Goose \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445, \u0433\u0434\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e\u0437\u0434\u0430\u044e\u0442\u0441\u044f \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438, \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f, \u0430 \u0437\u0430\u0442\u0435\u043c \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0446\u0435\u043b\u0438\u043a\u043e\u043c, \u043a\u0430\u043a \u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u041f\u0430\u0440\u0441\u0435\u0440\u044b, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u041f\u0430\u043a\u0435\u0442\u043d\u0430\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, Goose \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0443\u0434\u043e\u0431\u0435\u043d \u0442\u0430\u043c, \u0433\u0434\u0435 \u043d\u0443\u0436\u043d\u044b:<\/p>\n<ul>\n<li>\n<p>\u041e\u0431\u0449\u0430\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c, atomics \u0438\u043b\u0438 lock-free \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0442\u043e\u043a\u0430\u043c\u0438 \u0431\u0435\u0437 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0414\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 \u0433\u0440\u0430\u0444\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u043c \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u0443\u0437\u043b\u0430\u043c: <code>slot_pool&lt;T&gt;<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0442\u044b, \u043d\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e use-after-free \u0438 double free \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0443 \u0442\u043e \u0435\u0441\u0442\u044c Goose \u2013 \u043d\u0435 \u0437\u0430\u043c\u0435\u043d\u0430 C++ \u0438\u043b\u0438 Rust, \u0430 \u044f\u0437\u044b\u043a \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447, \u0433\u0434\u0435 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0436\u0430\u0442\u044c \u0437\u0430 \u0441\u0447\u0451\u0442 \u043a\u043e\u043c\u043f\u043e\u043d\u043e\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e.<\/p>\n<p><a class=\"anchor\" name=\"sources\" id=\"sources\"><\/a><\/p>\n<h3>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/h3>\n<h4>Goose<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/aardappel.github.io\/goose\/#authors\" rel=\"noopener nofollow\">\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u0431 \u0430\u0432\u0442\u043e\u0440\u0430\u0445<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/tree\/b78158797a3a4199a2c519d90d4e5421b2760fe3\" rel=\"noopener nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 Goose, commit b781587<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/docs\/goose_spec.md\" rel=\"noopener nofollow\">\u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u044f\u0437\u044b\u043a\u0430<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/docs\/tutorial.md\" rel=\"noopener nofollow\">\u0420\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u044f\u0437\u044b\u043a\u0443<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/design.md\" rel=\"noopener nofollow\">\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u043e\u0432<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/bench\/results.md\" rel=\"noopener nofollow\">\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u043e\u0432<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/blob\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/src\/runtime\/runtime.h\" rel=\"noopener nofollow\">\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 runtime<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/aardappel\/goose\/tree\/b78158797a3a4199a2c519d90d4e5421b2760fe3\/test\/errors_tc\" rel=\"noopener nofollow\">\u0422\u0435\u0441\u0442\u044b \u043e\u0448\u0438\u0431\u043e\u043a \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430<\/a><\/p>\n<\/li>\n<\/ul>\n<h4>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/aardappel.github.io\/lobster\/philosophy.html\" rel=\"noopener nofollow\">Philosophy of Lobster<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/opensource.googleblog.com\/2014\/06\/flatbuffers-memory-efficient.html\" rel=\"noopener nofollow\">FlatBuffers: Memory Efficient Serialization Library<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/588917\/\" rel=\"noopener nofollow\">\u0417\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f \u0432 Rust \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435<\/a><\/p>\n<\/li>\n<\/ul>\n<h4>\u041c\u043e\u0434\u0435\u043b\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438<\/h4>\n<ul>\n<li>\n<p><a href=\"https:\/\/go.dev\/ref\/mem\" rel=\"noopener nofollow\">The Go Memory Model<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/tc39.es\/ecma262\/multipage\/memory-model.html\" rel=\"noopener nofollow\">ECMAScript Memory Model<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dart.dev\/language\/concurrency\" rel=\"noopener nofollow\">Concurrency in Dart<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/doc.rust-lang.org\/nomicon\/races.html\" rel=\"noopener nofollow\">Data Races and Race Conditions in Rust<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1102376\/\">https:\/\/habr.com\/ru\/articles\/1102376\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0413\u0434\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0431\u044c\u0451\u0442 \u043f\u043e \u0440\u0443\u043a\u0430\u043c\u0417\u0430 \u0447\u0442\u043e \u0431\u043e\u0440\u043e\u043b\u0438\u0441\u044c (\u043c\u0430\u0433\u0438\u044f)\u0421\u0430\u043c\u043e\u0440\u0430\u0437\u043e\u0431\u043b\u0430\u0447\u0435\u043d\u0438\u0435 (\u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438)\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0442\u043e\u043a\u0438\u0426\u0435\u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u0430: \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432\u0418\u0442\u0430\u043a, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 Goose?\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u042f\u0437\u044b\u043a \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 Goose \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b Wouter van Oortmerssen. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438, \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0438 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0418\u0418-\u043c\u043e\u0434\u0435\u043b\u0438 Claude Fable. \u0412 \u0447\u0451\u043c \u0430\u0432\u0442\u043e\u0440 \u0431\u044b\u043b \u0437\u0430\u043c\u0435\u0447\u0435\u043d \u0440\u0430\u043d\u0435\u0435: \u042f\u041f Lobster, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c \u0432 2010 \u0433\u043e\u0434\u0443, \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 FlatBuffers, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u0430\u044f Google \u0432 2014-\u043c.\u0411\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434 \u0443 \u0430\u0432\u0442\u043e\u0440\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u043e\u043b\u0438\u0434\u043d\u044b\u0439, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0436\u0435 \u043d\u0430 \u201c\u0433\u0443\u0441\u044f\u201d \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445.\u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0438\u0448\u043a\u0430 Goose \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u041a \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u044a\u044f\u0432\u0438\u0442\u044c \u0442\u0440\u0438 \u043d\u0435\u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0431\u0443\u043a\u0432\u0443 \u201c\u0411\u201d:\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0411\u0435\u0437 \u0437\u0430\u0442\u0435\u0439: \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0442\u0438\u043f\u0430 \u044f\u0432\u043d\u044b\u0445 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0439 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0436\u0438\u0437\u043d\u0438\u0411\u044b\u0441\u0442\u0440\u043e: \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u0412 \u0433\u0440\u0443\u0431\u043e\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u044f \u0437\u043d\u0430\u043a\u043e\u043c, \u0440\u0430\u0441\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0430\u043a\u0446\u0435\u043d\u0442\u044b \u0442\u0430\u043a:\u042f\u0437\u044b\u043a\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0411\u0435\u0437 \u0437\u0430\u0442\u0435\u0439\u0411\u044b\u0441\u0442\u0440\u043eGo\u25d0\u2b24\u25d4JavaScript\u25d0\u2b24\u25d4Dart\u2b24\u2b24\u25d4Rust\u2b24\u25ef\u2b24\u2b24 \u2013 \u0434\u0430; \u25d0 \u2013 \u0441 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u043c\u0438; \u25d4 \u2013 \u043b\u0438\u0448\u044c \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e; \u25ef \u2013 \u043d\u0435\u0442.\u041f\u043e\u044f\u0441\u043d\u0435\u043d\u0438\u044f \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435:Go \u0438 JavaScript: \u0431\u0435\u0437 \u0437\u0430\u0442\u0435\u0439 \u0438 \u0441 \u0431\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f\u043c\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 \u043e\u0431\u044b\u0447\u043d\u043e\u043c Go-\u043a\u043e\u0434\u0435 \u0431\u0435\u0437 unsafe \u0438 \u0432 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 JavaScript \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0442\u0438\u043f\u0430 dangling pointers \u0438 use-after-free, \u043d\u043e \u0432 \u043e\u0431\u043e\u0438\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0433\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: \u0432 Go \u2013 \u043c\u0435\u0436\u0434\u0443 goroutines, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c\u0438 \u0441 \u043e\u0431\u0449\u0435\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u0432 JavaScript \u2013 \u043c\u0435\u0436\u0434\u0443 agents (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Web Workers), \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 SharedArrayBuffer. \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0441 GC \u043e\u0431\u044b\u0447\u043d\u043e \u0434\u0451\u0448\u0435\u0432\u043e, \u043d\u043e \u043f\u043e\u0438\u0441\u043a \u0438 \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u044e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c latency spikes. \u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 1 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e, 2 \u2013 \u0434\u0430, 3 \u2013 \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438.Dart: \u0431\u0435\u0437 \u0437\u0430\u0442\u0435\u0439 \u0438 \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f\u043c\u0438. \u0413\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u0432 \u0447\u0438\u0441\u0442\u043e\u043c Dart-\u043a\u043e\u0434\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043c\u043e\u0434\u0435\u043b\u044c\u044e isolates. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u044d\u0442\u0430 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u044f \u043d\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 FFI \u0438 JavaScript-\u0438\u043d\u0442\u0435\u0440\u043e\u043f. \u0415\u0441\u0442\u044c GC, \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u043b\u044e\u0441\u0430\u043c\u0438 \u0438 \u043c\u0438\u043d\u0443\u0441\u0430\u043c\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 1 \u0438 2 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u0430 3 \u2013 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e.Rust: safe Rust \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0431\u0435\u0437 GC. \u0417\u0430 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u201c\u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0440\u0443\u043d\u0430\u043c\u0438\u201d \u0432 \u0442\u0435\u043a\u0441\u0442\u0435: fn longest&lt;&#8216;a&gt;(a: &amp;&#8217;a str, b: &amp;&#8217;a str) -&gt; &amp;&#8217;a str { if a.len() &gt;= b.len() { a } else { b } }. \u0415\u0449\u0451 \u0431\u043e\u043b\u044c\u0448\u0435 \u201c\u0437\u0430\u0442\u0435\u0439\u201d \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0441 \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u044f\u043c\u0438; \u0432 \u0441\u0432\u043e\u0451 \u0432\u0440\u0435\u043c\u044f \u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 \u0438 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u043b \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435. \u0412\u044b\u0445\u043e\u0434\u0438\u0442, \u0447\u0442\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f 1 \u0438 3 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f, \u0430 2 \u2013 \u043d\u0435\u0442.\u0422\u0443\u0442 \u043d\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u0430\u044f \u043d\u0435\u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0440\u0438\u043b\u0435\u043c\u043c\u0430: \u201c\u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0438\u0437 \u0442\u0440\u0451\u0445\u201d.Goose \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d, \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044f \u0432\u0441\u0435 \u0442\u0440\u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0430 \u0438 \u0434\u0430\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044f \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0435: \u201c\u0411\u0435\u0440\u0435\u0436\u043d\u043e\u201d, \u0442\u043e \u0435\u0441\u0442\u044c \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0440\u0430\u0441\u0445\u043e\u0434\u0430\u043c\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435.\u041a\u0430\u043a \u044d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u041f\u0440\u043e\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e Goose \u043a\u0430\u043a \u0430\u0440\u0435\u043d\u044b. \u041a\u0442\u043e \u043f\u0438\u0441\u0430\u043b, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043d\u0430 Go \u0438\u043b\u0438 Rust, \u0442\u043e\u0442 \u0437\u043d\u0430\u0435\u0442 \u043f\u0440\u043e \u0442\u0430\u043a\u0443\u044e \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e. \u0414\u0430\u043d\u043d\u044b\u0435 \u0441 \u043e\u0431\u0449\u0438\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0436\u0438\u0437\u043d\u0438 \u0437\u0434\u0435\u0441\u044c \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u044e\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435. \u041a\u0430\u0436\u0434\u0430\u044f \u0442\u0430\u043a\u0430\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0430\u0440\u0435\u043d\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e data stacks \u2013 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0445 \u0430\u043b\u043b\u043e\u043a\u0430\u0442\u043e\u0440\u043e\u0432. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0441\u0442\u0435\u043a\u0430 \u0435\u0441\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f top, \u0442\u043e \u0435\u0441\u0442\u044c bump-\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439 \u0431\u0430\u0439\u0442. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e data stacks \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435.\u041a\u043e\u043d\u0446\u0435\u043f\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 runtime \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:\/\/ \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043b, \u0447\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 \u043d\u0443\u0436\u043d\u044b \u0442\u0440\u0438 data stacks.const int64_t N = 3;\/\/ Runtime \u0441\u043e\u0437\u0434\u0430\u0451\u0442 \u0434\u043b\u044f \u043d\u0438\u0445 \u043f\u0430\u043c\u044f\u0442\u044c.gs_stack_block(N);Runtime \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0438 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442 \u043f\u043e \u043e\u0434\u043d\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e data stack (\u043a\u043e\u0434 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0451\u043d):static void gs_stack_block(int64_t n) {    \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c N \u043e\u043f\u0438\u0441\u0430\u0442\u0435\u043b\u0435\u0439. \u0421\u0430\u043c\u0430 \u043f\u0430\u043c\u044f\u0442\u044c \u0441\u0442\u0435\u043a\u043e\u0432 \u0437\u0434\u0435\u0441\u044c \u0435\u0449\u0451 \u043d\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f.    gs_stks = calloc(n &gt; 0 ? n : 1, sizeof(gs_stack));    \/\/ \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e data stack \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u0438.    for (int64_t i = 0; i &lt; n; i++) {        gs_stks[i].top = gs_reserve_region(&amp;gs_stks[i]);    }    gs_nstks = n;}\u0418\u0442\u043e\u0433\u043e: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0447\u0438\u0442\u0430\u0435\u0442 N, \u0430 runtime N \u0440\u0430\u0437 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 gs_reserve_region. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432: \u0432 Linux \u0447\u0435\u0440\u0435\u0437 mmap, \u0432 Windows \u0447\u0435\u0440\u0435\u0437 VirtualAlloc. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 data stack \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f 2 \u0413\u0411 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430. \u0420\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. Guard-\u043e\u0431\u043b\u0430\u0441\u0442\u044c \u0432 \u043a\u043e\u043d\u0446\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 runtime.\u0412\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 data stack \u2013 \u044d\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 top \u0438 \u0441\u0434\u0432\u0438\u0433 top \u0432\u043f\u0435\u0440\u0451\u0434. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, a \u0441\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u043e\u043c, b \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0446\u0438\u043a\u043b\u043e\u043c, \u0430 \u0437\u0430\u0442\u0435\u043c \u0440\u0430\u0441\u0442\u0451\u0442 c:fn make_b() -&gt; i32[] {    var result: i32[&gt;..] = [];    for i: i32 in 5 {        result.push(i);    }    return result;}fn main() {    var a: i32[] = [1, 2, 3];    var b: i32[] = make_b();    var c: i32[&gt;..] = [];    for i: i32 in 1000 {        c.push(i);    }    print(a.len, b.len, c.len);}\u0412\u043d\u0443\u0442\u0440\u0438 make_b \u043c\u0430\u0441\u0441\u0438\u0432 result \u0440\u0430\u0441\u0442\u0451\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c. \u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0441\u0442\u0440\u043e\u0438\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 i32[] \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 b, \u0431\u0435\u0437 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438. \u0413\u043e\u0442\u043e\u0432\u044b\u0439 b \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 resizable, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u0435\u0440\u0445 \u043d\u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0430\u0441\u0442\u0443\u0449\u0438\u0439 c:data stack 0: [ a ][ b ][ c \u0440\u0430\u0441\u0442\u0451\u0442&#8230;&#8230;&#8230;&#8230;. ] -&gt; top\u041c\u0430\u0441\u0441\u0438\u0432 c \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0435 \u0441\u0442\u0435\u043a\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0441\u0434\u0432\u0438\u0433\u043e\u043c top \u0438 \u043d\u0438\u043a\u0443\u0434\u0430 \u043d\u0435 \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u0435\u0442. \u041f\u0440\u0430\u0432\u0438\u043b\u043e Goose: \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0441\u0442\u0435\u043a\u0435 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d \u201c\u0436\u0438\u0432\u043e\u0439\u201d resizable-\u043c\u0430\u0441\u0441\u0438\u0432. \u0415\u0441\u043b\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0436\u0438\u0432\u0443\u0442 \u0442\u0440\u0438 \u0442\u0430\u043a\u0438\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0442\u0440\u0438 \u0441\u0442\u0435\u043a\u0430:var a: i32[&gt;..] = [];var b: i32[&gt;..] = [];var c: i32[&gt;..] = [];for i: i32 in 1000 {    a.push(i);    b.push(i);    c.push(i);}data stack 0: [ a \u0440\u0430\u0441\u0442\u0451\u0442&#8230;&#8230;&#8230;&#8230;&#8230;. ] -&gt; topdata stack 1: [ b \u0440\u0430\u0441\u0442\u0451\u0442&#8230;&#8230;&#8230;&#8230;&#8230;. ] -&gt; topdata stack 2: [ c \u0440\u0430\u0441\u0442\u0451\u0442&#8230;&#8230;&#8230;&#8230;&#8230;. ] -&gt; top\u0418\u0442\u043e\u0433\u043e: Goose \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0435 \u0447\u0438\u0441\u043b\u043e data stacks, \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0440\u0430\u0449\u0438\u0432\u0430\u0435\u0442 \u0438\u0445 bump-\u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u043e\u0441\u0432\u043e\u0431\u043e\u0436\u0434\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u043e\u0431\u043b\u0430\u0441\u0442\u044c\u044e \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u0432 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 Goose.\u0413\u0434\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0431\u044c\u0451\u0442 \u043f\u043e \u0440\u0443\u043a\u0430\u043c\u0417\u0430 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438. \u041d\u0438\u0436\u0435 \u2013 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432.\u0420\u0430\u0441\u0442\u0443\u0449\u0438\u0439 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043f\u043e\u043b\u0435\u043c \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0418\u043d\u0430\u0447\u0435 \u0435\u0433\u043e \u0440\u043e\u0441\u0442 \u0437\u0430\u0442\u0440\u0451\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u043e\u043b\u0435:struct S {    tail: i64[&gt;..],    after: i64,}error: resizable field tail of struct S must be the final field\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430.\u0421\u0441\u044b\u043b\u043a\u0430 \u0438\u043b\u0438 \u0441\u0440\u0435\u0437 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442:fn bad() -&gt; i64[:] {    var local: i64[1] = [42];    return local[..];}error: returning a reference rooted in local, which dies with this function\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430.\u041d\u0435\u043b\u044c\u0437\u044f \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432, \u043f\u043e\u043a\u0430 \u0435\u0449\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0440\u0435\u0437 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0445:var buf: u8[&gt;..] = [65];let s: const u8[:] = buf;buf.pop();print(s);error: cannot pop buf while s is still used\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430.\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0440\u0430\u0441\u0442\u0438\u0442\u044c \u043c\u0430\u0441\u0441\u0438\u0432, \u043f\u043e\u043a\u0430 \u043d\u0430 \u0435\u0433\u043e \u0432\u0435\u0440\u0448\u0438\u043d\u0435 \u0435\u0449\u0451 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442:fn make(words: u8[][&gt;..]&amp;) -&gt; u8[] {    words.push(&#171;side effect&#187;);    return &#171;result&#187;;}var words: u8[][&gt;..] = [];words.push(make(words));error: cannot call make, which grows words: the element pushed into words is still under construction, and the growth would land inside it\u0422\u0435\u0441\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430.\u0417\u0430 \u0447\u0442\u043e \u0431\u043e\u0440\u043e\u043b\u0438\u0441\u044c (\u043c\u0430\u0433\u0438\u044f)\u041d\u0438\u0436\u0435 \u2013 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Goose \u043f\u043e\u0434 Clang \u043e\u043f\u0435\u0440\u0435\u0434\u0438\u043b \u0438 \u043b\u0443\u0447\u0448\u0438\u0439 safe Rust, \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e C++ \u0431\u043e\u043b\u044c\u0448\u0435 \u0447\u0435\u043c \u043d\u0430 10%. \u0412\u0440\u0435\u043c\u044f \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043e \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0435 large; \u043f\u0430\u043c\u044f\u0442\u044c \u2013 \u043f\u0438\u043a\u043e\u0432\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 (peak working set) \u0442\u043e\u0439 \u0436\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 gap \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 Goose \u0431\u044b\u0441\u0442\u0440\u0435\u0435.\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043aGoose, \u043c\u0441Expert C++, \u043c\u0441GapSafe Rust, \u043c\u0441Gaprecords441,0625,51,42\u00d7891,82,02\u00d7interp67,893,81,38\u00d787,51,29\u00d7words1199,51987,81,66\u00d72084,01,74\u00d7bintrees203,8406,92,00\u00d7235,41,16\u00d7\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 gap \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 Goose \u043c\u0435\u043d\u044c\u0448\u0435.\u0411\u0435\u043d\u0447\u043c\u0430\u0440\u043aGoose, \u041c\u0411Expert C++, \u041c\u0411GapSafe Rust, \u041c\u0411Gaprecords149,0556,93,74\u00d7593,43,98\u00d7interp28,063,42,26\u00d757,02,04\u00d7words535,6638,41,19\u00d7675,91,26\u00d7bintrees31,835,81,13\u00d731,5\u043d\u0430 1% \u0431\u043e\u043b\u044c\u0448\u0435\u041f\u043e\u0434 expert C++ \u0430\u0432\u0442\u043e\u0440 \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u0435 \u043e\u0441\u043e\u0431\u044b\u0435 \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445: \u0430\u0440\u0435\u043d\u044b \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, tagged union \u0432\u043c\u0435\u0441\u0442\u043e \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0441 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e open-addressing \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u043c\u0435\u0441\u0442\u043e unordered_map. \u0414\u043b\u044f Rust \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 expert \u043d\u0435\u0442: \u0432\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f safe, \u043d\u043e \u043f\u0440\u0438 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 Rust \u0437\u0434\u0435\u0441\u044c \u0442\u043e\u0436\u0435 \u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u201c\u043d\u0430\u0438\u0432\u043d\u044b\u0439\u201d: \u0434\u043b\u044f \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432 \u044d\u0442\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u0430\u044f Vec-\u0430\u0440\u0435\u043d\u0430 \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 u32, \u0430 \u0434\u043b\u044f words \u2013 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e open-addressing \u0442\u0430\u0431\u043b\u0438\u0446\u0430. Rust \u0441\u043e\u0431\u0440\u0430\u043d \u0441 -O -C codegen-units=1. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 Rust.records \u0441\u0442\u0440\u043e\u0438\u0442 \u0436\u0443\u0440\u043d\u0430\u043b \u0438\u0437 16 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 variant-\u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0447\u0435\u0442\u044b\u0440\u0435 \u0440\u0430\u0437\u0430 \u0435\u0433\u043e \u043e\u0431\u0445\u043e\u0434\u0438\u0442. Goose \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 variable-size enum: \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u0435\u0441\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430, \u0430 \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0439 \u0442\u0435\u043a\u0441\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f inline. Expert-\u0432\u0430\u0440\u0438\u0430\u043d\u0442 C++ \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 std::string \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0431\u0443\u0444\u0435\u0440\u043e\u043c, \u0430 Rust \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0431\u044b\u0447\u043d\u044b\u0435 enum \u0438 String; \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 Rust \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0438\u043c\u0435\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u0440\u0443\u043f\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430. \u0417\u0434\u0435\u0441\u044c \u0432\u044b\u0438\u0433\u0440\u044b\u0448 Goose \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u044f\u0437\u044b\u043a\u0430, \u0431\u0435\u0437 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0430\u043b\u043b\u043e\u043a\u0430\u0442\u043e\u0440\u0430 \u0438\u043b\u0438 \u0440\u0443\u0447\u043d\u043e\u0439 \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439.interp \u0441\u0442\u0440\u043e\u0438\u0442 \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0432\u043e\u0441\u0435\u043c\u044c \u0440\u0430\u0437 \u0435\u0433\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u0442. Goose \u0445\u0440\u0430\u043d\u0438\u0442 \u043b\u0438\u0441\u0442\u044c\u044f \u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0443\u0437\u043b\u044b \u0440\u0430\u0437\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0443\u043b\u0435 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0441\u044b\u043b\u043a\u0430\u043c\u0438. \u0411\u044b\u0441\u0442\u0440\u044b\u0435 C++ \u0438 Rust \u0442\u043e\u0436\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u0430\u0440\u0435\u043d\u0443, \u043d\u043e \u0445\u0440\u0430\u043d\u044f\u0442 \u0443\u0437\u043b\u044b \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u0438 \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u044e\u0442 \u0438\u0445 \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438. \u041f\u0443\u043b \u0432 Goose \u0443\u043a\u0430\u0437\u0430\u043d \u044f\u0432\u043d\u043e, \u0437\u0430\u0442\u043e \u043a\u043e\u0434 \u043d\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u0446\u0438\u044e \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u0441\u044b\u043b\u043e\u043a \u0432\u0440\u0443\u0447\u043d\u0443\u044e.words \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0432 \u0442\u0435\u043a\u0441\u0442\u0435 \u0438\u0437 16 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0441\u043b\u043e\u0432. \u0417\u0434\u0435\u0441\u044c \u0432\u0430\u0436\u043d\u043e \u043d\u0435 \u043f\u0440\u0435\u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0442\u044c: \u0441\u0430\u043c\u044b\u0439 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Goose, \u043a\u0430\u043a \u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b C++ \u0438 Rust, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0443\u044e \u0432\u0440\u0443\u0447\u043d\u0443\u044e open-addressing \u0442\u0430\u0431\u043b\u0438\u0446\u0443. \u041e\u0434\u043d\u0430\u043a\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442 Goose \u0441\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c dictionary \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u043b 1473,4 \u043c\u0441 \u0438 423,6 \u041c\u0411 \u2013 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 C++ \u0438 Rust \u0438 \u044d\u043a\u043e\u043d\u043e\u043c\u043d\u0435\u0435 \u043f\u043e \u043f\u0430\u043c\u044f\u0442\u0438. \u0422\u043e \u0435\u0441\u0442\u044c \u0440\u0443\u0447\u043d\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0430 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e, \u043d\u043e \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0435\u0433\u043e \u0441 \u043d\u0443\u043b\u044f.bintrees \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u043e \u0441\u0442\u0440\u043e\u0438\u0442 \u0438 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f. \u0412\u043e \u0432\u0441\u0435\u0445 \u0442\u0440\u0451\u0445 \u0431\u044b\u0441\u0442\u0440\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0440\u0435\u043d\u0430. \u0412 Rust \u044d\u0442\u043e Vec \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438 u32 \u0438 \u0440\u0443\u0447\u043d\u044b\u043c clear(), \u0432 C++ \u2013 vector-\u0430\u0440\u0435\u043d\u0430, \u0430 \u0432 Goose \u2013&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-501249","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/501249","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=501249"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/501249\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=501249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=501249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=501249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}