Jump to content

Sourcegraph

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Worktheclock (talk | contribs) at 11:22, 18 January 2023 (Revised name in infobox. ~~~~). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Sourcegraph
Company typePrivate
Industry
Founded2013; 12 years ago (2013)
FoundersQuinn Slack and Beyang Liu
Headquarters
Products
  • Code Search
  • Code Navigation
  • Batch Changes
  • Code Insights
Websiteabout.sourcegraph.com


Sourcegraph is a code search and code intelligence tool that semantically indexes and analyzes large codebases so that they can be searched across commercial, open-source, local, and cloud-based repositories.[1] Sourcegraph supports all major programming languages.[2]

History

Stanford graduates Quinn Slack and Beyang Liu founded Sourcegraph in San Francisco, California, in 2013.[3][4]

Partly inspired by Liu’s experience using Google Code Search while he was a Google intern,[5] Sourcegraph was developed to “tackle the big code problem” by enabling developers to manage large codebases that span multiple repositories, programming languages, file formats, and projects.[6] The platform can be used to search and analyze all of an organization’s code.[4]

To begin with, Sourcegraph customers self-hosted the platform on their own infrastructure.[7] Early customers included Uber, Dropbox, and Lyft.[7][8]

Prior to 2016, Sourcegraph began indexing “hundreds of thousands” of open-source repositories,[9] reporting in 2021 that they had indexed over 1,000,000.[10]

In 2016, Sourcegraph collaborated with technology licensing lawyer Heather Meeker to develop the Fair Source License,[11][12][5] announcing in May 2016 that “all of Sourcegraph’s source code is publicly available and hackable, under the Fair Source License.”[13] The license aimed to “help open sourcers strike a balance between getting paid and preserving their values,”[14] but came under fire for undermining open-source licensing.[15]

In 2018, Sourcegraph became an open-source project under the Apache License 2.0.[16][17] Sourcegraph has since released Sourcegraph OSS under the Apache License 2.0 and Sourcegraph Enterprise under its own license.[18]

In 2019, Sourcegraph integrated into the GitLab codebase, which gave GitLab users access to a browser-based developer platform.[19]

As of July 2021, some of Sourcegraph’s customers include Adidas, Lyft, Uber, Yelp,[20] Plaid, GE, Atlassian,[21] Amazon, PayPal, Qualtrics, and Cloudflare.[6]

Sourcegraph integrated its code search platform with cloud-based technology in August 2021, launching a browser-based portal that anyone can use to search open-source projects and personal private code for free.[7] Sourcegraph Cloud, a single-tenant cloud solution for organizations with over 100 developers, was launched in 2022, marking a shift in the company’s business model toward a SaaS model.[22][7]

In October 2022, Steve Yegge joined Sourcegraph as Head of Engineering.[23]

Applications

In research, Sourcegraph has been applied to develop data mining methods for downstream dependencies[24] and to aid in the refactoring and translation of a program into its equivalent in a different programming language.[25]

Sourcegraph is used in the CERN Accelerator Control software community to index code, quickly search through it, and create statistics.[26]

In cybersecurity, Sourcegraph has been used for better insights into source code during penetration tests.[27]

Services

The core Sourcegraph product has two versions:[28]

  • Sourcegraph Open Source (Sourcegraph OSS), which is free to use and only includes Sourcegraph’s universal code search functionality.
  • Sourcegraph Enterprise (previously Sourcegraph Data Center[16]), which includes the Sourcegraph code intelligence platform and has a free tier for a limited number of users.

Code can be searched and navigated from the Sourcegraph web UI or using browser and IDE extensions and text editor plugins.[1] Sourcegraph supports over 30 programming languages and integrates with GitHub and GitLab for code hosting, Codecov for code coverage, and Jira Software for project management.[20]

Sourcegraph's "universal code search" tool is used to search, explore, and understand code.[3][29] Search can be implemented across multiple repositories and code hosting platforms. Search can be literal, regular expression, or structural. Structural search syntax is language-aware and handles nested expressions and multi-line statements better than regular expressions.[1] Sourcegraph's Code Search uses a variation of Google's PageRank algorithm to rank results by relevance.[30]

Code Navigation

Sourcegraph's Code Navigation feature can be used to jump to the definition of a variable or function, or find all references to it in a codebase.[1]

Batch Changes

Sourcegraph's Batch Changes feature allows developers and companies to automate and track large-scale code changes across repositories and code hosts.[31]

Code Insights

Sourcegraph's Code Insights feature extracts data from a codebase to provide detailed analytics and visualizations to track the state and progress of a code project.[32]

Growth

Sourcegraph has raised a total of almost $225 million in financing to date. Its most recent $125 million Series D investment in 2021 valued the company at $2.625 billion, a 300% growth from its previous valuation in 2020.[21]

Date Funding Type Money Raised (USD) No. of Investors Lead Investor
July 2021 Series D round 125,000,000[21] 4 Andreessen Horowitz
December 2020 Series C round 50,000,000[6] 1 Sequoia Capital
July 2020 Series B round 5,000,000[33] 1 Felicis Ventures
March 2020 Series B round 23,000,000[3] 3 Craft Ventures
October 2017 Series A round 20,000,000[34] 3 Goldcrest Capital, Redpoint

See also

