Re: Libification project (SoC)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Petr Baudis
Date: Sunday, March 18, 2007 - 7:08 am

On Fri, Mar 16, 2007 at 04:12:17PM CET, Johannes Schindelin wrote:

Because you don't know who will want to use libgit. Maybe perl bindings
from inside of mod_perl, where single process can multiplex between many
repositories based on whichever request just arrived. You talked about
memory usage issues, but I think that's just a minor technical issue
that can be adjusted, while this is _conceptual_. Maybe someone will
want to write repodiff which looks at two repositories and compares them
(without fetching massive data around). Maybe someone will want to write
some other cool hack we didn't think about.

Because in the other subthread you just suggested the git viewers should
be multi-threaded. Of course you can state that "only a single thread
can use libgit at a time", but then multithreading is just a hack to
work around libgit limitations (albeit still legitimate) while it could
be used to do so much more cool stuff like fetching old history
information on background while you can already _work_ with the tool and
look at the new stuff details (isn't this actually exactly how gitk and
qgit already work? they couldn't with non-reentrant libgit!).

Because if you look at the UNIX history, you'll notice that first people
started with non-reentrant stuff because it was "good enough" and then
came back later and added reentrant versions anyway. Let's learn from
history. It's question of probability but it's very likely this will
happen to us as well.

This is why the _API_ should be designed to be re-entrant. The
implementation may not be re-entrant right away, it may take a while to
get there, but the API really should be.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Ever try. Ever fail. No matter. // Try again. Fail again. Fail better.
		-- Samuel Beckett
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Libification project (SoC), Luiz Fernando N. Cap ..., (Thu Mar 15, 9:24 pm)
Re: Libification project (SoC), Shawn O. Pearce, (Thu Mar 15, 9:59 pm)
Re: Libification project (SoC), Junio C Hamano, (Thu Mar 15, 10:30 pm)
Re: Libification project (SoC), Shawn O. Pearce, (Thu Mar 15, 11:00 pm)
Re: Libification project (SoC), Junio C Hamano, (Thu Mar 15, 11:54 pm)
Re: Libification project (SoC), Johannes Schindelin, (Fri Mar 16, 4:54 am)
Re: Libification project (SoC), Petr Baudis, (Fri Mar 16, 5:53 am)
Re: Libification project (SoC), Petr Baudis, (Fri Mar 16, 5:55 am)
Re: Libification project (SoC), Rocco Rutte, (Fri Mar 16, 6:09 am)
Re: Libification project (SoC), Luiz Fernando N. Cap ..., (Fri Mar 16, 6:47 am)
Re: Libification project (SoC), Petr Baudis, (Fri Mar 16, 7:08 am)
Re: Libification project (SoC), Johannes Schindelin, (Fri Mar 16, 8:12 am)
Re: Libification project (SoC), Johannes Schindelin, (Fri Mar 16, 8:16 am)
Re: Libification project (SoC), Nicolas Pitre, (Fri Mar 16, 8:55 am)
Re: Libification project (SoC), Johannes Schindelin, (Fri Mar 16, 9:13 am)
Re: Libification project (SoC), Shawn O. Pearce, (Fri Mar 16, 9:17 am)
Re: Libification project (SoC), Nicolas Pitre, (Fri Mar 16, 9:26 am)
Re: Libification project (SoC), Marco Costalba, (Fri Mar 16, 11:20 am)
Re: Libification project (SoC), Steve , (Fri Mar 16, 11:22 am)
Re: Libification project (SoC), Marco Costalba, (Fri Mar 16, 11:38 am)
Re: Libification project (SoC), Luiz Fernando N. Cap ..., (Fri Mar 16, 11:38 am)
Re: Libification project (SoC), Nicolas Pitre, (Fri Mar 16, 11:53 am)
Re: Libification project (SoC), Nicolas Pitre, (Fri Mar 16, 11:59 am)
Re: Libification project (SoC), Andy Parkins, (Fri Mar 16, 12:09 pm)
Re: Libification project (SoC), Marco Costalba, (Fri Mar 16, 2:07 pm)
Re: Libification project (SoC), Shawn O. Pearce, (Fri Mar 16, 4:16 pm)
Re: Libification project (SoC), Johannes Schindelin, (Fri Mar 16, 4:24 pm)
Re: Libification project (SoC), Johannes Schindelin, (Fri Mar 16, 4:26 pm)
Re: Libification project (SoC), Marco Costalba, (Sat Mar 17, 12:04 am)
Re: Libification project (SoC), Johannes Schindelin, (Sat Mar 17, 10:29 am)
Re: Libification project (SoC), Luiz Fernando N. Cap ..., (Sat Mar 17, 12:58 pm)
Re: Libification project (SoC), Shawn O. Pearce, (Sat Mar 17, 10:23 pm)
Re: Libification project (SoC), Junio C Hamano, (Sat Mar 17, 10:52 pm)
Re: Libification project (SoC), Petr Baudis, (Sun Mar 18, 6:57 am)
Re: Libification project (SoC), Petr Baudis, (Sun Mar 18, 7:08 am)
Re: Libification project (SoC), Luiz Fernando N. Cap ..., (Sun Mar 18, 9:18 am)
Re: Libification project (SoC), Junio C Hamano, (Sun Mar 18, 12:31 pm)
Re: Libification project (SoC), Nicolas Pitre, (Sun Mar 18, 2:15 pm)
Re: Libification project (SoC), Johannes Schindelin, (Sun Mar 18, 4:48 pm)
Re: Libification project (SoC), Petr Baudis, (Sun Mar 18, 6:21 pm)
Re: Libification project (SoC), Johannes Schindelin, (Sun Mar 18, 6:43 pm)
Re: Libification project (SoC), Theodore Tso, (Sun Mar 18, 7:56 pm)
Re: Libification project (SoC), Shawn O. Pearce, (Sun Mar 18, 8:55 pm)
Re: Libification project (SoC), Marco Costalba, (Mon Mar 19, 12:01 am)
Re: Libification project (SoC), Steve , (Mon Mar 19, 2:46 am)
Re: Libification project (SoC), Steve , (Mon Mar 19, 3:33 am)
Re: Libification project (SoC), Johannes Schindelin, (Mon Mar 19, 5:37 am)
Re: Libification project (SoC), Petr Baudis, (Mon Mar 19, 5:52 am)
Re: Libification project (SoC), Marco Costalba, (Mon Mar 19, 6:04 am)
Re: Libification project (SoC), Johannes Schindelin, (Mon Mar 19, 6:55 am)
Re: Libification project (SoC), Johannes Schindelin, (Mon Mar 19, 7:57 am)
Re: Libification project (SoC), Luiz Fernando N. Cap ..., (Mon Mar 19, 9:09 am)
Re: Libification project (SoC), Linus Torvalds, (Mon Mar 19, 9:28 am)
Re: Libification project (SoC), Linus Torvalds, (Mon Mar 19, 9:32 am)
Re: Libification project (SoC), Andreas Ericsson, (Wed Mar 21, 4:17 am)
Re: Libification project (SoC), Linus Torvalds, (Wed Mar 21, 10:24 am)
Re: Libification project (SoC), Andreas Ericsson, (Thu Mar 22, 2:51 am)