Re: [sqlite] sqlite programmed in C++ ...

2009-06-04 Thread John Stanton
To make technical decisions using emotion rather than logic is not a good approach. One should choose the best methodology for the particular project, not be self indulgent and choose the one you like. Recently we wrote an embedded application in C, permitting us to use the available C

Re: [sqlite] sqlite programmed in C++

2009-06-04 Thread Jean-Denis Muys
This is funny how language trends get interesting and sometimes a bit emotional too. We all have an opinion on them, and here is mine :-) The basic idea going around in this thread is a very conservative "C is best because 1) it's universally portable, and/or 2) it's very close to the machine (ie

Re: [sqlite] sqlite programmed in C++ ...

2009-06-03 Thread Sylvain Pointeau
Hi, I also like C very much even if I prefer C++ Please note that I was asking to introduce C++ not to re-write (which would be a total non-sense) I just repeat that I use sqlite every days, and I find it awesome, I love it. C or C++? at the end : who cares? I strongly believe that the persons

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Rajesh Nair
Excellent. I posted a question of development of sqlite in C++ long before. But this discussion benefited me and I think all those who depends upon C++ may have got a good direction. I am using sqlite with my own C++ wrapper since I am using VC++ to develop applications for last 5 years.

Re: [sqlite] sqlite programmed in C++ ...

2009-06-03 Thread Rob Sciuk
John Stanton wrote: > This is something of a digression but is pertinent. Colleagues who > worked with Bjarne Thorstrup (inventer of C++) tell me that Bjarne was > disillusioned with C++ and its wide deployment and would encourage > people not to use it unless there were clear advantages. > >

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Sylvain Pointeau
if I had to do a library, I would probably choose C++,at least the subset C with classes. I will then export the main function as "C" many libraries are done like that now. for example http://www.ode.org/ is mostly written in C++ but has an interface in C I also use Qt because it has a clean

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread John Stanton
Indeed. Very good reply. > To Sylvain, once again: speculating on what went into the minds of the > developers, when they set out to develop SQLite, they chose the best, > most concise, most portable, most universally compilable, mother of > almost all languages. Once they developed something that

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Fred Williams
2009 6:25 AM To: General Discussion of SQLite Database Subject: Re: [sqlite] sqlite programmed in C++ Hi all, I'd like to comment this topic as well. I think C is a very good choice for projects like sqlite. The point is that C is in contrary to C++ very easily portable. If you have the bad luc

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Ibrahim A
Hi all, I'd like to comment this topic as well. I think C is a very good choice for projects like sqlite. The point is that C is in contrary to C++ very easily portable. If you have the bad luck that you have to port a programm on a new plattform for which no compiler suites exist than the

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Sylvain Pointeau
yes true, case closed then ! Many thanks for all of your answers. Cheers, Sylvain On Wed, Jun 3, 2009 at 12:17 PM, P Kishor wrote: > On Wed, Jun 3, 2009 at 5:02 AM, Hamish Allan wrote: > > On Wed, Jun 3, 2009 at 8:59 AM, Sylvain Pointeau > >

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread P Kishor
On Wed, Jun 3, 2009 at 5:02 AM, Hamish Allan wrote: > On Wed, Jun 3, 2009 at 8:59 AM, Sylvain Pointeau > wrote: > >> I can perfectly understand the decision made few years ago,and the result is >> splendid, I use SQLite every days. >> >> I am just

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Hamish Allan
On Wed, Jun 3, 2009 at 8:59 AM, Sylvain Pointeau wrote: > I can perfectly understand the decision made few years ago,and the result is > splendid, I use SQLite every days. > > I am just wondering why not introducing C++? for better memory management > for example

Re: [sqlite] sqlite programmed in C++

