Fork (software development)

A timeline chart showing the evolution of Linux distributions, with each split in the diagram being called "a fork"

In software engineering, a project fork happens when developers take a copy of source code from one software package and start independent development on it, creating a distinct and separate piece of software.[example needed] The term often implies not merely a development branch, but also a split in the developer community; as such, it is a form of schism.[1] Grounds for forking are varying user preferences and stagnated or discontinued development of the original software.

Free and open-source software is that which, by definition, may be forked from the original development team without prior permission, and without violating copyright law. However, licensed forks of proprietary software (e.g. Unix) also happen.

Etymology

The word "fork" has been used to mean "to divide in branches, go separate ways" as early as the 14th century.[2] In the software environment, the word evokes the fork system call, which causes a running process to split itself into two (almost) identical copies that (typically) diverge to perform different tasks.[3]

In the context of software development, "fork" was used in the sense of creating a revision control "branch" by Eric Allman as early as 1980, in the context of Source Code Control System:[4]

Creating a branch "forks off" a version of the program.

The term was in use on Usenet by 1983 for the process of creating a subgroup to move topics of discussion to.[5]

"Fork" is not known to have been used in the sense of a community schism during the origins of Lucid Emacs (now XEmacs) (1991) or the Berkeley Software Distributions (BSDs) (1993–1994); Russ Nelson used the term "shattering" for this sort of fork in 1993, attributing it to John Gilmore.[6] However, "fork" was in use in the present sense by 1995 to describe the XEmacs split,[7] and was an understood usage in the GNU Project by 1996.[8]

Forking of free and open-source software

Free and open-source software may be legally forked without prior approval of those currently developing, managing, or distributing the software per both The Free Software Definition and The Open Source Definition:[9]

The freedom to distribute copies of your modified versions to others (freedom 3). By doing this, you can give the whole community a chance to benefit from your changes. Access to the source code is a precondition for this.

3. Derived Works: The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software.

In free software, forks 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 whoever controls the web site, will retain the full original name and the associated user community. Thus, there is a reputation penalty associated with forking.[9] The relationship between the different teams can be cordial or very bitter. On the other hand, a friendly fork or a soft fork is a fork that does not intend to compete, but wants to eventually merge with the original.

Eric S. Raymond, in his essay Homesteading the Noosphere,[12] stated that "The most important characteristic of a fork is that it spawns competing projects that cannot later exchange code, splitting the potential developer community". He notes in the Jargon File:[13]

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 fissioning 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.

David A. Wheeler notes[9] four possible outcomes of a fork, with examples:

  1. The death of the fork. This is by far the most common case. It is easy to declare a fork, but considerable effort to continue independent development and support.
  2. A re-merging of the fork (e.g., egcs becoming "blessed" as the new version of GNU Compiler Collection.)
  3. The death of the original (e.g. the X.Org Server succeeding and XFree86 dying.)
  4. Successful branching, typically with differentiation (e.g., OpenBSD and NetBSD.)

Distributed revision control (DVCS) tools have popularised a less emotive use of the term "fork", blurring the distinction with "branch".[14] With a DVCS such as Mercurial or Git, the normal way to contribute to a project, is to first create a personal branch of the repository, independent of the main repository, and later seek to have your changes integrated with it. Sites such as GitHub, Bitbucket and Launchpad provide free DVCS hosting expressly supporting independent branches, such that the technical, social and financial barriers to forking a source code repository are massively reduced, and GitHub uses "fork" as its term for this method of contribution to a project.

Forks often restart version numbering from 0.1 or 1.0 even if the original software was at version 3.0, 4.0, or 5.0. An exception is when the forked software is designed to be a drop-in replacement for the original project, e.g. MariaDB for MySQL[15] or LibreOffice for OpenOffice.org.

The BSD licenses permit forks to become proprietary software, and copyleft proponents say that commercial incentives thus make proprietisation almost inevitable. (Copyleft licenses can, however, be circumvented via dual-licensing with a proprietary grant in the form of a Contributor License Agreement.) Examples include macOS (based on the proprietary NeXTSTEP and the open source FreeBSD), Cedega and CrossOver (proprietary forks of Wine, though CrossOver tracks Wine and contributes considerably), EnterpriseDB (a fork of PostgreSQL, adding Oracle compatibility features[16]), Supported PostgreSQL with their proprietary ESM storage system,[17] and Netezza's[18] proprietary highly scalable derivative of PostgreSQL. Some of these vendors contribute back changes to the community project, while some keep their changes as their own competitive advantages.

