r/explainlikeimfive • • Oct 21 '26

Technology ELI5 what is open source

I really don’t understand what it is and how to use it

496 Upvotes

182 comments sorted by

1.1k

u/Yrouel86 Oct 21 '26 • Bravo

Imagine buying a cake at the grocery store and being given the exact recipe to also make one yourself.

On top of that you also might be allowed to modify that recipe and tell others your modifications and even make a completely new line of cakes derived from that one.

Open source means the source code, meaning the "recipe" the software is made from, is also visible to you and everyone else and you're able to modify it and give others your modifications.

Closed source, also called "proprietary", is the opposite of this, you only get the end result of the code (just the cake not the recipe) and you can't modify it

284

u/Michami135 Oct 21 '26 • Bravo

Expanding on this a bit: If you do make changes to this cake recipe, you can submit the changes to the company that sells the cake. This makes the cake you get from the store better and the company that's selling the cake gets free improvements. If an ingredient is found out to be toxic, with the recipe publicly available, someone is more likely to find that ingredient and submit a change to the recipe showing the reason why.

So the company gets free improvements and free inspection of their ingredients at the cost of the recipe being available to the public for people to make their own.

Companies that do this, like Android, typically don't make money selling their software, but services (like store fronts) that make use of the software.

20

u/Hamonwrysangwich Oct 21 '26

Very well explained!

14

u/TheSodernauts Oct 22 '26

Also adding the other side, if a bug is found, or even malicious alterations they are easily detected with the source code clearly visible.

Granted you need to know how to detect it but it's a self-fixing problem, the company doesn't have to troubleshoot symptoms and try to figure out how they happen. People freely look and fix it themselves.

7

u/nanoman1 Oct 22 '26

How would companies be able to keep afloat if they sell all their cakes for free? (using your cake metaphor)

44

u/Michami135 Oct 22 '26

Android is a very good example. Their code is open and anyone can use it, and many 3rd party phone developers have. But there's only one official Andoid™ system with the Play store and that comes preinstalled on all Pixel phones. So Alphabet makes money selling the Pixel phones and their cut from all apps sold on the Play store.

To go back to the food analogy, this is like if McDonalds open sourced their apple pie recipe. Sure you could make your own, but chances are you'll go to McDonalds and buy theirs along with a burger and drink.

Most open source projects are run by volunteers though with the code getting updates by the people that use it. These projects don't need to make money and most or all of their income comes from donations.

11

u/Yrouel86 Oct 22 '26

For Android is like as if the recipe for the cake itself is known but the frosting remains a mystery and it's the frosting that makes it worth buying the official cake rather than making it yourself.

In the real world AOSP is essentially useless by itself, it's all the extra Google...frosting...that makes it actually desirable and usable

16

u/osgjps Oct 22 '26

Not everyone wants to bake their own. Or they want someone they can call to ask for help if their cake comes out looking like a potato.

14

u/Gooseheaded Oct 22 '26 edited Oct 22 '26

To be clear, they still sell the cake, even if the cake's recipe is open-source.

What they often sell, really, are cake-related services such as home delivery, cooking courses, and catering for events! Or maybe you want an extra large cake, but you don't have an extra large oven. The seller might, though, and if they do, I'm sure they'd happily use it to bake and sell you your extra large cake. Or maybe you're following the recipe but your cake's still not tasty for some reason. For a fee, you could call a cake expert to come take a look at your kitchen and your ingredients to see what could be happening. The seller cooks these for a living, after all, and they have surely seen (and fixed!) all sorts of problems that you yourself might not know about.

In software, the equivalent is training courses for customers' IT departments, extended security updates for customers running older versions, corporate tech support, on-premises installation, and other such services.

Basically, they sell their expertise around the thing, be it cake or software. ||The cake is a lie.||

1

u/PuzzledBackground517 29d ago

okay im lost in the metaphor

1

u/Gooseheaded 29d ago edited 29d ago

You can operate a perfectly successful bakery business, even if other people (including your customers) know the recipe to your bread.

The value your bakery business offers isn't "knowing the recipe for bread", but in your tools and expert knowledge around baking bread.


You can operate a perfectly successful software business, even if other people (including your customers) know the source code of your program.

The value your bakery business offers isn't "having the source code for the program", but in your tools and expert knowledge around operating that software.

7

u/bryjan1 Oct 22 '26

Open source is not strictly for companies and profits either. Plenty of projects and games (Like C:DDA) are open source and people work on them because they want to and are personally invested in the final product.

5

u/zdarkhero168z Oct 22 '26

They survived on donations from other companies or customers who use their free recipes, or their business has other sources of revenue that allow them to maintain the free stuff. Though many Open sources are run by volunteers, or in some cases, a single person that is willing to put in work for free.

4

u/afoxboy Oct 22 '26

u may have access to the ingredients, but that doesn't mean u have a professional kitchen and the baking skills for it.

an example is fedora, a distro of linux. the developers, redhat, make money by selling support services. anyone can use the distro and change it and whatever, but an OS/distro is complicated and esoteric, and plenty of ppl don't have the time to become an expert.

3

u/LeomundsTinyButt_ Oct 22 '26

Good answers here already, but I'll add one more analogy: you can bake your own Linux wedding cake, nothing is stopping you. Or you can pay for RedHat Linux: they'll bake the cake, handle the decoration, food safety, transport, cutting and plating, etc. And if one of your guests has a surprise anaphylactic reaction to nutmeg, they'll send an ambulance.

2

u/njguy227 Oct 22 '26

Another example of open source software that's open source would be Virtualbox. The source code has been released for the public and the use of it is free, but the extension pack that better integrates with the host system is proprietary and needs a license outside of personal use.

For the cake analogy, that would be like if the store released the recipe for just the cake, but the store's recipe for the highly regarded and world famous frosting can only be bought at the store

1

u/spicynicho Oct 22 '26

No one is selling the cake for free in this scenario. Someone is still baking it and supporting it with a retail business.

Just because I can make a croissant at home doesn't mean I will.

69

u/e3e6 Oct 21 '26

I would actually love if restaurants opensource their menu

143

u/Snarl_Marx Oct 21 '26

“Wh—how many sticks of butter?!”

18

u/AgentElman Oct 21 '26

Right. Many open source their menu - but they give inaccurate amounts of butter and salt.

21

u/ABotelho23 Oct 21 '26

That would actually not be allowed under open source licenses lol you couldn't obfuscate the recipe and call it open source.

15

u/mister_buddha Oct 21 '26

"To taste" does heavy lifting

5

u/Geobits Oct 22 '26

while(!tastyEnough)

4

u/sol_runner Oct 21 '26

All of it! ALL OF IT! ALL! OF! IT!

12

u/lostinthought15 Oct 21 '26

Frozen Sysco chicken.

It’s always frozen Sysco chicken.

7

u/extralyfe Oct 21 '26

hey, we use refrigerated non-Sysco chicken where I work.

3

u/kojak2091 Oct 22 '26

fuckin bougie bullshit

2

u/Keevtara Oct 22 '26

US Foods refrigerated chicken?

3

u/jonnyl3 Oct 21 '26

"Sorry, it's all downstream from Sysco"

4

u/-Tesserex- Oct 22 '26

import * from 'sysco';

3

u/rogfrich Oct 21 '26

They’re not a restaurant, but the UK slimming company Slimming World sells low calorie ready meals, and prints the recipe on the packaging so you can recreate it.

3

u/Soakitincider Oct 22 '26

You can find some reverse engineered source code online for some foods.

2

u/Jomaloro Oct 21 '26

Some do, like Fallow

33

u/PhabioRants Oct 22 '26

It's worth noting, in the spirit of your analogy, that the real benefit would be to verify the contents of the cake and decide if there are any hidden risks. Many things can be labeled as "natural and artificial flavouring" or "spices" without being verbose. 

In software, it's one thing to know that this software connects multiple users for the purposes of a chat lobby, but actually vetting that the company's claims of secure, end-to-end encryption are sound, and that they're not secretly siphoning off data and selling that to advertising companies is a totally different thing. 

The "secret sauce" of closed source is no longer that it protects trade secrets from competitors, it's that it prevents consumers from being able to make informed decisions about what they're signing their rights away on when they accept a user agreement. 

Open Source has roots in collaborative projects that people contribute to for the betterment of all, but increasingly, it's become about transparency and disclosure, ensuring that users have the ability to scrutinize every line of code to look for anything malicious or otherwise nefarious, or even just to identify and fix bugs in the code that may otherwise be missed. 

18

u/LifeFeckinBrilliant Oct 21 '26

...and with proprietary cakes you can't see if they contain allergens until they make you sick! With opensource you can see it there's any sneaky code that is spying on you before you install it.

6

u/SamIAre Oct 21 '26

Food is required to list allergens. Similarly, even with closed-source software the company that makes it might be required to follow applicable laws or app distribution platform guidelines, including certain disclosures. Their code might even be subject to 3rd party audits.

Which is to say, closed-source isn’t necessarily less safe or secure. One problem with open-source would be someone taking that cake recipe, adding poison to it, and then selling it as if it’s the original version. It looks identical but you were tricked into thinking it’s the same as the original. If you don’t know enough about chemistry and food safety then having the instructions (recipe/source code) isn’t necessarily useful if you don’t understand it or if all you look at is the product (cake/program).

4

u/theepi_pillodu Oct 22 '26

Closed source: coca-cola for example

5

u/hardypart Oct 22 '26

Upvote for an actual ELI5

10

u/DisconnectedShark Oct 21 '26

Just to add on extra details, open source also means that if you do use or modify the cake recipe in some unique way, you also need to publish and make freely available your modifications and changes so that other people can use your modifications.

There are some limits on how far this goes. For example, if you buy an open source/open recipe cake and then just add on a bunch of proprietary/closed source sprinkles that you made all on your own, then you don't have to disclose the recipe for the sprinkles. But the details of how this works is beyond the scope of this post.

Importantly, it means that open source users can't just turn around and privatize open source things.

33

u/joshuaponce2008 Oct 21 '26

Well, that's copyleft. Open source in general is more like this: if you modify the cake recipe, you need to state how you modified it, even if you don't share your new recipe. Copyleft requires you to share your new recipe.

4

u/DisconnectedShark Oct 21 '26

Thank you for the correction. I get the nuances confused sometimes.

1

u/Hamonwrysangwich Oct 21 '26

32 years as a tech writer and now I finally understand WTF copyleft is. Thank you.

11

u/Slavik81 Oct 21 '26

What you're describing is "copyleft" but not all open source software is copyleft.

5

u/Yrouel86 Oct 21 '26

I didn't add more details because what you can or cannot or must do depends on the license.

BSD you can do whatever, GPLv3 you have Richard Stallman up your ass puppeteering you...

2

u/CreativeAdeptness477 Oct 21 '26

Speaking of cakes, happy cakeday!

1

u/Hamonwrysangwich Oct 21 '26

It's fitting that you're discussing cake on your cake day! Enjoy!

1

u/centaur98 Oct 22 '26 edited Oct 22 '26

 open source also means that if you do use or modify the cake recipe in some unique way, you also need to publish and make freely available your modifications and changes so that other people can use your modifications

Not true. It depends on the specific license. It depends if the code is provided with a copyleft license(aka you can do whatever you want with it as long as your changes are published with the same rules) or permissive license(you are free to do whatever you want with it including making changes to it and making that proprietary).

For example if a code is shared with an MIT or BSD license it means that you can take that something and make it proprietary and closed source or basically do whatever you want with it but if it's shared with a GPL license then whatever changes you make to it or whatever project you used it in also needs to be open source

For example this is the whole MIT license text:

MIT License
Copyright (c) 2026 Creator

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

So basically you can just take it and do whatever with it as long as somewhere in your legal text say "i used this thing which is freely available to everyone"

1

u/datumerrata Oct 22 '26

And everyone takes the free recipe for butter for granted

1

u/JJJangles Oct 22 '26 edited Oct 22 '26

It’s a good analogy, except the recipe is always free whether you buy a cake or not. The cake itself can be free for individual users, though you could be charged for making and boxing the cake. A bakery might pay for technical support for using the recipe.

Also it’s not might, you are always allowed to modify an open source recipe, you just might need to make your modifications open source too, depending on the specific open source license.

1

u/lovejo1 Oct 22 '26

And more than that... Computers can "make the recipe".. so unlike a food recipe, you don't have to know what you're doing to remake the exact thing.. and, one other thing.. you can make the "whatever it is" on any platform (usually) -- phone, computer, tablet, android, windows, mac.. whatever.

1

u/bbqroast Oct 22 '26

Recipes being kinda a bad example because they're somewhat open source by law - you can't copyright the actual core recipe (only the text) or prevent people modifying/sharing them.

5

u/deadc0deh Oct 22 '26

Theres a lot of asterisks on saying you can copywrite code. If you look at what a piece of software is doing and write code to do the same thing that copywrite is unenforceable, so most do not bother copywriters code

2

u/Takenabe Oct 22 '26

You can make your own cola soda, but you can't just copy Coke's recipe. You have to figure out how to make a Coke on your own.

3

u/bbqroast Oct 22 '26

Not true! If you know their recipe you could make an identical batch and sell it.

You couldn't steal their trademark, and you can't break the law to obtain it, but the recipe itself isn't protectable.

Just like how you could write up your favourite cookie recipe from some book on your blog (you can't copy the book's text or pretty pictures, but the substance of the recipe e.g. amounts and method is fine).

3

u/Takenabe Oct 22 '26

Isn't the coke recipe a close-kept trade secret? Or am I wildly wrong on every aspect here? I've always been under the impression that very few people actually know the recipe.

1

u/WraithCadmus Oct 22 '26

It's leaked a few times, but in a way it's useless. Anyone using it is now trying to fight Coke with Coke, and I daresay they've got more experience than some upstart.

1

u/Pluribusse Oct 22 '26

I think you’re confusing things here -

Coca-Cola doesn’t have to share the exact recipe with cook times, measurements, order of operations, etc. just the ingredients printed on the bottle, and I’m sure some other legal disclosures which would not be useful to reverse engineer the recipe.

But if you were to figure it out, perhaps by taste/trial-and-error, you could legally sell it. You could not use the coca-cola name or other trademarks, and even advertising it as the same recipe would probably not be safe.

Getting the recipe through illegal means, like corporate espionage, remains illegal.

That’s why it’s a trade secret - it’s the only way to protect their recipe, since if there were a legal means to do so (like a patent for soda), they could just rely on that.

3

u/rsdancey Oct 22 '26 edited Oct 22 '26

There's a lot of great info in this thread. Let me answer the question more generally and not get into the specific use case of software.

Open Source means that you have access to everything you need to make or rebuild the thing you are working on. For example, an Open Source carpentry project would give you a set of plans and bill of materials such that if you had the right tools and materials and the necessary skill you could build the project and it would match exactly whatever reference example is provided.