References

  1. ^ a b c d Hoyt, Ben (2020-08-17). "Searching code with Sourcegraph". LWN.net. Retrieved 2022-10-03.
  2. ^ Slack, Quinn (2019-02-08). "Announcing Sourcegraph 3.0". Sourcegraph official website. Retrieved 2022-11-18.
  3. ^ a b c Sawers, Paul (2020-03-03). "Sourcegraph raises $23 million to bring universal code search to all developers". VentureBeat. Retrieved 2022-11-18.
  4. ^ a b Salter, Jim (2020-10-01). "Sourcegraph: Devs are managing 100x more code now than they did in 2010". Ars Technica. Retrieved 2022-11-18.
  5. ^ a b Adam Stacoviak (2016-08-16). "Sourcegraph the 'Google for Code'". Changelog (Podcast). Retrieved 2022-11-21.
  6. ^ a b c Sawers, Paul (2020-12-03). "Sourcegraph raises $50 million to tackle 'big code' problems with universal search". VentureBeat. Retrieved 2022-11-21.
  7. ^ a b c d Sawers, Paul (2021-08-19). "Sourcegraph plans to index the entire open source web". VentureBeat. Retrieved 2022-10-03.
  8. ^ Slack, Quinn (2022-09-27). "Sourcegraph Cloud: secure, scalable, dedicated instances for enterprises". Sourcegraph Blog. Retrieved 2022-11-21.
  9. ^ Liu, Beyang (2016-05-30). "Google I/O talk: Building Sourcegraph, a large-scale code search & cross-reference engine in Go". Sourcegraph Blog. Retrieved 2022-11-21.
  10. ^ Liu, Beyang (2021-08-19). "Why we're indexing the OSS universe". Sourcegraph Blog. Retrieved 2022-11-21.
  11. ^ Nadia Eghbal (2016). Roads and bridges. The Unseen labor behind our digital infrastructure (PDF) (Report). pp. 94–95. Retrieved 2022-12-14.
  12. ^ "Fair Source License". Fair Source License official website. Retrieved 2022-11-21.
  13. ^ "The Sourcegraph developer release: A better way to discover and understand code". Sourcegraph Blog. 2016-05-30. Retrieved 2022-11-21.
  14. ^ Finley, Klint (2016-03-29). "One Startup's Heretical Plan to Turn Open Source Code Into Cash". Wired. Retrieved 2022-11-21.
  15. ^ Asay, Matt (2016-04-01). "Fair Source licensing is the worst thing to happen to open source-definitely maybe". TechRepublic. Retrieved 2022-11-21.
  16. ^ a b Schmidt, Julia (2018-10-02). "Sourcegraph pulls back the curtain, becomes open source project". DevClass. Retrieved 2022-11-21.
  17. ^ Steve Krouse (2019-10-24). "Basic Developer Human Rights: Quinn Slack". Future of Coding (Podcast). Retrieved 2022-11-21.
  18. ^ "Licensing". Sourcegraph Handbook. Retrieved 2022-11-21.
  19. ^ "Native code intelligence is coming to GitLab". GitLab. Retrieved 2022-10-03.
  20. ^ a b "Q&A: Sourcegraph's Universal Code Search Tool". IEEE Spectrum. 2020-04-03. Retrieved 2022-10-03.
  21. ^ a b c Miller, Ron (2021-07-13). "Sourcegraph raises $125M Series D on $2.6B valuation for universal code search tool". TechCrunch. Retrieved 2022-10-03.
  22. ^ Slack, Quinn (2022-08-27). "Sourcegraph Cloud: secure, scalable, dedicated instances for enterprises". Sourcegraph. Retrieved 2022-12-05.
  23. ^ Yegge, Steve (2022-10-04). "Steve Yegge joins as Head of Engineering (or, "Why I left retirement to join Sourcegraph")". Sourcegraph. Retrieved 2022-12-05.
  24. ^ Thiede, Christoph; Limberger, Daniel; Scheibel, Willy; Döllner, Jürgen (2022), "Augmenting Library Development by Mining Usage Data from Downstream Dependencies", 17th International Conference on Evaluation of Novel Approaches to Software Engineering, ENASE
  25. ^ Haavisto, Juuso (2020). Leveraging APL and SPIR-V languages to write network functions to be deployed on Vulkan compatible GPUs (MSc). Université de Lorraine. Retrieved 2022-12-15.
  26. ^ Voirin, R.; Vanden Eynden, M.; Oulevey, T. (2022). "The State of Containerization in CERN Accelerator Controls". JACoW. ICALEPCS (2021): 829–834. doi:10.18429/JACoW-ICALEPCS2021-THBL03. Retrieved 2022-12-15.
  27. ^ Rehberger, Johann (2020). Cybersecurity Attacks – Red Team Strategies: A practical guide to building a penetration testing program having homefield advantage. Packt Publishing Ltd. pp. 216–224. ISBN 9781838825508.
  28. ^ "Sourcegraph Enterprise vs. Sourcegraph Open Source (Sourcegraph OSS)". Sourcegraph Handbook. Retrieved 2022-11-21.
  29. ^ Liu, Beyang (2020-01-15). "Sourcegraph: Universal code search and intelligence". InfoWorld. Retrieved 2022-12-05.
  30. ^ Yegge, Steve (2022-11-08). "Rethinking search results ranking on Sourcegraph.com". Sourcegraph. Retrieved 2022-12-06.
  31. ^ Sawers, Paul (2021-03-24). "Sourcegraph now lets enterprises automate large-scale code changes across repositories". VentureBeat. Retrieved 2022-10-03.
  32. ^ Sawers, Paul (2022-03-10). "With Code Insights, Sourcegraph gives developers a better understanding of their codebase". VentureBeat. Retrieved 2022-10-03.
  33. ^ "Sourcegraph Raises Additional $5M in Series B Funding". FINSMES. 2020-07-15. Retrieved 2022-10-03.
  34. ^ "Sourcegraph Raises $20M in Series A Funding". FINSMES. 2017-10-06. Retrieved 2022-12-05.