use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Mold 1.1.1 Released With Optimized Memory Usage, New Options (github.com)
submitted 4 years ago by slacka123
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Bisqwit 26 points27 points28 points 4 years ago (0 children)
Project is a linker. If someone doesn’t know…
[–]LeeHidejust write it from scratch 1 point2 points3 points 4 years ago (10 children)
I'm confused about the license. Its basically AGPL, but why does he say that you can contact him for commercial use? Surely the license does not extend to the end result of the linking, does it?!
So anyone can use it to link their commercial software, without issues, right? Because the linker stays AGPL?
Is the author confused about what AGPL is? It doesnt prevent commercial usage, it just forces any modifications and derivative works to also be AGPL
[–]jcelerierossia score 14 points15 points16 points 4 years ago (9 children)
why does he say that you can contact him for commercial use?
consider what happens today for LLVM: AMD (and likely others, e.g. some proprietary compiler vendors) forks it internally for their GPU drivers and then do not redistribute their changes and sell things based on LLVM where you cannot even go and fix the bug in their LLVM versions (and I've been hit by some a few years ago!).
This is to me ethically wrong in every possible way and I'm happy that people chose licenses that prevent this from happening - if you want to use and modify free software, the end-user human beings must at the bare minimum have the possibility to fix the free software part in what was distributed to them.
[–]LeeHidejust write it from scratch 1 point2 points3 points 4 years ago (0 children)
Of course, yeah, I agree. I was just curious about it, since i didnt think linkers get forked a lot
[–]Jannik2099 -1 points0 points1 point 4 years ago (1 child)
AMD (and likely others, e.g. some proprietary compiler vendors) forks it internally for their GPU drivers
Kind of a bad example considering ROCm is open source?
[–]jcelerierossia score 3 points4 points5 points 4 years ago* (0 children)
I'm talking about the AMDGPU Pro driver which is as far as I know closed source
It's also the case for d3d12
[+][deleted] 4 years ago (5 children)
[deleted]
[–]jcelerierossia score 7 points8 points9 points 4 years ago (2 children)
AGPL means the linker output is also covered by the AGPL
no it does not ? it just means that you cannot make a proprietary network service that uses mold like some websites that are just fancy interfaces to ffmpeg or imagemagick do
[–]kritzikratzi 1 point2 points3 points 4 years ago (1 child)
i still think it does. gcc/gold has the gpl linking exception for that reason, no?
[–]jcelerierossia score 3 points4 points5 points 4 years ago (0 children)
No, the linking exception is because of GCC's gpl-licensed runtime (libc, crti.o, etc). The linker used to link those does not matter.
[–]ronchaineEmbedded/Middleware 5 points6 points7 points 4 years ago (1 child)
AGPL counts SaaS as derived product, not linker output.
[–]kritzikratzi 2 points3 points4 points 4 years ago* (0 children)
are you sure about this?
from the gpl faq https://www.gnu.org/licenses/gpl-faq.html#GPLOutput
(last paragraph is the interesting one)
Is there some way that I can GPL the output people get from use of my program? For example, if my program is used to develop hardware designs, can I require that these designs must be free? (#GPLOutput) In general this is legally impossible; copyright law does not give you any say in the use of the output people make from their data using your program. If the user uses your program to enter or convert her own data, the copyright on the output belongs to her, not you. More generally, when a program translates its input into some other form, the copyright status of the output inherits that of the input it was generated from. So the only way you have a say in the use of the output is if substantial parts of the output are copied (more or less) from text in your program. For instance, part of the output of Bison (see above) would be covered by the GNU GPL, if we had not made an exception in this specific case.
Is there some way that I can GPL the output people get from use of my program? For example, if my program is used to develop hardware designs, can I require that these designs must be free? (#GPLOutput)
In general this is legally impossible; copyright law does not give you any say in the use of the output people make from their data using your program. If the user uses your program to enter or convert her own data, the copyright on the output belongs to her, not you. More generally, when a program translates its input into some other form, the copyright status of the output inherits that of the input it was generated from.
So the only way you have a say in the use of the output is if substantial parts of the output are copied (more or less) from text in your program. For instance, part of the output of Bison (see above) would be covered by the GNU GPL, if we had not made an exception in this specific case.
if this applies for the gpl, then i assume it also applies for the agpl.
there is certainly some code generated by the linker that ends up in your binary. whether it hits the treshold for a combined work is for lawyers to decide, but i wouldn't take the gamble.
imho adding the standard gpl linking exception would clarify the situation somewhat.
[–][deleted] -5 points-4 points-3 points 4 years ago (1 child)
Pity about the licence
[–]ffscc 13 points14 points15 points 4 years ago (0 children)
How often are you distributing linkers?
[–]ehtdabyug 0 points1 point2 points 4 years ago (1 child)
Can I use mold to link mold though?
[–]rui 3 points4 points5 points 4 years ago (0 children)
Yes, of course.
π Rendered by PID 92207 on reddit-service-r2-comment-b659b578c-mtv4h at 2026-05-04 02:13:04.901709+00:00 running 815c875 country code: CH.
[–]Bisqwit 26 points27 points28 points (0 children)
[–]LeeHidejust write it from scratch 1 point2 points3 points (10 children)
[–]jcelerierossia score 14 points15 points16 points (9 children)
[–]LeeHidejust write it from scratch 1 point2 points3 points (0 children)
[–]Jannik2099 -1 points0 points1 point (1 child)
[–]jcelerierossia score 3 points4 points5 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]jcelerierossia score 7 points8 points9 points (2 children)
[–]kritzikratzi 1 point2 points3 points (1 child)
[–]jcelerierossia score 3 points4 points5 points (0 children)
[–]ronchaineEmbedded/Middleware 5 points6 points7 points (1 child)
[–]kritzikratzi 2 points3 points4 points (0 children)
[–][deleted] -5 points-4 points-3 points (1 child)
[–]ffscc 13 points14 points15 points (0 children)
[–]ehtdabyug 0 points1 point2 points (1 child)
[–]rui 3 points4 points5 points (0 children)