SOURCE: Black Duck Software

Black Duck Software

August 12, 2009 09:59 ET

JavaScript and PHP Use Growing in Open Source, Says Black Duck Software

Evaluation of Nearly Six Billion Lines of Code Shows C Still Leads but Losing Share

WALTHAM, MA--(Marketwire - August 12, 2009) - Black Duck Software, global provider of products and services for accelerating software development through the managed use of open source software, today released analysis of data from its KnowledgeBase showing shifts in the growth of programming languages used in open source projects. The analysis (www.blackdu, which looked at language usage, determined by counting lines of source code across all open source projects, shows static programming languages losing share to dynamic languages.

When analyzing project releases from the past 12-months, static programming languages C, C++ and Java are being used less often (-1.8 percentage points of share) in open source projects than dynamic languages JavaScript and PHP (+2.4 percentage points). Also gaining are SQL (up over 1 percentage point) and Ruby (+0.2 percentage point).

Data points drawn from the analysis include:

--  36% of projects with a release in the last 12 months included
    JavaScript, the most-used and fastest-growing scripting language.  More
    projects overall have used JavaScript than Java by a margin of 3 percentage
--  65% of open source code is C, C++, and Java
--  80% of open source is C, C++, Java, Shell and JavaScript.  JavaScript
    is the only one of these languages gaining in share - up over 2 percentage
    points in terms of number of lines of code.
--  C is the only language that has broken the billion lines-of-code

"Black Duck's data is consistent with what IDC is finding on the shift of application development towards web architectures," said Al Hilwa, Program Director for Application Development Software at IDC. "Languages associated with web applications such as JavaScript and PHP are showing greater growth when compared with traditional languages used for business logic of applications such as Java, C and C++," Mr. Hilwa continued.

Table 1: Market Share by Language for All Open Source Code

                                      Trailing  12-Month
                     All Projects -   12-Month  Gain/Loss
Language                Share (%)     Share (%)   (%)
C                       40.91          40.34      -0.6
C++                     14.02          13.43      -0.6
Java                    10.95          10.29      -0.7
Shell                    8.96           7.05      -1.9
JavaScript               5.55            7.6       2.1
PHP                      4.86           5.19       0.3
Perl                      3.2           2.43      -0.8
Python                   2.73           2.63      -0.1
SQL                       1.6           2.65       1.1
C#                       1.24           1.32       0.1
Assembler                1.23           0.83      -0.4
Pascal                   0.91           0.73      -0.2
Ruby                     0.78           1.01       0.2
TCL                       0.4           0.28      -0.1
Ada                      0.39           0.22      -0.2

The "All Projects - Share" column shows the results for all open source projects in the KnowledgeBase. The "Trailing 12-Month Share" narrows the results to show only results for code that was published or released in the most recent 12-month period, reflecting recent trends in language choice by open source developers.

Black Duck Software gathers information by continuously spidering the Internet collecting open source code and binary files into the Black Duck KnowledgeBase, a comprehensive database of open source software and associated license and other information. The KnowledgeBase covers over 200,000 projects collected from over 4,300 code forges and repositories. Black Duck, which has collected information on tens of billions of lines of code, never deletes data and has amassed a significant amount of code that is no longer available from the original hosting sites.

The Black Duck OSS resource center ( contains a variety of data about open source projects and licensing. The project page ( is dynamically updated with language market share data as code is added to the Black Duck KnowledgeBase. The OSS project page also displays a list of top search terms from, Black Duck Software's free open source code search engine. For more information on the Black Duck OSS Resources Center, visit

About Black Duck Software

Black Duck Software is the leading global provider of products and services for accelerating software development through the managed use of open source and third-party code. Black Duck™ enables companies to shorten time-to-market and reduce development and maintenance costs while mitigating the risks and challenges associated with open source reuse, including hidden license obligations, security vulnerabilities, unsupported open source and version proliferation. Black Duck Software is among the 500 largest software companies in the world, according to The company is headquartered near Boston and has offices in San Francisco, Amsterdam and Hong Kong, as well as distribution partners throughout the world. For more information, visit

Black Duck, Know Your Code and the Black Duck logo are registered trademarks of Black Duck Software, Inc. in the United States and other jurisdictions. Koders is a trademark of Black Duck Software, Inc. All other trademarks are the property of their respective holders.