Re: Standard library progress
- Posted by CChris <christian.cuvier at ?g?iculture.gouv.fr> Apr 20, 2008
- 611 views
Jeremy Cowgar wrote: > > CChris wrote: > > > > <plug> > > Add EuRegExp from the archive to the standard distro. > > </plug> > > > > Chris, > > I am concerned about a few things in doing that. Maybe you can answer these > concerns since you wrote it > > 1. How fast is it compared to PCRE? I haven't tried, but can do some benchmarks on large text files. I'd expect PCRE to be a bit faster. The code hasn't been optimised much. Note that optimised code is usually a problem regarding your point #3. > 2. How complete is it? Pretty much, and it has some distinctive features I'm not aware that PCRE has, like filtering matches, apply Eu operators to perform replacements and such. Did you check the docs? > 3. How complex is it to maintain? > > #3 is pretty important, because as we add to the Euphoria library we are not > only making new functions available to everyone, but we are taking on a large > amount of code to maintain as well. So, when something needs updated now, it's > up to the Euphoria developers to do so, no the author of lib ABC, or whatever. > Now, hopefully user DEF will say hey, ABC has a bug, here's a test to exploit > that bug and here's the patch to fix that bug, but we will see. > Since I wrote it, I could tell you the code is not too hard to maintain However, it is probably not commented enough for release as part of the standard lib, ie for others to maintain effortlessly. If you are interested, I can add more. I had strived to make the documentation complete and clear, so hopefully that part will be ok. CChris > -- > Jeremy Cowgar > <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>