{"id":53040,"date":"2019-11-22T00:00:00","date_gmt":"2019-11-21T21:00:00","guid":{"rendered":"https:\/\/prohoster.info\/blog\/blog_prohoster\/yazykovye-sloi"},"modified":"2020-02-18T14:00:54","modified_gmt":"2020-02-18T11:00:54","slug":"yazykovye-sloi","status":"publish","type":"post","link":"https:\/\/prohoster.info\/et\/blog\/news\/yazykovye-sloi","title":{"rendered":"Keele-kiht","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Tere, Habr!<\/p>\n<p>Tutvun teie t\u00e4helepanu t\u00f5lkega artiklist \u00ab<noindex><a rel=\"nofollow\" href=\"https:\/\/clck.ru\/JwFe2\">Keelekihtidest<\/a><\/noindex>\u00bb autor Robert C. Martin (Uncle Bob).<\/p>\n<p><img decoding=\"async\" alt=\"Keele-kiht\" src=\"\/wp-content\/uploads\/2019\/11\/7443f8be2481982b85afe6f8368a9e81.jpeg\" style=\"display:block;margin: 0 auto;\" \/><noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nVeedan aega, m\u00e4ngides vanat m\u00e4ngu \u00abLunar Lander\u00bb, mis ilmus 1969. aastal. Selle kirjutas Jim Storer, kes oli keskkooli \u00f5pilane. Ta kirjutas selle PDP-8-l keeles FOCAL. Niisugune on programm: <\/p>\n<p><img decoding=\"async\" alt=\"Keele-kiht\" src=\"\/wp-content\/uploads\/2019\/11\/44821c373bf1285cf7085306e194cc14.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nSiin on FOCAL-i l\u00e4htetekst:<\/p>\n<p><img decoding=\"async\" alt=\"Keele-kiht\" src=\"\/wp-content\/uploads\/2019\/11\/bcde722861952deb2e7e8e3f7064c992.jpeg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nJim Storer oli \u00fcsna andekas keskkooli \u00f5pilane. Vaatame seda koodi. Seal on huvitavad Taylor'i avaldused. <\/p>\n<p>Kokkuv\u00f5ttes teen ma binaarset otsingut, et leida v\u00e4\u00e4rtus K, mis ideaalselt maandab laeva j\u00e4rjestikuse kasutamise korral. Seet\u00f5ttu muutsin programmi nii, et see v\u00f5taks vastu ainult \u00fche v\u00e4\u00e4rtuse ja rakendaks seda mitu korda, kuni laev maandub v\u00f5i puruneb. Seni, kui ma seda kirjutan, tean, et vastus on vahemikus 76.40625 ja 76.4453125 ning proovin 76.4257813. Alustame m\u00f5tlema, et mul v\u00f5ib olla liiga v\u00e4he aega, enne kui leian vastuse. <\/p>\n<p>Vahepeal tuli mulle p\u00e4he, et k\u00e4isin seda programmi emulaatoril <noindex><a rel=\"nofollow\" href=\"https:\/\/clck.ru\/JwGvr\">PDP-8<\/a><\/noindex>, mille kirjutasin Lua keeles iPadi jaoks.<\/p>\n<p>Nii et, m\u00f5tleme selle \u00fcle natuke.<\/p>\n<ul>\n<li>iPadil on kiip <noindex><a rel=\"nofollow\" href=\"https:\/\/clck.ru\/JwGxH\">A8X<\/a><\/noindex>, kus t\u00f6\u00f6tavad kolm tuuma peaaegu gigahertsisel sagedusel.<\/li>\n<li>Lua on kirjutatud C-s ja kompileeritud A8X-le.<\/li>\n<li>Minu PDP8 emulaator on kirjutatud Lua keeles, kasutades paketti <noindex><a rel=\"nofollow\" href=\"https:\/\/clck.ru\/JwGy4\">CODEA<\/a><\/noindex> , mis kuulub Two Lives Left sektsiooni.<\/li>\n<li>FOCAL kirjutati 1960. aastate l\u00f5pus PDP8-l.<\/li>\n<li>Lunar Lander kirjutati FOCAL-is.<\/li>\n<\/ul>\n<p>\nNii et need on A8X, C, Lua, PDP8 ja FOCAL. Need on viis erinevat keelt. Viis erinevat mehhanismi, mis \u00fctlevad masinale, mida teha; k\u00f5ik on \u00fcksteise peale kuhjatud! <\/p>\n<p>Mis on see? Miks nii palju keeli? Tegelikult, unusta \u00e4ra iPad, PDP-8, C, Lua ja k\u00f5ik muu. Miks nii palju keeli? <\/p>\n<p>##\u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u043e\u0432? <\/p>\n<p>M\u00f5tle sellele! Kui palju programmeerimiskeeli sa oskad nimetada? Siin, las ma annan sulle v\u00e4ikese nimekirja:<\/p>\n<ul>\n<li> FORTRAN<\/li>\n<li> ALGOL<\/li>\n<li> COBOL<\/li>\n<li> SNOBOL<\/li>\n<li> LISP<\/li>\n<li> BCPL<\/li>\n<li> B<\/li>\n<li> C<\/li>\n<li> SIMULA<\/li>\n<li> SMALLTALK<\/li>\n<li> EIFFEL<\/li>\n<li> C++<\/li>\n<li> JAVA<\/li>\n<li> C#<\/li>\n<li> PYTHON<\/li>\n<li> RUBY<\/li>\n<li> LOGO<\/li>\n<li> LUA<\/li>\n<li> BASIC<\/li>\n<li> PL\/1<\/li>\n<li> JAVASCRIPT<\/li>\n<li> GO<\/li>\n<li> DART<\/li>\n<li> PROLOG<\/li>\n<li> FORTH<\/li>\n<li> SWIFT<\/li>\n<li> ML<\/li>\n<li> OCCAM<\/li>\n<li> OCAML<\/li>\n<li> ADA<\/li>\n<li> ERLANG<\/li>\n<li> ELIXIR<\/li>\n<li> FOCAL<\/li>\n<\/ul>\n<p>\nSa v\u00f5id kindlasti m\u00f5elda ka teistele, mida ma ei maininud. K\u00fcsimus on, miks neid on nii palju? Sellele k\u00fcsimusele on tegelikult ainult \u00fcks vastus. P\u00f5hjus, miks on nii palju arvutikeele: <\/p>\n<blockquote><p> <em>Me ei armasta neid.<\/em>\n<\/p><\/blockquote>\n<p>\nNoh, v\u00f5ib-olla on see liiga tugev v\u00e4ide. V\u00f5ib-olla peaksin ma \u00fctlema: <\/p>\n<blockquote><p> <em>Me olime Hollywoodis.<br \/>\n Me olime Redwoodis.<br \/>\n Me \u00fcletasime ookeani, et leida kuldset koodi.<br \/>\n Me olime iseendast v\u00e4ljas,<br \/>\n See, see, it's such a thin line.<br \/>\n It makes us search for the golden code.<\/p>\n<p> And we are aging.<\/em>\n<\/p><\/blockquote>\n<p> Well, maybe I should speak for myself... Didn't you just want to yell at Neil Young to stop complaining, find some lovely girl, and live with her? Didn't you want to tell him that the search for a golden heart was pointless? Tell me, what would he do with it if he found it? <\/p>\n<p>And what would we do with the perfect language if we found it?<\/p>\n<blockquote><p><em>Me t\u00f5ime turule PDP-8 ja FOCAL emulaatorid, et m\u00e4ngida 1969. aastal keskkooli \u00f5pilase kirjutatud \"Lunar Lander\"!<\/em>\n<\/p><\/blockquote>\n<p> <b>Here's what I think.<\/b><\/p>\n<p>Accept it. Stop searching. There is no perfect language. We've looked everywhere. We looked up and down. We looked inside and outside.<\/p>\n<blockquote><p> <em>We considered languages from both sides.<br \/>\n From the inside and the outside<br \/>\n and still somehow.<br \/>\n Remember that these are linguistic illusions.<\/p>\n<p>We really understand nothing about languages...<br \/>\n... at all.<\/em>\n<\/p><\/blockquote>\n<p> Yes, today is an unusual day.<\/p>\n<p>But, nevertheless, the point is:<\/p>\n<blockquote><p> <em>We don't need another language.<br \/>\n We don't need to know the way home.<br \/>\n All we want is to transcend life.<br \/>\n S.Q.L.<\/em>\n<\/p><\/blockquote>\n<p> Yes, a strange day.<\/p>\n<p>So, here's a thought. Maybe we need to stop creating new languages and just settle down and choose one or two that are really good. It would make life much easier, wouldn't it?<\/p>\n<p>And, if you are curious, 76.43844461 gives you quite a decent landing at 2.23 MPH.<br \/>\n<br \/>Allikas: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/476644\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 \u00abLanguage Layers\u00bb \u0430\u0432\u0442\u043e\u0440\u0430 Robert C. Martin (Uncle Bob). \u042f \u043f\u0440\u043e\u0432\u043e\u0436\u0443 \u0432\u0440\u0435\u043c\u044f, \u0438\u0433\u0440\u0430\u044f \u0432 \u0441\u0442\u0430\u0440\u0443\u044e \u0438\u0433\u0440\u0443 \u00abLunar Lander\u00bb 1969 \u0433\u043e\u0434\u0430. \u041e\u043d\u0430 \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0414\u0436\u0438\u043c\u043e\u043c \u0421\u0442\u043e\u0440\u0435\u0440\u043e\u043c, \u0443\u0447\u0435\u043d\u0438\u043a\u043e\u043c \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0448\u043a\u043e\u043b\u044b. \u041e\u043d \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0435\u0435 \u043d\u0430 PDP-8 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 FOCAL. \u0412\u043e\u0442 \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430: \u0410 \u0432\u043e\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 FOCAL: \u0414\u0436\u0438\u043c \u0421\u0442\u043e\u0440\u0435\u0440 \u0431\u044b\u043b [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-53040","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 \u00abLanguage Layers\u00bb \u0430\u0432\u0442\u043e\u0440\u0430 Robert C.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/et\/blog\/news\/yazykovye-sloi\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"et_EE\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u042f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u0441\u043b\u043e\u0438 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 \u00abLanguage Layers\u00bb \u0430\u0432\u0442\u043e\u0440\u0430 Robert C.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/et\/blog\/news\/yazykovye-sloi\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-11-21T21:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-02-18T11:00:54+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Keelekihid | ProHoster","description":"Tere, Habr! Ettepanek teie t\u00e4helepanu alla on artikli \u201eKeelekihid\u201c t\u00f5lge autorilt Robert C.","canonical_url":"https:\/\/prohoster.info\/et\/blog\/news\/yazykovye-sloi","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"et_EE","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u042f\u0437\u044b\u043a\u043e\u0432\u044b\u0435 \u0441\u043b\u043e\u0438 | ProHoster","og:description":"\u041f\u0440\u0438\u0432\u0435\u0442, \u0425\u0430\u0431\u0440! \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0430\u0442\u044c\u0438 \u00abLanguage Layers\u00bb \u0430\u0432\u0442\u043e\u0440\u0430 Robert C.","og:url":"https:\/\/prohoster.info\/et\/blog\/news\/yazykovye-sloi","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-11-21T21:00:00+00:00","article:modified_time":"2020-02-18T11:00:54+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"53040","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-24 05:50:21","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 20:32:31","updated":"2026-01-24 05:50:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/53040","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/comments?post=53040"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/posts\/53040\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/media?parent=53040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/categories?post=53040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/et\/wp-json\/wp\/v2\/tags?post=53040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}