Re: [GENERAL] C++ port of Postgres

From: Andres Freund <andres(at)anarazel(dot)de>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>, Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>, dandl <david(at)andl(dot)org>, 'Adam Brusselback' <adambrusselback(at)gmail(dot)com>, 'Joy Arulraj' <jarulraj(at)cs(dot)cmu(dot)edu>, 'kang joni' <kangjoni76(at)gmail(dot)com>, 'Dmitry Igrishin' <dmitigr(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: [GENERAL] C++ port of Postgres
Date: 2016-08-16 20:29:29
Message-ID: 20160816202928.v62426ta2w4yauk7@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

On 2016-08-16 18:52:39 +0300, Heikki Linnakangas wrote:
> On 08/16/2016 05:47 PM, Jim Nasby wrote:
> > I realize there's little technical reason why we *need* C++ support. 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.
>
> I suspect that it would take as much
> discipline to keep a C++ codebase
> readable, as the current C codebase. If
> not more.

Well, having typed pg_list.h style lists, ilist.h linked lists,
hash-tables, and proper typechecks for pg_nodes.h instead of the NodeTag
stuff, would surely make life easier.

But given the small subset of C++ available on all our supported
platforms... I think we'd first need to make the decision to cut support
for some platforms, before using C++. Which imo is a distinct task from
*allowing* to compile with a C++ compiler.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2016-08-16 20:29:45 Re: [GENERAL] C++ port of Postgres
Previous Message Jim Nasby 2016-08-16 20:22:09 Re: [GENERAL] C++ port of Postgres

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2016-08-16 20:29:45 Re: [GENERAL] C++ port of Postgres
Previous Message Robert Haas 2016-08-16 20:29:06 Re: Declarative partitioning - another take