Technology
How Many Millions of Lines of Code Does It Take?
How Many Millions of Lines of Code Does It Take?
Today’s data visualization comes from David McCandless from Information is Beautiful. Buy their awesome book called Knowledge is Beautiful – we own the physical version, and it’s full of great data visualizations.
How many millions of lines of code does it take to make the modern program, web service, car, or airplane possible?
The range is extraordinary: the average iPhone app has less than 50,000 lines of code, while Google’s entire code base is two billion lines for all services. And interestingly, the code behind machines such as fighter jets, popular video game engines, and even the Large Hadron Collider fall somewhere in between these two extremes.
Increasing Complexity
A million lines of code, if printed, would be about 18,000 pages of text. That’s 14x the length of War and Peace.
It’s more than what was needed to run old technologies like the Space Shuttle, a pacemaker, or even the game engine of Quake 3 – but it’s not enough to be the driving force behind the modern software that’s used in everyday life today.
- The control software to run a U.S. military drone uses 3.5 million lines of code.
- A Boeing 787 has 6.5 million lines behind its avionics and online support systems.
- Google Chrome (browser) runs on 6.7 million lines of code (upper estimate).
- A Chevy Volt uses 10 million lines.
- The Android operating system runs on 12-15 million lines.
- The Large Hadron Collider uses 50 million lines.
- Not including backend code, Facebook runs on 62 million lines of code.
- With the advent of sophisticated, cloud-connected infotainment systems, the car software in a modern vehicle apparently uses 100 million lines of code. This is according to Wired magazine.
- All Google services combine for a whopping 2 billion lines.
Applying the math above – that means it would take 36,000,000 pages to “print out” all of the code behind all Google services. That would be a stack of paper 2.2 mi (3.6 km) high!
Markets
Charted: What are Retail Investors Interested in Buying in 2023?
What key themes and strategies are retail investors looking at for the rest of 2023? Preview: AI is a popular choice.

Charted: Retail Investors’ Top Picks for 2023
U.S. retail investors, enticed by a brief pause in the interest rate cycle, came roaring back in the early summer. But what are their investment priorities for the second half of 2023?
We visualized the data from Public’s 2023 Retail Investor Report, which surveyed 1,005 retail investors on their platform, asking “which investment strategy or themes are you interested in as part of your overall investment strategy?”
Survey respondents ticked all the options that applied to them, thus their response percentages do not sum to 100%.
Where Are Retail Investors Putting Their Money?
By far the most popular strategy for retail investors is dividend investing with 50% of the respondents selecting it as something they’re interested in.
Dividends can help supplement incomes and come with tax benefits (especially for lower income investors or if the dividend is paid out into a tax-deferred account), and can be a popular choice during more inflationary times.
Investment Strategy | Percent of Respondents |
---|---|
Dividend Investing | 50% |
Artificial Intelligence | 36% |
Total Stock Market Index | 36% |
Renewable Energy | 33% |
Big Tech | 31% |
Treasuries (T-Bills) | 31% |
Electric Vehicles | 27% |
Large Cap | 26% |
Small Cap | 24% |
Emerging Markets | 23% |
Real Estate | 23% |
Gold & Precious Metals | 23% |
Mid Cap | 19% |
Inflation Protection | 13% |
Commodities | 12% |
Meanwhile, the hype around AI hasn’t faded, with 36% of the respondents saying they’d be interested in investing in the theme—including juggernaut chipmaker Nvidia. This is tied for second place with Total Stock Market Index investing.
Treasury Bills (30%) represent the safety anchoring of the portfolio but the ongoing climate crisis is also on investors’ minds with Renewable Energy (33%) and EVs (27%) scoring fairly high on the interest list.
Commodities and Inflation-Protection stocks on the other hand have fallen out of favor.
Come on Barbie, Let’s Go Party…
Another interesting takeaway pulled from the survey is how conversations about prevailing companies—or the buzz around them—are influencing trades. The platform found that public investors in Mattel increased 6.6 times after the success of the ‘Barbie’ movie.
Bud Light also saw a 1.5x increase in retail investors, despite receiving negative attention from their fans after the company did a beer promotion campaign with trans influencer Dylan Mulvaney.
Given the origin story of a large chunk of American retail investors revolves around GameStop and AMC, these insights aren’t new, but they do reveal a persisting trend.
-
Technology4 days ago
Which Companies Own the Most Satellites?
-
United States4 weeks ago
Mapped: The Richest Billionaires in U.S. States
-
Markets2 weeks ago
The 25 Worst Stocks by Shareholder Wealth Losses (1926-2022)
-
Mining2 days ago
200 Years of Global Gold Production, by Country
-
Jobs4 weeks ago
Charted: Youth Unemployment in the OECD and China
-
Technology2 weeks ago
Visualizing Google’s Search Engine Market Share
-
Maps2 days ago
Mapped: How Much Does it Take to be the Top 1% in Each U.S. State?
-
Markets4 weeks ago
The Monthly Cost of Buying vs. Renting a House in America