Return-Path: Delivered-To: apmail-jakarta-alexandria-dev-archive@apache.org Received: (qmail 71835 invoked from network); 16 Jul 2002 22:00:13 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Jul 2002 22:00:13 -0000 Received: (qmail 1265 invoked by uid 97); 16 Jul 2002 22:00:33 -0000 Delivered-To: qmlist-jakarta-archive-alexandria-dev@jakarta.apache.org Received: (qmail 1215 invoked by uid 97); 16 Jul 2002 22:00:32 -0000 Mailing-List: contact alexandria-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Alexandria Developers List" Reply-To: "Alexandria Developers List" Delivered-To: mailing list alexandria-dev@jakarta.apache.org Received: (qmail 1203 invoked by uid 98); 16 Jul 2002 22:00:31 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <3D349750.9020508@apache.org> Date: Tue, 16 Jul 2002 23:59:44 +0200 From: Nicola Ken Barozzi Reply-To: nicolaken@apache.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexandria Developers List Subject: Re: JXR - I'm back (Kinda) References: <1026844406.12627.27.camel@locohost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jeff Martin wrote: > I thought I'd drop you all a line to let you know that I've started > fiddling with JXR2 again. > > For those of you who aren't away JXR2 was a proposal to re-write JXR in > a slightly more extensible manor. The idea is to use ANTLR to parse the > source and from this generate SAX events which you can plug into XSL to > do the rendering (Actual as it's sax you could use all sorts of things > velocity for instance, but that's not really on the radar). > > Sounds a wee bit like what robert c nix was talking about. And to answer > his questions. > > JXR being use for millions of lines of code? Never really happened, and > since it holds all it's data in memory it alway used to fall over with > out of memory errors. Think you would need to balance things between > memory and the file system, although if your clever you can probably get > away with a lot. > > Not using JavaCC or something similar? I think the idea was to keep it v > lightweight, although in reality it did parse over every line 11 times. > So I'm not sure this was a good idea. Hence using ANTLR (Although I'm > not sure if the bundled java grammar is not over kill) > > I've not gone very far with the whole thing yet, as I've only just > picked it up after a year of slacking. But it does compile not and the > test did pass before I changed them. I would check the code in but I > don't know what my password is anymore ;) > > Any way if anyone's interested let me know, otherwise I'll just mooch > along and you'll here from me in a year or two. The author of JavaSrc http://javasrc.sourceforge.net/ has agreed to donate it to Apache Jakarta Alexandria. It uses a clever way of doing things in two passes to reduce memory usage. Take a look, I think that it can be a good replacement for JXR and the base for the new code. :-) -- Nicola Ken Barozzi nicolaken@apache.org - verba volant, scripta manent - (discussions get forgotten, just code remains) --------------------------------------------------------------------- -- To unsubscribe, e-mail: For additional commands, e-mail: