2010-09-20

|2b|

"It’s like doing a jigsaw puzzle where you can change the shape of the pieces as well as their positions."

This is one man's description of what programming is like from the perspective of the programmer. From a comprehensibility standpoint, I think it's pretty good.

Programming, as a function, is something that mystifies the vast majority of the population; as a programmer, I think it's safe to say that even the majority of the people paid to program have no real idea what they're doing on the conceptual level. If you ask a bunch of programmers "what do programmers do?", you'll likely hear a range of replies from the uber-technical ("transliterate a requirement") to the basic ("implement a process") - and that's just on the actual work performed. If you ask a bunch of programmers *how* they do what they do, you likely won't get any really substantive answer at all.

It "should" be simple, really. All programming languages consist of a basic series of operations and relationships; such series are notably finite and often fairly short, when you actually look at the principles - offhand, I'd say there are less than 200 specific relators covering all programming languages (though syntax often varies wildly), and probably less than 20 if we are willing to use abstraction. All we're really doing when we program is combining various objects/concepts/"things" using these relators.

Of course, "all" a painter does is put pigment on canvas, and pianists only have 72 or so notes with which to play. The complexities of painting and composition come not from the tools or options but in how those tools and options are utilized. There's a creative step, an inuitive moment or leap that takes place. This leap generally takes things we understand or comprehend and presents them in ways we do not expect and is usually founded in describing the relationship between concepts that heretofor have not been understood as related. The photographer captures profound emotion in a simple flower; the painter portrays the subject from a prespective never before seen; the musician writes a motif that recalls a spring rain.

The fundamental principle here is an understanding - albeit usually subconsciously - of relationships. To quote Lewis Carroll, why is a raven like a writing desk? The first act of creation is in establishing the existence of the unknown - the fact that something is waiting to be created. Usually, this understanding then provides the context for creation - in essence, understanding what is missing gives us the first step in understanding what it is we want to create. We then have to frame that desire in the context of our medium - the semanitcs of creation are different for photography, music, painting and poetry.

We can formalize these steps as lack (or problem), desire, and semantics. What we usually think of as the "creative step" in the series is "desire": the conceptualization of what it is we're trying to achieve in some kind of workable or formal structure. This is the "hard part", as it requires both clarification of the problem as well as realizing the limits of the semantics even while we work separately from either.

And this is the step in programming that most people don't understand. Semantics, in programming, is merely the syntax of the language - something even text editors can manage, so obviously not a major issue intellectually. The "problem" is usually input from a client or customer, though oftentimes such individuals need help clarifying exactly what it is that is wrong; still, this is a piece that is easily managed through standard processes. It is the clarification and implementation of desire that requires abstraction and the mental jigsaw puzzle: figuring out how to fulfill the needs presented in the desire under the limitations of the semantics, when there are quite literally infinite potential solutions but only a few practical ones.

Programming is, for all its technical requirements, a creative act not terribly different from any other artistic pasttime. Just like other arts, the moment of inspiration in programming cannot be laid out in a procedure or taught in a classroom. One can teach someone to use a camera, but one cannot teach someone to take inspiring photographs; one can teach someone English, but one cannot teach them to write beautiful poetry. One can teach programming languages, syntax, and grammar, but one cannot teach effective programming.

Obviously, the better a person is a coder (or photographer, or linguist, or...), the wider the range of tools and options that are available to that person while programming (or photographing, or writing, or...) However, as artforms, all these rely on moments of inspiration. One can encourage the mindset needed to have such moments, and train oneself (or others) in the sorts of abstract daydreaming that forms the basis for them, but one cannot explicitly teach inspiration itself. It comes naturally or not at all.

2010-06-27

Sometimes other people say it best

I am the outcome of a trillion coalescing possibilities...
That's a quote from PZ Myers; go read the whole thing.

2010-06-03

Apples and protons

So here's the deal.  This apple, the one we can't decide whether it's real or not, isn't just an apple.  It's a proton - or electron, or neutron, or really any particle of matter in the universe.

Most people imagine particles as little tiny marbles  - mainly because this is how they're presented in chemistry and physics classes.  That's the old model, though, and even the "new" model - developed with the rise of quantum physics - is becoming more and more suspect.

You see, just like our first apple, particles don't really exist.  They're not physically "there" with any exact properties we can determine.  Everything we know about them we know indirectly by how they interact with other matter (of course), but since we don't know that the other matter exists either, we're in a bit of a conundrum.

We do know that the idea of little marbles doesn't work for a variety of reasons.  Again, that's not new.  One basic flaw is with the electron, which doesn't exist like a moon orbiting a planet but more like a shell of potentiation around the nucleus (and no, there's not really a simpler way of saying it).  What we didn't know then that is rapidly being suspected now is that the nucleus is the same: a mass of potential rather than bunch of marbles stuck together.  When we "knock a neutron out", it's more like the properties of a neutron being separated out of the miasma rather than a billiard-ball action.

It gets "worse", though.  Even a separate, distinct free-floating particle like a neutron isn't "whole" - it's made up of smaller particles, or seems to be.  However, these particles - such as quarks - don't seem to be able to exist by themselves for any practical length of time.  So, whether they really exist independently or are merely the "shards" of an "exploding" particle, we don't know.

And then we get into the matter/energy conundrum: how can two things with no common physicality be interchangeable?  The answer, of course, is that they have to have some common physicality - some mechanism or particle or something - that is matter when grouped like this but energy when grouped like that.  Such is part of the search for the mystical Theory of Everything, which is looking to be more and more mythical as time goes on.

So, we don't know what anything is, we can't fundamentally describe anything, and we're not even sure we'll ever be able to.  Yet, matter exists (or seems to).  How?

This is our second apple - the average, the concept, or in physics terms, the superposition of the combined wave functions.  Detectable matter, to the best of our perception, only exists as an average - even on subatomic scales.  We can categorize things loosely, describe fuzzy margins with inherent leeway, but we can never state exactly what something is or isn't.  When we look for something, it seems to be there, but if we study its effects and and try to pinpoint it, we can't be sure.

Luckily, "fuzzy margins" are good enough to a lot of things - in fact for pretty much any applied science, such as engineering or nuclear physics.  However, the fuzziness places an accuracy limit on what we can know at this point.  Unless we can find some more fundamental principle that can eliminate the fuzziness, we're rapidly coming to a wall in our understanding of basic existence.

So, the next time you sit in a chair, try to understand that the only reason you don't fall to the floor is that the average of your existence can interact with the average of its existence.  And the next time you eat an apple, try to picture it as a superposition of potentials, not just a piece of ripe fruit.

2010-06-02

Every apple is a real apple.

Take every apple that ever existed, whether real or imaginary. Combine them all into a single structure - not exactly by averaging, but by overlaying the different pieces of information together to get a cohesive whole. The result would be something that, basically, averages out to an apple in theory but doesn't necessarily resemble a physical apple.

That's okay, though, because we're not after a physical apple. We're after a potential apple - in essence, a kind of mathematical function that defines the limits within which "apple" exists. The limits are fuzzy, just like the edges of our structure: some characteristics don't start and stop so much as fade, and fractal math states that such edges must be infinite in gradiation. In linguistic sense, you're left with a bunch of traits that are "apple", a bunch that are "apple-ish", and some that "tend to be apple" at this end but gradually become less apple-y at the other.

Now, let's use that structure - that equation or description, however you want to think of it - as our definition of "apple". Suddenly, every apple is a real apple, because we're not looking for specifics so much as trends or patterns.

This is hard for a lot of people to grasp: we've traded something hard and explicit for something vague, but in doing so end up with a better definition and, in actual fact, a better understanding of that to which we're referring. Whereas before nothing could be said to be an apple (and thus the definition useless), we can now define with reasonable precision what is or isn't an apple and use that data for further explorations (such as defining what is or isn't an apple pie).

2010-06-01

There's no such thing as a real apple.

Most of us had those silly kid's books with a picture for every letter of the alphabet; almost always, "A" is represented by "apple" - generally a picture of a bright red shiny apple, sometimes including a happy-faced worm poking out of it. That picture - or some other like it - became the foundation of the concept of "apple" we associate with the word "apple" for the rest of our lives. Over the years, we've added to it, modified it slightly. We've encountered real apples and other pictures, and so the mental image gets a little distorted from that original. However, when we think "apple", we see the picture.

The problem is, it doesn't exist. No apple ever looked like that. Even if your mental image is of the last physical apple you ate, your image is incomplete as well as tainted by other memories.

Simply put, the image in your head - the concept of a "real apple" - doesn't exist, and any real apple that does exist won't exactly match the image in your head. So, there's no such thing as a real apple - just the approximations of "apple" to varying degrees.

2010-05-21

Knowing

It's impossible to know everything. That shouldn't be surprising to most people.

However, the next statement will probably flip out a few people: it's impossible to know not just everything but anything.

Well, for certain values of "know", anyway.

The fully qualified answer is this: it is impossible, within the confines of the universe, to be 100% certain that any knowledge or perceived knowledge is 100% representational of reality. There are countless - in fact, likely near-infinite - examples of this in history, where various folks (many quite brilliant) stumbled upon something and said, "Ah ha! At last we know for sure!" only to have some piece of data float on by later that doesn't fit their theory, leading to a new theory and a new "Ah ha! At last..."

One might argue that the single biggest obstacle to scientific advancement is the certainty that one is correct. That being said, one could also say that the single biggest boon to scientific advancement is the drive to legitimately prove it - which always, eventually, fails.

Now, there are a few arguments that challenge this, usually nuanced.

In the first: "But, our laws and theories and science have led us to do amazing things! They have to be true!" No, they don't. They just have to be consistent enough with reality within allowable tolerances. An excellent example of this is Aristotalean mechanics: the fundamental principles are flat-out wrong, as proven by thousands of years of study. However, they're "wrong" by details that don't arise in practical use, especially for Ancient Greek-level technology. So, while "wrong", they're decent enough approximations that amazing things could be done using them. Modern science is no different. Our tolerances in many situations are much smaller, so our theories tend to be consistent enough to a very low level of results. However, that doesn't mean the logic or reasoning behind them is accurate or that some random bit of data won't fall into our laps in the next few years to which they are horribly inconsistent. Just take a look at things like dark matter and dark energy if you want to see examples.

The second argument is far more layman: "Okay, so that kind of technical stuff may not be 'known', but real-world stuff is. Like, I know I'm standing here talking to you." No, you don't. This piece of the puzzle can get a little more philosophical, but it's true on the practical level as well: you can never state how something is, only how it is perceived. The difference is far from trifling. In scientific terms, we have Heisenberg's Uncertainty Principle, which states that the act of observing something inherently interferes with the observation. Combine that with limitations on observational speed, and it is easy to deduce that any statement we could make, technically, about something has a decent chance of being false by the time we make it.

There's another sort of "fuzziness" that gets introduced, especially with real-world examples. For one: no human is a thing; humans are collections or concepts to begin with. Each person is made up of multiple bits - billions or more, depending on the level we wish to examine - but even from a cellular level, the body has pieces constantly growing, changing, and dying. Matter is taken in, matter is excreted, and as a result the body itself changes. Even without that, individuals atoms or subatomic particles disappear and reappear according to quantum flux principles. You as an individual and everything around you that you recognize only exists as an average state of multiple bits that are constantly changing. Again, our level of "allowable tolerances" comes into play: nothing is known except to a certain degree of approximation, and that includes existence.

The final support for our lack of knowledge is both more technical and more philosophical: everything in the universe seems to be affected by everything else. And by "everything", I mean everything. Every electron, every microvolume of space, every spark of energy affects and is affected by everything else. It is, therefore, impossible to know everything about, for example, a proton without knowing how it is being affected by everything around it - which would require knowing everything about everything. Now, on a local level, the larger part of the universe affects everything evenly so that only local variations really "matter" for our purposes: for example, we don't need to know the locations of all the planets and their velocities to be able to determine (within practical tolerances) how fast a cannon ball will fall from a tower, because us, the tower, the ground, and the cannon ball are all being affected about the same way by the planets. However, that's just another level of approximation - if we wanted to know how fast the cannonball was travelling through space, we'd have to know everything.

It's ironic that, in a very real sense, one reason we've managed to accomplish so much is that we're egotistical enough to think that the levels of observation we can make are the only ones that matter.

If you want to try to work these ideas into your real life, you can answer "probably" instead of "yes" to questions. You can also try to work in E-Prime, though it might take people a while to notice the difference.

And, finally, I'll just say that while it's impossible to know everything, or even anything, that's far from a reason for us to stop trying. As the phrase goes, "A man's reach should exceed his grasp/else what's a heaven for?"

2010-05-13

Gravity got you down?

(Oh yeah, this one's going to be fun...)

Well fret no more. I'm here to tell you that gravity doesn't exist!

There, feel better? No? Still tethered to your planet, at the bottom of a gravity well hundreds of miles deep (unless I have readers on the space station)?

Okay, then, let's back up a little. Gravity exists, but no one knows what it is or why.  If you go by the old rule of "if you can't define it's limits, it doesn't exist", we could argue that gravity doesn't.  (Hrm, still not floating...)

Gravity's a bit like time in that respect. We have it, we can measure it, we can even use it, but we have no way of describing it fundamentally. We have no real notion of what is taking place, other than a grade-school concept of "the attraction between two bodies".

First, let's give what we *do* know: gravity seems to be an attractive force. This doesn't mean it's pretty: I mean that it brings two objects together. The amount of gravity any one object "inflicts" on any other can be calculated based on their relative masses and separation distances. We also know that gravity is indistinguishable from acceleration.

That's pretty much it. We don't know how it works: most interactions between objects require a medium of interaction, and despite searches for the almighty graviton, no such particle has ever been detected. Einstein got around this by stating that the "medium" was spacetime itself, and while it's a neat little answer, it's a bit too neat - and too black-boxy - for most modern physicists. We also haven't really been able to determine whether gravity operates within discreet units like other forces; this is important, because discretion would imply a quantum nature whereas a lack of discretion would seem to imply - well, something else. We also know that gravity is related to mass, but we don't know *why* it's related to mass.

We also have to reconsider the whole "attraction between two bodies" concept, not because it's wrong but because it's a simple statement that really doesn't make its full impact apparent. When we say "between two bodies", we really mean "between two things that exist" - again, since gravity is related to mass, and mass is interchangeable with energy, and everything in the universe has mass and/or energy, everything inflicts some gravity. Also, everything is affected by gravity. So, our little "attraction between two bodies" really means "attraction between everything in the universe and everything in the universe". That's right, gravity is trying to pull together everything in the universe; most of the time the force is too small to be measured or effective, but it's always there (and yes, while this means you're technically being drawn however slightly towards that bag of potato chips, it doesn't explain why you had to eat the whole bag in one sitting).

There is also, noteably, no such thing as "anti-gravity", which is one more trait gravity shares with time: whereas most forces or actions have an opposition, gravity (like time) does not. Even antiparticles - which are just mass like anything else - are attracted to each other and to standard particles. We've never encountered anything that has a reverse gravitational effect - basically, a repulsion instead of an attraction - that isn't based on some other force.

That's not to say a lot of people aren't trying to solve the unknowns. Quantum gravity, quantum loop gravity, holographic theory - there are a lot of approaches to answering the big question of how gravity works. There are even a few that state that gravity, like centrifugal force, "doesn't really exist" and is instead just something else being (mis)interpreted as a separate force - usually acceleration (again!) or entropy.

We'll have to see where it all goes. Since much of our future scientific and cultural expression will rely on overcoming gravity efficiently (at least locally), I expect this area of study to be one of the biggest for the next 50-100 years or until a major paradigm shift takes place.

Until then, it helps to realize that even something as familiar as gravity isn't all that familiar and remember all the good things that gravity permits - like a nice day in the waves at the beach.