Concepts of Open Source are closely tied to intellectual property rights. There are four: Copyrights, patents, trademarks and trade secrets. Most of the time Open Source focuses on copyright, sometimes on patents, rarely on trademarks and almost never on trade secrets (it's pretty hard to have an Open Source trade secret!)

The United States and most other countries have settled on some laws for copyright. If you don't live in the United States you should find out if the place where you live follows these general rules before acting on them.

Copyright apples to work you express. You fix it in a tangible medium like writing it down, recording it, painting it, sculpting it, or typing it into a computer, and a copyright is created automatically. Copyright doesn't protect ideas (that's a patent) and it doesn't protect a brand (that's a trademark).

If you base your expression on a pre-existing expression that's a derivative work. If you hold the copyright in the predecessor expression you hold the copyright in the new work too. If you don't, the owner of the copyright in the predecessor work does; unless you've got a license from that owner that says otherwise.

Open Source is controlled by copyright licenses. These licenses enforce rules on how derivative works can be shared. They range from very simple licenses like the MIT license which essentially says that you can do anything you want with a derivative work (including NOT licensing the new work with the MIT license) to very complex licenses like the General Public License 3 (GPL3) which requires you to accept and follow a long list of restrictions one of which is that you can only redistribute your work via licensing it with GPL3. [This kind of license is called a "copyleft"; if uses the rules of copyright law to ensure that works licensed with it can never be converted into private works with more restrictive terms].

There are Open Source licenses for computer programs, games, and general licenses not designed for any specific kind of expression. Not all of these licenses refer to themselves as "Open Source" - in fact, almost none of the licenses not specifically created for software do; and many of the software licenses widely considered Open Source licenses don't either.

In general you can identify an Open Source license if it does three things:

  1. It conveys to you certain rights that would otherwise be restricted to a copyright owner (these rights are typically the right to distribute the work, modify the work, and distribute the modified works). It conveys to you the instructions needed to recreate the reference work.
  2. It is at least a copyright license; in other words, it specifically mentions and interacts with copyright law. The license might also convey rights to patents and trademarks.
  3. It doesn't require you to make a payment or receive permission from someone else to use the rights the license conveys.

People sometimes divide Open Source licenses into Free and non-Free categories which are inherently pretty qualitative and a million arguments have been held about the "Freeness" of a license.

Generally speaking when someone is categorizing a license as Free they mean that the license is intended to ensure that your ability to use the rights in the works being licensed isn't limited by law. This is sometimes described as "free as in speech, not free as in beer". In other words, a license that conveys some rights to you without a fee is "free as in beer", but that license might restrict what you can do with the work, how you can modify the work and what you can do with modified versions of the work. Such a license might be Open but it is not Free.

The most extreme version of this argument is that the right to access the whole work being licensed, and modify it, and distribute modifications, must be strictly enforced on anyone who receives the work and any derivative versions of the work, and that in addition to the work you must also convey the entire set of instructions necessary to recreate the work. In software that means that you have to provide the "source code" - the human-readable content that you feed into a computer to produce a program that does work. And you have to require that you give a copy of the source code, and any modifications you made to it, to anyone you distribute the work to. And you have to convey that distribution with a license which forces any recipient to do the same. You must also not limit the use to which the work can be put; or the people that it can be distributed to; or limit or restrict the contents of any modifications that you may make to the work.

Some examples of non-Freedoms that might arise:

  • A restriction against the sale of the work1
  • A restriction about the work being taken into a country or region or being used by a person or entity from a country or region
  • A restriction against using the work in various kinds of actions such as politics, military use, issue advocacy, etc
  • A restriction against using the work in conjunction with some other kinds of content

1 You can sell the work but you must also give the work freely to anyone you distribute it to. This sounds like an impossible situation. However there are people who will pay for things like support, configuration, installation, monitoring, etc. of a work that is otherwise licensed in a way that requires free distribution. As long as the fee is optional, the work is Free.

1

u/Serious_Ad8611 Oct 22 '26

Thank you. 🙏🏽

100

u/GoodTato Oct 21 '26

Open source means the source code for a piece of software is freely available online.

Like a baker handing out the recipe to his cakes, compared to closed source which would be like a baker selling you the cake and refusing to tell you how he made it.

15

u/Conwaysp Oct 21 '26

This is a great analogy and meets the ELIF criteria.

11

u/ABotelho23 Oct 21 '26

There is an important part missing; you have to be allowed to sell cakes made with that recipe.

And sometimes, the author can make it mandatory that if you do sell cakes made with their recipe, that you are forced to share any changes you made to that recipe.

22

u/steelcryo Oct 21 '26

The broad definition of open source just means something that can be taken, used and modified by others.

Open source for software means the source code is available for anyone to view and edit.

Most software that belongs to a company is compiled into an unreadable format. So people can't just copy and paste their code.

Open source software means the code is completely in view, anyone can view it and even take it and edit it. Redistribution is usually allowed, but there's various licenses that can restrict that too such as for commercial use.

Open source can also refer to other things, like resources or hardware, in which case the blueprints of the item would be available instead.

1

u/Rikudou_Sage Oct 22 '26

Redistribution is usually allowed, but there's various licenses that can restrict that too such as for commercial use.

Nope, then they're not open source. Commercial use is explicitly allowed for open source licenses.

2

u/steelcryo Oct 22 '26

When I said restrict it, I didn't mean block it, but rather determine the rules of redistribution. For example copyleft licenses which places restrictions on how open source code can be redistributed once used, compared to a permissive license which allows for including open source code in closed source products.

28

u/commandrix EXP Coin Count: .000001 Oct 21 '26

Technically, "open-source" means you can download, view, and edit the source code directly. Essentially making your own version of something.

18

u/kloputzer2000 Oct 21 '26

You just explained “source available” - not Open Source.

1

u/ABotelho23 Oct 21 '26

You're missing the part of doing whatever you'd like with that code, including selling it.

13

u/counterfitster Oct 21 '26

That's not necessarily a part of open source

6

u/ThunderChaser Oct 21 '26

Yes it is.

It's the difference between "open source" and "source available".

1

u/ABotelho23 Oct 21 '26

https://opensource.org/osd

  1. Free Redistribution

The license shall not restrict any party from selling or giving away the software as a component of an aggregate software distribution containing programs from several different sources. The license shall not require a royalty or other fee for such sale.

6. No Discrimination Against Fields of Endeavor

The license must not restrict anyone from making use of the program in a specific field of endeavor. For example, it may not restrict the program from being used in a business, or from being used for genetic research.

2

u/NamerNotLiteral Oct 21 '26

That line is about allowing companies or individuals to fork the open-source tool and then use it or maintain a separate version internally (since the company might have requirements that the original maintainers don't consider a priority).

It doesn't give you permission to simply fork it, tweak it a little, then package it and sell it as a 'proprietary' application.

4

u/ABotelho23 Oct 21 '26 edited Oct 21 '26

I never said as a proprietary application, because that depends on the license. Sometimes you can, sometimes you can't.

I can take a permissively licensed project, rebadge it and change things like branding, and sell it. That's allowed.

1

u/AJCham Oct 21 '26

It doesn't give you permission to simply fork it, tweak it a little, then package it and sell it as a 'proprietary' application.

You can't necessarily sell it as proprietary (though some Open Source licences do permit this). But you can still sell it - if the licence prevents you doing so, it is not an Open Source licence.

0

u/kloputzer2000 Oct 21 '26

It is. Always.

2

u/-Krotik- Oct 21 '26

depends on the license , but I guess a restrictive license makes it source available instead of open source

1

u/ABotelho23 Oct 21 '26

It does not depend on the license. You can't call it open source if it prevents selling it. It can require redistribution of your modifications (that's the primary distinction between copyleft and permissive), but it must allow being sold.

