{"id":3323,"date":"2015-11-16T12:47:24","date_gmt":"2015-11-16T12:47:24","guid":{"rendered":"http:\/\/www.dyalog.com\/blog\/?p=3323"},"modified":"2018-05-21T13:22:18","modified_gmt":"2018-05-21T13:22:18","slug":"response-to-feedback-on-cut-under-and-merge","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2015\/11\/response-to-feedback-on-cut-under-and-merge\/","title":{"rendered":"Response to Feedback on Cut, Under and Merge"},"content":{"rendered":"<p>At Dyalog &#8217;15 John Scholes and I presented proposals for future operators <em>cut<\/em>, <em>under<\/em>, and <em>merge<\/em>. Following the release of the <a href=\"https:\/\/dyalog.tv\/Dyalog15\/?v=9KOto3xXS3c\" target=\"_blank\" rel=\"noopener\">video<\/a> of this presentation, we received some feedback from a user. Our response to the feedback may be of wider interest.<\/p>\n<ol start=\"0\">\n<li>It&#8217;s early days yet for <a href=\"https:\/\/dyalog.tv\/Dyalog15\/?v=4sG3GX0STtI\" target=\"_blank\" rel=\"noopener\"><em>cut<\/em>, <em>under<\/em>, and <em>merge<\/em><\/a> (they are tentatively planned for release in version 16.0), and one of the reasons for that is so that we can receive feedback from the user community. So thank you for your comments.<\/li>\n<li>We take our inspiration from many sources, and while it&#8217;s true that J has <em>cut<\/em>, <em>under<\/em>, and <em>merge<\/em>, <em>cut<\/em> saw the light of day in <a href=\"http:\/\/www.jsoftware.com\/papers\/RationalizedAPL.htm\" target=\"_blank\" rel=\"noopener\"><em>Rationalized APL<\/em><\/a> (1983), <em>under<\/em> in <a href=\"http:\/\/www.jsoftware.com\/papers\/opfns.htm\" target=\"_blank\" rel=\"noopener\"><em>Operators and Functions<\/em><\/a> (1978), and <em>merge<\/em> in <a href=\"http:\/\/www.jsoftware.com\/papers\/RationalizedAPL.htm\" target=\"_blank\" rel=\"noopener\"><em>Rationalized APL<\/em><\/a> (1983) again. And even before that, the ideas have been in mathematics or functional programming for many years.Wherever the inspiration came from, we don&#8217;t take them just on faith, just because they are in J.Even now, even in these early days, <em>cut<\/em>, <em>under<\/em>, and <em>merge<\/em> have undergone a vigorous internal debate. The discussion <em>is<\/em> informed by the experience in other contexts, J or otherwise.<\/li>\n<li>We are interested in what you think are the &#8220;few fundamental ideas expressed by a handful of mathematical symbols&#8221;, what you say is the definition of APL. From our perspective we have not violated and will not violate what we think are the fundamental ideas. But perhaps our set of fundamental ideas differ from yours?<\/li>\n<li>No one here is thinking of adopting the J spelling scheme (with the dots and colons).<\/li>\n<li>The Dyalog development team are in unanimous agreement that dfns, <code class=\"language-apl\">\u237a\u2375<\/code>-functions, are A Good Thing. As we see it, the recent and proposed additions to Dyalog APL have only enhanced the elegance and utility of dfns. For example, <code class=\"language-apl\">{(+\u233f\u2375)\u00f7\u2262\u2375}\u2364r<\/code> to compute the mean of not just vectors but subarrays of a specified rank, <code class=\"language-apl\">{\u237a\u2375}\u2338<\/code> to compute the unique keys and the corresponding indices, <code class=\"language-apl\">{\u237a(+\u233f\u2375)}\u2338<\/code> to compute the unique keys and corresponding sums, and <code class=\"language-apl\">{\u2282Cut \u00af2\u22a2\u2375,','}Cut \u00af2 \u22a2x~\u2395av[4]<\/code> to partition CSV <code class=\"language-apl\">x<\/code> into its columns and cells.<\/li>\n<li><em>Cut<\/em>, <em>under<\/em>, and <em>merge<\/em> are described and documented in discussion papers accompanying the video. If you have not already read them, they can be found in the <a href=\"http:\/\/www.dyalog.com\/user-meetings\/dyalog15.htm\" target=\"_blank\" rel=\"noopener\">Dyalog &#8217;15 webpage<\/a> and specifically <a href=\"http:\/\/www.dyalog.com\/uploads\/conference\/dyalog15\/presentations\/D16_Future_Operator_Proposals.zip\" target=\"_blank\" rel=\"noopener\">here<\/a>. Please tell us what more can be done as far as documentation, and what parts specifically are unclear.<\/li>\n<li>We have previously (and recently) examined the question of adding quaternions to Dyalog. Currently there are no plans to add them.<\/li>\n<li>Finally, examples of <em>under<\/em> from everyday life. Of course the processes involved can be <em>composed<\/em>, so that for example &#8220;dinner&#8221; can be:\n<pre><code class=\"language-apl\">open the fridge\r\n    take the food\r\nclose the fridge<\/code><\/pre>\n<p>but it can also be a more elaborate:<\/p>\n<pre><code class=\"language-apl\">take plate from cupboard\r\n    open the fridge\r\n        take the food\r\n    close the fridge\r\n \r\n    put food on plate\r\n        open mouth\r\n            put food in mouth\r\n        close mouth\r\n    clean plate\r\nput plate back into cupboard<\/code><\/pre>\n<p>As remarked in the Dyalog &#8217;15 presentation, once you are attuned to it you can see <em>under<\/em> everywhere, sometimes in subtle ways: Ashes to ashes, dust to dust.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>At Dyalog &#8217;15 John Scholes and I presented proposals for future operators cut, under, and merge. Following the release of the video of this presentation, we received some feedback from a user. Our response to the feedback may be of &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2015\/11\/response-to-feedback-on-cut-under-and-merge\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,26,6],"tags":[],"class_list":["post-3323","post","type-post","status-publish","format-standard","hentry","category-apl-language","category-dyalog-15","category-videos"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/3323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=3323"}],"version-history":[{"count":17,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/3323\/revisions"}],"predecessor-version":[{"id":5177,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/3323\/revisions\/5177"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=3323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=3323"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=3323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}