{"id":77153,"date":"2020-04-08T01:43:13","date_gmt":"2020-04-07T23:43:13","guid":{"rendered":"https:\/\/prohoster.info\/blog\/novosti-interneta\/vyshel-crystal-0-34-0"},"modified":"2020-04-08T01:43:13","modified_gmt":"2020-04-07T23:43:13","slug":"vyshel-crystal-0-34-0","status":"publish","type":"post","link":"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-crystal-0-34-0","title":{"rendered":"Doli Crystal 0.34.0","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Doli nj\u00eb version i ri i Crystal, nj\u00eb gjuh\u00eb programimi e kompilueshme me sintaks\u00eb Ruby, me ve\u00e7orit\u00eb kryesore q\u00eb jan\u00eb runtime me 'event loop' t\u00eb integruar, ku t\u00eb gjitha operacionet e hyrjes-daljes jan\u00eb asinkrone, mb\u00ebshtetje p\u00ebr shum\u00eb procese (p\u00ebr momentin e aktivizohet me nj\u00eb flag gjat\u00eb kompilimit) dhe nj\u00eb pun\u00eb shum\u00eb e thjesht\u00eb dhe t\u00eb p\u00ebrshtatshme me bibliotekat n\u00eb C.<\/p>\n<p>Duke filluar nga versioni 0.34.0, gjuha nis zyrtarisht t\u00eb ec\u00eb me vendosm\u00ebri drejt publikimit t\u00eb par\u00eb t\u00eb v\u00ebrtet\u00eb (pra, versionit 1.0).<\/p>\n<p>N\u00eb versionin e ri t\u00eb Crystal mund t\u00eb ve\u00e7ohen ndryshimet dhe p\u00ebrmir\u00ebsimet e m\u00ebposhtme sipas r\u00ebnd\u00ebsis\u00eb s\u00eb tyre:<\/p>\n<ul>\n<li>\n<p>N\u00eb API \u00ebsht\u00eb shtuar nj\u00eb bibliotek\u00eb e re logimi <strong>Log<\/strong>, i cili, ndryshe nga i vjetri, di t\u00eb drejtoj\u00eb mesazhe n\u00eb backend-e t\u00eb ndryshme dhe t\u00eb filtroj\u00eb k\u00ebto mesazhe ndryshe n\u00eb var\u00ebsi t\u00eb 'burimit'.<\/p>\n<\/li>\n<li>\n<p>Mbeturinat nga bota e zhvillimit n\u00eb C, <strong>Errno<\/strong> dhe <strong>WinError<\/strong>, q\u00eb p\u00ebrdoreshin p\u00ebr primitiv\u00ebt e hyrje-daljes, po i l\u00ebn\u00eb vendin s\u00eb shkuar\u00ebs fal\u00eb hierarkis\u00eb s\u00eb p\u00ebrjashtimeve <strong>IO::Error<\/strong> (megjithat\u00eb, p\u00ebrdorimi i Errno ende nuk \u00ebsht\u00eb i ndaluar).<\/p>\n<\/li>\n<li>\n<p>\u00cbsht\u00eb hequr z\u00ebvend\u00ebsimi automatik i else nil nga operatori <strong>case\/when\/else<\/strong>. Kjo \u00ebsht\u00eb b\u00ebr\u00eb p\u00ebr t\u00eb p\u00ebrjashtuar l\u00ebnien aksidentale nga zhvilluesi t\u00eb nj\u00eb prej deg\u00ebve <strong>when<\/strong> n\u00eb matjet e rasteve deterministe si enum\u2019\u00ebt dhe kalime mes tipeve nga Union\u2019i. Pra, thjesht, ky kod nuk do t\u00eb funksionoj\u00eb m\u00eb pa treguar nj\u00eb tjet\u00ebr <strong>when<\/strong> (when Char) ose pa p\u00ebrcaktuar deg\u00ebn <strong>else<\/strong>-else:<\/p>\n<\/li>\n<\/ul>\n<p>a = 1 || 'x' || \"foo\"<br \/>\ncase a<br \/>\nwhen Int32<br \/>\n  # &#8230;<br \/>\nwhen String<br \/>\n  # &#8230;<br \/>\nend<\/p>\n<ul>\n<li>\n<p>Opsioni i kompiluesit <strong>disable_overflow<\/strong> nuk \u00ebsht\u00eb m\u00eb i disponuesh\u00ebm. P\u00ebr operacione me overflow p\u00ebrdorni metodat &amp;+, &amp;-, &amp;*.<\/p>\n<\/li>\n<li>\n<p><strong>Array#fill<\/strong> tani \u00ebsht\u00eb m\u00eb i shpejt\u00eb se plumbi, fal\u00eb z\u00ebvend\u00ebsimit t\u00eb ciklit t\u00eb r\u00ebndomt\u00eb me nj\u00eb memset t\u00eb vet\u00ebm t\u00eb thjesht\u00eb;<\/p>\n<\/li>\n<li>\n<p>Menaxheri i shards (paketave), q\u00eb paradoksalisht quhen <strong>shards<\/strong>, tani p\u00ebrdor algoritmin m\u00eb t\u00eb shpejt\u00eb dhe m\u00eb efikas Molinillo p\u00ebr zgjidhjen e var\u00ebsive, i huazuar nga CocoaPods (Swift) dhe Builder (Ruby).<\/p>\n<\/li>\n<li>\n<p>Shtuar mb\u00ebshtetje <strong>LLVM 10<\/strong>, q\u00eb teorikisht duhet t\u00eb sjell\u00eb nj\u00eb rritje t\u00eb performanc\u00ebs, stabilitetit, etj.<\/p>\n<\/li>\n<\/ul>\n<p>&hellip; dhe shum\u00eb p\u00ebrmir\u00ebsime t\u00eb tjera, sipas mendimit tim subjektiv, m\u00eb pak t\u00eb r\u00ebnd\u00ebsishme.<\/p>\n<p>Dua t\u00eb theksoj se Crystal \u00ebsht\u00eb nj\u00eb gjuh\u00eb e nd\u00ebrtuar mbi LLVM, e cila lejon shkrimin e aplikacioneve ndonj\u00ebher\u00eb m\u00eb t\u00eb shpejt\u00eb, m\u00eb t\u00eb thjesht\u00eb dhe m\u00eb t\u00eb qarta se n\u00eb 'v\u00ebllain' e tij interpretues, dhe megjithat\u00eb nxjerr nj\u00eb binar mjaft t\u00eb shpejt\u00eb. N\u00eb krahasim me Golang, dallohet si nj\u00eb OOP i plot\u00eb, me mb\u00ebshtetje p\u00ebr gjenerik\u00eb dhe nj\u00eb sintaks\u00eb shum\u00eb t\u00eb thjesht\u00eb dhe t\u00eb qart\u00eb. N\u00eb shum\u00eb aspekte, \u00ebsht\u00eb analog me Nim, por n\u00eb t\u00eb nj\u00ebjt\u00ebn koh\u00eb \u00ebsht\u00eb qart\u00eb i orientuar drejt p\u00ebrdorimit praktik 'k\u00ebtu dhe tani', p\u00ebr shkak t\u00eb cilit ka n\u00eb arsenalin e tij t\u00eb API shum\u00eb mjete t\u00eb dokumentuara mir\u00eb, t\u00eb p\u00ebrshtatshme dhe cil\u00ebsore, t\u00eb mb\u00ebshtetura nga zhvilluesit e gjuh\u00ebs dhe p\u00ebr k\u00ebt\u00eb arsye mjaft stabile.<\/p>\n<p>Burimi: <a \ncontent=\"nofollow\" rel=\"nofollow\" href=\"http:\/\/www.linux.org.ru\/news\/development\/15627605\">linux.org.ru<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0412\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Crystal, \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c Ruby, \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e &mdash; \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0441 &laquo;\u0432\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c&raquo; event loop&rsquo;\u043e\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 (\u043f\u043e\u043a\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0444\u043b\u0430\u0433\u043e\u043c \u043f\u0440\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438) \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c\u0438 \u043d\u0430 \u0421\u0438. \u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 0.34.0, \u044f\u0437\u044b\u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0442\u0432\u0451\u0440\u0434\u043e\u0439 \u043f\u043e\u0441\u0442\u0443\u043f\u044c\u044e \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u0435\u0440\u0432\u043e\u0433\u043e [&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-77153","post","type-post","status-publish","format-standard","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0412\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Crystal, \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c Ruby, \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u2014 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0441 \u00ab\u0432\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u00bb event loop\u2019\u043e\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430.\" \/>\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\/sq\/blog\/news\/vyshel-crystal-0-34-0\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"sq_AL\" \/>\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\u0412\u044b\u0448\u0435\u043b Crystal 0.34.0 | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0412\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Crystal, \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c Ruby, \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u2014 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0441 \u00ab\u0432\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u00bb event loop\u2019\u043e\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-crystal-0-34-0\" \/>\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=\"2020-04-07T23:43:13+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-04-07T23:43:13+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\udd47U publikua Crystal 0.34.0 | ProHoster","description":"\u00cbsht\u00eb publikuar nj\u00eb version i ri i Crystal, nj\u00eb gjuh\u00eb programimi e kompiluar me sintaks\u00eb Ruby, ve\u00e7orit\u00eb kryesore t\u00eb s\u00eb cil\u00ebs jan\u00eb runtime me event loop t\u00eb \u201cintegruar\u201d, ku t\u00eb gjitha operacionet hyr\u00ebse-dal\u00ebse jan\u00eb asinkrone, mb\u00ebshtetje.","canonical_url":"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-crystal-0-34-0","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"sq_AL","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\u0412\u044b\u0448\u0435\u043b Crystal 0.34.0 | ProHoster","og:description":"\u0412\u044b\u0448\u043b\u0430 \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Crystal, \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u043e\u043c Ruby, \u0433\u043b\u0430\u0432\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u2014 \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0441 \u00ab\u0432\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u00bb event loop\u2019\u043e\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u0441\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u044b, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430.","og:url":"https:\/\/prohoster.info\/sq\/blog\/news\/vyshel-crystal-0-34-0","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":"2020-04-07T23:43:13+00:00","article:modified_time":"2020-04-07T23:43:13+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"77153","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":null,"breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-02-28 12:34:50","updated":"2022-10-02 17:23:22","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/77153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/comments?post=77153"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/posts\/77153\/revisions"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/media?parent=77153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/categories?post=77153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/sq\/wp-json\/wp\/v2\/tags?post=77153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}