Forking proprietary software

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 word processor 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 familiar 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 notable proprietary fork not of this kind is the many varieties of proprietary Unix—almost all derived from AT&T Unix under license and all called "Unix", but increasingly mutually incompatible.[19] See Unix wars.

See also

References

  1. ^ "Schism", with its connotations, is a common usage, e.g.
  2. ^ Entry 'fork' in Online Etymology Dictionary Archived 25 May 2012 at the Wayback Machine
  3. ^ "The term fork is derived from the POSIX standard for operating systems: the system call used so that a process generates a copy of itself is called fork()." Robles, Gregorio; González-Barahona, Jesús M. (2012). A Comprehensive Study of Software Forks: Dates, Reasons and Outcomes (PDF). OSS 2012 The Eighth International Conference on Open Source Systems. doi:10.1007/978-3-642-33442-9_1. Archived (PDF) from the original on 2 December 2013. Retrieved 20 October 2012.
  4. ^ Allman, Eric. "An Introduction to the Source Code Control System." Archived 6 November 2014 at the Wayback Machine Project Ingres, University of California at Berkeley, 1980.
  5. ^ Can somebody fork off a "net.philosophy"? (John Gilmore, net.misc, 18 January 1983)
  6. ^ Shattering — good or bad? (Russell Nelson, gnu.misc.discuss, 1 October 1993)
  7. ^ Re: Hey Franz: 32K Windows SUCK!!!!! (Bill Dubuque, cu.cs.macl.info, 21 September 1995)
  8. ^ Lignux? (Marcus G. Daniels, gnu.misc.discuss, 7 June 1996)
  9. ^ a b c Why Open Source Software / Free Software (OSS/FS, FLOSS, or FOSS)? Look at the Numbers!: Forking Archived 5 April 2006 at the Wayback Machine (David A. Wheeler)
  10. ^ Stallman, Richard. "The Free Software Definition". Free Software Foundation. Archived from the original on 14 October 2013. Retrieved 15 October 2013.
  11. ^ "The Open Source Definition". The Open Source Initiative. 7 July 2006. Archived from the original on 15 October 2013. Retrieved 15 October 2013.
  12. ^ Raymond, Eric S. (15 August 2002). "Promiscuous Theory, Puritan Practice". catb.org. Archived from the original on 6 October 2006.
  13. ^ Forked Archived 8 November 2011 at the Wayback Machine (Jargon File), first added to v4.2.2 Archived 14 January 2012 at the Wayback Machine, 20 August 2000)
  14. ^ e.g. Willis, Nathan (15 January 2015). "An "open governance" fork of Node.js". LWN.net. Archived from the original on 21 April 2015. Retrieved 15 January 2015. Forks are a natural part of the open development model—so much so that GitHub famously plasters a "fork your own copy" button on almost every page. See also Nyman, Linus (2015). Understanding Code Forking in Open Source Software (PhD). Hanken School of Economics. p. 57. hdl:10138/153135. Where practitioners have previously had rather narrow definitions of a fork, [...] the term now appears to be used much more broadly. Actions that would traditionally have been called a branch, a new distribution, code fragmentation, a pseudo-fork, etc. may all now be called forks by some developers. This appears to be in no insignificant part due to the broad definition and use of the term fork by GitHub.
  15. ^ Forked a project, where do my version numbers start? Archived 26 August 2011 at the Wayback Machine
  16. ^ EnterpriseDB Archived 13 November 2006 at the Wayback Machine
  17. ^ Fujitsu Supported PostgreSQL Archived 20 August 2006 at the Wayback Machine
  18. ^ Netezza Archived 13 November 2006 at the Wayback Machine
  19. ^ Fear of forking Archived 17 December 2012 at the Wayback Machine – An essay about forking in free software projects, by Rick Moen

