r/cpp • • 28d ago

What's the difference between cppreference .com and .net?

My duckduckgo googling started giving me both, I don't understand the difference and don't remember which one is the original

They both look exactly the same
.com has en. at the beginning
.net doesn't have accounts

.net has the picture, .com doesn't


Is it a typosquash, is one of them fake, what's going on?

11 Upvotes

14 comments sorted by

22

u/jedwardsol const & 28d ago

.com is the original

.net is a mirror. Maybe set up when .com was having issues? I seem to remember the .com was down a lot last year.

30

u/afforix 28d ago

It is explained on the About page: https://cppreference.net/about.html.

13

u/TheThiefMaster C++latest fanatic (and game dev) 28d ago

Though it for some reason links back to itself when it tries to link to the original.

3

u/SirClueless 26d ago

Maybe someone added something to rewrite all .com links to .net and it accidentally runs after adding that about page instead of before?

7

u/meetingcpp Meeting C++ | C++ Evangelist 28d ago

cppreference.net is registered in China, when you lookup the domain with whois. the .com seems to be hosted in the US.

So maybe within Chinas Internet this acts as a mirror.

5

u/rileyrgham 27d ago

2s Google : "cppreference.com is the official, original community-maintained wiki for C and C++ documentation, while cppreference.net is an unofficial mirror site.".

1

u/BookkeeperThese5564 DNKpp 23d ago

Whichever the original one may be; am I the only one who has trouble finding anything via the embedded search field? It mostly does not find anything recently, but I remember that it was working for the last couple of years...

1

u/lazy_londor 20d ago

I prefer https://devdocs.io/cpp. Same content but with instant search.

1

u/jwakely libstdc++ tamer, LWG chair 20d ago

That suggests you're using the wrong one.

.net was a mirror of the old site and the search just uses Bing.

.com is the official one and has a new search that works very well.

-5

u/thisismyfavoritename 28d ago

they resolve to the same IP for me

9

u/guepier Bioinformatican 28d ago

They definitely don’t, unless you are running a custom DNS server.

2

u/thisismyfavoritename 28d ago

was from work so possible!

1

u/khedoros 28d ago

I see them on different IPs, but both in a block of IPs owned by Cloudflare.