pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aleksander Alekseev <a.alekseev@postgrespro.ru>
To: Jim Nasby <Jim.Nasby@BlueTreble.com>
Cc: Gavin Flower <GavinFlower@archidevsys.co.nz>
Cc: dandl <david@andl.org>
Cc: Adam Brusselback <adambrusselback@gmail.com>
Cc: Joy Arulraj <jarulraj@cs.cmu.edu>
Cc: kang joni <kangjoni76@gmail.com>
Cc: Dmitry Igrishin <dmitigr@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Peter Eisentraut <peter_e@gmx.net>
Subject: Re: [GENERAL] C++ port of Postgres
Date: Tue, 16 Aug 2016 18:39:40 +0300
Message-ID: <20160816183940.4818d854@e733> (raw)
In-Reply-To: <f7682c24-4271-1ff5-d963-053ecb0fce40@BlueTreble.com>
References: <CABgyVxDBd3EvRdo-Rd6eo8QPEqV8=ShaU2SJfo16wfE0R-hXTA@mail.gmail.com>
	<CAAfz9KN8YpruCOtSp8uqVJGS5++9+QUbq2CHjOP-g0kYkQJM2Q@mail.gmail.com>
	<CABgyVxCorVSTkVcjkPS06YYt9bPPamGNXAsQkCDFKXGvXZDh-w@mail.gmail.com>
	<CABgyVxCrHpk5SkU+7pVhze=dukx2SKqKNY8aOJstwaCRh=Y0Lg@mail.gmail.com>
	<CABgyVxBA24NnPri8BYQFjVdn2pgqcB=Q6MXFXdcwchUmJSAUPw@mail.gmail.com>
	<CAOmy0wLcyE3d=jbfpgoKtTicGoZ64AKKfEkG+ccXxtmajSBGeQ@mail.gmail.com>
	<CABgyVxBjX6VbnbHfZRSDJBav4xKH5vSLZqTpr989sMOb+jX+jA@mail.gmail.com>
	<CAMjNa7e7E81T3NqoReixYxrCFQpfWd+Mht0NhetW3bJB=Gs7Og@mail.gmail.com>
	<007001d1f786$d903fa90$8b0befb0$@andl.org>
	<00a52208-3199-5858-8846-2530b0bb34df@archidevsys.co.nz>
	<f7682c24-4271-1ff5-d963-053ecb0fce40@BlueTreble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Well, well, well. Another C vs C++ holly war, really?

> > In both cases, part of the motivation to change from C was to
> > appeal to new developers - from what I remember of the
> > discussions.  
> 
> Moving this to -hackers. Original thread at [1].
> 
> tl;dr: A C++ port of Postgres has been created, and several folks on 
> general have commented that this makes it easier to work with the 
> Postgres codebase. This potentially attracts more developers to the 
> project. I hope we can find a way to pull these folks into the fold.

Who are these "folks"? How many more developers it would attract
_exactly_, not potentially?

> People in core have complained that we don't have enough hackers
> coming in (which I agree with). Part of that is lack of familiarity
> with C.

One again, which "people"? I've seen people complained that there is
not enough code reviewers and testers. I doubt very much its something
C++ will help with.

> I think we can all agree that a C++ fork of Postgres would be a huge 
> waste of time, so the question becomes should core postgres start 
> supporting C++.
> 
> Peter wrote a blog about this in 2013 that makes some good arguments 
> [2]; in particular "easing into" this by first officially supporting
> C++ compilation. I also like the idea of investigating Rust.

And I wrote a blog post (in Russian) [1] in 2016 why nobody should (if
they can) write a new code in C++. In my opinion Rust looks way more
promising. However I personally prefer to wait like 5 years before
using a new and shiny technology. This is also something I blogged
about (in Russian [2], translation [3]).

> I realize there's little technical reason why we *need* C++ support.

You are right, there is none.

> The level if discipline applied to our codebase negates some of the
> benefits of C++. But maintaining the discipline takes a lot of time
> and effort, and makes it more difficult to attract new contributors.

There are companies. They hire developers who write code. Doesn't
really matters in which language.

Long story short - I strongly believe you are trying to solve a problem
that doesn't exist. And probably create a few new ones.

[1] http://eax.me/c-vs-cpp/
[2] http://eax.me/cpp-will-never-die/
[3] http://www.viva64.com/en/b/0324/

-- 
Best regards,
Aleksander Alekseev


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (76+ messages)  latest in thread

Message-ID: <20160816183940.4818d854@e733>
Permalink:  ../20160816183940.4818d854@e733/
Also on:    postgresql.org/message-id/20160816183940.4818d854@e733

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-general@postgresql.org
  Cc: a.alekseev@postgrespro.ru, Jim.Nasby@BlueTreble.com, GavinFlower@archidevsys.co.nz, david@andl.org, adambrusselback@gmail.com, jarulraj@cs.cmu.edu, kangjoni76@gmail.com, dmitigr@gmail.com, pgsql-hackers@postgresql.org, peter_e@gmx.net
  Subject: Re: [GENERAL] C++ port of Postgres
  In-Reply-To: <20160816183940.4818d854@e733>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox