Opentopia Directory Encyclopedia Tools

Fork (software development)

Encyclopedia : F : FO : FOR : Fork (software development)


This article is about "forking" a software development project. For other uses, see fork (disambiguation).
In software engineering, a project fork or branch happens when a developer (or a group of them) takes a copy of source code from one software package and starts to independently develop a new package. The term is also used more loosely to represent a similar branching of any work (for example, there are several forks of the English-language Wikipedia), particularly with free or open source software.

Forks with free software often result from a schism over different goals or personality clashes. In a fork, both parties assume nearly identical code bases but typically only the larger group, or that containing the original architect, will retain the full original name and its associated user community. Thus there is a reputation penalty associated with forking.

In proprietary software, the copyright is usually held by the employing entity, not by the individual software developers. Proprietary code is thus more commonly forked when the owner needs to develop two or more versions, such as a windowed version and a command line version, or versions for differing operating systems, such as a wordprocessor for IBM PC compatible machines and Macintosh computers. Generally, such internal forks will concentrate on having the same look, feel, data format, and behavior between platforms so that a user familar with one can also be productive or share documents generated on the other. This is almost always an economic decision to generate a greater market share and thus pay back the associated extra development costs created by the fork.

A fork that is standard practice in many projects are stable or release versions which are modified only for bug fixes, while a development tree develops new features. This is common practice in the Linux kernel, for instance, but has been misrepresented occasionally in the trade press as the more problematic sort of fork described above. [link]  Such forks are often referred to instead as "branches" both to avoid the negative connotations of a fork and because common software engineering tools (e.g., CVS) use the term that way.

In some cases, a fork can merge back into the original project or replace it. The Experimental/Enhanced GNU Compiler System was a fork from GCC which proved more vital than the original project and was eventually "blessed" as the official GCC project.

Forks are considered an expression of the freedom made available by free software and a weakness since they duplicate development efforts or can confuse users over which forked package to use. Developers have the option to collaborate and pool resources with free software but it is not ensured by free software licenses, only by a commitment to cooperation.

The relationship between the different teams can be cordial or very bitter. For instance, when the author of the LMule file-sharing program for Linux was uninterested in porting it to other systems, the xMule team started a fork to do so. Disagreements among the developers led to xMule itself being forked into aMule, and the tension between the developers persisted.

On the matter of forking, the Jargon File says:

"Forking is considered a Bad Thing — not merely because it implies a lot of wasted effort in the future, but because forks tend to be accompanied by a great deal of strife and acrimony between the successor groups over issues of legitimacy, succession, and design direction. There is serious social pressure against forking. As a result, major forks (such as the Gnu-Emacs/XEmacs split, the fissionings of the 386BSD group into three daughter projects, and the short-lived GCC/EGCS split) are rare enough that they are remembered individually in hacker folklore."
Because of the ease of forking a project but the challenge of continuing to develop and support it, it's common for forks without extensive resources to become inactive — for instance, see GoneME, a fork of GNOME by a former developer, which was shortly discontinued despite attracting some publicity. Some well-known forks have enjoyed great success, however, such as the X.Org X11 server, a fork from XFree86. Most distributions have switched to X.Org, and overall X11 development has sped up as well.

Other examples

References

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: