{"id":296528,"date":"2019-12-27T21:00:15","date_gmt":"2019-12-27T21:00:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=296528"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=296528","title":{"rendered":"\u041c\u043e\u0439 \u043e\u043f\u044b\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Nim"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/462577\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vx\/0d\/ig\/vx0dignqhsbwiaewbqugebd06iw.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>  <\/p>\n<p>\u0423\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u044f \u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u2014 \u0442\u0430\u043a\u043e\u0439 pet project \u0434\u043b\u044f \u0434\u0443\u0448\u0438. \u0410 \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f \u0434\u0443\u0448\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f (\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043d\u0430 \u0447\u0451\u043c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c), \u0442\u043e \u0432\u044b\u0431\u043e\u0440 \u043c\u043e\u0439 \u043f\u0430\u043b \u043d\u0430 nim. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e nim, \u043f\u0440\u043e \u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b, \u0430 \u0442\u0435\u043c\u0430 \u0433\u0435\u0439\u043c\u0434\u0435\u0432\u0430 \u043b\u0438\u0448\u044c \u0437\u0430\u0434\u0430\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u2014 \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0440\u0435\u0448\u0430\u043b, \u043a\u0430\u043a\u0438\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u043d\u044b\u043c-\u0434\u0430\u0432\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0442\u0440\u0430\u0432\u0430 \u0431\u044b\u043b\u0430 \u0437\u0435\u043b\u0435\u043d\u0435\u0435, \u0430 \u043d\u0435\u0431\u043e \u0447\u0438\u0449\u0435, \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b nim. \u0425\u043e\u0442\u044f \u043d\u0435\u0442, \u043d\u0435 \u0442\u0430\u043a. \u0414\u0430\u0432\u043d\u044b\u043c-\u0434\u0430\u0432\u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438\u0433\u0440, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0421\u0430\u043c\u0443\u044e \u041a\u043b\u0430\u0441\u0441\u043d\u0443\u044e \u0418\u0433\u0440\u0443 \u2014 \u0434\u0443\u043c\u0430\u044e, \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e. \u0412 \u0442\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430 Unity \u0438 Unreal Engine \u0442\u043e\u043b\u044c\u043a\u043e-\u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043b\u0443\u0445\u0443 \u0438, \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a, \u0435\u0449\u0451 \u043d\u0435 \u0431\u044b\u043b\u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c\u0438. \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437-\u0437\u0430 \u0436\u0430\u0434\u043d\u043e\u0441\u0442\u0438, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437-\u0437\u0430 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0451 \u0441\u0430\u043c\u043e\u043c\u0443, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c \u0441 \u043d\u0443\u043b\u044f, \u0441 \u0441\u0430\u043c\u043e\u0433\u043e <del>\u043f\u0435\u0440\u0432\u043e\u0433\u043e<\/del> \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430. \u0414\u0430, \u0434\u043e\u043b\u0433\u043e, \u0434\u0430, \u0441\u043b\u043e\u0436\u043d\u043e, \u0437\u0430\u0442\u043e \u0441\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435 \u2014 \u0430 \u0447\u0442\u043e \u0435\u0449\u0451 \u0434\u043b\u044f \u0441\u0447\u0430\u0441\u0442\u044c\u044f \u043d\u0430\u0434\u043e?<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p>\u0412\u043e\u043e\u0440\u0443\u0436\u0438\u0432\u0448\u0438\u0441\u044c \u0421\u0442\u0440\u0430\u0443\u0441\u0442\u0440\u0443\u043f\u043e\u043c \u0438 Qt, \u044f \u0445\u043b\u0435\u0431\u043d\u0443\u043b \u0433\u043e\u0432\u043d\u0430 \u043f\u043e \u0441\u0430\u043c\u043e\u0435 \u043d\u0435\u0431\u0430\u043b\u0443\u0439, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043d\u0435 \u0431\u044b\u043b \u043e\u0434\u043d\u0438\u043c \u0438\u0437 10 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u0432 \u043c\u0438\u0440\u0435, \u0437\u043d\u0430\u044e\u0449\u0438\u0445 C++ <em>\u0445\u043e\u0440\u043e\u0448\u043e<\/em>, \u0430, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043f\u043b\u044e\u0441\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u043b\u0438 \u043c\u043d\u0435 \u043f\u0430\u043b\u043a\u0438 \u0432 \u043a\u043e\u043b\u0451\u0441\u0430. \u041d\u0435 \u0432\u0438\u0436\u0443 \u0441\u043c\u044b\u0441\u043b\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0437\u0430 \u043c\u0435\u043d\u044f \u0443\u0436\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b <a href=\"https:\/\/habr.com\/ru\/users\/platoff\/\" class=\"user_link\">platoff<\/a>:<\/p>\n<p>  <\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/259831\/\">\u041a\u0430\u043a \u044f \u043d\u0430\u0448\u0435\u043b \u043b\u0443\u0447\u0448\u0438\u0439 \u0432 \u043c\u0438\u0440\u0435 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c 1<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/259841\/\">\u041a\u0430\u043a \u044f \u043d\u0430\u0448\u0435\u043b \u043b\u0443\u0447\u0448\u0438\u0439 \u0432 \u043c\u0438\u0440\u0435 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c 2<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/260149\/\">\u041a\u0430\u043a \u044f \u043d\u0430\u0448\u0435\u043b \u043b\u0443\u0447\u0448\u0438\u0439 \u0432 \u043c\u0438\u0440\u0435 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u0427\u0430\u0441\u0442\u044c \u0419\u043e (2.72)<\/a><\/p>\n<p>  <\/p>\n<blockquote><p>\u042d\u0442\u043e \u0431\u0435\u0437\u0443\u043c\u043d\u044b\u0439 \u043a\u0430\u0439\u0444, \u043a\u043e\u0433\u0434\u0430 \u0442\u044b \u043f\u0438\u0448\u0435\u0448\u044c \u043a\u043e\u0434 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e, \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0434\u0443\u043c\u0430\u044f, \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u044f core dumped \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c, \u043a\u043e\u0433\u0434\u0430 \u0444\u0438\u0447\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u043d\u0430 \u0433\u043b\u0430\u0437\u0430\u0445, \u0432\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0442\u0430\u043a \u043c\u043e\u0436\u0435\u043c, \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0435\u0449\u0435 \u0442\u0430\u043a, \u0442\u043e \u0441\u043a\u0430\u0436\u0438\u0442\u0435 \u043c\u043d\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043a\u0430\u043a\u0430\u044f \u043c\u043d\u0435 \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0442\u0435\u043c\u043f\u043b\u0435\u0439\u0442\u043e\u0432, \u0435\u0441\u043b\u0438 \u044f \u0434\u0430\u0436\u0435 \u043d\u0435 \u0441\u043a\u0443\u0447\u0430\u043b \u043f\u043e \u043d\u0438\u043c? \u041f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u2014 \u0432\u043e\u0442 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0446\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432\u0435\u0449\u0438, \u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442.<\/p><\/blockquote>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430\u044f \u0441 C++, \u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0434\u0443\u043c\u0430\u043b, <em>\u043a\u0430\u043a<\/em> \u043c\u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u044f \u0445\u043e\u0447\u0443, \u0430 \u043d\u0435 <em>\u0447\u0442\u043e<\/em> \u043c\u043d\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0435\u0440\u0435\u0448\u0451\u043b \u043d\u0430 nim. \u0421 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439 \u043f\u043e\u043a\u043e\u043d\u0447\u0435\u043d\u043e, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0436\u0435 \u044f \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u043e\u043f\u044b\u0442\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043b\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430 nim.<\/p>\n<p>  <\/p>\n<h2 id=\"obschie-svedeniya-dlya-teh-kto-ne-v-kurse\">\u041e\u0431\u0449\u0438\u0435 \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043d\u0435 \u0432 \u043a\u0443\u0440\u0441\u0435<\/h2>\n<p>  <\/p>\n<ul>\n<li>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 (MIT), \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442\u0430\u043c\u0438. \u0421\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u044f\u0437\u044b\u043a\u0430 \u2014 Andreas Rumpf (Araq). \u0412\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u2014 Dominik Picheta (dom96), \u043d\u0430\u043f\u0438\u0441\u0430\u0432\u0448\u0438\u0439 \u043a\u043d\u0438\u0433\u0443 <a href=\"https:\/\/www.manning.com\/books\/nim-in-action\" rel=\"nofollow\">Nim in action<\/a>. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0437\u0430\u0434 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f <a href=\"https:\/\/github.com\/status-im\" rel=\"nofollow\">Status<\/a> \u0441\u0442\u0430\u043b\u0430 \u0441\u043f\u043e\u043d\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u044f\u0437\u044b\u043a\u0430, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0447\u0435\u043c\u0443 \u0443 nim&#8217;\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0435\u0449\u0451 2 \u0444\u0443\u043b\u043b\u0442\u0430\u0439\u043c-\u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430. \u041f\u043e\u043c\u0438\u043c\u043e \u043d\u0438\u0445, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043a\u043e\u043d\u0442\u0440\u0438\u0431\u0443\u0442\u044f\u0442 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043b\u044e\u0434\u0438.<\/li>\n<li>\u041d\u0435\u0434\u0430\u0432\u043d\u043e <a href=\"https:\/\/nim-lang.org\/blog\/2019\/09\/23\/version-100-released.html\" rel=\"nofollow\">\u0432\u044b\u0448\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044f 1.0<\/a>, \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u044f\u0437\u044b\u043a \u0441\u0442\u0430\u0431\u0438\u043b\u0435\u043d \u0438 &#171;breaking changes&#187; \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u044e\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435 \u0432\u044b \u043d\u0435 \u0445\u043e\u0442\u0435\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c unstable \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0433\u043b\u0438 \u0441\u043b\u043e\u043c\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c nim \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445.<\/li>\n<li>Nim \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f (\u0438\u043b\u0438 \u0442\u0440\u0430\u043d\u0441\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f) \u0432 C, C++ (\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0430\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043a\u043e\u0434) \u0438\u043b\u0438 JS (\u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f\u043c\u0438). \u0421\u043e\u043e\u0442\u0432\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 FFI \u0432\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432\u0441\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f C \u0438 C++. \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u043d\u0430 nim \u2014 \u043f\u043e\u0438\u0449\u0438\u0442\u0435 \u043d\u0430 \u0441\u0438 \u0438\u043b\u0438 \u043f\u043b\u044e\u0441\u0430\u0445.<\/li>\n<li>\u0411\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u0435 \u044f\u0437\u044b\u043a\u0438 \u2014 python (\u043f\u043e \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443, \u043d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434) \u0438 D (\u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443) \u2014 \u0438\u043c\u0445\u043e<\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"dokumentaciya\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/h2>\n<p>  <\/p>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435-\u0442\u043e \u0441 \u044d\u0442\u0438\u043c \u043f\u043b\u043e\u0445\u043e. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<p>  <\/p>\n<ol>\n<li>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0440\u0430\u0441\u043a\u0438\u0434\u0430\u043d\u0430 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c<\/li>\n<li>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f <del>\u0433\u0430\u0432\u043d\u043e<\/del> \u043d\u0435 \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u0435\u0440\u0435 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430<\/li>\n<li>\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e\u0440\u043e\u0439 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u043d\u0430<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440: \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u044f\u0434\u0435\u0440-\u0442\u043e \u043c\u043d\u043e\u0433\u043e, \u0430 \u0434\u0435\u0432\u0430\u0442\u044c \u043d\u0435\u043a\u0443\u0434\u0430.<br \/>  <a href=\"https:\/\/nim-lang.org\/docs\/manual.html#threads\" rel=\"nofollow\">\u0412\u043e\u0442 \u0440\u0430\u0437\u0434\u0435\u043b \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u043e \u043f\u043e\u0442\u043e\u043a\u0438<\/a>. \u041d\u0435\u0442, \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, <em>\u043f\u043e\u0442\u043e\u043a\u0438<\/em> \u2014 \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u044f\u0437\u044b\u043a\u0430, \u0435\u0433\u043e \u0444\u0438\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0434\u0430\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0444\u043b\u0430\u0433\u043e\u043c <code>--threads:on<\/code> \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0422\u0430\u043c \u0441\u0432\u043e\u0438 \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0438 \u043c\u0443\u0441\u043e\u0440\u0430, local heap, \u0432\u0441\u044f\u043a\u0438\u0435 shared memory \u0438 locks, thread safety, \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 shared-\u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u0445\u0440\u0435\u043d \u0437\u043d\u0430\u0435\u0442 \u0447\u0442\u043e \u0435\u0449\u0451. \u041e\u0442\u043a\u0443\u0434\u0430 \u044f \u043f\u0440\u043e \u044d\u0442\u043e \u0432\u0441\u0451 \u0443\u0437\u043d\u0430\u043b? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0438\u0437 \u043a\u043d\u0438\u0433\u0438 nim in action, \u0444\u043e\u0440\u0443\u043c\u0430, stack overflow, \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0430 \u0438 \u043e\u0442 \u0441\u043e\u0441\u0435\u0434\u0430, \u0432 \u043e\u0431\u0449\u0435\u043c \u043e\u0442\u043a\u0443\u0434\u0430 \u0443\u0433\u043e\u0434\u043d\u043e, \u043d\u043e \u043d\u0435 \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n<p>  <\/p>\n<p>\u0418\u043b\u0438 \u0432\u043e\u0442 \u0435\u0441\u0442\u044c \u0442.\u043d. &#171;do notation&#187; \u2014 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0438 \u0442\u0434, \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0435\u0437\u0434\u0435 \u0433\u0434\u0435 \u043d\u0430\u0434\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c callback \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u043b\u043e\u043a \u043a\u043e\u0434\u0430. \u0413\u0434\u0435 \u043f\u0440\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c? \u0410\u0433\u0430, \u0432 <a href=\"https:\/\/nim-lang.org\/docs\/manual_experimental.html#do-notation\" rel=\"nofollow\">\u043c\u0430\u043d\u0443\u0430\u043b\u0435 \u043f\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u0444\u0438\u0447\u0430\u043c<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u0435\u0441\u044c, \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043c\u0430\u043b\u043e\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u0438\u0432\u043d\u044b\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430\u043c \u2014 \u0442\u043e \u0435\u0449\u0451 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u0438\u0448\u0435\u0442\u0435 \u043d\u0430 nim \u2014 \u0432\u0430\u043c <em>\u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f<\/em> \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 \u0438 \u0432 github issues \u043f\u0440\u043e\u0441\u043a\u0430\u043a\u0438\u0432\u0430\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043d\u043e \u0434\u0435\u043b\u043e \u0442\u0430\u043a \u0438 \u043d\u0435 \u0441\u0434\u0432\u0438\u043d\u0443\u043b\u043e\u0441\u044c. \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u0436\u0451\u0441\u0442\u043a\u043e\u0439 \u0440\u0443\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u043a\u0430\u0436\u0435\u0442 &#171;\u0432\u0441\u0451, \u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438, \u0431\u0435\u0440\u0451\u043c \u043b\u043e\u043f\u0430\u0442\u044b \u0438 \u0438\u0434\u0451\u043c \u0440\u0430\u0437\u0433\u0440\u0435\u0431\u0430\u0442\u044c \u044d\u0442\u0443 \u043a\u0443\u0447\u0443 \u0433\u2026 \u0435\u043d\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0440\u0430\u0437\u0440\u043e\u0437\u043d\u0435\u043d\u043d\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432 \u0442\u0435\u043a\u0441\u0442\u0430.&#187;<\/p>\n<p>  <\/p>\n<p>\u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u044f \u043e\u0442\u0441\u0442\u0440\u0430\u0434\u0430\u043b \u0441\u0432\u043e\u0451, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0432\u0430\u043c \u0441\u043f\u0438\u0441\u043e\u043a nim-\u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430<\/p>\n<p>  <\/p>\n<h3 id=\"dokumentaciya-1\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/nim-lang.org\/docs\/tut1.html\" rel=\"nofollow\">Tutorial 1<\/a>, <a href=\"https:\/\/nim-lang.org\/docs\/tut2.html\" rel=\"nofollow\">Tutorial 2<\/a> \u2014 \u0441 \u043d\u0438\u0445 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c<\/li>\n<li><a href=\"https:\/\/book.picheta.me\/\" rel=\"nofollow\">Nim in action<\/a> \u2014 \u0442\u043e\u043b\u043a\u043e\u0432\u0430\u044f \u043a\u043d\u0438\u0436\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442 \u043c\u043d\u043e\u0433\u0438\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u044b \u044f\u0437\u044b\u043a\u0430, \u043f\u043e\u0440\u043e\u0439 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043b\u0443\u0447\u0448\u0435 \u043e\u0444. \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438<\/li>\n<li><a href=\"https:\/\/nim-lang.org\/docs\/manual.html\" rel=\"nofollow\">Nim manual<\/a> \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043c\u0430\u043d\u0443\u0430\u043b \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0441\u0451, \u043d\u043e \u043d\u0435\u0442<\/li>\n<li><a href=\"https:\/\/nim-lang.org\/docs\/manual_experimental.html\" rel=\"nofollow\">Nim experimental manual<\/a> \u2014 \u0430 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043a\u0435?<\/li>\n<li><a href=\"https:\/\/nim-lang.org\/docs\/theindex.html\" rel=\"nofollow\">The Index<\/a> \u2014 \u0442\u0443\u0442 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0432\u0441\u0451, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u0441\u0451 \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0432 nim&#8217;\u0435. \u041d\u0435 \u043d\u0430\u0448\u043b\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0432 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0437\u0430\u0445 \u0438 \u043c\u0430\u043d\u0443\u0430\u043b\u0435 \u2014 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435 \u0442\u043e\u0447\u043d\u043e \u043d\u0430\u0439\u0434\u0451\u0442\u0435. <\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"uroki-i-tutorialy\">\u0423\u0440\u043e\u043a\u0438 \u0438 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u044b<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/narimiran.github.io\/nim-basics\/\" rel=\"nofollow\">Nim basics<\/a> \u2014 \u0441\u0430\u043c\u044b\u0435 \u043e\u0441\u043d\u043e\u0432\u044b \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432, \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u0442\u0435\u043c\u044b \u043d\u0435 \u0440\u0430\u0441\u043a\u0440\u044b\u0442\u044b<\/li>\n<li><a href=\"https:\/\/xmonader.github.io\/nimdays\/\" rel=\"nofollow\">Nim Days<\/a> \u2014 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b (live examples)<\/li>\n<li><a href=\"http:\/\/rosettacode.org\/wiki\/Category:Nim\" rel=\"nofollow\">Rosetta Code<\/a> \u2014 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u043a\u043e\u043b\u044c\u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0434\u043d\u0438\u0445 \u0438 \u0442\u0435\u0445 \u0436\u0435 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u042f\u041f, \u0432 \u0442.\u0447. nim<\/li>\n<li><a href=\"https:\/\/exercism.io\/my\/tracks\/nim\" rel=\"nofollow\">Exercism.io<\/a> \u2014 \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0439\u0442\u0438 &#171;\u043f\u0443\u0442\u044c nim&#187;, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u0437\u0430\u0434\u0430\u043d\u0438\u044f<\/li>\n<li><a href=\"https:\/\/nim-by-example.github.io\/getting_started\/\" rel=\"nofollow\">Nim by Example<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"pomosch\">\u041f\u043e\u043c\u043e\u0449\u044c<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/forum.nim-lang.org\" rel=\"nofollow\">Nim forum<\/a> \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0444\u043e\u0440\u0443\u043c\u0430 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b, \u043d\u043e 1) \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043e\u0442\u0432\u0435\u0442 2) \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441, \u0435\u0441\u043b\u0438 \u043f.1 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b 3) \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 50% 4) \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0435 \u0441\u0438\u0434\u044f\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u044f\u0437\u044b\u043a\u0430 \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442. \u041a\u0441\u0442\u0430\u0442\u0438, \u0444\u043e\u0440\u0443\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u043d\u0430 nim, \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0430\u044f<\/li>\n<li><a href=\"https:\/\/t.me\/nim_lang\" rel=\"nofollow\">Nim telegram group<\/a> \u2014 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0434\u0430\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441 \u0438 [\u043d\u0435]\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442.<\/li>\n<li>\u0415\u0441\u0442\u044c \u0435\u0449\u0451 \u0440\u0443\u0441\u0441\u043a\u0430\u044f \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c-\u0433\u0440\u0443\u043f\u043f\u0430, \u0435\u0441\u043b\u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043b\u0438 \u043e\u0442 nim \u0438 \u043d\u0435 \u0445\u043e\u0442\u0438\u0442\u0435 \u043e \u043d\u0451\u043c \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u2014 \u0432\u0430\u043c \u0442\u0443\u0434\u0430 \ud83d\ude42 (\u043e\u0442\u0447\u0430\u0441\u0442\u0438 \u0448\u0443\u0442\u043a\u0430) <\/li>\n<li><a href=\"http:\/\/irc:\/\/freenode.net\/nim\" rel=\"nofollow\">IRC<\/a> \u2014 \u0442\u0443\u0442 \u0442\u043e\u0436\u0435 \u0447\u0430\u0441\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"playground\">Playground<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"http:\/\/play.nim-lang.org\" rel=\"nofollow\">Nim playground<\/a> \u2014 \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 nim \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435<\/li>\n<li><a href=\"https:\/\/forum.nim-lang.org\/t\/5569\" rel=\"nofollow\">Nim docker cross-compiling<\/a> \u2014 \u0442\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c, \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0434\u043e\u043a\u0435\u0440-\u043e\u0431\u0440\u0430\u0437 \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c.<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"pakety\">\u041f\u0430\u043a\u0435\u0442\u044b<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/nimble.directory\/\" rel=\"nofollow\">nimble.directory<\/a> \u2014 \u0442\u0443\u0442 \u0441\u043e\u0431\u0440\u0430\u043d\u044b \u0432\u0441\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u043a\u0435\u0442\u043d\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 nimble.<\/li>\n<li><a href=\"https:\/\/github.com\/nim-lang\/Nim\/wiki\/Curated-Packages\" rel=\"nofollow\">Curated list of packages<\/a> \u2014 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u044d\u043d\u0442\u0443\u0437\u0438\u0430\u0441\u0442\u0430\u043c\u0438 \u0441\u043f\u0438\u0441\u043e\u043a \u0431\u043e\u043b\u0435\u0435-\u043c\u0435\u043d\u0435\u0435 \u0436\u0438\u0432\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"perehod-na-nim-s-drugih-yazykov\">\u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 nim \u0441 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432<\/h3>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/narimiran.github.io\/\/2019\/07\/01\/nim-import.html\" rel=\"nofollow\">Imports in Nim<\/a> \u2014 \u0441\u0442\u0430\u0442\u044c\u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0438\u0437\u0433\u043d\u0430\u0442\u044c \u0434\u0443\u0445 \u043f\u0438\u0442\u043e\u043d\u0438\u0441\u0442\u0430 \u0438\u0437 \u0441\u0435\u0431\u044f<\/li>\n<li><a href=\"https:\/\/github.com\/nim-lang\/Nim\/wiki\/Nim-for-Python-Programmers\" rel=\"nofollow\">Nim for python programmers<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nim-lang\/Nim\/wiki\/Nim-for-C-programmers\" rel=\"nofollow\">Nim for C programmers<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"chto-nravitsya\">\u0427\u0442\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f<\/h2>\n<p>  <\/p>\n<p>\u041d\u0435\u0442 \u0441\u043c\u044b\u0441\u043b\u0430 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0432\u0441\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430, \u043d\u043e \u0432\u043e\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<p>  <\/p>\n<h3 id=\"fraktal-slozhnosti\">\u0424\u0440\u0430\u043a\u0442\u0430\u043b \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438<\/h3>\n<p>  <\/p>\n<p>Nim \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u0430\u043c &#171;\u0444\u0440\u0430\u043a\u0442\u0430\u043b \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438&#187;. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0439 \u043a\u043e\u0434. \u041c\u043e\u0436\u0435\u0442\u0435 \u0431\u043e\u0434\u0430\u0442\u044c\u0441\u044f \u0441 \u0441\u044b\u0440\u044b\u043c\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c\u0438 \u0438 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u043e\u0439 <code>attempt to read from nil<\/code>. \u041c\u043e\u0436\u0435\u0442\u0435 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c C-\u043a\u043e\u0434. \u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c <a href=\"https:\/\/nim-lang.org\/docs\/manual.html#statements-and-expressions-assembler-statement\" rel=\"nofollow\">\u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435<\/a>. \u041c\u043e\u0436\u0435\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b (static dispatch). \u041d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u2014 \u0435\u0441\u0442\u044c &#171;\u043c\u0435\u0442\u043e\u0434\u044b&#187; (dynamic dispatch). \u0415\u0449\u0451? \u0415\u0441\u0442\u044c \u0434\u0436\u0435\u043d\u0435\u0440\u0438\u043a\u0438, \u0438 \u0435\u0441\u0442\u044c \u0434\u0436\u0435\u043d\u0435\u0440\u0438\u043a\u0438, \u043c\u0438\u043c\u0438\u043a\u0440\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043f\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0415\u0441\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d\u044b (templates) \u2014 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043c\u0435\u043d\u044b, \u043d\u043e \u043d\u0435 \u0442\u0430\u043a\u043e\u0439 \u0431\u043b\u0435\u0432\u043e\u0442\u043d\u044b\u0439, \u043a\u0430\u043a \u0432 C++ (\u0442\u0430\u043c \u044d\u0442\u043e \u0432\u0441\u0451 \u0435\u0449\u0451 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0430\u044f \u0437\u0430\u043c\u0435\u043d\u0430, \u0438\u043b\u0438 \u0443\u0436\u0435 \u0447\u0442\u043e-\u0442\u043e \u043f\u043e\u0443\u043c\u043d\u0435\u0435?). \u0415\u0441\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u0432 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a IDDQD, \u043e\u043d\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442 \u0440\u0435\u0436\u0438\u043c \u0431\u043e\u0433\u0430 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441 AST \u0438 \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u043a\u0443\u0441\u043a\u0438 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0435\u0440\u0435\u0432\u0430, \u0438\u043b\u0438 \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c \u044f\u0437\u044b\u043a \u043a\u0430\u043a \u0445\u043e\u0442\u0438\u0442\u0435.<br \/>  \u0422\u043e \u0435\u0441\u0442\u044c \u043d\u0430 &#171;\u0432\u044b\u0441\u043e\u043a\u043e\u043c&#187; \u0443\u0440\u043e\u0432\u043d\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0438\u0441\u0430\u0442\u044c \u0445\u0435\u043b\u043b\u043e\u0432\u043e\u0440\u043b\u0434\u044b \u0438 \u0433\u043e\u0440\u044f \u043d\u0435 \u0437\u043d\u0430\u0442\u044c, \u043d\u043e \u043d\u0438\u043a\u0442\u043e \u0432\u0430\u043c \u043d\u0435 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043c\u0430\u0445\u0438\u043d\u0430\u0446\u0438\u0438 \u043b\u044e\u0431\u043e\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"skorost-razrabotki\">\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438<\/h3>\n<p>  <\/p>\n<p>\u041a\u0440\u0438\u0432\u0430\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u2014 \u043d\u0435 \u043a\u0440\u0438\u0432\u0430\u044f. \u042d\u0442\u043e \u043f\u0440\u044f\u043c\u0430\u044f. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0432 nim, \u0432\u044b \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u0436\u0435 \u043c\u0438\u043d\u0443\u0442\u0443 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0432\u0430\u0448 \u043f\u0435\u0440\u0432\u044b\u0439 hello world, \u0430 \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0436\u0435 \u0434\u0435\u043d\u044c \u0432\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0442\u0443. \u041d\u043e \u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0443 \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e \u0438\u0437\u0443\u0447\u0430\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u0441 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440, \u043f\u043e\u0442\u043e\u043c \u043c\u043d\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0438\u0441\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0435-\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043c\u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u043b\u0438\u0441\u044c \u0434\u0436\u0435\u043d\u0435\u0440\u0438\u043a\u0438, \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u044f \u043e\u0442\u043a\u0440\u044b\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u0438\u0445 \u043a\u0440\u0430\u0441\u0435, \u0438 \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u044f \u0435\u0449\u0451 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u043b \u043c\u0430\u043a\u0440\u043e\u0441\u044b. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0441 \u0442\u0435\u043c \u0436\u0435 rust \u0438\u043b\u0438 c++, &#171;\u0432\u043b\u0438\u0442\u044c\u0441\u044f&#187; \u0432 nim \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"package-management\">Package management<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c package manager \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c nimble, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043c\u0435\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c, \u0443\u0434\u0430\u043b\u044f\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0442\u0438. \u041a\u043e\u0433\u0434\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0435 \u0441\u0432\u043e\u0439 \u043f\u0430\u043a\u0435\u0442 (= \u043f\u0440\u043e\u0435\u043a\u0442), \u0432 nimble \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 (\u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 nimscript, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e nim, \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u043d\u0430 VM), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u0435\u0441\u0442\u043e\u0432, \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u0441\u0441\u0435\u0442\u043e\u0432 \u0438\u0442\u0434. Nimble \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u043e \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430. \u0422\u043e \u0435\u0441\u0442\u044c nimble \u2014 \u044d\u0442\u043e, \u0433\u0440\u0443\u0431\u043e \u0433\u043e\u0432\u043e\u0440\u044f, CMake, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u043d\u0435 \u0438\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0446\u044b, \u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043b\u044e\u0434\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"chitaemost-i-vyrazitelnost\">\u0427\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c \u0438 \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u0412\u043d\u0435\u0448\u043d\u0435 nim \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u0445\u043e\u0436 \u043d\u0430 python \u0441 type annotations, \u0445\u043e\u0442\u044f nim \u044d\u0442\u043e \u043d\u0435 python \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438 \u0440\u0430\u0437\u0443. \u041f\u0438\u0442\u043e\u043d\u0438\u0441\u0442\u0430\u043c \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0437\u0430\u0431\u044b\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044e, \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0440\u0430\u0434\u043e\u0441\u0442\u0438, \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u0435. \u041d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0441\u0432\u043e\u0439 python-\u043e\u043f\u044b\u0442 \u0432 nim, \u0438\u0431\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u0430\u044f. \u041f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0433\u0435\u0442\u0435\u0440\u043e\u0433\u0435\u043d\u043d\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u043c\u0438\u043a\u0441\u0438\u043d\u043e\u0432 \u0441 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u0430\u043c\u0438. \u043d\u043e \u043f\u043e\u0442\u043e\u043c \u043a\u0430\u043a-\u0442\u043e \u043f\u0440\u0438\u0432\u044b\u043a\u0430\u0435\u0448\u044c \u0436\u0438\u0442\u044c \u0432 \u043b\u0438\u0448\u0435\u043d\u0438\u044f\u0445 \ud83d\ude42<\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430 nim:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">    type       NumberGenerator = object of Service  # this service just generates some numbers        NumberMessage = object of Message         number: int      proc run(self: NumberGenerator) =       if not waitAvailable(\"calculator\"):         echo \"Calculator is unavailable, shutting down\"         return        for number in 0..&lt;10:         echo &amp;\"Sending number {number}\"         (ref NumberMessage)(number: number).send(\"calculator\")<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"modulnost\">\u041c\u043e\u0434\u0443\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u0412\u0441\u0451 \u0440\u0430\u0437\u0431\u0438\u0442\u043e \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043a\u0430\u043a \u0443\u0433\u043e\u0434\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u2014 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u0438\u043b\u0438 \u0432\u0441\u0435 \u043a\u0440\u043e\u043c\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445, \u0438\u043b\u0438 \u0432\u0441\u0435, \u0438\u043b\u0438 \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u0430-\u043b\u044f <code>module.function()<\/code>, \u0438 \u0435\u0449\u0451 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u0434\u0440\u0443\u0433\u0438\u043c \u0438\u043c\u0435\u043d\u0435\u043c. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u0432\u0441\u0451 \u044d\u0442\u043e \u043c\u043d\u043e\u0433\u043e\u043e\u0431\u0440\u0430\u0437\u0438\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u0430\u043a \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0430\u0433\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u0441\u043f\u043e\u0440\u0435 &#171;\u043a\u0430\u043a\u043e\u0439 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043b\u0443\u0447\u0448\u0435&#187;, \u043d\u0443 \u0430 \u0432 \u0441\u0432\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0442\u0438\u0445\u043e\u043d\u044c\u043a\u043e \u0432\u0435\u0437\u0434\u0435 \u043f\u0438\u0441\u0430\u0442\u044c <code>import mymodule<\/code> \u0438 \u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u0445 \u043d\u0435 \u0432\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<h3 id=\"method-call-syntax\">Method call syntax<\/h3>\n<p>  <\/p>\n<p>\u0412\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u043d \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">    double(2)     double 2     2.double()     2.double<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0442\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0436\u0434\u044b\u0439\u2026 \u043f\u0438\u0448\u0435\u0442 \u043a\u0430\u043a \u0435\u043c\u0443 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f (\u0430 \u0432\u0441\u0435\u043c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443, \u0440\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043f\u0440\u0438\u0447\u0451\u043c \u043f\u043e-\u0440\u0430\u0437\u043d\u043e\u043c\u0443 \u0434\u0430\u0436\u0435 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430). \u041d\u043e \u0437\u0430\u0442\u043e \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043a\u0430\u043a \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u0430, \u0447\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0430\u0435\u0442 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0441\u0442\u044c. \u0412 \u043f\u0438\u0442\u043e\u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">list(set(some_list))  # \u0430\u0440\u0430\u0431-\u0441\u0442\u0430\u0439\u043b: \u0447\u0438\u0442\u0430\u0435\u043c \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e, \u0430 \u0435\u0449\u0451 \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c map \u0438 filter \u0438 \u0443\u0435\u0445\u0430\u0442\u044c \u0432 \u0434\u0443\u0440\u043a\u0443<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e\u0442 \u0436\u0435 \u043a\u043e\u0434 \u0432 nim \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043b\u043e\u0433\u0438\u0447\u043d\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">some_list.set.list  # \u0447\u0438\u0442\u0430\u0435\u043c \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"oop\">\u041e\u041e\u041f<\/h3>\n<p>  <\/p>\n<p>\u041e\u041e\u041f \u0445\u043e\u0442\u044c \u0438 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442, \u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043e\u043d\u043e\u0433\u043e \u0432 \u043f\u043b\u044e\u0441\u0430\u0445 \u0438 \u043f\u0438\u0442\u043e\u043d\u0435: \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u2014 \u0440\u0430\u0437\u043d\u044b\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438, \u0438 \u0432\u043f\u043e\u043b\u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u044f\u0445. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0431\u0430\u0437\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 <code>int<\/code><\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">    proc double(number: int): int =         number * 2      echo $2.double()  # prints \"4\"<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0432 nim \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043d\u043a\u0430\u043f\u0441\u0443\u043b\u044f\u0446\u0438\u044f (\u043f\u0435\u0440\u0432\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u043c\u043e\u0434\u0443\u043b\u044f \u0432 nim: \u043d\u0438\u043a\u043e\u043c\u0443 \u043d\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u0445 \u0431\u0435\u0437 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u0438). \u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\"># sharedtables.nim type SharedTable*[A, B] = object ## generic hash SharedTable     data: KeyValuePairSeq[A, B]     counter, dataLen: int     lock: Lock<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0438\u043f <code>SharedTable*<\/code> \u043f\u043e\u043c\u0435\u0447\u0435\u043d \u0437\u0432\u0451\u0437\u0434\u043e\u0447\u043a\u043e\u0439, \u0437\u043d\u0430\u0447\u0438\u0442, \u043e\u043d &#171;\u0432\u0438\u0434\u0435\u043d&#187; \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u043e\u0434\u0443\u043b\u044f\u0445 \u0438 \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u043e \u0432\u043e\u0442 <code>data<\/code>, <code>counter<\/code> \u0438 <code>lock<\/code> \u2014 \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0435 \u0447\u043b\u0435\u043d\u044b, \u0438 &#171;\u0441\u043d\u0430\u0440\u0443\u0436\u0438&#187; <code>sharedtables.nim<\/code> \u043e\u043d\u0438 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b. \u042d\u0442\u043e \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u043e\u0431\u0440\u0430\u0434\u043e\u0432\u0430\u043b\u043e, \u043a\u043e\u0433\u0434\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0442\u0438\u043f\u0430 <code>SharedTable<\/code>, \u043d\u0430\u0432\u0440\u043e\u0434\u0435 <code>len<\/code> \u0438\u043b\u0438 <code>hasKey<\/code>, \u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b, \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043d\u0438 \u043a <code>counter<\/code>, \u043d\u0438 \u043a <code>data<\/code>, \u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 &#171;\u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c&#187; <code>SharedTable<\/code> \u2014 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u0439<del>, \u0441 \u0431\u043b<\/del><\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u043e\u0431\u0449\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0435, \u0447\u0435\u043c \u0432 \u0442\u043e\u043c \u0436\u0435 \u043f\u0438\u0442\u043e\u043d\u0435 (\u043f\u043e \u043b\u0438\u0447\u043d\u043e\u043c\u0443 \u043e\u043f\u044b\u0442\u0443), \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0435\u0441\u0442\u044c method call syntax (\u0441\u043c. \u0432\u044b\u0448\u0435) \u0438 Object Variants (\u0441\u043c \u043d\u0438\u0436\u0435). \u041f\u0443\u0442\u044c nim \u2014 \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f, \u0430 \u043d\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u0422\u0430\u043a \u0436\u0435 \u0438 \u0441 \u043f\u043e\u043b\u0438\u043c\u043e\u0440\u0444\u0438\u0437\u043c\u043e\u043c: \u0432 nim&#8217;\u0435 \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u043a\u043b\u0430\u0441\u0441\u0430\u0445-\u043d\u0430\u0441\u043b\u0435\u0434\u043d\u0438\u043a\u0430\u0445, \u043d\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u043b\u0430\u0433 <code>--multimethods:on<\/code>. \u0422\u043e \u0435\u0441\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043c\u0435\u0442\u043e\u0434\u044b \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442, \u0447\u0442\u043e \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u043e\u0434\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0435\u0442 \u043a \u0440\u0430\u0431\u043e\u0442\u0435 \u0431\u0435\u0437 \u043e\u043d\u044b\u0445.<\/p>\n<p>  <\/p>\n<h3 id=\"compile-time-execution\">Compile-time execution<\/h3>\n<p>  <\/p>\n<p>Const \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 &#171;\u0437\u0430\u0448\u0438\u0432\u0430\u0442\u044c&#187; \u044d\u0442\u043e \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a. \u042d\u0442\u043e \u043a\u0440\u0443\u0442\u043e \u0438 \u0443\u0434\u043e\u0431\u043d\u043e. \u0412\u043e\u043e\u0431\u0449\u0435 \u0432 nim \u043e\u0441\u043e\u0431\u043e\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a\u043e &#171;\u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438&#187;, \u0434\u0430\u0436\u0435 \u0435\u0441\u0442\u044c \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e <code>when<\/code> \u2014 \u044d\u0442\u043e \u043a\u0430\u043a <code>if<\/code>, \u043d\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0438\u0434\u0451\u0442 \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 <code>when defined(linux): echo \"Compiling on linux machine\"<\/code> \u2014 \u0438 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u0445\u043e\u0442\u044f \u0438 \u0435\u0441\u0442\u044c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0442\u0432\u043e\u0440\u044f\u0442\u044c \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0435\u043b\u044c\u0437\u044f \u0434\u0435\u043b\u0430\u0442\u044c FFI \u0432\u044b\u0437\u043e\u0432\u044b).<\/p>\n<p>  <\/p>\n<h3 id=\"reference-type\">Reference type<\/h3>\n<p>  <\/p>\n<p>Ref type \u2014 \u0430\u043d\u0430\u043b\u043e\u0433 shared_ptr \u0432 C++, \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0441\u044f \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430. \u041d\u043e \u043c\u043e\u0436\u043d\u043e \u0438 \u0441\u0430\u043c\u043e\u043c\u0443 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 \u0432 \u0442\u0435 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0432\u0430\u043c \u0443\u0434\u043e\u0431\u043d\u043e. \u0410 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u043e\u0432 \u043c\u0443\u0441\u043e\u0440\u0430. \u0410 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0438\u0434\u0435\u0430\u043b\u0435, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u044b\u0440\u044b\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0438 FFI, \u0432\u044b \u0432\u0440\u044f \u043b\u0438 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438. \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043f\u043e\u043a\u0430 \u0431\u0435\u0437 FFI \u043d\u0438\u043a\u0443\u0434\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"lambdas\">Lambdas<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b (aka \u043b\u044f\u043c\u0431\u0434\u044b \u0432 \u043f\u0438\u0442\u043e\u043d\u0435), \u043d\u043e \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u043f\u0438\u0442\u043e\u043d\u0430 \u0432 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0439 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0435 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e statements:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">someProc(callback=proc(a: int) -&gt; int = var b = 5*a; result = a)<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"exceptions\">Exceptions<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0438\u0445 \u043e\u0447\u0435\u043d\u044c \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e \u0431\u0440\u043e\u0441\u0430\u0442\u044c: \u043d\u0430 python <code>raise ValueError('bad value')<\/code>, \u043d\u0430 nim <code>raise newException(ValueError, \"bad value)<\/code>. \u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u2014 try, except, finally, \u0432\u0441\u0451 \u043a\u0430\u043a \u0443 \u0432\u0441\u0435\u0445. \u042f, \u043a\u0430\u043a \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043a \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u0430 \u043d\u0435 \u043a\u043e\u0434\u043e\u0432 \u043e\u0448\u0438\u0431\u043e\u043a, \u043b\u0438\u043a\u0443\u044e. \u041a\u0441\u0442\u0430\u0442\u0438, \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u0440\u043e\u0441\u0438\u0442\u044c, \u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u044d\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">proc p(what: bool) {.raises: [IOError, OSError].} =   if what: raise newException(IOError, \"IO\")   else: raise newException(OSError, \"OS\")<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"generics\">Generics<\/h3>\n<p>  <\/p>\n<p>\u0414\u0436\u0435\u043d\u0435\u0440\u0438\u043a\u0438 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0435 \u0442\u0438\u043f\u044b<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">proc onlyIntOrString[T: int|string](x, y: T) = discard  # \u0442\u043e\u043b\u044c\u043a\u043e int \u0438 string<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0438\u043f \u0432\u043e\u043e\u0431\u0449\u0435 \u043a\u0430\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u2014 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0430 \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0434\u0436\u0435\u043d\u0435\u0440\u0438\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">proc p(a: typedesc; b: a) = discard # is roughly the same as: proc p[T](a: typedesc[T]; b: T) = discard # hence this is a valid call: p(int, 4) # as parameter 'a' requires a type, but 'b' requires a value.<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"templates\">Templates<\/h3>\n<p>  <\/p>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d\u044b (templates) \u2014 \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u0432 \u0432 C++, \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0445 <em>\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e<\/em> \ud83d\ude42 \u2014 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0446\u0435\u043b\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u043a\u043e\u0434\u0430, \u0438 \u043d\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e\u0434\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0447\u0442\u043e-\u0442\u043e \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u0442 \u0432 outer \u043a\u043e\u0434\u0435 (\u043d\u043e \u043c\u043e\u0436\u043d\u043e, \u043e\u043f\u044f\u0442\u044c \u0436\u0435, \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u0440\u0442\u0438\u043b\u0430, \u0435\u0441\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0434\u043e).<\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 <code>app<\/code>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u0431\u043b\u043e\u043a\u043e\u0432 \u043a\u043e\u0434\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">template app*(serverCode: untyped, clientCode: untyped) =     # ...     case mode       of client:         clientCode       of server:         serverCode       else:         discard<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <code>do<\/code> \u044f \u043c\u043e\u0433\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0446\u0435\u043b\u044b \u0431\u043b\u043e\u043a\u0438 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">app do:  # serverCode   echo \"I'm server\"   serverProc() do:  # clientCode   echo \"I'm client\"   clientProc()<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"interactive-shell\">Interactive shell<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0437\u0432\u0430\u0442\u044c &#171;\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440&#187; \u0438\u043b\u0438 &#171;nim shell&#187; (\u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 <code>python<\/code> \u0431\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432). \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435\u0441\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <code>nim secret<\/code> \u0438\u043b\u0438 \u0441\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u043f\u0430\u043a\u0435\u0442 <a href=\"https:\/\/github.com\/AndreiRegiani\/INim\" rel=\"nofollow\">inim<\/a>.<\/p>\n<p>  <\/p>\n<h3 id=\"ffi\">FFI<\/h3>\n<p>  <\/p>\n<p>FFI \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u043d\u0430 C\/C++. \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0440\u0430\u043f\u043f\u0435\u0440, \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u044e\u0449\u0438\u0439, \u043e\u0442\u043a\u0443\u0434\u0430 \u0438 \u0447\u0442\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">{.link: \"\/usr\/lib\/libOgreMain.so\".} type ManualObjectSection* {.importcpp: \"Ogre::ManualObject::ManualObjectSection\", bycopy.} = object<\/code><\/pre>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b, \u0434\u0435\u043b\u0430\u044e\u0449\u0438\u0435 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u043e\u043b\u0443\u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/nim-lang\/c2nim\" rel=\"nofollow\">c2nim<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nimterop\/nimterop\" rel=\"nofollow\">nimterop<\/a> <\/li>\n<\/ul>\n<p>  <\/p>\n<h2 id=\"chto-ne-nravitsya\">\u0427\u0442\u043e \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f<\/h2>\n<p>  <\/p>\n<h3 id=\"slozhnost\">\u0421\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u0421\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e. \u042f\u0437\u044b\u043a \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0441\u044f \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439, \u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0434\u0430\u043b\u0435\u043a\u043e \u043e\u0442 \u043f\u0440\u0430\u0432\u0434\u044b. \u0412\u043e\u0442 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430 \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 <a href=\"https:\/\/nim-lang.org\/docs\/manual.html#scope-rules-code-reordering\" rel=\"nofollow\">code reordering<\/a>?!<\/p>\n<p>  <\/p>\n<h3 id=\"izbytochnost\">\u0418\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u041c\u043d\u043e\u0433\u043e \u0433\u043e\u0432\u043d\u0438\u0449\u0430: <a href=\"https:\/\/nim-lang.org\/docs\/system.html#addInt%2Cstring%2Cint64\" rel=\"nofollow\">system.addInt<\/a> \u2014 &#171;Converts integer to its string representation and appends it to result&#187;. \u041c\u043d\u0435 \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u044f \u0435\u0451 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435. \u0412\u043e\u0442 \u0435\u0449\u0451 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435: fileExists and existsFile (<a href=\"https:\/\/forum.nim-lang.org\/t\/3636\" rel=\"nofollow\">https:\/\/forum.nim-lang.org\/t\/3636<\/a>)<\/p>\n<p>  <\/p>\n<h3 id=\"net-unifikacii\">\u041d\u0435\u0442 \u0443\u043d\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438<\/h3>\n<p>  <\/p>\n<p>&#171;There&#8217;s only one way to do smth&#187; \u2014 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435\u0442:<\/p>\n<p>  <\/p>\n<ul>\n<li>Method call syntax \u2014 \u043f\u0438\u0448\u0438 \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0448\u044c<\/li>\n<li><a href=\"https:\/\/nim-lang.org\/docs\/strformat.html#fmt-vsdot-amp\" rel=\"nofollow\"><code>fmt<\/code> vs <code>&amp;<\/code><\/a><\/li>\n<li>camelCase \u0438 underscore_notation<\/li>\n<li>this \u0438 tHiS (\u0441\u043f\u043e\u0439\u043b\u0435\u0440: \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435)<\/li>\n<li><a href=\"https:\/\/nim-lang.org\/docs\/manual.html#procedures-func\" rel=\"nofollow\">function<\/a> vs <a href=\"https:\/\/nim-lang.org\/docs\/manual.html#procedures\" rel=\"nofollow\">procedure<\/a> vs <a href=\"https:\/\/nim-lang.org\/docs\/manual.html#templates\" rel=\"nofollow\">template<\/a><\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"bagi-net-bagi\">\u0411\u0430\u0433\u0438 (\u043d\u0435\u0442, \u0411\u0410\u0413\u0418!)<\/h3>\n<p>  <\/p>\n<p>\u0411\u0430\u0433\u0438 \u0435\u0441\u0442\u044c, <a href=\"https:\/\/github.com\/nim-lang\/Nim\/issues\" rel=\"nofollow\">\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 1400<\/a>. \u0418\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0444\u043e\u0440\u0443\u043c \u2014 <a href=\"https:\/\/forum.nim-lang.org\/t\/5620\" rel=\"nofollow\">\u0442\u0430\u043c<\/a> <a href=\"https:\/\/forum.nim-lang.org\/t\/5615\" rel=\"nofollow\">\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e<\/a> <a href=\"https:\/\/forum.nim-lang.org\/t\/5590\" rel=\"nofollow\">\u043a\u0430\u043a\u0438\u0435-\u0442\u043e<\/a> \u0431\u0430\u0433\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442.<\/p>\n<p>  <\/p>\n<h3 id=\"stabilnost\">\u0421\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u043f\u0443\u043d\u043a\u0442\u0443, v1 \u043f\u043e\u0434\u0440\u0430\u0437\u0443\u043c\u0435\u0432\u0430\u0435\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0434\u0430? \u0418 \u0442\u0443\u0442 \u043d\u0430 \u0444\u043e\u0440\u0443\u043c \u0437\u0430\u043b\u0435\u0442\u0430\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u044c \u044f\u0437\u044b\u043a\u0430 Araq \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442: &#171;\u0447\u0443\u0432\u0430\u043a\u0438, \u044f \u0442\u0443\u0442 \u0437\u0430\u043f\u0438\u043b\u0438\u043b <a href=\"https:\/\/nim-lang.org\/docs\/gc.html#garbage-collector-options\" rel=\"nofollow\">\u0435\u0449\u0451 \u043e\u0434\u0438\u043d (\u0448\u0435\u0441\u0442\u043e\u0439)<\/a> \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430, \u043e\u043d \u043a\u0440\u0443\u0447\u0435, \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u043c\u043e\u043b\u043e\u0434\u0451\u0436\u043d\u0435\u0435, \u0434\u0430\u0451\u0442 \u0432\u0430\u043c shared memory \u0434\u043b\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u0432 (\u0445\u0430-\u0445\u0430, \u0430 \u0440\u0430\u043d\u044c\u0448\u0435 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432\u044b \u0441\u0442\u0440\u0430\u0434\u0430\u043b\u0438 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u043a\u043e\u0441\u0442\u044b\u043b\u0438), \u043a\u0430\u0447\u0430\u0439\u0442\u0435 develop \u0432\u0435\u0442\u043a\u0443 \u0438 \u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435&#187;. \u0418 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438\u0435 <a href=\"https:\/\/forum.nim-lang.org\/t\/5734\" rel=\"nofollow\">&#171;\u0412\u0430\u0443, \u043a\u0430\u043a \u043a\u0440\u0443\u0442\u043e! \u0410 \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0441\u043c\u0435\u0440\u0442\u043d\u044b\u0445? \u041d\u0430\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043f\u044f\u0442\u044c \u0432\u0435\u0441\u044c \u043a\u043e\u0434 \u043c\u0435\u043d\u044f\u0442\u044c?&#187;<\/a> \u0412\u0440\u043e\u0434\u0435 \u043a\u0430\u043a \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e nim, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043d\u043e\u0432\u044b\u0439 \u0441\u0431\u043e\u0440\u0449\u0438\u043a \u043c\u0443\u0441\u043e\u0440\u0430 <code>--gc:arc<\/code> \u0438 \u043c\u043e\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0430\u0434\u0430\u0435\u0442 \u0433\u0434\u0435-\u0442\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 c++ \u043a\u043e\u0434\u0430 (\u0442.\u0435. \u043d\u0435 \u0432 nim, \u0430 \u0432 gcc): <\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\/usr\/lib\/nim\/system.nim:274:77: error: \u2018union pthread_cond_t\u2019 has no member named \u2018abi\u2019   274 |   result = x<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412\u0435\u043b\u0438\u043a\u043e\u043b\u0435\u043f\u043d\u043e! \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043a\u043e\u0434, \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0447\u0438\u043d\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0439. \u041d\u0435 \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u043b\u0438 \u044f \u0431\u0435\u0436\u0430\u043b, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0431\u0438\u0440\u0430\u043b nim? <\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u044f\u0442\u043d\u043e \u043e\u0441\u043e\u0437\u043d\u0430\u0432\u0430\u0442\u044c, \u0447\u0442\u043e \u044f <a href=\"https:\/\/forum.nim-lang.org\/t\/5746\" rel=\"nofollow\">\u043d\u0435 \u043e\u0434\u0438\u043d<\/a><\/p>\n<p>  <\/p>\n<h3 id=\"metody-i-mnogopotochnost\">\u041c\u0435\u0442\u043e\u0434\u044b \u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0444\u043b\u0430\u0433\u0438 multimethods \u0438 threads \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u2014 \u0432\u044b \u0432\u0435\u0434\u044c \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442\u0435\u0441\u044c \u0432 <del>2019<\/del> 2020 \u0433\u043e\u0434\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u0432?! \u0410 \u0443\u0436 \u043a\u0430\u043a \u0437\u0434\u043e\u0440\u043e\u0432\u043e, \u0435\u0441\u043b\u0438 \u0432\u0430\u0448\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u0431\u0435\u0437 \u0443\u0447\u0451\u0442\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432, \u0430 \u043f\u043e\u0442\u043e\u043c <a href=\"https:\/\/forum.nim-lang.org\/t\/5321#33482\" rel=\"nofollow\">\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u0445 \u0432\u043a\u043b\u044e\u0447\u0438\u043b<\/a>\u2026 \u0410\u0445 \u0434\u0430, \u0434\u043b\u044f \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0435\u0441\u0442\u044c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u0430\u0433\u043c\u044b {.inheritable.} \u0438 {.base.}, \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0448 \u043a\u043e\u0434 \u043d\u0435 \u0431\u044b\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u0435\u043d.<\/p>\n<p>  <\/p>\n<h3 id=\"object-variants\">Object variants<\/h3>\n<p>  <\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0442.\u043d. object variants:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type   CoordinateSystem = enum     csCar, # Cartesian     csCyl, # Cylindrical    Coordinates = object     case cs: CoordinateSystem: # cs is the coordinate discriminator       of csCar:         x: float         y: float         z: float       of csCyl:         r: float         phi: float         k: float<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <code>cs<\/code>, \u0432\u0430\u043c \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043b\u0438\u0431\u043e x, y, z \u043f\u043e\u043b\u044f, \u043b\u0438\u0431\u043e r, phi \u0438 k.<\/p>\n<p>  <\/p>\n<p>\u0412 \u0447\u0451\u043c \u043c\u0438\u043d\u0443\u0441\u044b?<br \/>  \u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043f\u0430\u043c\u044f\u0442\u044c \u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f <em>\u0432\u0441\u0435\u0445<\/em> \u043f\u043e\u043b\u0435\u0439, \u0445\u043e\u0442\u044f \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u0442\u044c \u043f\u043e\u043b\u0435\u0439.<br \/>  \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0431\u043e\u043b\u0435\u0435 \u0433\u0438\u0431\u043a\u043e\u0435 \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043c\u043a\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0451 \u043f\u043e\u043b\u0435\u0439, \u0430 \u0432 object variant \u0432\u0441\u0435 \u043f\u043e\u043b\u044f \u0436\u0451\u0441\u0442\u043a\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0435\u043a\u0446\u0438\u0438.<br \/>  \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u0447\u0442\u043e \u0431\u0435\u0441\u0438\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u2014 <a href=\"https:\/\/forum.nim-lang.org\/t\/5729\" rel=\"nofollow\">\u043d\u0435\u043b\u044c\u0437\u044f &#171;\u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c&#187;<\/a> \u043f\u043e\u043b\u044f \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0442\u0438\u043f\u0430\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">type    # The 3 notations refer to the same 3-D entity, and some coordinates are shared   CoordinateSystem = enum     csCar, # Cartesian    (x,y,z)     csCyl, # Cylindrical  (r,\u03c6,z)    Coordinates = object     case cs: CoordinateSystem: # cs is the coordinate discriminator       of csCar:         x: float         y: float         z: float  # z already defined here       of csCyl:         r: float         phi: float         z: float  # fails to compile due to redefinition of z<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"do-notation\">Do notation<\/h3>\n<p>  <\/p>\n<p>\u041f\u0440\u043e\u0441\u0442\u043e <a href=\"https:\/\/nim-lang.org\/docs\/manual_experimental.html#do-notation\" rel=\"nofollow\">\u043f\u0440\u043e\u0446\u0438\u0442\u0438\u0440\u0443\u044e<\/a>:<\/p>\n<p>  <\/p>\n<ul>\n<li>do with parentheses is an anonymous proc<\/li>\n<li>do without parentheses is just a block of code<br \/>  \u041e\u0434\u043d\u043e \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u00af_(\u30c4)_\/\u00af<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"kogda-chto-ispolzovat\">\u041a\u043e\u0433\u0434\u0430 \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c<\/h3>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u044b, \u0434\u0436\u0435\u043d\u0435\u0440\u0438\u043a\u0438, \u043c\u0443\u043b\u044c\u0442\u0438\u043c\u0435\u0442\u043e\u0434\u044b, \u0448\u0430\u0431\u043b\u043e\u043d\u044b \u0438 \u043c\u0430\u043a\u0440\u043e\u0441\u044b. \u041a\u043e\u0433\u0434\u0430 \u043b\u0443\u0447\u0448\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443? \u0428\u0430\u0431\u043b\u043e\u043d \u0438\u043b\u0438 \u0434\u0436\u0435\u043d\u0435\u0440\u0438\u043a? \u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430? \u0422\u0430\u043a, \u0430 \u043c\u0430\u043a\u0440\u043e\u0441\u044b? \u042f \u0434\u0443\u043c\u0430\u044e, \u0432\u044b \u043f\u043e\u043d\u044f\u043b\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"custom-pragma\">Custom pragma<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043f\u0438\u0442\u043e\u043d\u0435 \u0435\u0441\u0442\u044c \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u043e\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0445\u043e\u0442\u044c \u043a \u043a\u043b\u0430\u0441\u0441\u0430\u043c, \u0445\u043e\u0442\u044c \u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c.<br \/>  \u0412 nim \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u0442\u044c \u043f\u0440\u0430\u0433\u043c\u044b. \u0418 \u0432\u043e\u0442 \u0447\u0442\u043e:<\/p>\n<p>  <\/p>\n<ul>\n<li>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u0440\u0430\u0433\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043a\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0443:<br \/> \n<pre><code class=\"plaintext\">proc fib(n : int) : int {.cached.} = # do smth<\/code><\/pre>\n<\/li>\n<li>\u0412\u044b <a href=\"https:\/\/forum.nim-lang.org\/t\/3705\" rel=\"nofollow\">\u043d\u0435 \u043c\u043e\u0436\u0435\u0442\u0435<\/a> \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043f\u0440\u0430\u0433\u043c\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0434\u0435\u043a\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0438\u043f (=\u043a\u043b\u0430\u0441\u0441).<\/li>\n<\/ul>\n<p>  <\/p>\n<h3 id=\"nimble\">Nimble<\/h3>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u043c\u0435\u0440\u0442\u0432\u043e \u2014 \u0443\u043c\u0435\u0440\u0435\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442. \u0412 nimble \u043a\u0443\u0447\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043d\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u043b\u0438\u0441\u044c (\u0430 \u0432 nim \u044d\u0442\u043e \u0441\u043c\u0435\u0440\u0442\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e) \u2014 \u0438 \u0438\u0445 \u043d\u0435 \u0443\u0431\u0438\u0440\u0430\u044e\u0442. \u041d\u0438\u043a\u0442\u043e \u0437\u0430 \u044d\u0442\u0438\u043c \u043d\u0435 \u0441\u043b\u0435\u0434\u0438\u0442. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u043e\u0431\u0440\u0430\u0442\u043d\u0430\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u044c, &#171;\u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0437\u044f\u0442\u044c \u0438 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0440\u0435\u043f\u044b&#187;, \u043d\u043e \u0432\u0441\u0451 \u0436\u0435&#8230;<\/p>\n<p>  <\/p>\n<h3 id=\"dyryavye-abstrakcii\">\u0414\u044b\u0440\u044f\u0432\u044b\u0435 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438<\/h3>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0442\u0430\u043a\u043e\u0439 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Leaky_abstraction\" rel=\"nofollow\">\u0437\u0430\u043a\u043e\u043d \u0434\u044b\u0440\u044f\u0432\u044b\u0445 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0439<\/a> \u2014 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044e, \u043d\u043e \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u0432\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u0442\u0435 \u0432 \u043d\u0435\u0439 &#171;\u0434\u044b\u0440\u0443&#187;, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u0442 \u0432\u0430\u0441 \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0438\u0436\u0435. Nim \u2014 \u044d\u0442\u043e \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u044f \u043d\u0430\u0434 C \u0438 C++, \u0438 \u0440\u0430\u043d\u043e \u0438\u043b\u0438 \u043f\u043e\u0437\u0434\u043d\u043e \u0432\u044b \u0442\u0443\u0434\u0430 &#171;\u043f\u0440\u043e\u0432\u0430\u043b\u0438\u0442\u0435\u0441\u044c&#187;. \u0421\u043f\u043e\u0440\u0438\u043c, \u0432\u0430\u043c \u0442\u0430\u043c \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f?<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">Error: execution of an external compiler program 'g++ -c  -w -w -fpermissive -pthread   -I\/usr\/lib\/nim -I\/home\/user\/c4\/systems\/network -o  \/home\/user\/.cache\/nim\/enet_d\/@m..@s..@s..@s..@s..@s..@s.nimble@spkgs@smsgpack4nim-0.3.0@smsgpack4nim.nim.cpp:6987:136: note:   initializing argument 2 of \u2018void unpack_type__k2dhaoojunqoSwgmQ9bNNug(tyObject_MsgStreamcolonObjectType___kto5qgghQl207nm2KQZEDA*, NU&amp;)\u2019  6987 | N_LIB_PRIVATE N_NIMCALL(void, unpack_type__k2dhaoojunqoSwgmQ9bNNug)(tyObject_MsgStreamcolonObjectType___kto5qgghQl207nm2KQZEDA* s, NU&amp; val) { nimfr_(\"unpack_type\", \"\/home\/user\/.nimble\/pkgs\/msgpack4nim-0.3.0\/msgpack4nim.nim\");       |                                                                                                                       <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\/usr\/bin\/ld: \/home\/user\/.cache\/nim\/enet_d\/stdlib_dollars.nim.cpp.o: in function `dollar___uR9bMx2FZlD8AoPom9cVY9ctA(tyObject_ConnectMessage__e5GUVMJGtJeVjEZUTYbwnA*)': stdlib_dollars.nim.cpp:(.text+0x229): undefined reference to `resizeString(NimStringDesc*, long)' \/usr\/bin\/ld: stdlib_dollars.nim.cpp:(.text+0x267): undefined reference to `resizeString(NimStringDesc*, long)' \/usr\/bin\/ld: stdlib_dollars.nim.cpp:(.text+0x2a2): undefined reference to `resizeString(NimStringDesc*, long)'<\/code><\/pre>\n<p>  <\/p>\n<h1 id=\"itak\">\u0418\u0442\u0430\u043a<\/h1>\n<p>  <\/p>\n<p>\u042f \u0442\u0443\u043f\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442. \u042f \u043d\u0435 \u0445\u043e\u0447\u0443 \u0437\u043d\u0430\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 GC, \u0447\u0442\u043e \u0442\u0430\u043c \u0438 \u043a\u0430\u043a \u043b\u0438\u043d\u043a\u0443\u0435\u0442\u0441\u044f, \u043a\u0443\u0434\u0430 \u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438 \u043a\u0430\u043a \u0443\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u043c\u0443\u0441\u043e\u0440. \u042d\u0442\u043e \u043a\u0430\u043a \u0441 \u043c\u0430\u0448\u0438\u043d\u043e\u0439 \u2014 \u044f \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u043e\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u0441\u0445\u043e\u0434-\u0440\u0430\u0437\u0432\u0430\u043b, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u043a\u043e\u0440\u043e\u0431\u043a\u0443 \u043f\u0435\u0440\u0435\u0434\u0430\u0447, \u043c\u0430\u0441\u043b\u043e \u0442\u0430\u043c \u043d\u0430\u0434\u043e \u0437\u0430\u043b\u0438\u0432\u0430\u0442\u044c \u0438 \u043f\u0440\u043e\u0447\u0435\u0435, \u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0443 \u0441\u0435\u0441\u0442\u044c \u0438 \u0435\u0445\u0430\u0442\u044c (\u043f\u0440\u0438\u0447\u0451\u043c \u0431\u044b\u0441\u0442\u0440\u043e) \u043d\u0430 \u0432\u0435\u0447\u0435\u0440\u0438\u043d\u043a\u0443. \u041c\u0430\u0448\u0438\u043d\u0430 \u2014 \u043d\u0435 \u0446\u0435\u043b\u044c, \u0430 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u0446\u0435\u043b\u0438. \u0415\u0441\u043b\u0438 \u043e\u043d\u0430 \u0441\u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f \u2014 \u044f \u043d\u0435 \u0445\u043e\u0447\u0443 \u043b\u0435\u0437\u0442\u044c \u0432 \u043a\u0430\u043f\u043e\u0442, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0432\u0435\u0437\u0443 \u0435\u0451 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 (\u0432 \u0441\u043c\u044b\u0441\u043b\u0435, \u043e\u0442\u043a\u0440\u043e\u044e issue \u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435), \u0438 \u0431\u044b\u043b\u043e \u0431\u044b \u0437\u0434\u043e\u0440\u043e\u0432\u043e, \u0435\u0441\u043b\u0438 \u0431\u044b \u0447\u0438\u043d\u0438\u043b\u0438 \u0435\u0451 \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<p>  <\/p>\n<p>Nim \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0441\u0442\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439. \u041e\u0442\u0447\u0430\u0441\u0442\u0438 \u043e\u043d \u0438 \u0441\u0442\u0430\u043b, \u043d\u043e \u0432 \u0442\u043e \u0436\u0435 \u0432\u0440\u0435\u043c\u044f, \u043a\u043e\u0433\u0434\u0430 \u044f \u043c\u0447\u0443\u0441\u044c \u043d\u0430 \u044d\u0442\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u043f\u043e \u0445\u0430\u0439\u0432\u0435\u044e, \u0443 \u043c\u0435\u043d\u044f \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043b\u0435\u0441\u043e, \u0430 \u0437\u0430\u0434\u043d\u0435\u0435 \u0437\u0435\u0440\u043a\u0430\u043b\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0432\u043f\u0435\u0440\u0451\u0434. \u0417\u0430 \u043c\u043d\u043e\u0439 \u0431\u0435\u0433\u0443\u0442 \u0438\u043d\u0436\u0435\u043d\u0435\u0440\u044b \u0438 \u043d\u0430 \u0445\u043e\u0434\u0443 \u0447\u0442\u043e-\u0442\u043e \u043f\u0440\u0438\u0434\u0435\u043b\u044b\u0432\u0430\u044e\u0442 (&#171;\u0442\u0435\u043f\u0435\u0440\u044c \u0441 \u044d\u0442\u0438\u043c \u043d\u043e\u0432\u044b\u043c \u0441\u043f\u043e\u0439\u043b\u0435\u0440\u043e\u043c \u0432\u0430\u0448\u0430 \u043c\u0430\u0448\u0438\u043d\u0430 \u0435\u0449\u0451 \u0431\u044b\u0441\u0442\u0440\u0435\u0435&#187;), \u043d\u043e \u043e\u0442 \u044d\u0442\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u043e\u0442\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0430\u0433\u0430\u0436\u043d\u0438\u043a. \u0418 \u0437\u043d\u0430\u0435\u0442\u0435 \u0447\u0442\u043e? \u041c\u043d\u0435 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0447\u0435\u0440\u0442\u043e\u0432\u0441\u043a\u0438 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u044d\u0442\u0430 \u043c\u0430\u0448\u0438\u043d\u0430, \u0432\u0435\u0434\u044c \u044d\u0442\u043e \u043b\u0443\u0447\u0448\u0430\u044f \u0438\u0437 \u0432\u0441\u0435\u0445 \u043c\u0430\u0448\u0438\u043d, \u0447\u0442\u043e \u044f \u0432\u0438\u0434\u0435\u043b.<\/p>\n<\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/462577\/\"> https:\/\/habr.com\/ru\/post\/462577\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/462577\/\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vx\/0d\/ig\/vx0dignqhsbwiaewbqugebd06iw.jpeg\"><\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440!<\/p>\n<p>  <\/p>\n<p>\u0423\u0436\u0435 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0434\u0430\u0432\u043d\u043e \u044f \u043f\u0438\u0448\u0443 \u0441\u0432\u043e\u0439 \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u2014 \u0442\u0430\u043a\u043e\u0439 pet project \u0434\u043b\u044f \u0434\u0443\u0448\u0438. \u0410 \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f \u0434\u0443\u0448\u0438 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e, \u0447\u0442\u043e \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f (\u0430 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043d\u0430 \u0447\u0451\u043c \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c), \u0442\u043e \u0432\u044b\u0431\u043e\u0440 \u043c\u043e\u0439 \u043f\u0430\u043b \u043d\u0430 nim. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0447\u0443 \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e nim, \u043f\u0440\u043e \u0435\u0433\u043e \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u043f\u043b\u044e\u0441\u044b \u0438 \u043c\u0438\u043d\u0443\u0441\u044b, \u0430 \u0442\u0435\u043c\u0430 \u0433\u0435\u0439\u043c\u0434\u0435\u0432\u0430 \u043b\u0438\u0448\u044c \u0437\u0430\u0434\u0430\u0451\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043c\u043e\u0435\u0433\u043e \u043e\u043f\u044b\u0442\u0430 \u2014 \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0440\u0435\u0448\u0430\u043b, \u043a\u0430\u043a\u0438\u0435 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u043d\u044b\u043c-\u0434\u0430\u0432\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0442\u0440\u0430\u0432\u0430 \u0431\u044b\u043b\u0430 \u0437\u0435\u043b\u0435\u043d\u0435\u0435, \u0430 \u043d\u0435\u0431\u043e \u0447\u0438\u0449\u0435, \u044f \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043b nim. \u0425\u043e\u0442\u044f \u043d\u0435\u0442, \u043d\u0435 \u0442\u0430\u043a. \u0414\u0430\u0432\u043d\u044b\u043c-\u0434\u0430\u0432\u043d\u043e \u044f \u0445\u043e\u0442\u0435\u043b \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0438\u0433\u0440, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u0421\u0430\u043c\u0443\u044e \u041a\u043b\u0430\u0441\u0441\u043d\u0443\u044e \u0418\u0433\u0440\u0443 \u2014 \u0434\u0443\u043c\u0430\u044e, \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 \u044d\u0442\u043e. \u0412 \u0442\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430 Unity \u0438 Unreal Engine \u0442\u043e\u043b\u044c\u043a\u043e-\u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0430\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043b\u0443\u0445\u0443 \u0438, \u0432\u0440\u043e\u0434\u0435 \u043a\u0430\u043a, \u0435\u0449\u0451 \u043d\u0435 \u0431\u044b\u043b\u0438 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u043c\u0438. \u042f \u043d\u0435 \u0441\u0442\u0430\u043b \u0438\u0445 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0435 \u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437-\u0437\u0430 \u0436\u0430\u0434\u043d\u043e\u0441\u0442\u0438, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0437-\u0437\u0430 \u0436\u0435\u043b\u0430\u043d\u0438\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u0451 \u0441\u0430\u043c\u043e\u043c\u0443, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u0433\u0440\u043e\u0432\u043e\u0439 \u043c\u0438\u0440 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c \u0441 \u043d\u0443\u043b\u044f, \u0441 \u0441\u0430\u043c\u043e\u0433\u043e <del>\u043f\u0435\u0440\u0432\u043e\u0433\u043e<\/del> \u043d\u0443\u043b\u0435\u0432\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430. \u0414\u0430, \u0434\u043e\u043b\u0433\u043e, \u0434\u0430, \u0441\u043b\u043e\u0436\u043d\u043e, \u0437\u0430\u0442\u043e \u0441\u0430\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043f\u0440\u0438\u043d\u043e\u0441\u0438\u0442 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435 \u2014 \u0430 \u0447\u0442\u043e \u0435\u0449\u0451 \u0434\u043b\u044f \u0441\u0447\u0430\u0441\u0442\u044c\u044f \u043d\u0430\u0434\u043e?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-296528","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296528","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=296528"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/296528\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}