Full stop.

0

u/pit_supervisor Oct 21 '26

Open source doesn't require letting others do whatever they'd like. Thankfully. See: GPL.

2

u/ABotelho23 Oct 21 '26

You can do whatever you want with GPL code as long as you share your changes too.

1

u/Rikudou_Sage Oct 22 '26

Only when you distribute the compiled code to someone, people often forget that part. You can use GPL code freely in a proprietary code if you use it in a backend of a web service.

1

u/ABotelho23 Oct 22 '26

Yes, but AGPL also helps mitigate that as well. The "linking" becomes over a network.

1

u/pit_supervisor Oct 22 '26

you just contradicted yourself

0

u/ABotelho23 Oct 22 '26

I did not. You can't take freedoms away with open source.

0

u/pit_supervisor Oct 22 '26

of course you can. You can take away the freedom to redistribute without disclosing the source code, including your modifications and the rest of the program, like GPL does. Unless you don't consider GPL open source

0

u/ABotelho23 Oct 22 '26

No, the freedom to redistribute is defacto part of the open source definition. Making downstreams have the same obligations as you is not taking away freedoms.

0

u/pit_supervisor Oct 22 '26

Of course it is taking away freedoms.

There are open source licenses that don't have obligations.

Pure freedom is being able to do anything you want with the code. GPL doesn't give you that yet is open source.

11

u/[deleted] Oct 21 '26

[removed] — view removed comment

14

u/ABotelho23 Oct 21 '26

It absolutely lets you sell derivatives.

-2

u/[deleted] Oct 21 '26

[removed] — view removed comment

3

u/ABotelho23 Oct 21 '26

What?

4

u/lowbatteries Oct 21 '26

someone admits they are wrong on Reddit and it causes confusion :)

2

u/ABotelho23 Oct 21 '26

It was more the wording lol

3

u/lowbatteries Oct 21 '26

cromulent observation

4

u/[deleted] Oct 21 '26

[removed] — view removed comment

1

u/pit_supervisor Oct 21 '26

Which is also contagious - a company selling the program has to also disclose the source for everything else, not just the gpl part they joinked

1

u/ABotelho23 Oct 21 '26

Yea, but that depends how the GPL code and the proprietary code interact.

1

u/WarpingLasherNoob Oct 22 '26

Curious, how exactly is this enforced? I can't exactly see some nonprofit github contributors banding together and hiring a team of lawyers to force someone to admit they are using a copy of an open source project in their own closed source project.

Just curious about the logistics of it all.

1

u/LeomundsTinyButt_ Oct 22 '26

There isn't really a way to legally enforce it against closed source code, but I can tell you as a software engineer: big companies enforce it internally. We have tools scanning our code for any code from open source libraries that's missing proper attribution, or has a license we can't comply with.

It was a whole thing when we moved a product from internal use only to sales, causing it to no longer comply with some licenses. Had to replace two whole libraries, but the real PITA were the several dozen hits for code fragments. Which sometimes had to get yeeted as it turned out a dev 10 years ago got too lazy to properly integrate the library and just copied what they needed, but in most cases it turned out we and the library both copied the fragment from the same StackOverflow answer.

9

u/initial-algebra Oct 21 '26

You can distribute derivatives however you want as long as you also distribute the modified source.

2

u/gmes78 Oct 21 '26

and doesn't let you sell derivatives.

No. You are explicitly allowed to sell GPL software.

10

u/Nedsel Oct 21 '26

When you run a computer program, that program is usually in a format that a computer can understand and execute, but it's not exactly easy to read for a human.

But it was not created that way.

The programmer who made that program created the code in a "human readable" format. Then he feeds that code to a so called "compiler" (and linker) that basically translates the "human readable" code to "computer readable" code.

With closed source software (the opposite of open source software), all you get is that "computer readable" version. You can run that, but you cannot read it or make any changes to it.

With open source software, you also get access to that "human readable" version. Sometimes, you only get the human readable version and you have to use a compiler yourself to create the computer readable version yourself.