Read other articles:

For the village in Vlorë County, see Qesarat, Finiq. Municipal unit in Gjirokastër, AlbaniaQesaratMunicipal unitQesaratCoordinates: 40°23′N 19°53′E / 40.383°N 19.883°E / 40.383; 19.883Country AlbaniaCountyGjirokastërMunicipalityMemaliajPopulation (2011) • Municipal unit1,379Time zoneUTC+1 (CET) • Summer (DST)UTC+2 (CEST) Qesarat is a village and a former municipality in the Gjirokastër County, southern Albania. At the 2015 loc…

Statue of Buckland by Goscombe John, outside the Carnegie Library in Merthyr Tydfil Henry Seymour Berry, 1st Baron Buckland (17 September 1877 – 23 May 1928), was a Welsh financier and industrialist. Background The eldest of three sons, all born in Merthyr Tydfil to solicitor John Mathias Berry (born 2 May 1847; died 9 January 1917) and his wife Mary Ann Rowe (died 6 June 1922). He was the elder brother of newspaper magnates William Berry, 1st Viscount Camrose, and Gomer Berry, 1st Viscount Ke…

Penerbit ErlanggaJenisPublikIndustriPenerbitanDidirikan30 April 1952; 72 tahun lalu (1952-04-30)KantorpusatJl. H. Baping No. 100, Ciracas, Jakarta Timur, IndonesiaTokohkunciGunawan HutaurukProdukPenerbitanIndukErlangga GroupSitus webwww.erlangga.co.id Penerbit Erlangga adalah perusahaan yang bergerak di bidang percetakan dan penerbitan di Jakarta, Indonesia yang didirikan pada 30 April 1952.[1] Saat ini penerbit Erlangga dipimpin oleh Gunawan Hutauruk, generasi ketiga dari pendiriny…

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「弐」…

Княжество Силенд характеризуется как наиболее известное виртуальное государство[1]. Виртуа́льное госуда́рство (сокр. ВГ; от англ. virtual state[2]) — общее наименование для любых образований, которые заявляют о себе как о суверенных политиях, способных быть субъект…

† Палеопропитеки Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:СинапсидыКласс:Мл…

此條目之中立性有争议。其內容、語調可能帶有明顯的個人觀點或地方色彩。 (2011年6月)加上此模板的編輯者需在討論頁說明此文中立性有爭議的原因,以便讓各編輯者討論和改善。在編輯之前請務必察看讨论页。 格奥尔基·季米特洛夫保加利亚共产党中央委员会总书记任期1948年8月—1949年7月2日前任自己(第一书记)继任维尔科·契尔文科夫保加利亚共产党中央委员会第一书…

莎拉·阿什頓-西里洛2023年8月,阿什頓-西里洛穿著軍服出生 (1977-07-09) 1977年7月9日(46歲) 美國佛羅里達州国籍 美國别名莎拉·阿什頓(Sarah Ashton)莎拉·西里洛(Sarah Cirillo)金髮女郎(Blonde)职业記者、活動家、政治活動家和候選人、軍醫活跃时期2020年—雇主內華達州共和黨候選人(2020年)《Political.tips》(2020年—)《LGBTQ國度》(2022年3月—2022年10月)烏克蘭媒體…

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府與…

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite pas suffisamment ses sources (décembre 2022). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa vérifiabilité et en les liant à la section « Notes et références ». En pratique : Quelles sources sont attendues ? Co…

1974 grand strategy wargame set during World War II This article is about the strategy game. For the book, see Rise and Fall of the Third Reich. (Rise and Decline of the)Third ReichAvalon Hill 3rd Edition coverDesignersJohn PradosPublishersAvalon HillYears active1974 – currentGenresGrand strategy wargame, World War IIPlayers2–6Setup time15 + minutesPlaying time4–10 hoursChanceMedium (dice rolling)1974 Charles S. Roberts Award, Best Professional Game Winner Rise and Decline of the Third Rei…

