We're reaching an inflection point. The next few years will determine whether developers will code to distinct operating systems or the Web itself.

If distinct OSes continue to dominate, it'll preserve the fortunes of the computing incumbents we've come to love and loathe: Apple (Nasdaq: AAPL), Google (Nasdaq: GOOG), and Microsoft (Nasdaq: MSFT), notably.

If the Web triumphs, It'll mark both a moral and financial victory for Google and create a windfall for Facebook. Other winners could include Netflix (Nasdaq: NFLX), Zynga, and hundreds more creative coding shops unbound from legacy OS code.

The biggest winner of all
But if a recent report by TechCrunch's MG Siegler is to be believed, Facebook has the most to gain. Its "Project Spartan" is assembling a full HTML5 layer for hosting fully functioning Web apps within a Facebook wrapper on mobile Safari. If successful, the effort would not only disrupt Apple's own App Store but also change the way we think about acquiring and using apps on any device.

Here's how Siegler describes Spartan, which he claims to have seen:

Imagine loading up the mobile web version of Facebook and finding a drop-down for a new type of app. Clicking on one of the apps loads it (from whatever server it’s on depending on the app-maker), and immediately a Facebook wrapper is brought in to surround the app. This wrapper will give the app some basic Facebook functionality, as well as the ability to use key Facebook elements — like Credits.

Can you imagine? Not only would every app be social, but you'd also have no need for the iTunes Store to purchase additional functionality, no need for iCloud, and no need to download updates. Your iPhone would be, in effect, a server for connecting to the Web and hosting Facebook. All other functions -- aside from phone calls -- would be secondary.

Making this all the more dangerous is how Facebook is either working on or already has apps that substitute for Mac OS and iOS alternatives. The Messages feature subs for Mail and iChat, while Photos subs for iPhoto and is reportedly getting more social all the time.

Facebook also plays the role of third-party software host. Each day, users install a reported 20 million apps on the social network's pages.

Rethinking software development
Go ahead and read Siegler's piece and his follow-ups if you want to fully understand Facebook's strategy. As an investor, I'm less concerned with Facebook's plans to disrupt software development than I am with the broader trend.

Developers like the idea of coding to a layer above an OS, if only because the target audience for software rises dramatically when you aren't confined to one device maker's vision of the world. Distribution cost also comes into play. Build your apps on the write-once, run-in-any-HTML5-browser Web, and you don't have to contend with app-store hosting fees, which top out at 30% for Apple's App Store.

So that's the promise. The reality may prove to be much different, however. Research from Flurry Analytics shows that today's smartphone users prefer native OS apps to mobile Web apps -- a reversal from December, when users spent four minutes more per day working with browser-based software, GigaOM reports.

Entropy is the enemy of action
Yet neither Apple nor Google should take this as a sign of the dominance of apps. Give users what they want in the confines of a browser, and they'll use the Web for just about anything. How else can we explain the rise of Gmail? Or, for that matter, salesforce.com (NYSE: CRM)? The Web has become an attractive platform for hosting high-function software.

Facebook knows this all too well. That's why the company publicly committed to HTML5 last October in a blog post. Notice the enthusiasm Senior Open Programs Manager David Recordon shows for the platform: "It's worth understanding that the term “HTML5” has come to mean more than just the single HTML5 specification, but really represents the next evolution of the web platform and thus dozens of related specifications. Many of them have already been implemented across recent versions of Chrome, Firefox, Internet Explorer, Safari, and Opera."

Facebook has also said that more than 125 million regularly visit its site with HTML5-capable smartphone browsers. Mix in desktop browsers and the number "skyrockets," Facebook engineer Cory Ondrejka wrote in February. He and fellow Facebooker Bruce Rogers have since taken to creating a richer infrastructure for HMTL5 games running on the social network. You needn't know about "Project Spartan" to know Facebook's intent.

But there's also a difference between a general preference for HTML5 and an all-out assault on the very notion of mobile apps and app stores. Siegler's right: This is a war, one that none of the entrenched incumbents can afford to lose.

Do you agree? Disagree? Please weigh in using the comments box below, and when you're done, take a minute to watch this free video right now. You'll walk away with a stock idea from our Motley Fool Rule Breakers scorecard and a richer understanding of the cloud-computing revolution.

This article represents the opinion of the writer, who may disagree with the “official” recommendation position of a Motley Fool premium advisory service. We’re motley! Questioning an investing thesis -- even one of our own -- helps us all think critically about investing and make decisions that help us become smarter, happier, and richer.