{"id":25385,"date":"2022-12-06T04:04:00","date_gmt":"2022-12-06T03:04:00","guid":{"rendered":"https:\/\/xmau.com\/wp\/notiziole\/?p=25385"},"modified":"2025-12-29T18:49:04","modified_gmt":"2025-12-29T17:49:04","slug":"linguaggi-di-programmazione-molto-esoterici","status":"publish","type":"post","link":"https:\/\/xmau.com\/notiziole\/2022\/12\/06\/linguaggi-di-programmazione-molto-esoterici\/","title":{"rendered":"Linguaggi di programmazione molto esoterici"},"content":{"rendered":"<p><figure id=\"attachment_25386\" aria-describedby=\"caption-attachment-25386\" style=\"width: 143px\" class=\"wp-caption alignleft\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/xmau.com\/notiziole\/wp-content\/uploads\/sites\/6\/2022\/12\/Piet_Program_Hello_World.gif?resize=143%2C143&#038;ssl=1\" alt=\"\" width=\"143\" height=\"143\" class=\"size-full wp-image-25386\" \/><figcaption id=\"caption-attachment-25386\" class=\"wp-caption-text\">&#8220;Hello World&#8221; in Piet (vedi https:\/\/en.wikipedia.org\/wiki\/Esoteric_programming_language#Piet )<\/figcaption><\/figure>Io sono molto anzyano, e sapevo dell&#8217;esistenza di linguaggi di programmazione volutamente incomprensibili come per esempio <a href=\"https:\/\/en.wikipedia.org\/wiki\/INTERCAL\">INTERCAL<\/a>. Ho per\u00f2 appena scoperto che esiste una pletora di questi linguaggi, generalmente inventati per divertimento: trovate un elenco su <a href=\"https:\/\/esolangs.org\">esolangs.org<\/a> e le relative implementazioni a <a href=\"https:\/\/tio.run\/\">tio.run<\/a>.<\/p>\n<p>Segnalo due linguaggi in particolare: <a href=\"https:\/\/en.wikipedia.org\/wiki\/Shakespeare_Programming_Language\">Shakespeare<\/a>, dove le istruzioni sono righe di opere in stile appunto scespiriano, e <a href=\"https:\/\/codewithrockstar.com\">Rockstar<\/a>, che invece usa testi metallari. (Per dire, cito dalla sua documentazione: \u00ab(Anche se non tipici, Eleanor Rigby, Peggy Sue, Black Betty, e Johnny B Goode sarebbero tutti nomi validi per una variabile in Rockstar.)\u00bb<br \/>\nPer darvi un esempio, ecco come verrebbe programmato il gioco per bambini <a href=\"https:\/\/en.wikipedia.org\/wiki\/Fizz_buzz\">FizzBuzz<\/a>, quello in cui si conta da uno in su ma ogni volta che il numero \u00e8 un tre o contiene un multiplo di tre bisogna dire Fizz! mentre se il numero \u00e8 un 5 o contiene un multiplo di cinque bisogna dire Buzz!. <\/p>\n<p>In Shakespeare (vedi <a href=\"https:\/\/henrydangprg.com\/2020\/09\/08\/the-theater-students-guide-to-passing-coding-interviews\/\">qui<\/a> per una spiegazione):<br \/>\n<code><\/p>\n<p>The Elucidation of Foul Multiples.<\/p>\n<p>Romeo, the hopeless romantic.<br \/>\nMercutio, the grave man.<br \/>\nPrince Henry, the noble.<br \/>\nOphelia, the drowned.<\/p>\n<p>                    Act I: The Revelation Of Wretched Multiples.<\/p>\n<p>                    Scene I: Romeo The Sweet Talker.<\/p>\n<p>[Enter Prince Henry and Romeo]<\/p>\n<p>Romeo:<br \/>\n  You are as rich as the sum of a handsome happy honest horse and a lovely fellow.<br \/>\n  Thou art the square of thyself.<\/p>\n<p>[Exit Prince Henry]<\/p>\n<p>[Enter Ophelia]<\/p>\n<p>Romeo:<br \/>\n  You are the sum of a beautiful blossoming daughter and the moon.<br \/>\n[Exit Ophelia]<\/p>\n<p>[Enter Mercutio]<\/p>\n<p>Romeo:<br \/>\n  You plum.<\/p>\n<p>\t\t   Scene II: A Pox Upon Both Houses.<br \/>\nMercutio:<br \/>\n  Is the remainder of the quotient between myself and the difference between Ophelia and a<br \/>\n  warm wind as good as nothing?<\/p>\n<p>Romeo:<br \/>\n  If so, let us proceed to scene V.<\/p>\n<p>\t\t   Scene III: What's In A Name.<br \/>\nMercutio:<br \/>\n  Is the remainder of the quotient between myself and Ophelia as good as nothing?<\/p>\n<p>Romeo:<br \/>\n  If so, let us proceed to scene VI.<\/p>\n<p>\t\t   Scene IV: You Shall Find Me A Grave Man.<br \/>\nRomeo:<br \/>\n  Open your heart!<\/p>\n<p>Mercutio:<br \/>\n  Let us proceed to scene VII.<\/p>\n<p>\t\t   Scene V: I Do Not Bite My Thumb At You.<br \/>\nMercutio:<br \/>\n  Thou art the sum of a warm lamp and Ophelia.<br \/>\n  You are the product of thyself and the product of Ophelia and a brave squirrel.<br \/>\n  Speak your mind!<\/p>\n<p>  You are the sum of yourself and the sum of a rich father and a mother. Speak your mind!<\/p>\n<p>  Thou art the sum of the sum of the square of a cute cunning squirrel and a plum and thyself.<br \/>\n  Speak your mind! Speak your mind!<\/p>\n<p>  Is the remainder of the quotient between myself and Ophelia as good as nothing?<\/p>\n<p>Romeo:<br \/>\n  If not, let us proceed to scene VII.<\/p>\n<p>\t\t   Scene VI: Wherefore Art Thou Romeo.<br \/>\nMercutio:<br \/>\n  Thou art the sum of a fair fine angel and a gentle lovely flower.<br \/>\n  You are the sum of a fair daughter and the square of thyself! Speak your mind!<\/p>\n<p>  You are as charming as the sum of yourself and the square of a beautiful lovely lamp.<br \/>\n  Thou art the sum of thyself and the sum of a rich purse and a plum. Speak your mind!<\/p>\n<p>  Thou art the sum of thyself and Ophelia. Speak your mind! Speak your mind!<\/p>\n<p>\t\t   Scene VII: Good Night, Good Night, Parting Is Such Sweet Sorrow.<br \/>\nRomeo:<br \/>\n  You are as noble as the sum of yourself and a Lord. <\/p>\n<p>Mercutio:<br \/>\n  You are the product of Ophelia and a warm wind. Speak your mind!<\/p>\n<p>Mercutio:<br \/>\n  Am I better than Prince Henry?<\/p>\n<p>Romeo:<br \/>\n  If not, let us return to Scene II.<br \/>\n[Exeunt]<\/p>\n<p><\/code><br \/>\nLo stesso programma, scritto in Rockstar (vedi <a href=\"https:\/\/codewithrockstar.com\/docs\">qui<\/a> per una versione meno metallara):<\/p>\n<p><code><\/p>\n<p>Midnight takes your heart and your soul<br \/>\nWhile your heart is as high as your soul<br \/>\nPut your heart without your soul into your heart<\/p>\n<p>Give back your heart<\/p>\n<p>Desire is a lovestruck ladykiller<br \/>\nMy world is nothing<br \/>\nFire is ice<br \/>\nHate is water<br \/>\nUntil my world is Desire,<br \/>\nBuild my world up<br \/>\nIf Midnight taking my world, Fire is nothing and Midnight taking my world, Hate is nothing<br \/>\nShout \"FizzBuzz!\"<br \/>\nTake it to the top<\/p>\n<p>If Midnight taking my world, Fire is nothing<br \/>\nShout \"Fizz!\"<br \/>\nTake it to the top<\/p>\n<p>If Midnight taking my world, Hate is nothing<br \/>\nSay \"Buzz!\"<br \/>\nTake it to the top<\/p>\n<p>Whisper my world<\/p>\n<p><\/code><\/p>\n<p>Niente male, vero?<\/p>\n<p>Ah, quello della figura \u00e8 un programma scritto in Piet (nel senso di Mondrian), che se eseguito ritorna il classico &#8220;Hello World&#8221;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Avete mai pensato di programmare con testi similscespirani oppure di stile hard rock?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":3,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[30,9],"tags":[],"class_list":["post-25385","post","type-post","status-publish","format-standard","hentry","category-ia","category-ia-old"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/phh2yV-6Br","jetpack-related-posts":[{"id":5425,"url":"https:\/\/xmau.com\/notiziole\/2007\/10\/24\/microsoft_e_il\/","url_meta":{"origin":25385,"position":0},"title":"Microsoft \u00e8 il diavolo: ennesima prova","author":".mau.","date":"2007-10-24","format":false,"excerpt":"Chiamare un linguaggio di programmazione F# significa andare a cercarsele","rel":"","context":"In &quot;curiosit\u00e0-2007&quot;","block_context":{"text":"curiosit\u00e0-2007","link":"https:\/\/xmau.com\/notiziole\/category\/curiosita\/curiosita-2007\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17218,"url":"https:\/\/xmau.com\/notiziole\/2018\/08\/28\/_eloquent-javascript_-libro\/","url_meta":{"origin":25385,"position":1},"title":"_Eloquent Javascript_ (libro)","author":".mau.","date":"2018-08-28","format":false,"excerpt":"Non per Veri Programmatori","rel":"","context":"In &quot;rec-2018&quot;","block_context":{"text":"rec-2018","link":"https:\/\/xmau.com\/notiziole\/category\/recensioni\/rec-2018\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/xmau.com\/notiziole\/wp-content\/uploads\/sites\/6\/2018\/08\/9781593275846.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":18975,"url":"https:\/\/xmau.com\/notiziole\/2019\/08\/14\/_prima-lezione-sul-linguaggio_-libro\/","url_meta":{"origin":25385,"position":2},"title":"_Prima lezione sul linguaggio_ (libro)","author":".mau.","date":"2019-08-14","format":false,"excerpt":"Parte un po' troppo alla lontana","rel":"","context":"In &quot;rec-2019&quot;","block_context":{"text":"rec-2019","link":"https:\/\/xmau.com\/notiziole\/category\/recensioni\/rec-2019\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/xmau.com\/notiziole\/wp-content\/uploads\/sites\/6\/2019\/08\/demauro-linguaggio.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":28103,"url":"https:\/\/xmau.com\/notiziole\/2024\/01\/08\/niklaus-wirth\/","url_meta":{"origin":25385,"position":3},"title":"Niklaus Wirth","author":".mau.","date":"2024-01-08","format":false,"excerpt":"\u00c8 morto l'inventore del Pascal.","rel":"","context":"In &quot;obituary&quot;","block_context":{"text":"obituary","link":"https:\/\/xmau.com\/notiziole\/category\/obituary\/"},"img":{"alt_text":"Niklaus Wirth","src":"https:\/\/i0.wp.com\/xmau.com\/notiziole\/wp-content\/uploads\/sites\/6\/2024\/01\/Niklaus_Wirth_UrGU.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":30080,"url":"https:\/\/xmau.com\/notiziole\/2024\/11\/26\/matematica-lezione-42-matematica-e-computer\/","url_meta":{"origin":25385,"position":4},"title":"MATEMATICA &#8211; Lezione 42: Matematica e computer","author":".mau.","date":"2024-11-26","format":false,"excerpt":"L'informatica ha una base matematica molto importante","rel":"","context":"In &quot;rec-2024&quot;","block_context":{"text":"rec-2024","link":"https:\/\/xmau.com\/notiziole\/category\/recensioni\/recensioni-2024\/"},"img":{"alt_text":"copertina","src":"https:\/\/i0.wp.com\/xmau.com\/notiziole\/wp-content\/uploads\/sites\/6\/2024\/11\/mate42-191x300.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":16585,"url":"https:\/\/xmau.com\/notiziole\/2018\/03\/27\/proprieta-di-linguaggio\/","url_meta":{"origin":25385,"position":5},"title":"Propriet\u00e0 di linguaggio","author":".mau.","date":"2018-03-27","format":false,"excerpt":"Quando non ti ricordi come scrivere una parola, meglio cercare un sinonimo","rel":"","context":"In &quot;io&quot;","block_context":{"text":"io","link":"https:\/\/xmau.com\/notiziole\/category\/io\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/posts\/25385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/comments?post=25385"}],"version-history":[{"count":3,"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/posts\/25385\/revisions"}],"predecessor-version":[{"id":25389,"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/posts\/25385\/revisions\/25389"}],"wp:attachment":[{"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/media?parent=25385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/categories?post=25385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xmau.com\/notiziole\/wp-json\/wp\/v2\/tags?post=25385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}