Nature's Code

in #programming7 years ago (edited)

nathan-anderson-98354.jpg
Photo by Nathan Anderson on Unsplash

Nature's Code


Code is truly a bizarre thing, symbols that move electrons around that allow you to read this blog post and it all boils down to 101011101000101111100010010.

To me this is incredible and I often wonder if people really understand the magic that is happening in all the devices that we seem so enamored with.

I'd say for the most part no. The world is moving fast, really fast, and our little monkey brains really can't keep up with it all.

We are not designed to think about the inputs of over 7 billion people. Imagine what seven billion people would look like if they all stood beside each other?

They would take up the same space as the state of Delaware or 7200 sq kilometres.

delaware.jpg

7200 sq kilometres of this:

ethan-weil-307372.jpg
Photo by Ethan Weil on Unsplash

If you triple the worlds current population you get the estimated amount of connected devices by the end of 2017.

Moving 1's and 0's around to convey ideas or thoughts to a virtual audience of potentially 21 billion devices is what a lot of web developers and programmers do everyday without much thought. They facilitate this interaction to everything that is connected to the network. If code didn't exist all this connection would be lost.

Let's think about it a different way, devices are now hubs for interaction, you share a video with a friend, you message a colleague, you talk to someone you don't know on Twitter, post on Steemit. The list is endless, this is only possible through 1's and 0's. Your idea's are transmitted to the world via the medium of code.

A binary choice at the lowest level, a simple yes or no, true or false, go or stay. You could say that in many ways life is a series of binary choices just like computer programs.

So what's my point ?


What if nature reflects this idea of multiple binary choices that ultimately lead to the nature of reality. To me a lot of things around us seem programmed. The world is spinning and in a loop around the sun, the sun is in a loop around the galaxy and so on. They are in while loops while(exists){life} kind of like this:

world.spin.png

Code for the screenshot can be found here

Of course and I'm not going to put you through the pain of an infinite loop, but hopefully you can see my point.

Another example of a small series of binary choices adding up to a larger whole is swarm behaviour, were each member of the swarm simply follows a rule to avoid it's neighbour. I intend to code this out a some point, but I'd like to dive a little deeper into the mechanics beforehand.

flock_code.jpg

Fibonacci ~ nature's symmetry.


The Fibonacci numbers are Nature’s numbering system. They appear everywhere in Nature, from the leaf arrangement in plants, to the pattern of the florets of a flower, the bracts of a pinecone, or the scales of a pineapple. The Fibonacci numbers are therefore applicable to the growth of every living thing, including a single cell, a grain of wheat, a hive of bees, and even all of mankind.

How would you code the formula to make the bracts on a pinecone? perhaps like this:

pine.cone.png

pine_cone_fib.jpe

Code for the screenshot can be found here

Moving forward

Over the next weeks I plan on looking a little deeper at some of these notions and really explore the nature of code. My schedule has got pretty packed over the last month or so. I've had a number of projects in the fire, one of which is a poker hand evaluator which you can play with here.

I'm looking forward to starting school again which will give me a great excuse to dive a little deeper into this topic and create some interesting projects like the one below.

A fun random walker demo:

wlakers.png

See the Pen random walkers by Adam Harpur (@harps116) on CodePen.

Resources:

Sort:  

I don't understand much computer code but I like your take on nature and how it follows a code of its own. Makes me think of Dawkins work in The Selfish Gene and his later books, and of course there's Wolfram's A New Kind of Science, which I tried reading several times - but was at least fascinating to page through.

No doubt you've encountered Conway's Game of Life?

Thank you. I have indeed, I'm hoping to touch on it at some point. I just looked up a New Kind of Science, looks very interesting.

Congratulations @harps116! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Congratulations @harps116! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

By upvoting this notification, you can help all Steemit users. Learn how here!

Coin Marketplace

STEEM 0.27
TRX 0.11
JST 0.030
BTC 67753.90
ETH 3783.00
USDT 1.00
SBD 3.54