2009-06-03 Thread Sylvain Pointeau
I can perfectly understand the decision made few years ago,and the result is splendid, I use SQLite every days. I am just wondering why not introducing C++? for better memory management for example (RAII) I am just wondering, don't reply aggressively please ... Cheers, Sylvain On Wed, Jun 3,

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread John Stanton
A good tool ltries to be "bette"r, not "easier". Libraries compiled from C are compatible with C++. In general optimization is better with C compilers and the support libraries are more compact and effcient. Producing Sqlite in well written and documented ANSI C was a very sound decision.

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Thomas Briggs
I think you have to factor the age of SQLite into that explanation as well. I think the first versions of SQLite were released about 10 years ago, at which point C++ compilers were even more non-standard than they are today. Then, once it's functional and stable in C, why rewrite it? On Tue,

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Kees Nuyt
On Tue, 2 Jun 2009 21:30:51 +0200, Sylvain Pointeau wrote: >... because I experienced C++ to be easier with the classes and resource >management via the destructor.I was just wondering why C++ is not used? > >was it for a performance issue? >or a compiler issue? What

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Sylvain Pointeau
... because I experienced C++ to be easier with the classes and resource management via the destructor.I was just wondering why C++ is not used? was it for a performance issue? or a compiler issue? or anything else? I just read the Linus Torvalds comment on the C++ for Git What do you think?

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread John Stanton
Why wuld you want to do such a thing? Sylvain Pointeau wrote: > Hello, > I would like to know if someone already though about to introduce C++ in > SQLite? > I just think about a minimal subset of C++ that will not make any > performance penalty > (like C with classes) > > is it a performance

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Virgilio Fornazin
lite in C++ ... > I just meant to introduce C++ inside SQLite instead of C... > I would like to understand why SQLite is programmed only in C > > Cheers, > Sylvain > > On Tue, Jun 2, 2009 at 5:15 PM, <logan.rat...@emerson.com> wrote: > > > One of the best and worst

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Fred Williams
of SQLite Database Subject: Re: [sqlite] sqlite programmed in C++ On Tue, Jun 2, 2009 at 10:33 AM, Sylvain Pointeau <sylvain.point...@gmail.com> wrote: > I didn't mean to program with sqlite in C++ ... > I just meant to introduce C++ inside SQLite instead of C... > I would like to unders

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread P Kishor
On Tue, Jun 2, 2009 at 10:33 AM, Sylvain Pointeau <sylvain.point...@gmail.com> wrote: > I didn't mean to program with sqlite in C++ ... > I just meant to introduce C++ inside SQLite instead of C... > I would like to understand why SQLite is programmed only in C Definitive

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Sylvain Pointeau
I didn't mean to program with sqlite in C++ ... I just meant to introduce C++ inside SQLite instead of C... I would like to understand why SQLite is programmed only in C Cheers, Sylvain On Tue, Jun 2, 2009 at 5:15 PM, <logan.rat...@emerson.com> wrote: > One of the best and wor

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Logan.Ratner
839 9656 | F +1 713 827 3807 logan.rat...@emerson.com-original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Sylvain Pointeau Sent: Tuesday, June 02, 2009 9:58 AM To: sqlite-users@sqlite.org Subject: [sqlite] sqlite programmed in C

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Simon Davies
2009/6/2 Sylvain Pointeau : > Hello, > I would like to know if someone already though about to introduce C++ in > SQLite? > I just think about a minimal subset of C++ that will not make any > performance penalty > (like C with classes) Prob good idea to look through

Re: [sqlite] sqlite programmed in C++

2009-06-02 Thread Christopher Taylor
I have used sqlite for an embedded application using c++. The sqlite library is all in c and compiles on its own. I then created several classes that use the sqlite api. The first is a DbHandler class. This opens the database and provides the public accessors to the rest of application. I

[sqlite] sqlite programmed in C++

2009-06-02 Thread Sylvain Pointeau
Hello, I would like to know if someone already though about to introduce C++ in SQLite? I just think about a minimal subset of C++ that will not make any performance penalty (like C with classes) is it a performance issue? is it a deployment/compiler issue? or any issue? Please don't make any