US Navy Algol class cargo ship launched 1973 For other ships with the same name, see Regulus (ship). USNS Regulus (T-AKR-292) offloading a US Marine Logistic Vehicle System (LVS) at Auckland Port, Gladstone, Australia, during exercise Crocodile '99. History United States NamesakeRegulus Operator United States Navy BuilderA.G. Weser Launched1 December 1973 Acquired27 October 1981 Identification IMO number: 7302897 MMSI number: 366987000 Callsign: NLWA Honors andawards National Defense S…

Allium pyrenaicum Klasifikasi ilmiah Kerajaan: Plantae (tanpa takson): Tracheophyta (tanpa takson): Angiospermae (tanpa takson): Monokotil Ordo: Asparagales Famili: Amaryllidaceae Genus: Allium Spesies: Allium pyrenaicum Nama binomial Allium pyrenaicumCosta & Vayr. Allium pyrenaicum adalah spesies tumbuhan yang tergolong ke dalam famili Amaryllidaceae. Spesies ini juga merupakan bagian dari ordo Asparagales. Spesies Allium pyrenaicum sendiri merupakan bagian dari genus bawang Allium.[1&#…

Bagian dari seri tentangPolitik Topik utama Daftar artikel politik Politik berdasarkan negara Ekonomi politik Sejarah politik Sejarah politik dunia Sistem politik Anarkisme Demokrasi Direksional Federasi Feodalisme Kediktatoran Meritokrasi Monarki Negara-kota Rezim hibrida Parlementer Presidensial Republik Semiparlementer Semipresidensial Teokrasi Spektrum politik kiri dan kanan Disiplin akademik Ilmu politik(ilmuwan politik) Hubungan internasional(teori) Politik komparatif Filsafat politik Admi…

The Forest of Arden, territory in the West Midlands Forest of Arden redirects here. Not to be confused with Forest of Ardennes. For the hotel and country club complex, see Forest of Arden Hotel and Country Club. ArdenMap showing the traditional territory of the Forest of Arden by reference to the Roman roads that formed its boundaryGeographyLocationWest Midlands, Warwickshire, Worcestershire, Shropshire. The Forest of Arden is a former forest and culturally defined area located in the English We…

Ongoing COVID-19 viral pandemic in Beijing This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs to be updated. Please help update this article to reflect recent events or newly available information. (April 2022) You can help expand this article with text translated from the corresponding article in Chinese. (June 2020) Click [show] for important translation instructions. …

Mating system in which the female partner may have multiple partners This article is about polyandrous marriage practices. For polyandrous animal mating, see Polyandry in nature. Draupadi and her five brother husbands, the Pandavas. Top down, from left to right: the twins Nakula and Sahadeva stand either side of the throne on which Yudhishthira and Draupadi sit between Bhima and Arjuna. Part of a series on theAnthropology of kinship Basic concepts Family Lineage Affinity Consanguinity Marriage I…

American actor (born 1979) Not to be confused with Paul Aron. Aaron PaulPaul at the 2018 San Diego Comic-ConBornAaron Paul Sturtevant (1979-08-27) August 27, 1979 (age 44)Emmett, Idaho, U.S.OccupationsActorproducerYears active1998–presentSpouse Lauren Parsekian ​ ​(m. 2013)​Children2 Aaron Paul (born Aaron Paul Sturtevant; August 27, 1979) is an American actor and producer. He is best known for portraying Jesse Pinkman in the AMC series Breaking Bad…

Бої за Лебедин Російський наступ на північ України (2022) Мапа російського вторгнення з Російської федерації в Сумську область України у лютому-березні 2022 рокуМапа російського вторгнення з Російської федерації в Сумську область України у лютому-березні 2022 року Координати: …

Soyuz-M Soyuz-M (Rusia: Союз, yang berarti Union), Grau indeks 11A511M adalah roket pembawa expendable (sekali pakai) Soviet dirancang oleh OKB-1 dan diproduksi oleh State Aviation Plant No 1 di Samara, Rusia. Ini pada awalnya dibangun untuk meluncurkan berawak pesawat ruang angkasa Soyuz 7K-VI untuk angkatan bersenjata Soviet. Menyusul pembatalan program ini, pengembangan roket berlanjut selama pesawat ruang angkasa Soyuz 7K-S. Setelah ini juga dibatalkan, pengembangan Soyuz-M juga ditingga…