Re: [HACKERS] PostgreSQL future ideas

2008-09-27 Thread Chris Browne
[EMAIL PROTECTED] (Jonah H. Harris) writes: On Fri, Sep 26, 2008 at 11:52 AM, Andrew Dunstan [EMAIL PROTECTED] wrote: Speaking of language choice, no one said that _all_ the source code would need to be rewritten. It would be nice, for example, if PostgreSQL rewrote the current GUC system with

Re: [HACKERS] PostgreSQL future ideas

2008-09-27 Thread Andrew Dunstan
Chris Browne wrote: [EMAIL PROTECTED] (Jonah H. Harris) writes: On Fri, Sep 26, 2008 at 11:52 AM, Andrew Dunstan [EMAIL PROTECTED] wrote: Speaking of language choice, no one said that _all_ the source code would need to be rewritten. It would be nice, for example, if PostgreSQL

Re: [HACKERS] PostgreSQL future ideas

2008-09-27 Thread Mark Mielke
Chris Browne wrote: [EMAIL PROTECTED] (Jonah H. Harris) writes: Having done quite a bit of internals work with SAP DB (which is an amalgamation of C, C++, and Pascal), I completely agree. The entire system, if possible, should be in a single language. Note that this actually *isn't*

Re: [HACKERS] PostgreSQL future ideas

2008-09-27 Thread Douglas McNaught
On Sat, Sep 27, 2008 at 12:13 PM, Mark Mielke [EMAIL PROTECTED] wrote: If some parts of PostgreSQL are not performance bottlenecks, and they are extremely complicated to write in C, and very easy to write in something else common and simple (I've never used LUA myself?), I imagine it would be

Re: [HACKERS] PostgreSQL future ideas

2008-09-26 Thread Chris Browne
[EMAIL PROTECTED] (Gevik Babakhani) writes: Advantage of C++ is that it reduce lot of OO code written in C in PostgreSQL, but it is so big effort to do that without small gain. It will increase number of bugs. Do not forget also that C++ compiler is not so common (so good) on different

Re: [HACKERS] PostgreSQL future ideas

2008-09-26 Thread A.M.
On Sep 25, 2008, at 5:50 PM, Chris Browne wrote: [EMAIL PROTECTED] (Gevik Babakhani) writes: Advantage of C++ is that it reduce lot of OO code written in C in PostgreSQL, but it is so big effort to do that without small gain. It will increase number of bugs. Do not forget also that C++

Re: [HACKERS] PostgreSQL future ideas

2008-09-26 Thread Andrew Dunstan
A.M. wrote: Speaking of language choice, no one said that _all_ the source code would need to be rewritten. It would be nice, for example, if PostgreSQL rewrote the current GUC system with a glue language like Lua (which is also very C-like). No it wouldn't. All it would mean is that

Re: [HACKERS] PostgreSQL future ideas

2008-09-26 Thread Jonah H. Harris
On Fri, Sep 26, 2008 at 11:52 AM, Andrew Dunstan [EMAIL PROTECTED] wrote: Speaking of language choice, no one said that _all_ the source code would need to be rewritten. It would be nice, for example, if PostgreSQL rewrote the current GUC system with a glue language like Lua (which is also very

Re: [HACKERS] PostgreSQL future ideas

2008-09-26 Thread Chris Browne
[EMAIL PROTECTED] (Andrew Dunstan) writes: A.M. wrote: Speaking of language choice, no one said that _all_ the source code would need to be rewritten. It would be nice, for example, if PostgreSQL rewrote the current GUC system with a glue language like Lua (which is also very C-like). No it

Re: [HACKERS] PostgreSQL future ideas

2008-09-25 Thread Zdenek Kotala
Gevik Babakhani napsal(a): Dear PG hackers, Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and rewriting almost everything etc... I am very interested to hear

Re: [HACKERS] PostgreSQL future ideas

2008-09-25 Thread Gevik Babakhani
Advantage of C++ is that it reduce lot of OO code written in C in PostgreSQL, but it is so big effort to do that without small gain. It will increase number of bugs. Do not forget also that C++ compiler is not so common (so good) on different platforms. If somebody interesting in that yes

Re: [HACKERS] PostgreSQL future ideas

2008-09-25 Thread Zdenek Kotala
Gevik Babakhani napsal(a): Better idea is to start to use C99 in PostgreSQL ;-). I have not investigated this yet. But I am very interested to know what the advantages would be to upgrade the code to C99 standards. I think replace macros with inline functions. It brings to ability to

Re: [HACKERS] PostgreSQL future ideas

2008-09-25 Thread Tom Lane
Zdenek Kotala [EMAIL PROTECTED] writes: Gevik Babakhani napsal(a): I have not investigated this yet. But I am very interested to know what the advantages would be to upgrade the code to C99 standards. I think replace macros with inline functions. It brings to ability to monitor them for

Re: [HACKERS] PostgreSQL future ideas

2008-09-25 Thread Marko Kreen
On 9/25/08, Tom Lane [EMAIL PROTECTED] wrote: Zdenek Kotala [EMAIL PROTECTED] writes: Gevik Babakhani napsal(a): I have not investigated this yet. But I am very interested to know what the advantages would be to upgrade the code to C99 standards. I think replace macros with inline

Re: [HACKERS] PostgreSQL future ideas

2008-09-25 Thread Mark Mielke
Gevik Babakhani wrote: Advantage of C++ is that it reduce lot of OO code written in C in PostgreSQL, but it is so big effort to do that without small gain. It will increase number of bugs. Do not forget also that C++ compiler is not so common (so good) on different platforms. If somebody

Re: [HACKERS] PostgreSQL future ideas

2008-09-23 Thread Chris Browne
[EMAIL PROTECTED] (Gevik Babakhani) writes: It might look like an impossible goal to achieve.. But if there is any serious plan/idea/ammo for this, I believe it would be very beneficial to the continuity of PG. Actually, I imagine that such a rewrite would run a very considerable risk of

Re: [HACKERS] PostgreSQL future ideas

2008-09-23 Thread Ron Mayer
Gevik Babakhani wrote: Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and rewriting almost everything etc... I am very interested to hear your opinion.

Re: [HACKERS] PostgreSQL future ideas

2008-09-23 Thread Josh Berkus
Chris, This does not strike me as a particularly useful exercise. If I intended such a rewrite, I'd much rather consider using something *interestingly* different from C, like Erlang or Eiffel or Haskell. And if you were going to do *that*, you'd also rewrite the database to operate

Re: [HACKERS] PostgreSQL future ideas

2008-09-23 Thread Bruce Momjian
Robert Haas wrote: C isn't going anywhere anytime soon. Look at its history, it has survived its 'replacements' over and over again. The most popular kernels, shells and applications are all still written in C (new and old). Where are the warning signs that it is dwindling? To add to

Re: [HACKERS] PostgreSQL future ideas

2008-09-20 Thread Volkan YAZICI
On Fri, 19 Sep 2008, Gevik Babakhani [EMAIL PROTECTED] writes: Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and rewriting almost everything etc... I am

Re: [HACKERS] PostgreSQL future ideas

2008-09-20 Thread Hannu Krosing
On Fri, 2008-09-19 at 16:37 -0400, D'Arcy J.M. Cain wrote: On Fri, 19 Sep 2008 20:57:36 +0100 Dave Page [EMAIL PROTECTED] wrote: On Fri, Sep 19, 2008 at 8:54 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: Has there been any idea to port PG to a more modern programming language like C++? Of

Re: [HACKERS] PostgreSQL future ideas

2008-09-20 Thread D'Arcy J.M. Cain
On Sat, 20 Sep 2008 13:47:10 +0300 Hannu Krosing [EMAIL PROTECTED] wrote: On Fri, 2008-09-19 at 16:37 -0400, D'Arcy J.M. Cain wrote: I don't think that we should rush into any one language without checking the alternatives. Personally I think we should port everything to Intercal. My

Re: [HACKERS] PostgreSQL future ideas

2008-09-20 Thread Dimitri Fontaine
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Who can resist the programming language game? Le 19 sept. 08 à 22:37, D'Arcy J.M. Cain a écrit : On Fri, 19 Sep 2008 20:57:36 +0100 Dave Page [EMAIL PROTECTED] wrote: On Fri, Sep 19, 2008 at 8:54 PM, Gevik Babakhani [EMAIL PROTECTED] wrote:

Re: [HACKERS] PostgreSQL future ideas

2008-09-20 Thread Hannu Krosing
On Sat, 2008-09-20 at 09:06 -0400, D'Arcy J.M. Cain wrote: On Sat, 20 Sep 2008 13:47:10 +0300 Hannu Krosing [EMAIL PROTECTED] wrote: On Fri, 2008-09-19 at 16:37 -0400, D'Arcy J.M. Cain wrote: I don't think that we should rush into any one language without checking the alternatives.

[HACKERS] PostgreSQL future ideas

2008-09-19 Thread Gevik Babakhani
Dear PG hackers, Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and rewriting almost everything etc... I am very interested to hear your opinion. (You can

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Joshua Drake
On Fri, 19 Sep 2008 21:54:53 +0200 Gevik Babakhani [EMAIL PROTECTED] wrote: Dear PG hackers, Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Heikki Linnakangas
Gevik Babakhani wrote: Has there been any idea to port PG to a more modern programming language like C++? No. (You can take your M16 and start shooting now) My pleasure ;-). -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-hackers mailing list

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Dave Page
On Fri, Sep 19, 2008 at 8:54 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: Dear PG hackers, Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and rewriting

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Gevik Babakhani
: Friday, September 19, 2008 9:58 PM To: Gevik Babakhani Cc: PGSQL Hackers Subject: Re: [HACKERS] PostgreSQL future ideas On Fri, Sep 19, 2008 at 8:54 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: Dear PG hackers, Has there been any idea to port PG to a more modern programming

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread D'Arcy J.M. Cain
On Fri, 19 Sep 2008 20:57:36 +0100 Dave Page [EMAIL PROTECTED] wrote: On Fri, Sep 19, 2008 at 8:54 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design,

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Jonah H. Harris
On Fri, Sep 19, 2008 at 4:32 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: It might look like an impossible goal to achieve.. But if there is any serious plan/idea/ammo for this, I believe it would be very beneficial to the continuity of PG. I don't think so. Firebird rewrote their entire

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread David Fetter
On Fri, Sep 19, 2008 at 08:57:36PM +0100, Dave Page wrote: On Fri, Sep 19, 2008 at 8:54 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: Dear PG hackers, Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Gevik Babakhani
, 2008 10:39 PM To: Gevik Babakhani Cc: Dave Page; PGSQL Hackers; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [HACKERS] PostgreSQL future ideas On Fri, Sep 19, 2008 at 4:32 PM, Gevik Babakhani [EMAIL PROTECTED] wrote: It might look like an impossible goal to achieve

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Gevik Babakhani
Already done! http://www.postgresql.org/community/weeklynews/pwn20050401 Yes, yes COBOL :) PostCobolSQL -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread David Fetter
On Fri, Sep 19, 2008 at 09:54:53PM +0200, Gevik Babakhani wrote: Dear PG hackers, Has there been any idea to port PG to a more modern programming language like C++? Of course there are some minor obstacles like a new OO design, this being a gigantic task to perform and rewriting almost

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Joshua Drake
On Fri, 19 Sep 2008 23:01:15 +0200 Gevik Babakhani [EMAIL PROTECTED] wrote: Unless I am very off. C++ is a natural choice when porting (upgrading) ANSI C application. As far as I know, most universities teach some sort of OO programming language like JAVA or C# to help students understand OO

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Josh Berkus
All, I don't see how you think it will help. Most universities (here in the US at least), are shying away from teaching C/C++. So, in the long run, I don't see how that would really help us get more developer involvement. Last I checked, we *weren't* having any problem recruiting

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Gevik Babakhani
I think the better question about all of this is: What is the problem we are trying to solve? Providing solutions that are looking for problems doesn't help us. Sincerely, Perhaps the current codebase and design in C will serve us for years and years to come. In fact there is no doubt about

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Mark Mielke
Gevik Babakhani wrote: I think the better question about all of this is: What is the problem we are trying to solve? Providing solutions that are looking for problems doesn't help us. Sincerely, Perhaps the current codebase and design in C will serve us for years and years to come. In

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Andrew Chernow
Joshua Drake wrote: On Fri, 19 Sep 2008 23:01:15 +0200 Gevik Babakhani [EMAIL PROTECTED] wrote: Unless I am very off. C++ is a natural choice when porting (upgrading) ANSI C application. As far as I know, most universities teach some sort of OO programming language like JAVA or C# to help

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Andrew Dunstan
Gevik Babakhani wrote: I think the better question about all of this is: What is the problem we are trying to solve? Providing solutions that are looking for problems doesn't help us. Sincerely, Perhaps the current codebase and design in C will serve us for years and years to come. In

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Gevik Babakhani
PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [HACKERS] PostgreSQL future ideas Gevik Babakhani wrote: I think the better question about all of this is: What is the problem we are trying to solve? Providing solutions that are looking for problems doesn't help us

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Tom Lane
I'm surprised no one pointed out that Postgres has *already* been ported to a new language once. It was originally written in Lisp, and was rewritten in C sometime in the Berkeley years. (Anyone know exactly when or by whom? I don't.) You can still see the effects of that origin in the

Re: [HACKERS] PostgreSQL future ideas

2008-09-19 Thread Robert Haas
C isn't going anywhere anytime soon. Look at its history, it has survived its 'replacements' over and over again. The most popular kernels, shells and applications are all still written in C (new and old). Where are the warning signs that it is dwindling? To add to this: It's easy to