Re: Core and Not-So Core
- From
Petr Baudis <pasky@ucw.cz>
- Date
- May 11, 2005, 02:14 UTC
- Message-ID
- <20050511021413.GN26384@pasky.ji.cz>
- In-Reply-To
- <2cfc4032050510190950bba995@mail.gmail.com>
Dear diary, on Wed, May 11, 2005 at 04:09:49AM CEST, I got a letter where Jon Seymour <jon.seymour@gmail.com> told me that...
Show 22 quoted lines
> On 5/11/05, Rik van Riel <riel@redhat.com> wrote: > > On Wed, 11 May 2005, Jon Seymour wrote: > > > > > I did consider wrapping it - I really did. But after thinking about it > > > for a couple of weeks I eventually came to the conclusion it would be a > > > sub-optimal solution. > > > > > So, if I want a stable foundation to build my stuff on, basing it on > > > the output of the C tools would be a huge mistake. > > > > Can Java use a library that's implemented in C, like Python > > and Perl can? If that is the case, the C implementation of > > git simply needs the ability to be called as a library and > > you can implement Java bindings for it. > > > > It can in principle, yes. This is the so-called Java-Native-Interface (JNI). > > I think in the longer term it would make sense to write a JNI layer > but the GIT source code is probably a little too unstable for that > now. What needs to happen first, I think, is that a solid and stable C > API (e.g. a libgit) be proposed and developed.
FWIW, this is actually happening now (see Brad Roberts' posts in nearby thread).
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor