TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Self-Replicating Functions

117 pointsby tylerneylonover 7 years ago

16 comments

tbabbover 7 years ago
That is a beautifully typeset article.
评论 #15632921 未加载
评论 #15635502 未加载
评论 #15632894 未加载
评论 #15633467 未加载
SonOfLilitover 7 years ago
My favorite self-replicating function is the sine, and I spent some time finding it using just its very strong self-replication properties here:<p><a href="https:&#x2F;&#x2F;myownfortune.wordpress.com&#x2F;2017&#x2F;09&#x2F;21&#x2F;why-sine-wave&#x2F;" rel="nofollow">https:&#x2F;&#x2F;myownfortune.wordpress.com&#x2F;2017&#x2F;09&#x2F;21&#x2F;why-sine-wave&#x2F;</a>
评论 #15656743 未加载
评论 #15633396 未加载
dahartover 7 years ago
This is a fun exploration! It&#x27;s interesting that the summed functions have a feature topology that mirrors each sub-function, but some of the local features retain their original scaling, while features in the overlap region adopt a new scaling. This reminds me a little of using absolute scaling in SVG or CSS on something that is parented or embedded (not at the root of the hierarchy). Sometimes you use that kind of thing for character rigs in movies &amp; games - break out of the local coordinate system and use world space.<p>Since the scaling isn&#x27;t uniform, this is what causes t1 &amp; t2 to have to be piece-wise linear. I&#x27;d love to see what happens if the transform functions, i.e. t1 &amp; t2, were restricted to affine transforms. Like, how much harder is it if you further require the summed function to be a uniformly scaled &amp; translated version of the sub-function? What if you added to the formal definition something like: f_S = a * f_L ( b * x + c ), where a,b,c are constants<p>This also reminds me of a mutation I added to my artificial evolution digital art project where I was trying to generalize on the idea of a fractal. I called it the &#x27;harmonic mutation&#x27;, and it takes any function f(x) and produces a new function with two or more scaled copies, like c0 * f(c1 * x + c2) + c3 * f(c4 * x + c5). Repeat several times with the same constants, and you can make a fractal out of any function at all. Very similar concept to Perlin turbulence too, where you have summed &amp; scaled octaves of noise.
评论 #15633408 未加载
dansuncielover 7 years ago
Refinable functions, used for constructing wavelets and subdivision schemes, seem similar: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Refinable_function" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Refinable_function</a> and <a href="https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;1012.2453" rel="nofollow">https:&#x2F;&#x2F;arxiv.org&#x2F;abs&#x2F;1012.2453</a>
contravariantover 7 years ago
The definition of an exactly self replicating function seems to be any function &#x27;f&#x27; such that there are continuous bijections a,b,c such that f∘a + f∘b = c∘f, and a does not equal b.<p>Edit: I think this includes all strictly quasi-concave functions, but I&#x27;m not entirely sure.
评论 #15632814 未加载
szemetover 7 years ago
Just if anyone interested: There are also sequences that are labelled &#x27;fractal&#x27;, those are fun too:<p><a href="https:&#x2F;&#x2F;oeis.org&#x2F;A000120" rel="nofollow">https:&#x2F;&#x2F;oeis.org&#x2F;A000120</a><p><i>&#x27;An example of a fractal sequence. That is, if you omit every other number in the sequence, you get the original sequence. And of course this can be repeated. So if you form the sequence a(0 </i> 2^n), a(1 * 2^n), a(2 * 2^n), a(3 * 2^n), ... (for any integer n &gt; 0), you get the original sequence.&#x27;<i>
thadwover 7 years ago
When I saw Figure 3 I was reminded of the New Zealand kidney fern, where the veining is a very close approximation to that type of L-system, at least for the first seven or so divisions. <a href="http:&#x2F;&#x2F;www.terrain.net.nz&#x2F;friends-of-te-henui-group&#x2F;nz-ferns&#x2F;kidney-fern.html" rel="nofollow">http:&#x2F;&#x2F;www.terrain.net.nz&#x2F;friends-of-te-henui-group&#x2F;nz-ferns...</a>
评论 #15632865 未加载
falcor84over 7 years ago
Based on the title, I imagined this would be about AWS Lambda functions.<p>I wonder if anyone tried simulating evolution using these. I suppose you could even make the fitness be about earning money, e.g. solving captchas? Such that if a function can&#x27;t pay for its own upkeep it&#x27;d die off, while if it does well it could spawn offspring.
评论 #15633044 未加载
ttdover 7 years ago
What software did you use to create your figures? They look great.
评论 #15632741 未加载
评论 #15632788 未加载
评论 #15633074 未加载
tw1010over 7 years ago
This reminds me of the concept of a &quot;ring of functions&quot; (albeit slightly more constrained). Since you seem to be familiar with measure theory already, that idea is probably already well known to you (the author), but I figured I&#x27;d mention it anyway.
评论 #15633387 未加载
jon_richardsover 7 years ago
A while ago I thought about the fact that if you repeatedly apply f(x)=2+x&#x2F;2 to a number, you approach 4. What happens if you repeatedly apply, with a 50&#x2F;50 chance, either x&#x2F;2 or x+2 to a distribution? What distribution do you get?<p>I could find a lot of analysis using matrices in discrete math, but I couldn&#x27;t find much for continuous distributions. I haven&#x27;t gotten all the way through reading this, but it seems like it could be helpful.
评论 #15649205 未加载
评论 #15675332 未加载
pizzaover 7 years ago
Nice post!<p>If you&#x27;re interested in future directions, or working off of research that others might have generated while looking into similar questions, for the sake of taking this idea (self-replicat&#x27;n functions) to that next level.. it would be p interesting if you could use just a hint of the much-fabled <i>category theory</i> for the sake of generalization!
jeplerover 7 years ago
hm, now I wonder what happens if you take &#x27;any old function&#x27;, add it to a reversed and shifted version of itself, and normalize. do you eventually get one of these self-replicating functions, or are there functions that &#x27;diverge&#x27; under this treatment?<p>Taking a random array and giving it this treatment, I seem to get a gaussian distribution after just a few (say, 100) iterations on a 100-element sequence, shifted by 1&#x2F;3 and then downsampled to be a 100-element sequence again). but of course this is a global and downsampled view, the function might be very craggy locally.
agumonkeyover 7 years ago
lovely class of functions, is it part of a math domain of research ?
评论 #15632692 未加载
wmnwmnover 7 years ago
His first examples g1, g2 are not shifts of f. What am I missing.
评论 #15632668 未加载
评论 #15632629 未加载
评论 #15632593 未加载
tenaciousDanielover 7 years ago
Articles like this make me so sad, because it seems absolutely fascinating, but I know nothing about math. I became a programmer later in life and never got a solid education in it.<p>Beautiful visuals though, lol.