It will be manually. The plan is to keep the C++ code pretty much a
direct transliteration of the java code. There are of course
differences between java syntax and C++ syntax, but I think we can
keep it pretty close. A developer will look at the svn update log to
know what files have changes and then use a diff tool to see what code
has changed in the files.

I agree that this isn't a pleasant task, but I don't see any other way
that meets my needs. I'm building cross-platform desktop and server
apps. I need an embedded, in-memory db that can handle concurrency
very well.

LLVM (to my knowledge) doesn't run on Windows. Also, it doesn't
provide a garbage collector. LLVM by itself is not enough. There is a
project to build a java VM with LLVM but it appears to be a long way
from being useful from what I've read.

Additionally, (you may call me old-fashioned if you like)  I am not a
fan of garbage collectors. I think the C++ approach of using smart
pointers is rock-solid and works well. I am not interested in
introducing a garbage collector into my apps. My company also builds
plugins for other apps. Who knows what problems would be caused by
trying to inject a garbage collector into a foreign environment. The
H2 codebase plays fast and loose with references between classes. A
straight, mechanical translation of it to C would be full of cyclic
dependencies. THe only way it would work is if you used a garbage
collector in the C environment.

I have spent time thinking about both a LLVM approach and a C-
translator approach. I've dismissed both ideas.

What would bring a lot of joy to the world is if there was a C++
compiler that could target the java VM. Unfortunately, as I recall,
Sun discourages that sort of thing.


On Apr 8, 1:19 am, Sylvain Pointeau <[email protected]>
wrote:
> how will you synchronize the different changes?
> if you do everything from scratch, re-implementing H2, seems to be very hard
> to maintain in the future.
>
> I think it would be much better to automatize the translation to C with a
> tool like LLVM or whatever.
>
> Best regards,
> Sylvain
>
>
>
> On Thu, Apr 8, 2010 at 2:16 AM, bayoubengal <[email protected]> wrote:
> > Thomas,
>
> > I'd like to have an arrangement for me and my developers to ask
> > technical questions to your team as we go through the the H2 code. Can
> > that be accommodated? If so, what is your preference?
>
> > -James
>
> > On Apr 7, 12:51 am, Thomas Mueller <[email protected]>
> > wrote:
> > > Hi,
>
> > > If it's not too big, just attach it to an email. If it's too big,
> > > please upload it somewhere, for examplehttp://rapidshare.com(I
> >  > rarely use such services).
>
> > > Regards,
> > > Thomas
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "H2 Database" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<h2-database%2bunsubscr...@googlegr 
> > oups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/h2-database?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to