{"id":336087,"date":"2022-07-24T09:00:05","date_gmt":"2022-07-24T09:00:05","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=336087"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=336087","title":{"rendered":"<span>\u041a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u044b \u043f\u0440\u043e\u0442\u0438\u0432 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u0432<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1f8\/3cf\/578\/1f83cf5781fb9c72841d8f8f54891963.png\" width=\"780\" height=\"440\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1f8\/3cf\/578\/1f83cf5781fb9c72841d8f8f54891963.png\"\/><figcaption><\/figcaption><\/figure>\n<h3>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Rust, Delphi \u0438 Lazarus (\u0430 \u0442\u0430\u043a\u0436\u0435 Java \u0438 Python)<\/h3>\n<p>\u0414\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 Rust. \u042f\u0437\u044b\u043a \u0441 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u043d\u043e \u0431\u0435\u0437 \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430. \u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043e\u0431\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a zero-cost \u0432 runtime \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u0437\u043a\u0430! \u041f\u043e \u043f\u043e \u0445\u043e\u0434\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u043e\u0437\u043d\u0438\u043a \u0432\u043e\u043f\u0440\u043e\u0441 \u2013 \u0430 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434 Rust \u0431\u044b\u0441\u0442\u0440\u0435\u0435\/\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u0430\u0432\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Delphi?<\/p>\n<h3>\u041e \u0442\u0435\u0441\u0442\u0435<\/h3>\n<p>\u0414\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0431\u044b\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0434\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0435\u0441\u0442\u0430: &#171;\u043e\u0431\u0445\u043e\u0434 \u043a\u043e\u043d\u0435\u043c \u0434\u043e\u0441\u043a\u0438&#187; (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e) \u0438 &#171;\u043f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b&#187; (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430). \u041d\u0443 \u0438 \u0440\u0430\u0437 \u043f\u043e\u0448\u043b\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u043e, \u0442\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0432\u043e\u0432\u043b\u0435\u0447\u044c \u0432 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 &#171;\u0432\u0435\u0441\u043e\u0432\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438&#187; \u2014 \u0447\u0438\u0441\u0442\u043e \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0431\u0430\u0432\u044b. \u0422\u0430\u043a, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u043d\u044b\u0445 \u0433\u043e\u0441\u0442\u0435\u0439, \u0432 \u0437\u0430\u0431\u0435\u0433\u0435 \u0441\u0442\u0430\u043b\u0438 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c Java (\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0432 \u0431\u0430\u0439\u0442-\u043a\u043e\u0434) \u0438 Python (\u0447\u0438\u0441\u0442\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440). \u0421\u0438 \u043a \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044e \u0434\u043e\u043f\u0443\u0449\u0435\u043d \u043d\u0435 \u0431\u044b\u043b \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043c\u043e\u0435\u0433\u043e \u0441\u043b\u0430\u0431\u043e\u0433\u043e \u0437\u043d\u0430\u043d\u0438\u044f \u043e\u043d\u043e\u0433\u043e (\u043a\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u0441\u0432\u043e\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u043e\u0432 \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c, \u0432\u043a\u043b\u044e\u0447\u0443 \u0432 \u0441\u0442\u0430\u0442\u044c\u044e).<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443, \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043d\u0443\u0436\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u0414\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u043a\u043e\u043d\u0435\u043c \u0434\u043e\u0441\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0434\u043e\u0441\u043a\u0430 4\u04457, \u044d\u0442\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0442\u0435\u0441\u0442 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e, \u043d\u043e \u0438 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u043b\u0435 \u0443\u0433\u0430\u0441\u0430\u043d\u0438\u044f \u0421\u043e\u043b\u043d\u0446\u0430. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0438\u0449\u0435\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e 100 \u043c\u043b\u043d, \u0438\u043d\u0430\u0447\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0431\u0445\u043e\u0434 \u043a\u043e\u043d\u0435\u043c \u0434\u043e\u0441\u043a\u0438, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 java.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">\/**  * Store for statistic  *\/ static class State {     int path_count_total = 0;     int path_count_ok = 0; }  \/**  * Calc and print all full knight's tours over specified board  *  * @param size_x board size x  * @param size_y board size y  * @param x0     tour start cell x  * @param y0     tour start cell y  *\/ static void calc_horse(int size_x, int size_y, int x0, int y0) {     System.out.println(String.format(\"Hello, horse, board %sx%s\", size_x, +size_y));      int[][] grid = new int[size_y][size_x];      State state = new State();      Date time_0 = new Date();     step_horce(1, state, x0, y0, grid);     Date time_1 = new Date();      System.out.println(String.format(\"Board %sx%s, full path count: %s, total path count: %s\", size_x, size_y, state.path_count_ok, state.path_count_total));      double duration_sec = (time_1.getTime() - time_0.getTime()) \/ 1000.0;     System.out.println(\"duration: \" + duration_sec + \" sec\"); }  private static void step_horce(int step_no, State state, int x0, int y0, int[][] position) {     \/\/ ---------------------     \/\/ Make my step     position[y0][x0] = step_no;      \/\/ ---------------------     \/\/ Try to do next 8 steps     int size_y = position.length;     int size_x = position[0].length;     int board_size = size_x * size_y;      int[][] step_diffs = {{1, -2}, {2, -1}, {2, 1}, {1, 2}, {-1, 2}, {-2, 1}, {-2, -1}, {-1, -2}};      int steps_done = 0;     for (int s = 0; s &lt; 8; s++) {         int[] step_diff = step_diffs[s];         int x1 = x0 + step_diff[0];         int y1 = y0 + step_diff[1];          if (x1 &lt; 0 || x1 >= size_x) {             continue;         }         if (y1 &lt; 0 || y1 >= size_y) {             continue;         }         if (position[y1][x1] != 0) {             continue;         }          step_horce(step_no + 1, state, x1, y1, position);          steps_done = steps_done + 1;     }      \/\/ ---------------------     \/\/ Whe have no more cell to step?     if (steps_done == 0) {         state.path_count_total = state.path_count_total + 1;     }      if (steps_done == 0 &amp;&amp; step_no == board_size) {         state.path_count_ok = state.path_count_ok + 1;         System.out.println(String.format(\"Full path count: %s\/%s\", state.path_count_ok, state.path_count_total));         print_board(position);         System.out.println();     }      \/\/ ---------------------     \/\/ Make my step back     position[y0][x0] = 0; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 java.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">public static void print_primes(int start_from, int count) {     System.out.println(\"Hello, print_primes!\");      int n = start_from;     while (count > 0) {         Date time_0 = new Date();         boolean is_prime = is_prime_number(n);         Date time_1 = new Date();          if (is_prime) {             long duration = (time_1.getTime() - time_0.getTime());             System.out.println(n + \", \" + duration + \" msec\");             count = count - 1;         }          n = n + 1;     } }  public static boolean is_prime_number(int number) {     int i = 2;     while (i &lt; number) {         if (number % i == 0) {             return false;         }         i = i + 1;     }      return true; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u041d\u0430\u00a0\u0432\u0441\u0435\u0445\u00a0\u044f\u0437\u044b\u043a\u0430\u0445\u00a0\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u00a0\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439.\u00a0\u041f\u043e\u043b\u043d\u044b\u0439\u00a0\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u00a0\u0442\u0435\u0441\u0442\u043e\u0432\u00a0<a href=\"https:\/\/github.com\/SazonovDenis\/test-speed\" rel=\"noopener noreferrer nofollow\">\u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 GitHub<\/a>.<\/p>\n<h3>\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f<\/h3>\n<p>\u041c\u043e\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0442\u0430\u043a\u0438\u043c\u0438: \u043f\u0435\u0440\u0432\u043e\u0435-\u0432\u0442\u043e\u0440\u043e\u0435 \u043c\u0435\u0441\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442 Delphi\/Lazarus \u0438 Rust, \u0441 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439 \u043f\u043b\u044e\u0441-\u043c\u0438\u043d\u0443\u0441 50% \u2014 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043e\u043d \u0438 \u0432 \u0410\u0444\u0440\u0438\u043a\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<p>\u0421 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u043c \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435\u043c, \u043e\u0442 \u0434\u0432\u0443\u0445 \u0440\u0430\u0437 \u0438 \u0431\u043e\u043b\u0435\u0435 \u2014 Java. \u0412\u0441\u0435-\u0442\u0430\u043a\u0438 \u0431\u0430\u0439\u0442-\u043a\u043e\u0434 \u044d\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438.<\/p>\n<p>\u041d\u0443 \u0438 \u0432 \u0445\u0432\u043e\u0441\u0442\u0435, \u0437\u0430\u0434\u044b\u0445\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0438 \u0432\u0441\u043f\u043e\u0442\u0435\u0432\u0448\u0438\u0439, \u0441 \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 Python.<\/p>\n<h3>\u0422\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430<\/h3>\n<p>Windows 10<br \/>i5-3470,\u00a03.2\u00a0\u0413\u0413\u0446<br \/>\u041e\u0417\u0423\u00a08\u00a0\u0413\u0411<\/p>\n<p>\u041f\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f\u043c &#8212; \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0435\u0441\u0442 \u043d\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u044f\u0434\u0440\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u044a\u044f\u0434\u0435\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 (\u0442\u0430\u043a \u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c). \u0421\u0431\u043e\u0440\u0449\u0438\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430, \u0441\u0443\u0434\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443, \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c, \u0442.\u043a. \u043f\u0430\u043c\u044f\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f.<\/p>\n<details class=\"spoiler\">\n<summary>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430.<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9be\/c2b\/b79\/9bec2bb790b6962558e8572648ac44bf.png\" width=\"711\" height=\"372\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9be\/c2b\/b79\/9bec2bb790b6962558e8572648ac44bf.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ae1\/7da\/dbd\/ae17dadbddb8c3a5da6a3b2e4dac6500.png\" width=\"711\" height=\"372\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ae1\/7da\/dbd\/ae17dadbddb8c3a5da6a3b2e4dac6500.png\"\/><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/121\/dc8\/b29\/121dc8b29054c57f4e084a98c8cee003.png\" width=\"711\" height=\"372\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/121\/dc8\/b29\/121dc8b29054c57f4e084a98c8cee003.png\"\/><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<h3>\u0418\u0442\u043e\u0433 \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0439<\/h3>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00a0\u043b\u0438\u0447\u043d\u043e\u00a0\u0434\u043b\u044f\u00a0\u043c\u0435\u043d\u044f\u00a0\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f\u00a0\u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c.\u00a0\u0412\u043e\u0442\u00a0\u0432\u044b\u00a0\u043a\u0430\u043a\u043e\u0433\u043e\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u00a0\u043e\u0436\u0438\u0434\u0430\u043b\u0438\u00a0\u0431\u044b?<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/dff\/614\/50d\/dff61450dcf3e24083d0848eaabb5805.png\" width=\"751\" height=\"505\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dff\/614\/50d\/dff61450dcf3e24083d0848eaabb5805.png\"\/><figcaption><\/figcaption><\/figure>\n<p>Python\u00a0\u043d\u0435\u00a0\u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043b,\u00a0\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u00a0\u2014\u00a0\u043f\u0440\u0438\u0437\u043d\u0430\u043a\u00a0\u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u0430\u00a0:-).<\/p>\n<p>\u041a\u043e\u0434 Rust \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043d\u0430 50%-400%, \u0447\u0435\u043c Delphi\/Lazarus, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442, \u0445\u043e\u0442\u044f \u0438 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0439.<\/p>\n<p>\u0410 \u0432\u043e\u0442 Java \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0434\u0438\u0432\u0438\u043b\u0430. \u0417\u0430 \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0435\u0439 \u043d\u0435 \u0434\u043e\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a, \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0437\u0430\u043c\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u0451 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u043c. \u041d\u0435\u0442, \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u2014 JIT \u0442\u0432\u043e\u0440\u0438\u0442 \u0447\u0443\u0434\u0435\u0441\u0430 \u0438 \u0432\u0441\u0435 \u0442\u0430\u043a\u043e\u0435, \u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0440\u0430\u0432\u043d\u044b\u0445 \u0441 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c&#8230;<\/p>\n<h3>\u0418\u0442\u043e\u0433\u043e<\/h3>\n<p>\u0412\u044b\u0432\u043e\u0434\u044b\u00a0\u0434\u043b\u044f\u00a0\u0441\u0435\u0431\u044f\u00a0\u044f\u00a0\u0441\u0434\u0435\u043b\u0430\u043b\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>Java \u0440\u0443\u043b\u0438\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 Java \u0435\u0441\u0442\u044c \u043a\u0443\u0441\u043e\u043a \u0442\u043e\u0440\u043c\u043e\u0437\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0447\u0435\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u2014 \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0430 \u043d\u0435 \u0432 &#171;\u0442\u043e\u0440\u043c\u043e\u0437\u043d\u0443\u0442\u043e\u0441\u0442\u0438&#187; java;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0435\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e, \u043d\u043e C++ \u043f\u0443\u0433\u0430\u0435\u0442, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Rust \u0432\u043c\u0435\u0441\u0442\u043e \u0421\u0438 \u043f\u043e\u043a\u0430 \u0440\u0430\u043d\u043e. \u041d\u0443\u0436\u0435\u043d \u044f\u0437\u044b\u043a \u0441 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u043a\u043e\u0434\u043e\u043c &#8212; \u044d\u0442\u043e \u043f\u043e\u043a\u0430 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0421\u0438 \u0438\u043b\u0438 Free Pascal.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/678628\/\"> https:\/\/habr.com\/ru\/post\/678628\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Rust, Delphi \u0438 Lazarus (\u0430 \u0442\u0430\u043a\u0436\u0435 Java \u0438 Python)<\/h3>\n<p>\u0414\u0430\u0432\u043d\u043e \u0445\u043e\u0442\u0435\u043b \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 Rust. \u042f\u0437\u044b\u043a \u0441 \u044d\u043a\u043e\u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434, \u043d\u043e \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e, \u043d\u043e \u0431\u0435\u0437 \u0441\u0431\u043e\u0440\u0449\u0438\u043a\u0430 \u043c\u0443\u0441\u043e\u0440\u0430. \u0421 \u0443\u0447\u0435\u0442\u043e\u043c \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u044c\u044e \u043e\u0431\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a zero-cost \u0432 runtime \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u0430\u0437\u043a\u0430! \u041f\u043e \u043f\u043e \u0445\u043e\u0434\u0443 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f \u0438 \u0432\u043e\u0437\u043d\u0438\u043a \u0432\u043e\u043f\u0440\u043e\u0441 \u2013 \u0430 \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u0434 Rust \u0431\u044b\u0441\u0442\u0440\u0435\u0435\/\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0432 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0434\u0430\u0432\u043d\u043e \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, Delphi?<\/p>\n<h3>\u041e \u0442\u0435\u0441\u0442\u0435<\/h3>\n<p>\u0414\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0431\u044b\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u0434\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0442\u0435\u0441\u0442\u0430: &#171;\u043e\u0431\u0445\u043e\u0434 \u043a\u043e\u043d\u0435\u043c \u0434\u043e\u0441\u043a\u0438&#187; (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e) \u0438 &#171;\u043f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b&#187; (\u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0446\u0435\u043b\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430). \u041d\u0443 \u0438 \u0440\u0430\u0437 \u043f\u043e\u0448\u043b\u043e \u0442\u0430\u043a\u043e\u0435 \u0434\u0435\u043b\u043e, \u0442\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0432\u043e\u0432\u043b\u0435\u0447\u044c \u0432 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u044f\u0437\u044b\u043a\u0438 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0439 &#171;\u0432\u0435\u0441\u043e\u0432\u043e\u0439 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438&#187; \u2014 \u0447\u0438\u0441\u0442\u043e \u0434\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0431\u0430\u0432\u044b. \u0422\u0430\u043a, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u043d\u044b\u0445 \u0433\u043e\u0441\u0442\u0435\u0439, \u0432 \u0437\u0430\u0431\u0435\u0433\u0435 \u0441\u0442\u0430\u043b\u0438 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c Java (\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0432 \u0431\u0430\u0439\u0442-\u043a\u043e\u0434) \u0438 Python (\u0447\u0438\u0441\u0442\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440). \u0421\u0438 \u043a \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u044e \u0434\u043e\u043f\u0443\u0449\u0435\u043d \u043d\u0435 \u0431\u044b\u043b \u043f\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0435 \u043c\u043e\u0435\u0433\u043e \u0441\u043b\u0430\u0431\u043e\u0433\u043e \u0437\u043d\u0430\u043d\u0438\u044f \u043e\u043d\u043e\u0433\u043e (\u043a\u0442\u043e \u043d\u0430\u043f\u0438\u0448\u0435\u0442 \u0441\u0432\u043e\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u043e\u0432 \u2014 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c, \u0432\u043a\u043b\u044e\u0447\u0443 \u0432 \u0441\u0442\u0430\u0442\u044c\u044e).<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043f\u043e-\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443, \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043d\u0443\u0436\u043d\u0430\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430. \u0414\u043b\u044f \u043e\u0431\u0445\u043e\u0434\u0430 \u043a\u043e\u043d\u0435\u043c \u0434\u043e\u0441\u043a\u0438 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0434\u043e\u0441\u043a\u0430 4\u04457, \u044d\u0442\u043e \u0440\u0430\u0437\u0443\u043c\u043d\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u0442\u0435\u0441\u0442 \u043d\u0435 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043b \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e, \u043d\u043e \u0438 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0441\u044f \u043b\u0438\u0448\u044c \u043f\u043e\u0441\u043b\u0435 \u0443\u0433\u0430\u0441\u0430\u043d\u0438\u044f \u0421\u043e\u043b\u043d\u0446\u0430. \u041f\u0440\u043e\u0441\u0442\u044b\u0435 \u0447\u0438\u0441\u043b\u0430 \u0438\u0449\u0435\u043c \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441\u043e 100 \u043c\u043b\u043d, \u0438\u043d\u0430\u0447\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u044b\u0441\u0442\u0440\u043e.<\/p>\n<details class=\"spoiler\">\n<summary>\u041e\u0431\u0445\u043e\u0434 \u043a\u043e\u043d\u0435\u043c \u0434\u043e\u0441\u043a\u0438, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 java.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">\/**  * Store for statistic  *\/ static class State {     int path_count_total = 0;     int path_count_ok = 0; }  \/**  * Calc and print all full knight's tours over specified board  *  * @param size_x board size x  * @param size_y board size y  * @param x0     tour start cell x  * @param y0     tour start cell y  *\/ static void calc_horse(int size_x, int size_y, int x0, int y0) {     System.out.println(String.format(\"Hello, horse, board %sx%s\", size_x, +size_y));      int[][] grid = new int[size_y][size_x];      State state = new State();      Date time_0 = new Date();     step_horce(1, state, x0, y0, grid);     Date time_1 = new Date();      System.out.println(String.format(\"Board %sx%s, full path count: %s, total path count: %s\", size_x, size_y, state.path_count_ok, state.path_count_total));      double duration_sec = (time_1.getTime() - time_0.getTime()) \/ 1000.0;     System.out.println(\"duration: \" + duration_sec + \" sec\"); }  private static void step_horce(int step_no, State state, int x0, int y0, int[][] position) {     \/\/ ---------------------     \/\/ Make my step     position[y0][x0] = step_no;      \/\/ ---------------------     \/\/ Try to do next 8 steps     int size_y = position.length;     int size_x = position[0].length;     int board_size = size_x * size_y;      int[][] step_diffs = {{1, -2}, {2, -1}, {2, 1}, {1, 2}, {-1, 2}, {-2, 1}, {-2, -1}, {-1, -2}};      int steps_done = 0;     for (int s = 0; s &lt; 8; s++) {         int[] step_diff = step_diffs[s];         int x1 = x0 + step_diff[0];         int y1 = y0 + step_diff[1];          if (x1 &lt; 0 || x1 >= size_x) {             continue;         }         if (y1 &lt; 0 || y1 >= size_y) {             continue;         }         if (position[y1][x1] != 0) {             continue;         }          step_horce(step_no + 1, state, x1, y1, position);          steps_done = steps_done + 1;     }      \/\/ ---------------------     \/\/ Whe have no more cell to step?     if (steps_done == 0) {         state.path_count_total = state.path_count_total + 1;     }      if (steps_done == 0 &amp;&amp; step_no == board_size) {         state.path_count_ok = state.path_count_ok + 1;         System.out.println(String.format(\"Full path count: %s\/%s\", state.path_count_ok, state.path_count_total));         print_board(position);         System.out.println();     }      \/\/ ---------------------     \/\/ Make my step back     position[y0][x0] = 0; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u0438\u0441\u043a \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0447\u0438\u0441\u0435\u043b, \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043d\u0430 java.<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"java\">public static void print_primes(int start_from, int count) {     System.out.println(\"Hello, print_primes!\");      int n = start_from;     while (count > 0) {         Date time_0 = new Date();         boolean is_prime = is_prime_number(n);         Date time_1 = new Date();          if (is_prime) {             long duration = (time_1.getTime() - time_0.getTime());             System.out.println(n + \", \" + duration + \" msec\");             count = count - 1;         }          n = n + 1;     } }  public static boolean is_prime_number(int number) {     int i = 2;     while (i &lt; number) {         if (number % i == 0) {             return false;         }         i = i + 1;     }      return true; }<\/code><\/pre>\n<\/p>\n<\/div>\n<\/details>\n<p>\u041d\u0430\u00a0\u0432\u0441\u0435\u0445\u00a0\u044f\u0437\u044b\u043a\u0430\u0445\u00a0\u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u00a0\u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439.\u00a0\u041f\u043e\u043b\u043d\u044b\u0439\u00a0\u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u00a0\u0442\u0435\u0441\u0442\u043e\u0432\u00a0<a href=\"https:\/\/github.com\/SazonovDenis\/test-speed\" rel=\"noopener noreferrer nofollow\">\u0432\u044b\u043b\u043e\u0436\u0435\u043d \u043d\u0430 GitHub<\/a>.<\/p>\n<h3>\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f<\/h3>\n<p>\u041c\u043e\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0442\u0430\u043a\u0438\u043c\u0438: \u043f\u0435\u0440\u0432\u043e\u0435-\u0432\u0442\u043e\u0440\u043e\u0435 \u043c\u0435\u0441\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442 Delphi\/Lazarus \u0438 Rust, \u0441 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439 \u043f\u043b\u044e\u0441-\u043c\u0438\u043d\u0443\u0441 50% \u2014 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u043e\u043d \u0438 \u0432 \u0410\u0444\u0440\u0438\u043a\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u0439 \u043a\u043e\u0434.<\/p>\n<p>\u0421 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u043c \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435\u043c, \u043e\u0442 \u0434\u0432\u0443\u0445 \u0440\u0430\u0437 \u0438 \u0431\u043e\u043b\u0435\u0435 \u2014 Java. \u0412\u0441\u0435-\u0442\u0430\u043a\u0438 \u0431\u0430\u0439\u0442-\u043a\u043e\u0434 \u044d\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043d\u0435 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e\u0439 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438.<\/p>\n<p>\u041d\u0443 \u0438 \u0432 \u0445\u0432\u043e\u0441\u0442\u0435, \u0437\u0430\u0434\u044b\u0445\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u0438 \u0432\u0441\u043f\u043e\u0442\u0435\u0432\u0448\u0438\u0439, \u0441 \u043e\u0442\u0441\u0442\u0430\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0434\u0435\u0441\u044f\u0442\u043e\u043a \u0438 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437 \u0431\u0443\u0434\u0435\u0442 Python.<\/p>\n<h3>\u0422\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u043c\u0430\u0448\u0438\u043d\u0430<\/h3>\n<p>Windows 10<br \/>i5-3470,\u00a03.2\u00a0\u0413\u0413\u0446<br \/>\u041e\u0417\u0423\u00a08\u00a0\u0413\u0411<\/p>\n<p>\u041f\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f\u043c &#8212; \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0435\u0441\u0442 \u043d\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u0434\u043d\u043e \u044f\u0434\u0440\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u044a\u044f\u0434\u0435\u0440\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 (\u0442\u0430\u043a \u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c). \u0421\u0431\u043e\u0440\u0449\u0438\u043a\u0443 \u043c\u0443\u0441\u043e\u0440\u0430, \u0441\u0443\u0434\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443, \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c, \u0442.\u043a. \u043f\u0430\u043c\u044f\u0442\u044c \u0432\u044b\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f.<\/p>\n<details class=\"spoiler\">\n<summary>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430.<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<h3>\u0418\u0442\u043e\u0433 \u0438\u0441\u043f\u044b\u0442\u0430\u043d\u0438\u0439<\/h3>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u00a0\u043b\u0438\u0447\u043d\u043e\u00a0\u0434\u043b\u044f\u00a0\u043c\u0435\u043d\u044f\u00a0\u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f\u00a0\u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u043c.\u00a0\u0412\u043e\u0442\u00a0\u0432\u044b\u00a0\u043a\u0430\u043a\u043e\u0433\u043e\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u00a0\u043e\u0436\u0438\u0434\u0430\u043b\u0438\u00a0\u0431\u044b?<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>Python\u00a0\u043d\u0435\u00a0\u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043b,\u00a0\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u00a0\u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u00a0\u2014\u00a0\u043f\u0440\u0438\u0437\u043d\u0430\u043a\u00a0\u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u0430\u00a0:-).<\/p>\n<p>\u041a\u043e\u0434 Rust \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0435\u0435 \u043d\u0430 50%-400%, \u0447\u0435\u043c Delphi\/Lazarus, \u0447\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u044b\u0432\u0430\u0435\u0442, \u0445\u043e\u0442\u044f \u0438 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0439.<\/p>\n<p>\u0410 \u0432\u043e\u0442 Java \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0434\u0438\u0432\u0438\u043b\u0430. \u0417\u0430 \u043c\u043d\u043e\u0433\u043e \u043b\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0435\u0439 \u043d\u0435 \u0434\u043e\u0432\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0432\u043e\u0442 \u0442\u0430\u043a, \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0437\u0430\u043c\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0435\u0451 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0438\u044f\u0442\u043d\u044b\u043c \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u043c. \u041d\u0435\u0442, \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u2014 JIT \u0442\u0432\u043e\u0440\u0438\u0442 \u0447\u0443\u0434\u0435\u0441\u0430 \u0438 \u0432\u0441\u0435 \u0442\u0430\u043a\u043e\u0435, \u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u0440\u0430\u0432\u043d\u044b\u0445 \u0441 \u043c\u0430\u0448\u0438\u043d\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c&#8230;<\/p>\n<h3>\u0418\u0442\u043e\u0433\u043e<\/h3>\n<p>\u0412\u044b\u0432\u043e\u0434\u044b\u00a0\u0434\u043b\u044f\u00a0\u0441\u0435\u0431\u044f\u00a0\u044f\u00a0\u0441\u0434\u0435\u043b\u0430\u043b\u00a0\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ul>\n<li>\n<p>Java \u0440\u0443\u043b\u0438\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043d\u0430 Java \u0435\u0441\u0442\u044c \u043a\u0443\u0441\u043e\u043a \u0442\u043e\u0440\u043c\u043e\u0437\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 \u0447\u0435\u043c-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u043c \u2014 \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u043a\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u0440\u043e\u0441\u0442\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0430 \u043d\u0435 \u0432 &#171;\u0442\u043e\u0440\u043c\u043e\u0437\u043d\u0443\u0442\u043e\u0441\u0442\u0438&#187; java;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0447\u0435\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e, \u043d\u043e C++ \u043f\u0443\u0433\u0430\u0435\u0442, \u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Rust \u0432\u043c\u0435\u0441\u0442\u043e \u0421\u0438 \u043f\u043e\u043a\u0430 \u0440\u0430\u043d\u043e. \u041d\u0443\u0436\u0435\u043d \u044f\u0437\u044b\u043a \u0441 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u043e\u043c \u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u043c \u043a\u043e\u0434\u043e\u043c &#8212; \u044d\u0442\u043e \u043f\u043e\u043a\u0430 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0421\u0438 \u0438\u043b\u0438 Free Pascal.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/678628\/\"> https:\/\/habr.com\/ru\/post\/678628\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-336087","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/336087","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=336087"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/336087\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=336087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=336087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=336087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}