<div dir="ltr">@Albert Y. C. Lai, Yes, I'll look into open recursion.<div><br></div><div>@Anthony Clayden, I like the idea of the directed graph, no matter what the final answer. Land parcel changes can be seen as hierarchical trees growing branches -- until something needs to jump to another tree -- or a tree pruned and moved to a new home. The WWW is a great example of this, i.e., a DOM page inside a hierarchical site -- with links jumping outside. True, the splitting and recombining of parcels goes on forever. But I see that as recursion, like one of the classic examples, "infinite mirrors" (the cascading layers produced when two mirrors face one another and you stand in the middle). Basically, anything that is changing is bifurcating and, thus, can be seen as recursion -- whether it "comes back" or not.<br></div><div><br></div><div>Programs "execute," which means they do steps, and then they're through and give an answer or result. They leave logs, paper printouts, new things on the disk, answers on the screen, etc. These are terminating discrete events -- with no natural sense of connection other than piping to a next discrete step or a historical recounting we set up ("chess software, show me my last two moves."). Sure, looped GUI apps or your bash terminal or a REPL place a wrappers around this; but there is no concept of having an event be just one layer of the persistent mirror stack. Of course my infinite mirrors analogy breaks down, because progressing from one layer to the next can totally reshape the whole landscape, like completing a row in Tetris can collapse lots of real estate instantly. And yet with today's Tetris (or chess) software, what you see is just a graphical of the continually updated memory field underneath. Again, any chaining of the events or remembering a previous state is unnatural, intentional after-the-fact incursion we have done, not a look at a truly stateless, timeless "unfolding." This may be getting a bit theoretical, but consider the WWW. It grows like an organism -- and, surely, not inside a "program" doing it, imposing direction; there's no program stepping through tasks, no loop creating sites and pages. This is recursion in the wild. For that matter, life is recursion in the wild.</div><div><br></div><div>Maybe software simply can't go there. The best we can do is have stuff live in a REPL session; but I'm not sure a REPL could be true hyper-recursion.</div><div><br></div><div>I harp on all this because if Haskell is stateless/immutable and in total disregard of any underlying memory field, then it seems it should progress to hyper-recursion. All examples like parcel maps, Tetris screens, chess apps changing -- is just -- as I said above -- graphical views of an underlying memory field's undoubtedly destructive overwriting. I guess I'm asking, What is the opposite of this? What would we have if the memory field wasn't changing state? The most obvious answer would be -- a runaway memory leak. But could we avoid the runaway memory consumption, but have the "unfolding," the statelessness by some comp-sci sleight of hand?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 16, 2017 at 9:09 PM, Anthony Clayden <span dir="ltr"><<a href="mailto:anthony_clayden@clear.net.nz" target="_blank">anthony_clayden@clear.net.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>> On 16 Jan 2017 04:43, "Lawrence Bottorff" <borgauf at<br>
<span class=""><a href="http://gmail.com" rel="noreferrer" target="_blank">gmail.com</a>> wrote:<br>
>><br>
>> A while back I worked at an assessor's office, i.e., the<br>
people responsible<br>
</span>>> for handling properties as land parcels. ...<br>
<br>
Hi Lawrence, I too worked on land parcels -- a local<br>
government rates billing<br>
and land valuation application.<br>
<br>
>> ... how property changed hands, and especially how<br>
<span class="">property lines<br>
>> changed due to properties either merging or being split<br>
up.<br>
>> That is to say, how the parcel map changed over time.<br>
<br>
</span>I think the important aspect is that the a parcel<br>
can be split, and one of the splits merged with another<br>
parcel<br>
that was not originally with it.<br>
<br>
(I don't know how it was in your application. but in mine<br>
a legal parcel might consist of discontiguous areas of land<br>
-- for example a house in a terrace parcelled with a garage<br>
amongst<br>
a block of garages at the end of the street,)<br>
<br>
That is, looking over history you cannot group the parcels<br>
into a<br>
strict hierarchy of splits.<br>
<span class=""><br>
>> Somewhere in the functional paradigm, specifically<br>
recursion,<br>
>> would seem to be a model for this issue.<br>
<br>
</span>No I'm not seeing anything specifically functional about<br>
this.<br>
It's a directed graph, where each node is an instance of<br>
parcel ownership.<br>
<span class=""><br>
>> So in chapter 1 of any functional programming tutorial is<br>
the factorial<br>
>> calculation function done with recursion. We beginners<br>
see the recursion<br>
>> "going out" to the "last one," then "coming back," adding<br>
up the results of<br>
>> each stage as it returns . . . like a yo-yo winding out,<br>
>> then winding up again.<br>
<br>
</span>Nice image, but there's no "last one" here (nor a "first<br>
one"<br>
that we could make sense of), There's no boundary<br>
from where we could be "coming back".<br>
<br>
Recursion does not apply [see more below]<br>
<br>
>> David Turner dct25-561bs at <a href="http://mythic-beasts.com" rel="noreferrer" target="_blank">mythic-beasts.com</a><br>
>> Mon Jan 16 07:47:41 UTC 2017<br>
<span class="">>><br>
>> I suspect you have stumbled onto the dual concept of<br>
</span>corecursion: ...<br>
<br>
Nor corecursion.<br>
<br>
a) because of the infinite and arbitrary potential for<br>
splits/mergers;<br>
b) because even if there was some time in the distant past<br>
when the whole country was a single parcel with a single<br>
owner.<br>
(The Emperor? But even empires and countries split and<br>
merge.<br>
Or no owner, only hunter-gatherers/nomads,<br>
which might as well be a single parcel.)<br>
We're never going to try to rebuild that history.<br>
c) because there's never going to be a future end-state.<br>
Arbitrary splits/mergers will continue forever.<br>
We can't predict what might be the smallest parcels<br>
some area of land could be split into.<br>
(Note that one trick to prevent mineral exploitation<br>
companies<br>
from buying up glorious scenery<br>
is to split it into $1-parcels and sell each to a<br>
different owner.)<br>
<br>
<br>
>> ... Haskell being the most pure functional language, is,<br>
<span class="">hence,<br>
>> my starting point on this question.<br>
<br>
</span>There's nothing specifically Haskell in this.<br>
A better place to ask might be lambda-the-ultimate.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Anthony<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</div></div></blockquote></div><br></div>