Showing posts with label open source java. Show all posts
Showing posts with label open source java. Show all posts

Tuesday, April 17, 2012

How Open Source Comments (by Programming Language)

We recently looked at the commenting practice of active working open source projects. It is quite impressive: The average comment density of open source is around 19%. (Comment density = comment lines / (comment lines + source code lines)). That is much more documentation than most people thought!

However, such a rough number needs discussion. Here, I look at the comment density on a programming language basis. As it turns out, the comment density of active open source projects varies by programming language. Java is leading the bunch, but that needs further discussion.

Read More..

Sunday, November 30, 2008

Java and Linux - an open marriage in search of success

In 2004 Eric Raymond wrote an open letter to Sun Microsystems' then chief executive officer Scott McNealy demanding Sun open up their core Java intellectual property and allow anyone do whatever they damn well please with it.

That other pillar of open source, and creator of the GNU Project Richard Stallman, meanwhile, became one of Java's loudest opponents - sternly advising people not to install the closed-source evil that was Java, and giving Java as a dire example of corporate lock-in.

Two years later Sun silenced the the baying crowd with OpenJDK - an open-source project based on Sun's closed-JDK codebase.

Sun also released Java Standard Edition (Java SE) for the desktop, Java Mobile Edition (Java ME) for mobile devices and Glassfish - Sun's implementation of Java Enterprise Edition (Java EE) - under GNU General Public License v2 (GPLv2). Sun said GPLv2 would achieve the objectives of "driving more volume and adoption for Java and maintaining the 'write once run anywhere compatibility' promise."

Sun has spent much of the intervening period talking about how OpenJDK would make it easier to distribute Java with Linux, putting Java into new markets and on platforms, and into the hands of new developers. Stallman, himself, was sufficiently impressed by the move.

Two years on, has Sun's move changed anything other than end the shouting war over whether to open-source Java?

Sun's chief open-source officer Simon Phipps told The Reg that OpenJDK is doing "at least as well as I hoped." Sun could hardly have done any worse.

But has the move improved the life of Joe the Programmer, the everyday coder? "If you're an everyday developer programming under Windows writing everyday programs, you'll probably see no visible differences. But a tools developer will see a huge difference, as their market has suddenly grown hugely," Phipps said.

In other words, their tools will now be easily available on Linux as well as Windows.

Java goes further

The addressable market is certainly bigger. OpenJDK is now included in the top four FOSS GNU Linux distributions - Fedora 10, the Ubuntu main repository starting with version 8.10, OpenSUSE 11, and the planned Lenny version of Debian. It's also available in Red Hat Enterprise Linux (RHEL5) and CentOS 5. Sun, meanwhile, claims success by download on Glassfish: eight million downloads and 250,000 "product registrations" in the last 12 months.

OK, so OpenJDK ships with top Linux distros - job done? Not quite. Java might ship with certain distros, but there is no single version of Java, or set of Java APIs or libraries, certified as 100-per-cent Linux compatible. That makes the job of installing it and administering Java on Linux a headache and creates portability hurdles for application developers writing software for different Linuxes.

Read More..

Monday, November 10, 2008

How Open Source Comments (by Programming Language)

We recently looked at the commenting practice of active working open source projects. It is quite impressive: The average comment density of open source is around 19%. (Comment density = comment lines / (comment lines + source code lines)). That is much more documentation than most people thought!

However, such a rough number needs discussion. Here, I look at the comment density on a programming language basis. As it turns out, the comment density of active open source projects varies by programming language. Java is leading the bunch, but that needs further discussion.

Read More..

What is PHP Hosting?

PHP hosting is a server-side scripting environment that is used to create dynamic web pages. PHP is an abbreviation for Hypertext Preprocessor, an open source language widely used by programmers and web developers. The fact that it is open source gives it a lot of advantages over proprietary programming languages. Due to this reason, PHP has been the most famous server-side scripting language and almost all hosting providers offer PHP hosting services nowadays.

PHP is an object oriented language. The way PHP hosting works is that the web server would filter a request document using PHP and generates the output from PHP to the web browser. These documents are usually in HTML format with PHP tags inside. The tags can be run on both Windows and UNIX servers. In terms of output text, PHP is capable to generate any format such as XHTML and XML.

With PHP, web developers would be able to perform any CGI tasks, such as generate dynamic contents or send and receive cookies. PHP is also capable of outputting PDF files, Flash videos and images on the fly at high speed. This is possible due to its ability to save the required files in its file system and forming a server-side cache.

There are a host of advantages of using a PHP hosting. For beginners, it is a relatively easy language to learn and work on. While for seasoned developers, there are a lot of advanced applications and features that comes with PHP hosting. In terms of cost, it is one of the cheapest hosting solutions as it is an open-source technology. There are also programming tools that come free with PHP hosting, contributed by programmers worldwide.

Read More..

Friday, October 24, 2008

Java: Open Source Mocking Framework

JMock is a library that supports test-driven development of Java code with mock objects.

Mock objects help you design and test the interactions between the objects in your programs.

The jMock library:

1.makes it quick and easy to define mock objects, so you don’t break the rhythm of programming.
2.lets you precisely specify the interactions between your objects, reducing the brittleness of your tests.
3.works well with the autocompletion and refactoring features of your IDE plugs into your favourite test framework is easy to extend.

Read More...

Thursday, October 23, 2008

Open Source State Machine Compiler

SMC uses the state pattern to its fullest extent. In the real world, events don’t always happen when they should. Dealing with unexpected events is a must for a robust application. By combining virtual methods with the state pattern, SMC allows you to define “Default” transitions - transitions which allow your objects to handle unexpected events, recover and continue providing service (rather than crashing, burning and getting you into trouble).

SMC is written in Java but it can generates code for the following object-oriented programming languages:

C
C++
C#
[incr Tcl]
Groovy
Java
Lua
Objective-C
Perl
PHP
Python
Ruby
Scala
VB.net


Read More...

Sunday, October 12, 2008

Open Source Java ByteCode Library

ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify existing classes or dynamically generate classes, directly in binary form. Provided common transformations and analysis algorithms allow to easily assemble custom complex transformations and code analysis tools.

The ASM bytecode manipulation framework has been designed and implemented to be small and as fast as possible. ASM’s runtime .jar is only 25KB, compared to 350KB for BCEL. The load time overhead caused by class transformation with ASM is about 60 percent with ASM, compared to 700 percent or more with BCEL. These factors have been recognized by the Java community and several well known projects have switched to ASM, such as CGLIB and AspectWerkz. The list of projects that are using form the beginning ASM also includes Speedo, Groovy, dynaop,BeanShell, and a number of others.

Read more..