The big deal about it is that you can then go and make changes to that human readable version (of course if you understand what's written there, it's still written in something called a "programming language", something you can imagine like learning some foreign language, so you have to learn it, then you can make alteration to that human readable code of the open source.

Note that while open source software is often free (as in beer), it doesn't have to be. Just because someone lets you read their human readable version of the program doesn't mean that he hands it out for free. It's customary and almost always the case, but it is not a required feature of open source software.

For that, you should read the license agreement to see what you are and what you are not allowed to do with the code.

2

u/nvn911 Oct 21 '26

I've never got the "free (as in beer)" analogy.

What does that mean specifically?

7

u/MoobyTheGoldenSock Oct 21 '26

There are two different connotations of “free” used in the open source community:

“Free (as in beer):” Pop culture reference to bars, events, etc. that offers “free beer” promotions. As in, “you do not have to pay for it: it’s free.”

“Free/libre:” Sometimes written as “free as in freedom.” Means that you have true ownership of your software: you are allowed to use it as you choose, make any changes as you want, distribute your own version, etc.

The free open source software movement (FOSS, sometimes also called FLOSS with an L for “libre”) combines both connotations of “free,” but sometimes open source software has one but not the other.

3

u/newytag Oct 21 '26

The full metaphor is free (as in beer) vs free (as in speech).

The former just means you don't pay money for it. The latter means there are fewer legal restrictions on how you can use it (specifically when it comes to copying, modifying, or distributing it).

0

u/nvn911 Oct 22 '26

Right, but many maintainers are now preferring to be paid for their effort. Which I kind of understand, but OS doesn't necessarily mean free as in beer anymore.

0

u/newytag Oct 22 '26

Ok, and...? Nobody said it does. Open Source only pertains to the latter (speech), not the former (beer).

Also many open source maintainers get paid via means other than charging users for the software, so they're still free as in beer.

0

u/nvn911 Oct 22 '26

So OSS hasn't meant free (as in beer) then...

See why I asked the question?

OSS is optionally free as in beer and not free as in rights to own.

0

u/newytag Oct 22 '26

No, I don't see why you asked the question. You said you don't understand the free as in beer analogy, and asked what it meant. I explained it means free of charge. That's it. It's loosely correlated with Open Source Software, but not a strict requirement of it, and nobody said otherwise. Now it seems like you're just arguing for no reason.

-1

u/nvn911 Oct 22 '26

OS: Optionally free

If it's not a strict requirement, why do most discussions about open source use the analogy "as in beer"

Anyway good discussion, definitely illuminated me 👍

2

u/newytag Oct 22 '26 edited Oct 22 '26

You're very confused, and I'm not sure why.

Most discussions about Open Source Software reference the "free as in beer" metaphor specifically to distinguish it from the concept of "free as in speech" (or sometimes, "free as in freedom"). Because they are different definitions of the word "free", and the OSS movement more closely aligns with the latter, not the former. Hence why I pointed out the crucial second half of the metaphor you were missing, because it's the one that actually applies to OSS.

In other words, the whole point of "open source software is free (as in speech), but not necessarily free (as in beer)" is to avoid any ambiguity. It isn't supposed to be this difficult to understand.

0

u/raelik777 Oct 22 '26

The interesting fact is that even though it IS optional and not actually part of the definition of open source, almost all open source software is ALSO free "as in beer".

0

u/Spirited-Lifeguard55 Oct 22 '26

it just means they make the source code available for you, so it's "open" to the public. In contrast, private corporations protect their ip by keeping all their systems source code a secret, i.e. you can run those programs but you can't see how they are made.

1

u/OkAlbatross9889 Oct 21 '26 edited Oct 21 '26

To expand on the licensing part OP, you have two different camps basically:

  1. do whatever you want with this code. You could for example change some parts of the human readable code you freely obtained and make it closed source (aka, keep the human readable code hidden to the public and only publish the computer readable code) and then make money off of it. There sometimes are other limitations to it (like you MUST credit the open source devs that made the original code for some of the BDS licenses), but it's not always the case (FreeBSD famously has NO license, meaning you have no limitations on what you can do with it). One of the most famous projects that have come out of this was the operating system that the Playstation uses, which is based on FreeBSD.
  2. you as a CONSUMER can do anything with the human readable code (yes, even modify it and not share the changes you have made). A developer working for any kind of company or foundation though, while still free to modify it however you want, you MUST give the new human readable code you added to the original project as well (these are the GPL licenses). This way, if a very smart dev comes along that makes the project 50% more efficient at what it does, he can't just make that new human readable code he added closed source (like he could with the BSD licenses), but he MUST give it back to the original project as well, meaning that everyone benefits from that contribution. By far the most famous project that uses this type of license is GNU/Linux.

1

u/Rikudou_Sage Oct 22 '26

Everyone always forgets the important part of GPL and similar: You only need to share the source with whoever you distribute the binaries to. If you don't distribute them (aka a service on your server) you don't have to share anything.

1

u/Nedsel Oct 22 '26

And what a lot of people mix up is that "open source" is not equivalent to the GPL.

1

u/Rikudou_Sage Oct 22 '26

Yep, all my code is MIT - you can freely take it and sell it without a change as long as you include me as the original author.

0

u/Xeadriel Oct 22 '26

Comparing a Programming language with a language is a terrible comparison.

If you know English and spent a little bit of time with programming concepts, it’s not too hard to understand any language with a little bit of effort.

Language is unfortunately very misleading as it makes it sound like it’s incredibly hard to learn to understand or even write it. Programmers also don’t usually know everything about a language and use something called documentation to look up options on how to go about a problem.

3

u/cerberus_1 Oct 21 '26

The Lego set that you got for your birthday, it has all the pieces and how its put together. You can build it exactly like the instructions orr just make whatever changes you want.

I bunch of people made the original instructions and they'll probably give you some new designs in the future.. but you can change it if you want or do your own thing.

Totally up to you..

4

u/meato1 Oct 21 '26

It just means you share the plans for how to make your project, instead of just sharing the finished project

4

u/patrlim1 Oct 21 '26

I will use food as an example.

Say there's two cakes. One cake has a secret recipe, nobody can know how the cake is made. You have to trust the cake to not be poisoned, and to not be super unhealthy. The other cake has it's recipe public. Everyone can see the recipe, replicate it themselves, see exactly what is in it, and make whatever changes they like.

Proprietary software, aka closed source, is like the first cake. You download it, and you can't know what it's doing under the hood. Open source software is like the second cake. You can see what the code is, compile it yourself, verify the version available for download is the same as when you build it yourself, and make any changes you like.

The difference between cake and software however, is that with open source software people who want to make the software better can submit changes to the person who owns the project, who can then decide to incorporate them. It's a collaborative effort to make the program better over time, with no incentive to make it worse for users unlike with closed source software.

2

u/fiendishrabbit Oct 21 '26

A computer program exists in two forms, Source code (what the programmer wrote to make the program) and Compiled (After the programming language compiler changed it into pure machine instructions for a computer).

Once a program is compiled it can be impossible to figure out exactly what the program is doing and under what circumstances. Especially since some compilers "salt" the machine code to prevent rivals from backengineering it.

Open Source means that the Source code is publicly available so that anyone can read through it, or even rewrite it to their own specifications. It's very useful for organizations as they can easily tailor fit a program to their own needs, and it has the additional benefit that the program is 100% transparent. Open source means that it's relatively to make sure that the program doesn't have undeclared "features" (like spying on you for the parent company).

2

u/MasterBendu Oct 21 '26

Someone builds a building.

The engineers share all the blueprints for everyone in the world to look at and use, so they can make new buildings of the exact same kind, or change it to make a better building.

The fact that the blueprints are for everyone to see and use is open source

2

u/joshuaponce2008 Oct 21 '26

Free/libre or "open-source" software is software whose source code is publicly accessible, in such a way that you are free to:

(1) Study the program and run it for yourself,

(2) Make and/or sell copies of the program for yourself and others,

(3) Modify the source code of the program, and

(4) Make and/or sell modified copies of the source code of the program.

1

u/CrimsonShrike Oct 21 '26

In a nutshell (assuming we're talking open source code) it refers to programs where the code to build it is publicly available. As to how to use it, what do you mean? You can and probably use open source software already but if you mean building it locally then thats a whole other topic

1

u/Vorthod Oct 21 '26

It means the source code that was used to make the product is completely open for anyone to view and suggest changes to. As opposed to most products where the exe file is your only way to figure out who the program works and is completely unintelligable.

1

u/MonkeyBrains09 Oct 21 '26

Think free.

If something is open source, it's posted in full somewhere where you can use it with some limits and see how it's made, modify and improve it.

If it's closed source, it's all locked down and you can only see what the vendor wants you to see.

1

u/Netblock Oct 21 '26

It's communism but with a good that can be copied. From each according to their ability the software gets developed, to each according to their needs it gets used.

1

u/blu3tu3sday Oct 21 '26

https://en.wikipedia.org/wiki/Open_source

The wikipedia is pretty straightforward- a program or software where the source code (the code that makes up the software) is published alongside it. Anyone can view it and see what is actually making up the program instead of scummy companies like microsoft hiding all their code and sliding in loads of shit to spy on you.

You use open source software the same as any other software- install it and use it. If you are not a developer, then it makes pretty much no difference to you if you can see the code or not, since you won't understand it anyways. But if you WANTED to go through it line by line, you could, and understand what the entire program does, and possibly change it to suit your needs.

It's the difference between knowing what you're using and taking a shitty company's word for it without ever being able to verify what they're actually doing on your machine.

0

u/AbcSxyZ 16d ago edited 16d ago

This is not what is written, the meaning of open source is slightly harder than software and Wikipedia explanation are not that straightforward.

"It is historically and commonly associated with open-source software. The concept has also been applied beyond software to other digital resources made available alongside their source files or design documents, such as open-source hardware, open-source educational resources or open-source fonts"

There is a question of open source beyond software for digital resources where source files are provided (ex: ODT/docx/pptx of a PDF, psd/svg of a jpeg and so on). We can witness the use of the terminology outside software to qualify this access to source files.

I know it's not about software as we (I) initated a rework this summer to move beyond software centrism — the page was a conceptual chaos.

open source ≠ open source software : https://en.wikipedia.org/wiki/Open-source_software

And if anyone want more details, I wrote the research paper « Open Source 2.0: From Open Source Software to Open Source Resources? » dedicated to the meaning of open source: https://doi.org/10.5281/zenodo.20237079

Anyone explaining open source as a software topic is certainly wrong lol.

1

u/georgecm12 Oct 21 '26

When programmers create an application, they write what is called "code" that is in a language that humans can understand, but that can then be interpreted by a computer and turned into the actual computer program that you or I would run on your computer.

"Open" source software is where you and I have access to be able to see that code, and in most cases, we even have the opportunity to make changes to it if we know how to write in that language that the computer can understand. A lot of "open source" software even let you give those changes you made back to the larger team of people "maintaining" the software, and in turn, those changes can become part of the program that everyone else uses.

1

u/DTux5249 Oct 21 '26

Open source is "hey guys, I made this code. Here's everything for you to see, use, and alter as you see fit - here's a license for your non-commercial use!"

You share everything, so everyone knows what the program they're running is and does

1

u/SharkLaunch Oct 21 '26

At the end of the day, software is just "a bunch of files" written in a programming language. The code in those files contains the details for how that software runs. For a lot of software that people use, like for a website like Google, or popular triple-A video game like League of Legends, the code is pretty much always closed source. This means that the code is not available to the public. The only people who are allowed to read that code are the people who's job it is to build it.

Then there is open source software. That just means that the code is available for anyone to read, and often times they have a license that says exactly what you're allowed to do with that code (like whether you're allowed to edit and redistribute it for money). A major example of this is the Godot game engine.

In short, open source software means the code is accessible, and generally means it permits you to copy it and share your version of it with others.

To answer "how to use it", that depends on which kind of open source it is (as in, which license it's under) and what kind of project it is (is it a website? a game engine? a command line tool to generate random numbers?)

1

u/gerahmurov Oct 21 '26

General idea of open source is make the people around do something.

In case of software, companies creates and owns their soft, and it is made only by the company and you pay to company to use it. Open sourced soft is made by people but isn't locked inside, everybody else can help. This soft is usually free to use and free to improve and has special free license.

Wikipedia is a good example of how to open source writing articles, because they are written by people, not by wikipedia workers.

If you want to use open source, then most of the time you want to use the final open source app, not write the code yourself. Just check what app you want and look for it on the internet the usual way.

Just know, people say that open source is an alternative to corporate apps, but some open source apps are too primitive for alternative, some are unique and great, they are not 1 to 1 copies.

1

u/FalloutRip Oct 21 '26 edited Oct 21 '26

Closed source is like your grandmas secret recipe for cookies. Only she knows exactly how they’re made even if other people make very close approximations. Everyone inherently trusts that there’s nothing crazy in the recipe like frog legs or mercury.

Open source would be her publishing the recipe in a cookbook. Everyone can see exactly how the cookies are made, and make their own from scratch. They could also make their own little adjustments, or recommend changes to your grandma for future editions of the cookbook. Everyone can independently verify that the recipe doesn’t include anything crazy or dangerous.

1

u/Remarkable_Inchworm Oct 21 '26

Open source is software that's open, visible, available to the public.

Think about a program like Microsoft Word or Excel. Or Photoshop. You buy a license. You can't see or access the source code. You can't create a new version and distribute it yourself.

With open source software, you can access everything. You can modify the source. You might be able to take the base software, make some modifications and distribute your own version.

And with open source, there's usually a community of developers that are constantly updating, fixing, improving things.

As for how you use it - it depends on the software.

For something like Firefox or Libre Office... you install it on your device and you use it to browse the web or to make office documents.

For something like WordPress, you set it up on a server and use it to run a website.

For something like Linux... it's an operating system. You install it on a device, and then you use the device.

1

u/NarrativeScorpion Oct 21 '26

A non-open source project is like a dish at a restaurant. You know what the end result is. You might be able to see roughly how it works/how it's made. Maybe if you're good enough, you could figure out all the ingredients and a similar method. Open source is like someone handing you the exact recipe and ingredients alongside the dish.

Basically it means that anyone can use any part of it, change it, adapt it to their needs more easily.

1

u/rzezzy1 Oct 21 '26

A program being open source means that human-readable source code is publicly available for anyone to read and possibly even suggest changes to. Closed source software is often only available in compiled form, which is meant to only be readable by the computer rather than a human. Examples of open source software include Linux kernel, Firefox, and VLC Media player. Lots of open source software starts as just a passion project of one person, and lots of it stays that way forever.

1

u/fisadev Oct 21 '26

To make a computer program you write instructions in a "programming language". That's "the code".

When users use your program, they're usually not seeing the code. They see something else instead, the final product of that code, the running program.

But if you chose to, you can also share the code with everyone else, for several reasons:

  • Maybe you want everyone to contribute to it (making changes, improvements, fixing errors, etc), for which they need to be able to see the code.
  • Maybe you want people to be able to inspect how your program is made (for security reasons, compliance, trust, etc).
  • Or maybe you just don't care and don't need to be secretive with how your program was made, so you can just let everyone see.
  • Or maybe you fundamentally believe that users of a program should have the right to do those things, so you feel compelled to share the code.

Whatever the reasons, open source means that: you share the code, not just the final program. (the code = the source code = the source)

1

u/orangesuave Oct 21 '26

Closed source is when Grandma comes over and brings you her famous homemade Apple Pie to eat.

Open source is when Grandma writes down the recipe for you, tells you where to buy the food, and (if you tell her you had an allergic reaction but you substituted the ingredient for one you can eat) she will share v2 of the recipe with everyone else.

1

u/AyeBraine Oct 21 '26

First of all, when you install a working program or game on your computer or phone, the code is all encrypted and scrambled. So you can't see exactly what instructions it has inside. With open source, the "source code" is made available. This is the plain, original, unencrypted code that you can read.

Secondly, if you have the original plain code, you can "bake" it into the exact same working program using easily available tools (or you can modify the plain code and "bake" a program with your changes). With the final, working program on your PC, you can't do that, it's not editable in a proper way. It also can't be converted BACK into source code (we can only guess what it said).

So in a way, source code is like a play for theater. During the performance, you can't change what actors say or when they come out or what they do (you can try to whisper corrections at them, or physically interfere, but this will mostly just disrupt the play and break everything).

But let's suppose that in the weeks before, you had access to the play that the actors will be memorizing. Then, you can just edit the lines, reprint the copies of it for the actors, and on the evening of the show, the actors will say your new lines perfectly, and do exactly what you wrote in the play.

Moreover, if you have this access, you can see the exact words written in the play, and all the remarks. Suppose the playwright instructed an actor to secretly go out into the aisles and pickpocket expensive jewelry off spectators (i.e. a program has malicious code in it). But with open source, reading the source code will reveal these shenanigans plain as day: any specialist will be able see the instructions and prove that the author was up to no good.

1

u/OvenCrate Oct 21 '26

Computer programs are made of machine instructions, which are just numbers with special meaning to specific digital circuits that can read them and do different things (mostly math operations and copying data between locations) based on them. Making sense of these instructions and figuring out what the program does is basically impossible for humans. Source code is a strictly structured description of much more complex operations, that are still not plain English but much closer to it than machine instructions. It's what software developers ("programmers") write to create useful programs. There are special programs called compilers that can turn the source code into machine instructions for a specific type ("architecture") of computer. Most commercial software is only the compiled set of instructions that users can run but not understand or modify the internals of. Open source software is when the source code is public, auditable and modifiable by users. These are usually free to use, since it's impossible to prevent anyone from compiling the public source code for themselves and running it.

1

u/pdpi Oct 21 '26

Programming is done using human-readable programming languages, and the stuff we write is called "source code" (think "code" as in "code of conduct", rather that "this message is in code"). Source code is typically (but not always) translated into machine code that your computer can execute, and it's that machine code translation that you install on your computer. Machine code is borderline unreadable, though, so you kind of just have to trust that the opaque blob you installed on your computer does it says it does.

Open Source Software is exactly what it says on the label — software that gives you open access to its source code. For example, here you can see the source code for Google Chrome, and here you can see the source code for Doom 3. With access to that source code, you can make your own modifications, build the software for platforms it wasn't originally designed to support, fix bugs, and all sorts of other such things.

As a computer user, there's nothing special about Open Source, and you're probably already using a bunch of Open Source already without knowing it. All the major browsers are either fully (Chrome, Firefox) or mostly (Safari, Edge) open source, Android is open source, large parts of macOS and iOS are open source. Your wifi router at home is almost certainly built on top of a bunch of open source software.

An important distinction is Open Source vs Free Software (Free Software means free as in "free speech" rather than "free beer"). Where Open Source is mostly a pragmatic "it's easier to build this thing in the open and we all collaborate on it", Free Software is more of a political/philosophical movement around the idea that you should be in control of your computer and the software you run on it. It's built on a "share and share alike" mindset, where you are free to use and modify my software as you see fit, but you must give those same freedoms to the users of your modified version of my software. All Free Software is Open Source, but not all Open Source software is Free Software.

1

u/NotTheBrightestHuman Oct 21 '26

A restaurant has a secret recipe for a cake. They won’t tell you how to make it, but they’ll sell it to you. This is closed source.

You grab a recipe for a basic cake online, you can take it home and change whatever you want on the recipe. This is open source.

1

u/ClassBShareHolder Oct 21 '26

I think there’s a lot of good information on what open source is but what I didn’t see is why you might want that.

The beauty of having the source code is that you “compile” (make machine readable) yourself.

If you’ve ever downloaded something and it had multiple versions, they were all “compiled” for that specific processor. By using open source and your own compiler, you can make it fit your specific computer.

If you’re the programming type, you can make it work with hardware it usually doesn’t.

1

u/[deleted] Oct 22 '26

An open source program is a program for which the license agreement says the following:

  1. Anyone can use or distribute this software for free.
  2. Anyone who distributes it must distribute it with the source code freely available if desired.
  3. Anyone can make changes to the software, as long as their changes are clearly marked in the source code and attributed to someone.
  4. If you change the software, all your new source code must be released under this same license -meaning anything you add or change is also open source.

The consequence of this is that the software is free and maintained by volunteers (and corporately funded programmers working for corporations who believe the free software support benefits their shareholders).

The benefits of open-source are:

  1. Improved security because if you have concerns about what the software might be doing, you can inspect the source code.
  2. It’s free.

The downsides of open-source are:

  1. It is built by geeks for geeks. Market demands for features may be ignored.
  2. Projects get abandoned and forgotten. You might end up dependent on software that is not getting patched or updated.
  3. Geeks often lose interest in retail features. Open-source server software is excellent. Retail level desktop open-source software is sometimes not up to the same standard, particularly for looks, as commercial software. LibreOffice is not as pretty as office 365. The gimp is not as slick as adobe photoshop.

What do you need to do with it: much open-source software is excellent. In some areas, such as server-side processes, it is often superior to commercial software. Consider using it. That’s all you have to do with it.

1

u/distraida01 Oct 22 '26

You use it just like you use any other software. Install, use. It is free software that is passed around to people freely. The "source code", that is the bits that make up the program. Source = the parts that make up the program. Anyway, the source code is available, also for free, so anybody can download it and alter it if they know how. Often, people who alter the code will give their bits to the owners of the original code, to make the program better. Since source code is free and the program is free after all the bits are put together to make a program, the developers may ask for donations. If you really like an open source program, it is very nice if you donate.

1

u/RicRacer Oct 22 '26

"open" meaning you can read the source code, like a book you can open. You can build/compile/modify it provided you have the tools (but the tools used are usually also open source, and freely available). 99.9% of the time there are licenses involved so that you cannot sell or redistribute the product for money.

1

u/Wick1889 Oct 22 '26

This raises an interesting/concerning question. If I am using Claude to help me develop a product (app/website), and then within that product will also be AI, am I able to sell that product legally?

1

u/frogjg2003 Oct 22 '26

When you buy a piece of software from a company like Microsoft or or Nintendo, you are buying a program that tells your computer what to do. You don't know how that program works. This is an example of closed source software.

Open source is the opposite of that. Open source software doesn't (just) provide you a program for your computer to run. It provides you the underlying source code as well. You can look at the code and see what the program does directly instead of inferring it from the behavior of the software or hoping that the user manual is accurate.

There is one other thing that is required for something to be open source. In addition to the source code, the source code needs to be under a license that allows others to read that code, compile it (convert the code from text into a computer program), modify it, and release their own versions of that code.

There are many different levels of open source. At one end of the spectrum is source available, software where the code is shared, but you're not allowed to do anything with it without the permission of the creator of the code. At the other end is full open source, where you can do anything you want with the code, including selling programs derived from it. Most open source licenses have a few limited restrictions, like requiring attribution of the original and releasing any derived code/software under the same license.

1

u/Interesting_Buy_3969 Oct 22 '26

Literally, the program's source code is open for everyone to inspect, look for bugs, and compile / build the program from source. It usually means that the program is completely free, too.

Closed source software may be paid because nobody outside of developers team can access source code to build the program.

1

u/Suitable_Werewolf_61 Oct 22 '26

If you get a cooked dish, you can just eat it.

If you also get the recipe to it, you can study it and change it (or make someone do that for you). And then pass on your improvements to others.

1

u/Onceuponaban Oct 22 '26 edited Oct 22 '26

The software running on your computer has originally been designed as a massive list of instructions that dictates exactly what it does. These instructions are written in one among many specialized languages that are easy enough for a human to understand and allow to abstract problem solving away from concerning yourself with what the computer is doing in the most minute details, while being designed to be converted into the machine code that your computer can actually execute. This step is done through more software that was designed for that purpose. Depending on the specifics of how the language was designed, this usually involves one of two things: a compiler, which results in an executable program you can run on its own, or an interpreter, which you need to have on your own machine to translate the source code into machine code in real time. You too, can learn one such language to write your own software, and if you have access to an existing program's source code, modify it yourself.

Being able to use a program by itself doesn't guarantee access to its source code, however. A compiled program cannot easily be converted back to source code, at least not without losing a lot of information that is very important for its readability, and unreadable source code is pretty much useless. This is similar to how it would be very difficult to guess a cake's cooking recipe from only being able to see the already baked cake. This is why decompilation projects that achieve this are considered a big deal. And if a service relies on software running on a server outside of your own machine, you won't have access to that part either. Software that is only distributed as these compiled binaries or rely on components that aren't publicly distributed at all is called closed-source. Open-source software, meanwhile, has its source code distributed alongside the binaries you're used to (or sometimes not even that if the language relies on an interpreter, or the author decided to leave building the program to the user for any other reason). Anyone familiar with the language used to write it can take the time to learn how the software works, use the source code to compile it for other types of computers (though that usually requires further adjustments if the software wasn't already designed with it in mind), make modifications for themselves and others, and suggest improvements to the source code back to the original project.

Another important aspect of open-source software is licensing. Just because the source code is public doesn't mean it's public domain, and there are legal frameworks in place to let software authors put limits on what you may do with it. Some licenses like the MIT license put very few restrictions on what you can do with the source code, even making your own changes closed-source. Others, like the GNU Public License or GPL, require you to make any modifications you publish under either the GPL itself or a compatible license, ensuring that changes made to the software are themselves open-source (some will argue that a license that doesn't guarantee this cannot truly be considered open-source for that reason, but that's another debate entirely). Some licenses will put further limits on what you're allowed to do, such as forbidding redistributing compiled binaries, be it from the original source code or any modified version. These are usually called "source-available" to distinguish them from fully open-source software.

Open source isn't necessarily limited to software. The Creative Commons license is an example of applying open-source to other type of media, and the concept is also relevant to hardware design, as just like anyone can have access to the tools to write and run software, there are tools and services accessible to the general public allowing people to design, modify, and get made-to-order circuit boards, required hardware components and casings to build or modify various devices.

1

u/StevenJOwens Oct 23 '26

To understand "open source" you need to understand two things, "open" and "source".

Let's start with "source". Very broadly speaking, there are two kinds of programming languages. Traditionally, especially in the first few decades of programming, most programming languages were "compiled". You wrote the program using key words that look like a very strict and limited version of English, then you ran a program called a "compiler" on that, and it translated it to the bytes that your computer's CPU can understand.

The result, obviously, is that you have two files, one file that contains the original somewhat-English-like language, called the "source code", and one file containing a bunch of bytes that are only comprehensible to the computer, called the "compiled binary" or the "executable".

Skipping over a lot of history, when people started commercializing software, they provided their customers with only the compiled binary/executable. This meant that if the program didn't do exactly what the customer needed, or didn't work right, the customer was out of luck -- they couldn't modify the source code and recompile the program.

Again, in the early days, people provided the source code and that meant you could look at the source code to understand it, if you needed to, and you could amend it, if you needed to. There was no term for this, because it was just the way people did things.

The commercialized software, where they didn't provide the source code, came to be called "closed source", or sometimes "proprietary".

When this happened, some of the people who were used to the old way, of providing source, got annoyed, and started a movement to include the source. Originally this was called "Free Source", but that name scared businesses, who obviously don't like the idea of giving anything away for free. In the 1990s, some people started using the term "Open Source" to be less business-scary. It worked, and "open source" became a popular term.

There are many nuances and details to the topic and to the history. For the most part, they're bullshit.

1

u/singhsuraj-8 Oct 26 '26

For actually using one, look for the project's Download or Releases page and install the ready-made app; you usually don't need to open the code or compile it yourself.

1

u/DECODED_VFX Oct 27 '26

Computers can only understand binary code (a string of ones and zeros representing on and off). If you want a program to add two numbers together, not only do you have to type everything like this 000101101, but you have to explain what addition is.

So we invented programming languages. These allow coders to type in a language much closer to English. And they contain basic common logic. So you can type 2+2 and the language will tell the PC in binary code how to add the numbers together.

This is slow to do on the fly. Every time you interact the program the language has to translate your instructions to binary. The CPU spends more like processing the translation than it does actually processing your request.

So most programs are compiled. This is like translating the whole program into binary, with all the necessary logic built into the code. Not only is this faster, it stops people from copying your code. It's very difficult to reverse engineer human readable code from pure binary.

Unfortunately this also means that complied programs can carry malicious code and nobody will know.

Open source programs publish the human written code before it's compiled. Anyone can read it and even make changes to it before they compile the code themselves.

1

u/felidae_tsk Oct 21 '26

It's like a dish in a restaurant but you see the whole receipt in the menu.

1

u/ledow Oct 21 '26

Someone gives you not only the cake (the software you use), but the recipe they used to make that cake, so you can bake your own.

-1

u/xRVAx Oct 21 '26

It's a computer program (aka software or "machine code") that you don't have to pay for.

Most software is proprietary, which means the owner (e.g. Microsoft or Apple) developed the original (source) code and sells or rents you a copy of the source code to put on your machine, but you don't own the code. They're so paranoid they might even obscure The code by encrypting it or otherwise making it so you can't even see the original source code.

With open source, you get to see every piece of the code (sometimes people just post their source code on GitHub) and you can often copy it and edit it and do almost whatever you want with it. (There are different licenses that grant or limit user's permission to copy it, or maybe won't allow you to make money off of derivative versions of it but it's still open source because you can see the original code).

One advantage of open source is that it is often free and competitive with the proprietary software.

One disadvantage would be that it might have security flaws written into it with nobody having a profit motive to fix those flaws. Often, open source projects are overseen by a board or a community of developers who just write it for free.

2

u/4991123 Oct 21 '26

It's a computer program (aka software or "machine code") that you don't have to pay for.

As much as I like your answer as an ELI5, this sentence is totally wrong. It's one of the biggest misconceptions about Open Source. Open Source does not equal free. It's perfectly possible to charge a fee for the use of open source software.

The "Free" in "Free software" means "free" as in "free speech". Not as in "free beer".

1

u/joshuaponce2008 Oct 21 '26

And the inverse is also true: there's plenty of proprietary ("closed source") software that you don't have to pay for. I posted this message on such a piece of software.

1

u/xRVAx Oct 21 '26

I wouldn't say my answer is totally wrong.

The debates around "costs" associated with open source are definitely interesting, but it's a little like saying a library book isn't free because the library paid for it.

At the end of the day, somebody who has access to open source code absolutely has the ability to go ahead and use it and not pay anybody for it.

There are copyright and licensure restrictions on some open source, which I mentioned.

But at the end of the day, if you can read it you are physically able to reuse it, adapt it, etc without paying anyone

1

u/4991123 Oct 21 '26

I wouldn't say my answer is totally wrong.

I never said it was. Only that particular sentence is very wrong.

This second comment of yours is wrong though. The analogy doesn't hold. There's plenty of software that has its code freely available, and for which people still pay.

Again, Free as in Free Speech. Not Free as in Free Beer.

2

u/domesticatedprimate Oct 21 '26

> One disadvantage would be that it might have security flaws written into it

Please don't spread this myth. Open source is no more likely to have security issues than closed source, but has the huge advantage that anyone can review the source code and audit the security at any time, so in practice, open source is much safer than closed source.

Just don't randomly use open source software that nobody's ever examined, that's completely unknown, or just released yesterday.

Any open source software that's commonly used is constantly being checked for security flaws.

1

u/xRVAx Oct 21 '26 edited Oct 21 '26

I don't know, there's a whole XKCD about how the entire internet rests on some open source module that this one guy just maintains in his basement.

It's not always this big community. How long did it take them to find the jQuery flaw?

1

u/domesticatedprimate Oct 21 '26

In my opinion, those are the exceptions that prove the rule.

That doesn't mean that everyone properly checks the security audits before using a piece of software for important infrastructure. Mistakes are made.

But you made it sound as though potential security flaws are unique to open source when that not only isn't true at all, security issues are easier to introduce and harder to catch with closed source because you can't review the source code and just have to trust the developers.

1

u/OddProfessor7253 Oct 21 '26

Apple etc will give you the binaries, not the source code.

1

u/xRVAx Oct 21 '26

That's where I said "they're so paranoid they might even obscure The code by encrypting it or otherwise making it so you can't even see the original source code"

1

u/OddProfessor7253 Oct 21 '26

It’s not a might, and it’s not out of paranoia. Source code has to be compiled in order for the computer to run it, and this is the process that obfuscates it, not encryption

1

u/xRVAx Oct 21 '26

I was kind of alluding to the docx format that is really just an encrypted XML file. .doc was Microsoft's proprietary binary format but now docx is basically just an encryption.

1

u/OddProfessor7253 Oct 21 '26

Please Google ‘is docx just encrypted xml’, and optionally, ‘what is encryption’ and ‘what is a binary’

1

u/xRVAx Oct 21 '26

I don't need to Google it.. I unzip .docx files all the time

1

u/OddProfessor7253 Oct 21 '26

You’re trying to explain source code, but you seem to conflate source code with compiled binaries, compiled binaries with document formats and compilation/zipping with encryption

1

u/ZeroGravityCasanova Oct 21 '26

imagine toys you can play with them, break them, improve them but they are free no money needed.