4 ms·
>You've just spent multiple days arguing with me about how one is better than the other. Glad you finally agree with me, though. You still don't get it. What's
by crimsonalucard 7y ago
>You've just spent multiple days arguing with me about how one is better than the other. Glad you finally agree with me, though.
You still don't get it. What's coming out of you is this: Functions exist because of procedures. I was never in agreement with this statement. Stop twisting your own words. We are not in agreement because you literally said that functions are built on top of procedures when it's really just an isomorphism.
Again. Everybody knows this, except you. Yet you were trying to drill this single minded concept of functions are made out of procedures into my head. You literally never got it. The reality is, neither is made out of neither, they are just equivalent or in other words isomorphic.
>Yes it does, because even instructions can be composed by executing them sequentially. Whether or not it's useful to execute them sequentially is a separate concern, just like whether or not it's useful to convert sunlight to distance is a separate concern.
There is a MOV instruction a CPY instruction. some arithmetic operations. Tell me where is the COMPOSITION instruction. None. Composition exists as a concept of multiple instructions not as instruction itself hence not a primitive.
>Then why are we still having this conversation? If you know how computers work physically, then you'd know that procedures can be composed, and that the composition thereof is exactly why function composition is possible on real computers.
We are having this conversation because YOU don't know what you're talking about, BUT you think you KNOW, and I am trying to tell you WHERE you are wrong. That's why we're having this conversation.
>Which you can do with procedures, by defining another procedure which executes one after the other.
How does executing one step after another compose anything? What is being composed? How is it being composed? Does the execution of consecutive steps always mean something is composed? You haven't defined anything.
What's going on in your forth example is that you are executing specific steps in a way that imitates function composition. Sort of like using english words to sound out chinese words. You can literally achieve the same results but it is none the less an imitation because there is no COMPOSE instruction.
Lets not talk about what how you imitate compose in a procedural language. You could literally do the same thing with functions and imitate procedures with composition. We both know this, so lets stop talking about the isomorphism everyone already knows about.
>Nowhere in the actual definition of even function composition (let alone composition in general) is that constraint present.
>Like, that doesn't even make logical sense. Because I shouldn't eat donuts for dinner means I'm physically incapable of eating donuts for dinner, by the rationale you're presenting.
Did you not read the wikipedia article? The official canonical definition of mathematical function composition HAS TYPES DEFINED AS PART OF THE DEFINITION. Literally it's all there. I will directly copy the definition from wikipedia here:
"In mathematics, function composition is an operation that takes two functions f and g and produces a function h such that h(x) = g(f(x)). In this operation, the function g is applied to the result of applying the function f to x. That is, the functions f : X → Y and g : Y → Z are composed to yield a function that maps x in X to g(f(x)) in Z."
>And the definition you provided is not the one used in computer science.
Computer science uses the canonical definition defined by mathematics. This does not mean a computer language uses the formal definition. A computer language can come up with all kinds of hand wavy definitions that can mean whatever the implementer wants it to mean. That's how object composition came about. Somebody decided to call it composition when really it's more akin to creating explicit dependencies.
The computer science function composition page on wikipedia contains several definitions of function composition and a completely different definition that is very informal for object composition. The lack of formalism and multiple definitions mean that this page is more of a page of examples of what other languages call function composition rather than cannon.
The formal definition is the mathematical definition and that is the best and most complete definition.
- yellowapple 7y ago> Functions exist because of procedures. Functions exist on actual computers because of procedures. That's the part you still seem to be struggling to understand for some reason. > Stop twisting your own words. The only one twisting words here is you. > What is being composed? The procedures. > How is it being composed? By running them in sequence. > Does the execution of consecutive steps always mean something is composed? It means those two steps are composed, yes. Would you like me to go over that yet again for you? > We are having this conversation because YOU don't know what you're talking about, Says the one who still insists that function composition can somehow exist on real computers without procedure composition.
- crimsonalucard 7y ago>Functions exist on actual computers because of procedures. That's the part you still seem to be struggling to understand for some reason. I understood this since the dawn of time, I've made that clear. What's also clear is that from a theoretical standpoint, Functions and procedures exist on their own as individual procedures that are isomorphic, not dependencies. >The only one twisting words here is you. No your right I'm wrong, it's not word twisting. It's that you don't know certain things. >The procedures. Procedures can't be composed. I googled Procedure Composition there is NO FORMAL definition meaning you made it up. Here's the top google result for Procedural Composition: http://harrisburg5thgradewriting.weebly.com/third-quarter/procedural-composition1 http://harrisburg5thgradewriting.weebly.com/third-quarter/pr... >By running them in sequence. You made that up. Cite a formal source. >It means those two steps are composed, yes. No it does not unless you make up your own definition of the term. Give me an official source that tells me what procedural composition is. >Says the one who still insists that function composition can somehow exist on real computers without procedure composition. Now this is just pure lie. I never said it can EXIST ON COMPUTERS. Never did. I said in the world of mathematics and computer science functions and procedures are isomorphic not dependent. I'm not being derogatory or insulting when I say this. I am stating a fact. You are a liar.