{"id":194,"date":"2013-01-31T19:01:24","date_gmt":"2013-01-31T19:01:24","guid":{"rendered":"http:\/\/www.flagsoft.com\/cmswp\/?page_id=194"},"modified":"2019-08-07T14:36:34","modified_gmt":"2019-08-07T12:36:34","slug":"common-language","status":"publish","type":"page","link":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/","title":{"rendered":"CL &#8211; Common Language (ComLang)"},"content":{"rendered":"<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/_CEBG_s92P8\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Keep it simple stupid programming language<\/p>\n<h2>The Problem with Computer Languages - (Zed A. Shaw - The Web Will Die When OOP Dies)<\/h2>\n<p><!--\n<iframe loading=\"lazy\" src=\"http:\/\/player.vimeo.com\/video\/43380467\" width=\"500\" height=\"159\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe>\n--><\/p>\n<p>Zed A. Shaw - The Web Will Die When OOP Dies from <a href=\"http:\/\/vimeo.com\/webrebels\">Web Rebels Conference<\/a><\/p>\n<p>More to come.<\/p>\n<p>You are welcome to join the development team and create a brand new computer programming language! Just register at launchpad.net and tell me your Launchpad ID \/ Name \/ E-Mail.<br \/>\n<a href=\"https:\/\/launchpad.net\/cl\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/launchpad.net\/cl<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Example - hello.cl<\/h2>\n<pre class=\"brush:php\">---------------------------------------------------------\r\n\/\/ hello.cl - CL - Common Language ComLang source code\r\n\r\nversion\r\n\r\nvar-int answer = 99;\r\n\r\nwhile ( answer != 0 ) {\r\n  \"\"\r\n  \"-----------------------------------------\"\r\n  \"Menu (enter a number): \"\r\n  \"Primitives\"\r\n  \" 1 - STRING\"\r\n  \" 2 - PEEK &amp; POKE\"\r\n  \" 8 - flat to CSV\"\r\n  \" 9 - LOGO like plotting\"\r\n  \" 10 - Standard C code\"\r\n  \" 0 - EXIT\"\r\n  beep\r\n  input-int answer 0 20\r\n  print \"You entered: \"\r\n  echoln answer\r\n\r\n  switch(answer) {\r\n    case 0:\r\n      \"Bye!\"\r\n      end\r\n      break;\r\n\r\n    case 1:\r\n      \"== STRING\"\r\n      {\r\n      \"-- dupl\"\r\n      string myStr1 = dupl \"Abc\" 14\r\n      echoln myStr1\r\n\r\n      \"-- reverse\" \"\"\r\n      string myStr = reverse \"Test Reverse.\"\r\n      echoln myStr\r\n\r\n      \"-- len\"\r\n      len myStr\r\n      \"\"\r\n      len \"myStr\"\r\n      \"\"\r\n      print \"What's your name? \"\r\n      input-str n\r\n      print \"Hello \"\r\n      echo n\r\n      println \".\"\r\n      }\r\n      break;\r\n\r\n    case 2:\r\n      poke 0 65\r\n      poke 1 66\r\n      poke 2 102\r\n      peek 0\r\n      peek 1\r\n      peek 2\r\n      peek 3\r\n      peek 4\r\n      dump_poke_field\r\n      break;\r\n\r\n    case 8:\r\n      read-flat-to-csv(\"dataflat.txt\", \"4,10,40\")\r\n      break;\r\n\r\n    case 10:\r\n      for (int counter=0; counter&lt;=100; counter++) {\r\n        printf(\"%d \", counter);\r\n      }\r\n      break;\r\n  }\r\n\r\n}\r\nend\r\n---------------------------------------\r\n<\/pre>\n<pre class=\"brush:php\">----------------\r\n\"Hello World.\"\r\nprintln\r\nprintln \"Text with newline at the end\"\r\nprint \"The length of the string is: \"\r\nlen \"abcdefg\"\r\nprintln\r\n\r\na = 0:9\r\na\r\n\r\nb = 1:10\r\nb\r\n\r\nc = -5:5\r\nc\r\n\r\n\/\/ -- You can use just C as before\r\nfor (int i=0; i&lt;=10; i++) {\r\n printf(\"%d\", i);\r\n}\r\nprintln\r\nreadcsv(\"data.csv\")<\/pre>\n<h2>Runtime<\/h2>\n<pre>$ <strong>bash .\/cl.sh hello.cl<\/strong>\r\nHello World.\r\nText with newline at the end\r\nThe length of the string is: 7\r\n0 1 2 3 4 5 6 7 8 9\r\n1 2 3 4 5 6 7 8 9 10\r\n-5 -4 -3 -2 -1 0 1 2 3 4 \r\n 5 \r\n012345678910\r\nW\u00e4hrung Kurs\r\nEUR 1.50\r\nCHF 1.00\r\nDOL 0.90<\/pre>\n<h2>How it works<\/h2>\n<p>1. Pre Pre-Processing with UNIX\/Linux SED<\/p>\n<p>2. CPP PreProcessing generates pure C\/C++<\/p>\n<p>3. Compile<\/p>\n<p>4. Run<\/p>\n<h2>read-flat-to-csv(\"dataflat.txt\", \"4,10,40\")<\/h2>\n<p>Reads a flat file with fixed data positions and create a CSV.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Keep it simple stupid programming language The Problem with Computer Languages &#8211; (Zed A. Shaw &#8211; The Web Will Die When OOP Dies) Zed A. Shaw &#8211; The Web Will Die When OOP Dies from Web Rebels Conference More to come. You are welcome to join the development team and create a brand new computer &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/\"> <span class=\"screen-reader-text\">CL &#8211; Common Language (ComLang)<\/span> Weiterlesen &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3022,"menu_order":19,"comment_status":"open","ping_status":"open","template":"","meta":{"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","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":"","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":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-194","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CL - Common Language (ComLang) - Flagsoft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CL - Common Language (ComLang) - Flagsoft\" \/>\n<meta property=\"og:description\" content=\"Keep it simple stupid programming language The Problem with Computer Languages - (Zed A. Shaw - The Web Will Die When OOP Dies) Zed A. Shaw - The Web Will Die When OOP Dies from Web Rebels Conference More to come. You are welcome to join the development team and create a brand new computer &hellip; CL &#8211; Common Language (ComLang) Weiterlesen &raquo;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/\" \/>\n<meta property=\"og:site_name\" content=\"Flagsoft\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-07T12:36:34+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/\",\"url\":\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/\",\"name\":\"CL - Common Language (ComLang) - Flagsoft\",\"isPartOf\":{\"@id\":\"https:\/\/www.flagsoft.com\/cmswp\/#website\"},\"datePublished\":\"2013-01-31T19:01:24+00:00\",\"dateModified\":\"2019-08-07T12:36:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/#breadcrumb\"},\"inLanguage\":\"de-CH\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.flagsoft.com\/cmswp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Product Testing\",\"item\":\"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CL &#8211; Common Language (ComLang)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.flagsoft.com\/cmswp\/#website\",\"url\":\"https:\/\/www.flagsoft.com\/cmswp\/\",\"name\":\"Flagsoft\",\"description\":\"ALPHA Schulmagazin, Byztxt, Strongsdict, Remote Control Cursor for Mac, PictureViewer4Mac, sdspeed free SD Card Reader for Mac OS X, Byztxt Light, 1A Shopping List, Kindle Book Template\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.flagsoft.com\/cmswp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de-CH\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CL - Common Language (ComLang) - Flagsoft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/","og_locale":"de_DE","og_type":"article","og_title":"CL - Common Language (ComLang) - Flagsoft","og_description":"Keep it simple stupid programming language The Problem with Computer Languages - (Zed A. Shaw - The Web Will Die When OOP Dies) Zed A. Shaw - The Web Will Die When OOP Dies from Web Rebels Conference More to come. You are welcome to join the development team and create a brand new computer &hellip; CL &#8211; Common Language (ComLang) Weiterlesen &raquo;","og_url":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/","og_site_name":"Flagsoft","article_modified_time":"2019-08-07T12:36:34+00:00","twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"2 Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/","url":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/","name":"CL - Common Language (ComLang) - Flagsoft","isPartOf":{"@id":"https:\/\/www.flagsoft.com\/cmswp\/#website"},"datePublished":"2013-01-31T19:01:24+00:00","dateModified":"2019-08-07T12:36:34+00:00","breadcrumb":{"@id":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/#breadcrumb"},"inLanguage":"de-CH","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/common-language\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.flagsoft.com\/cmswp\/"},{"@type":"ListItem","position":2,"name":"Product Testing","item":"https:\/\/www.flagsoft.com\/cmswp\/product-testing\/"},{"@type":"ListItem","position":3,"name":"CL &#8211; Common Language (ComLang)"}]},{"@type":"WebSite","@id":"https:\/\/www.flagsoft.com\/cmswp\/#website","url":"https:\/\/www.flagsoft.com\/cmswp\/","name":"Flagsoft","description":"ALPHA Schulmagazin, Byztxt, Strongsdict, Remote Control Cursor for Mac, PictureViewer4Mac, sdspeed free SD Card Reader for Mac OS X, Byztxt Light, 1A Shopping List, Kindle Book Template","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.flagsoft.com\/cmswp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de-CH"}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"mailpoet_newsletter_max":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false,"yarpp-thumbnail":false,"slide-thumbnail":false},"uagb_author_info":{"display_name":"M","author_link":"https:\/\/www.flagsoft.com\/cmswp\/author\/admin\/"},"uagb_comment_info":3,"uagb_excerpt":"Keep it simple stupid programming language The Problem with Computer Languages - (Zed A. Shaw - The Web Will Die When OOP Dies) Zed A. Shaw - The Web Will Die When OOP Dies from Web Rebels Conference More to come. You are welcome to join the development team and create a brand new computer&hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/pages\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":1,"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/pages\/194\/revisions"}],"predecessor-version":[{"id":5797,"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/pages\/194\/revisions\/5797"}],"up":[{"embeddable":true,"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/pages\/3022"}],"wp:attachment":[{"href":"https:\/\/www.flagsoft.com\/cmswp\/wp-json\/wp\/v2\/media?parent=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}