>I heard that JDK1.4 have a regular expression API. This information
>may be heard in JavaOne:
...
>I think that ORO should have compatibility with it if we could do it,
>though I don't know detail about JDK1.4...

Let's wait and see until they've published a spec.  The regular
expression stuff is part of a JSR for advanced I/O, which is really
odd.  Ideally they'll provide a set of interfaces and maybe some
factories, they way they did for the XML parser stuff, and we can
easily tie in.  It still smacks of the usual marginalizing of third
parties that Sun has engaged in with Java.  The stuff that is now
jakarta-oro has been serving Java developers needs since JDK 1.0.2,
and many other packages have emerged since then, so at this point I'd
say there's no point in putting regular expressions into the core APIs
since it just adds further bloat.

>One more things, Jakarta-Regexp have CharacterIterator interface. 
>It's convenience to process stream. For example:
...

If someone can show that HotSpot does some really efficient stuff with
runtime method inlining, I'm ok with the CharacterIterator idea.  But
up until now, it's been too expensive, which is why the ORO stuff deals
with straight up character arrays.

>I can't find such a function at ORO. I think that following lines in
>CHANGELOG may relate:
...
>But I don't have ACM. Why Perl5StreamInput was removed?

Perl regular expressions cannot be guaranteed to find a match without
reading in the entire input, so I removed Perl5StreamInput when converting
the OROMatcher pieces over to jakarta-oro.  It's more effective to just
read in the entire input, or do incremental buffering the way TCL/Expect work,
rather than attempt to match while reading.  However, the awk package still
retains AwkStreamInput because of the nature of awk expressions.  Let
me review the copyright on the ACM article and if it's allowed, I'll forward
you a copy.  However, I'm pretty sure it's available online somewhere.
I'll look for the URL.

>I can help other than documentation (I'm not good at English), if I
>would find my interest and I can do it.

Excellent!

daniel


Reply via email to