{"id":259871,"date":"2015-06-22T18:32:02","date_gmt":"2015-06-22T14:32:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=259871"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=259871","title":{"rendered":"Nim \u0438 Go \u043f\u0440\u043e\u0442\u0438\u0432 Wikipeadia"},"content":{"rendered":"<br \/>\n<h1>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h1>\n<p>  \u041f\u0440\u043e\u0448\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u044f \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e\u0448\u043b\u0430 \u043f\u043e\u0434 \u0437\u043d\u0430\u043a\u043e\u043c Go.<br \/>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0432\u0441\u0435 \u0447\u0430\u0449\u0435 \u043d\u0430\u0447\u0430\u043b \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043e \u043d\u043e\u0432\u043e\u043c \u044f\u0437\u044b\u043a\u0435 Nim.<br \/>  \u041e\u0431\u0430 \u044f\u0437\u044b\u043a\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0435, \u0431\u044b\u0441\u0442\u0440\u044b\u0435, \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u0438\u0435 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430. Go \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u0437\u0430\u0432\u043e\u0435\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0432\u044c \u043c\u043d\u043e\u0433\u0438\u0445, Nim \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u0443\u0442\u044c. \u041c\u043d\u0435 \u0431\u044b\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043e\u0431\u0430 \u044f\u0437\u044b\u043a\u0430, \u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435 \u043f\u0443\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 for fun.<\/p>\n<h1>\u0418\u0434\u0435\u044f<\/h1>\n<p>  \u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u043d\u043e\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0435\u0433\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435. \u041f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u2014 \u044d\u0442\u043e \u0441\u043a\u0443\u0447\u043d\u043e. \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0435\u0435. \u0418 \u0442\u0430\u043a\u0430\u044f \u0438\u0434\u0435\u044f \u043f\u0440\u0438\u0448\u043b\u0430. \u0423 \u0432\u0441\u0435\u0445 \u0431\u044b\u043b \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0445\u043e\u0434\u0438\u0448\u044c \u043d\u0430 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044e \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0448\u044c \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u0441\u0441\u044b\u043b\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u044e. \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043d\u044f\u0442\u0438\u0439 \u043e\u0442\u0434\u0435\u043b\u044f\u044e\u0442 \u043e\u0434\u043d\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0439. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0439\u0442\u0438, \u0447\u0442\u043e \u0431\u044b \u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u0410 \u0434\u043e \u0441\u0442\u0430\u0442\u044c\u0438 \u0412.<\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<h1>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c<\/h1>\n<p>  \u0418\u0434\u0435\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u0430\u044f. \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0439 wiki-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439. \u0418 \u043d\u0430\u0447\u0438\u043d\u0430 \u044f \u0441 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 wiki-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u044b \u0445\u043e\u0434\u0438\u043c \u0432 \u0446\u0438\u043a\u043b\u0435: \u0432\u0437\u044f\u043b \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u0438-\u0441\u043a\u0430\u0447\u0430\u043b-\u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u043b-\u0437\u0430\u043f\u0438\u0441\u0430\u043b \u0432\u0441\u0435 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u0432 \u043e\u0447\u0435\u0440\u0435\u0434\u044c-\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u0432\u044b\u0445\u043e\u0434\u0430. <br \/>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u0441\u044b\u043b\u043a\u0430\u043c \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0435\u0442 \u0443\u0436\u0435 \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u0415\u0449\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u00ab\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c-\u043f\u043e\u0442\u043e\u043c\u043e\u043a\u00bb, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u043e\u043d\u0446\u0435 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u044e \u0446\u0435\u043f\u043e\u0447\u043a\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u0414\u043b\u044f \u044d\u0442\u0438\u0445 \u0437\u0430\u0434\u0430\u0447 \u043d\u0430\u043c \u043f\u043e\u0434\u043e\u0439\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0433\u0434\u0435 \u043a\u043b\u044e\u0447\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0430\u044f wiki-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c \u0435\u0435 \u043f\u0440\u0435\u0434\u043e\u043a. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043e\u0439\u0434\u044f \u0434\u043e \u0444\u0438\u043d\u0430\u043b\u0430 \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e \u0446\u0435\u043f\u043e\u0447\u043a\u0435 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u043a\u043e\u0440\u0435\u0432\u043e\u0439 wiki-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435. <\/p>\n<h1>Go<\/h1>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 Go \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043b\u044f \u043f\u0430\u0440\u0441\u0438\u043d\u0433\u0430 HTML \u0438 \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u043d\u044b\u043c \u0438\u0437-\u0437\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043e\u0448\u0438\u0431\u043e\u043a (\u043d\u043e \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0444\u0438\u0448\u043a\u0430 \u044f\u0437\u044b\u043a\u0430).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043d\u0430 Go<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"go\">package main  import ( \t&quot;flag&quot; \t&quot;fmt&quot; \t&quot;github.com\/PuerkitoBio\/goquery&quot; \t&quot;log&quot; \t&quot;net\/url&quot; \t&quot;strings&quot; )  const stopTerm string = &quot;#stop#&quot;  var ( \tlang      string \tprintMode int )  func findLinks(url string) []string { \tresult := make([]string, 0)  \tdoc, err := goquery.NewDocument(fmt.Sprintf(&quot;https:\/\/%s.wikipedia.org%s&quot;, lang, url)) \tif err != nil { \t\tlog.Fatal(err) \t}  \tdoc.Find(&quot;a&quot;).Each(func(i int, s *goquery.Selection) { \t\thref, _ := s.Attr(&quot;href&quot;) \t\tif strings.HasPrefix(href, &quot;\/wiki\/&quot;) && !strings.Contains(href, &quot;:&quot;) && !strings.Contains(href, &quot;#&quot;) { \t\t\tresult = append(result, href) \t\t} \t})  \treturn result }  func printTerm(term string, mode int) { \tif printMode == mode { \t\tval, err := url.QueryUnescape(term) \t\tif err != nil { \t\t\tlog.Fatal(err) \t\t} \t\tfmt.Printf(&quot;%s\\n&quot;, val) \t} }  func printParent(term string, dict map[string]string) { \tval, _ := url.QueryUnescape(term) \tfmt.Printf(&quot;\\n\\n&gt;&gt; Found: %s\\n&quot;, val) \tn := dict[term] \tfor n != stopTerm { \t\tval, _ := url.QueryUnescape(n) \t\tfmt.Printf(&quot;parent: %s\\n&quot;, val) \t\tn = dict[n] \t} }  func searchPath(begin string, end string) { \tdict := make(map[string]string) \tdict[begin] = stopTerm  \tqueue := make(chan string, 10000000) \tqueue &lt;- begin  \tfor { \t\tcurrentNode := &lt;-queue \t\tprintTerm(currentNode, 1) \t\tfor _, v := range findLinks(currentNode) { \t\t\tif _, ok := dict[v]; !ok { \t\t\t\tdict[v] = currentNode \t\t\t\tif v == end { \t\t\t\t\tprintParent(v, dict) \t\t\t\t\treturn \t\t\t\t}  \t\t\t\tqueue &lt;- v  \t\t\t\tprintTerm(v, 0) \t\t\t} \t\t} \t} }  func main() { \tbeginTerm := flag.String(&quot;b&quot;, &quot;Sort&quot;, &quot;Begin wiki term&quot;) \tendTerm := flag.String(&quot;e&quot;, &quot;SAP&quot;, &quot;Finish wiki term&quot;) \tlangFlag := flag.String(&quot;l&quot;, &quot;ru&quot;, &quot;&lt;your_lang&gt;.wikipedia.org&quot;) \tprintModeFlag := flag.Int(&quot;p&quot;, 0, &quot;Print mode 0 - print all; 1- print current term; 2 - silent&quot;) \tflag.Parse()  \tlang = *langFlag \tprintMode = *printModeFlag  \tsearchPath(&quot;\/wiki\/&quot;+url.QueryEscape(*beginTerm), &quot;\/wiki\/&quot;+url.QueryEscape(*endTerm)) } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 git: <a href=\"https:\/\/bitbucket.org\/tonatoz\/go_wiki_path\">https:\/\/bitbucket.org\/tonatoz\/go_wiki_path<\/a><\/p>\n<h1>Nim<\/h1>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 Nim \u043e\u0431\u043e\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u0437\u0430\u0442\u043e \u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 9 \u0448\u0442\u0443\u043a.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a \u043d\u0430 Nim<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code>import httpclient, streams, htmlparser,     xmltree, strtabs, strutils,     queues, cgi, os  proc printTerm(term: string) =      echo decodeUrl(term)  proc findLinks(url: string) : seq[string] =     result = @[]     let html = getContent(r&quot;https:\/\/ru.wikipedia.org&quot; & url)     for a in parseHtml(newStringStream(html)).findAll(&quot;a&quot;):         let href = a.attrs[&quot;href&quot;]         if href.startsWith(&quot;\/wiki\/&quot;) and not href.contains({':', '#'}):             result.add(href)  proc printParent(term: string, dict: StringTableRef) =     printTerm(&quot;\\nFound! &quot; & term)     var n = dict[term]     while n != &quot;#stop#&quot;:         printTerm(&quot;parent: &quot; & n)         n = dict[n]  proc searchPath(beginTerm: string, endTerm: string) =      var dict = newStringTable(modeCaseInsensitive)     var queue = initQueue[string]()      dict[beginTerm] = &quot;#stop#&quot;     queue.add(beginTerm)      while true:         var currentNode = queue.dequeue           printTerm(currentNode)         for a in findLinks(currentNode):             if not dict.hasKey(a):                 dict[a] = currentNode                 if a == endTerm:                     printParent(a, dict)                     return                 queue.add(a)  let args = commandLineParams() case args.len:     of 2:         searchPath(&quot;\/wiki\/&quot; & encodeUrl(args[0]), &quot;\/wiki\/&quot; & encodeUrl(args[1]))     of 0:         searchPath(&quot;\/wiki\/Sort&quot;, &quot;\/wiki\/SAP&quot;)     else:            echo r&quot;use &gt;&gt;program &lt;begin term&gt; &lt;end term&gt;&quot; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 git: <a href=\"https:\/\/bitbucket.org\/tonatoz\/nim_wiki_path\">https:\/\/bitbucket.org\/tonatoz\/nim_wiki_path<\/a><\/p>\n<h1>\u0418\u0442\u043e\u0433\u0438<\/h1>\n<p>  \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043c\u044b \u0438\u0449\u0435\u043c \u043f\u0443\u0442 \u043e\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <a href=\"https:\/\/ru.wikipedia.org\/wiki\/Sort\">Sort<\/a> \u0434\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <a href=\"https:\/\/ru.wikipedia.org\/wiki\/SAP\">SAP<\/a>: Sort \u21d2 GNU\/Linux \u21d2 SAP<\/p>\n<p>  \u041d\u0430 Ubintu \u0432 vagrant \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430:  <\/p>\n<table>\n<tr>\n<th>\u042f\u0437\u044b\u043a<\/th>\n<th>\u0420\u0430\u0437\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/th>\n<th>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435<\/th>\n<th>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430 \u0441\u043b\u043e\u0436\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 UNIX \u21d2 PostgreSQL<\/th>\n<\/tr>\n<tr>\n<td>Go<\/td>\n<td>5 959 424 byte<\/td>\n<td>real 0m6.031s<br \/>  user 0m0.216s<br \/>  sys 0m0.120s  <\/td>\n<td>real 0m26.078s<br \/>  user 0m2.788s<br \/>  sys 0m1.648s  <\/td>\n<\/tr>\n<tr>\n<td>Nim<\/td>\n<td>701 589 byte<\/td>\n<td>real 0m1.974s<br \/>  user 0m0.240s<br \/>  sys 0m0.024s  <\/td>\n<td>real 1m2.921s<br \/>  user 0m4.224s<br \/>  sys 0m1.376s  <\/td>\n<\/tr>\n<\/table>\n<p>  \u0418\u0442\u043e\u0433\u0438 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u044b\u0435. Nim \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 \u0444\u0430\u0439\u043b \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u043e\u0431\u044a\u0435\u043c\u0430 \u0438 \u043b\u0443\u0447\u0448\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445, Go \u0432\u044b\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043b\u0438\u0434\u0435\u0440\u044b \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0445 \u0446\u0435\u043f\u043e\u0447\u043a\u0430\u0445. \u041f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043e\u0431\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0430 \u043d\u0430\u0434\u043e \u0442\u044e\u043d\u0438\u0442\u044c \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u0430\u043b\u0430, \u043d\u043e \u0443\u0436\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u044f \u0441\u043c\u043e\u0433 \u043f\u043e\u043d\u044f\u0442\u044c \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0447\u0442\u043e Go \u043a\u0440\u0443\u0442, \u0430 \u0443 Nim \u044f\u0432\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0431\u0443\u0434\u0443\u0449\u0435\u0435.<\/p>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0446\u0435\u043f\u043e\u0447\u0435\u043a:<br \/>  Nim \u21d2 \u0421\u0438_(\u044f\u0437\u044b\u043a_\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f) \u21d2 Go<br \/>  Windows \u21d2 1985_\u0433\u043e\u0434 \u21d2 \u0418\u043d\u0434\u0438\u044f<br \/>  \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u21d2 \u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439_\u044f\u0437\u044b\u043a \u21d2 \u041d\u043e\u0432\u0430\u044f_\u0417\u0435\u043b\u0430\u043d\u0434\u0438\u044f \u21d2 \u041a\u043e\u0448\u043a\u0430<br \/>  \u0421\u0442\u0440\u0435\u043b\u0430 \u21d2 \u0411\u0430\u043c\u0431\u0443\u043a\u043e\u0432\u044b\u0435 \u21d2 \u0412\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434 \u21d2 \u041a\u043e\u043b\u0435\u043d\u043d\u044b\u0439_\u0441\u0443\u0441\u0442\u0430\u0432 <br \/>  Half-Life_2:_Episode_Three \u21d2 Half-Life_(\u0441\u0435\u0440\u0438\u044f_\u0438\u0433\u0440) \u21d2 \u042d\u043c\u0431\u043b\u0435\u043c\u0430 \u21d2 \u0412\u0435\u0447\u043d\u043e\u0441\u0442\u044c<br \/>  Go \u21d2 2009 \u21d2 9_\u043c\u0430\u0440\u0442\u0430 \u21d2 \u0421\u0447\u0430\u0441\u0442\u044c\u0435<br \/>  Nim \u21d2 2015 \u21d2 9_\u043c\u0430\u0440\u0442\u0430 \u21d2 \u0421\u0447\u0430\u0441\u0442\u044c\u0435     \t<\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/260883\/\"> http:\/\/habrahabr.ru\/post\/260883\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h1>\u0412\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435<\/h1>\n<p>  \u041f\u0440\u043e\u0448\u043b\u0430 \u043d\u0435\u0434\u0435\u043b\u044f \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043f\u0440\u043e\u0448\u043b\u0430 \u043f\u043e\u0434 \u0437\u043d\u0430\u043a\u043e\u043c Go.<br \/>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u044f \u0432\u0441\u0435 \u0447\u0430\u0449\u0435 \u043d\u0430\u0447\u0430\u043b \u0441\u043b\u044b\u0448\u0430\u0442\u044c \u043e \u043d\u043e\u0432\u043e\u043c \u044f\u0437\u044b\u043a\u0435 Nim.<br \/>  \u041e\u0431\u0430 \u044f\u0437\u044b\u043a\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u044b\u0435, \u0431\u044b\u0441\u0442\u0440\u044b\u0435, \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043b\u0435\u0433\u043a\u0438\u0435 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u0430. Go \u0443\u0436\u0435 \u0443\u0441\u043f\u0435\u043b \u0437\u0430\u0432\u043e\u0435\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u043e\u0432\u044c \u043c\u043d\u043e\u0433\u0438\u0445, Nim \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u043f\u0443\u0442\u044c. \u041c\u043d\u0435 \u0431\u044b\u043b\u0438 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043e\u0431\u0430 \u044f\u0437\u044b\u043a\u0430, \u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0442\u043e \u0438\u0437 \u043d\u0438\u0445 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435 \u043f\u0443\u0441\u0442\u044c \u0434\u0430\u0436\u0435 \u0438 \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 for fun.<\/p>\n<h1>\u0418\u0434\u0435\u044f<\/h1>\n<p>  \u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u043d\u043e\u0432\u044b\u0439 \u044f\u0437\u044b\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0435\u0433\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435. \u041f\u0438\u0441\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u0431\u0435\u043d\u0447\u043c\u0430\u0440\u043a\u0438 \u2014 \u044d\u0442\u043e \u0441\u043a\u0443\u0447\u043d\u043e. \u041d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u043b\u044f\u044e\u0449\u0435\u0435. \u0418 \u0442\u0430\u043a\u0430\u044f \u0438\u0434\u0435\u044f \u043f\u0440\u0438\u0448\u043b\u0430. \u0423 \u0432\u0441\u0435\u0445 \u0431\u044b\u043b \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0445\u043e\u0434\u0438\u0448\u044c \u043d\u0430 \u0412\u0438\u043a\u0438\u043f\u0435\u0434\u0438\u044e \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0448\u044c \u043f\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u0441\u0441\u044b\u043b\u043a\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u044e. \u041c\u043d\u0435 \u0441\u0442\u0430\u043b\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043d\u044f\u0442\u0438\u0439 \u043e\u0442\u0434\u0435\u043b\u044f\u044e\u0442 \u043e\u0434\u043d\u0443 \u0441\u0442\u0430\u0442\u044c\u044e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0439. \u0414\u0440\u0443\u0433\u0438\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0447\u0435\u0440\u0435\u0437 \u043a\u0430\u043a\u043e\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0439\u0442\u0438, \u0447\u0442\u043e \u0431\u044b \u0434\u043e\u0431\u0440\u0430\u0442\u044c \u043e\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u0410 \u0434\u043e \u0441\u0442\u0430\u0442\u044c\u0438 \u0412.<\/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-259871","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259871","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=259871"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/259871\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}