[ANN] New version of RegexKit available

  • RegexKit Version 0.5 Beta is now available.

    http://regexkit.sourceforge.net/

    RegexKit is a BSD licensed Objective-C framework for regular
    expressions using the PCRE (v 7.4, latest) regular expression library.
    Details of the API can be found in the frameworks extensive
    documentation, available online at
    http://regexkit.sourceforge.net/Documentation/

    Some of the newer Mac OS X 10.5 Leopard features:

    64 bit support. Pre-built for ppc, ppc64, i386, and x86_64.
    Garbage Collection enabled. Complete support for Leopards Garbage
    Collection feature.
    Integrated Xcode 3.0 documentation. Get real time API information via
    the Research Assistant.
    Collection of instruments for Instruments.app.
    RegexKit specific DTrace probe points.

    Besides the obvious regular expression functionality, users here may
    be interested in some of the other aspects of the framework since the
    full source code is available under BSD license and can serve as a
    working example that you can study, such as:

    A starting point for incorporating an open source project within
    Xcode.  RegexKit uses the PCRE library and includes an Xcode target
    which downloads, './configure's, and builds the PCRE library for four
    different architectures.  While RegexKit happens to build PCRE as a
    static library for various reasons, I suspect it would be a
    straightforward change to switch to dynamic libraries if thats what
    you require.

    A working example of Xcode DocSet functionality.  Occasionally it's
    useful just to peer at another example.

    Instruments.app and DTrace functionality.  Again, it's useful
    sometimes to see working coe.  Adding custom DTrace probes to your
    application is actually pretty simple, but I'm not aware of any
    examples for Mac OS X currently.

    If you're not yet familiar with DTrace, you need to become familiar
    with it as soon as possible.  If you're a fan of Shark (btw, hats off
    to the Shark group), you are going to love DTrace.  It's difficult to
    describe DTrace, but it's extremely versatile.  As an example, using
    DTrace and the new RegexKit probes, you can easily capture such
    information from a shell:

    shell% sudo dtrace -Z -q -n 'RegexKit*:::BeginMatch {
    self->lookupStartTime = vtimestamp; }' -n 'RegexKit*:::EndMatch {
    @lookups = lquantize(((vtimestamp - self->lookupStartTime) / 1000), 0,
    20, 1); }'
    [after a few seconds...]
    ^C

              value  ------------- Distribution ------------- count
                  3 |                                        0
                  4 |@@                                      32097
                  5 |@@@@@@@@@                                149670
                  6 |@@@@@@@@@@@@@@@@@                        263222
                  7 |@@@@@@                                  95418
                  8 |@                                        9145
                  9 |                                        3628
                  10 |@@                                      34463
                  11 |@@                                      33117
                  12 |                                        2608
                  13 |                                        1849
                  14 |                                        1433
                  15 |                                        1071
                  16 |                                        1032
                  17 |                                        888
                  18 |                                        674
                  19 |                                        568
              > = 20 |                                        4197

    This particular example, taken while the frameworks unit tests were
    executing, graphs the distribution of the amount of time (in
    microseconds) that the framework spent scanning a buffer for a match
    of a regular expression.  With just a few trivial modifications to the
    arguments, you can get average time distributions per regular
    expression. Poor performing regular expressions would 'bubble to the
    top' so you know where to focus your efforts.
  • On Sat, 1 Dec 2007 02:58:07 -0500, "John Engelhart"
    <jengelhart...> said:
    > RegexKit Version 0.5 Beta is now available.
    >
    > http://regexkit.sourceforge.net/
    >
    > RegexKit is a BSD licensed Objective-C framework for regular
    > expressions using the PCRE (v 7.4, latest) regular expression library.

    Cool, but must it come in this funny mpkg? Gives me the installation
    willies. I don't want stuff installed into /Developer/Local/ and
    /Developer/Library/Instruments/PlugIns/ and
    /Library/Developer/Shared/Documentation/DocSets/. I just want some code and
    some docs on a plate without fries... m.

    --
    matt neuburg, phd = <matt...>, <http://www.tidbits.com/matt/>
    A fool + a tool + an autorelease pool = cool!
    One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
    AppleScript: the Definitive Guide - Second Edition!
    <http://www.amazon.com/gp/product/0596102119>
  • On Dec 4, 2007 1:52 PM, Matt Neuburg <matt...> wrote:
    > On Sat, 1 Dec 2007 02:58:07 -0500, "John Engelhart"
    > <jengelhart...> said:
    >> RegexKit Version 0.5 Beta is now available.
    >>
    >> http://regexkit.sourceforge.net/
    >>
    >> RegexKit is a BSD licensed Objective-C framework for regular
    >> expressions using the PCRE (v 7.4, latest) regular expression library.
    >
    > Cool, but must it come in this funny mpkg? Gives me the installation
    > willies. I don't want stuff installed into /Developer/Local/ and
    > /Developer/Library/Instruments/PlugIns/ and
    > /Library/Developer/Shared/Documentation/DocSets/. I just want some code and
    > some docs on a plate without fries... m.

    I believe you're looking for the source release, available via:

    http://downloads.sourceforge.net/regexkit/RegexKit_0.5.0_source.tar.bz2

    This contains nothing but the source and a copy of the HTML
    documentation, and I suspect is exactly what you're looking for.  If
    you running 10.5, you can build the DocSet target, which integrates
    the documentation in to Xcode 3.0, from a shell with:

    shell% xcodebuild -configuration Release -target DocSet

    The output will be in build/Release/DocSet, and you can configure
    Xcode to use this copy by opening the Xcode preferences, selecting the
    Documentation section, and adding the path '.../build/Release/DocSet'
    and get all the benefits, plus fries, and installation willies free!

    As an aside, I'm certainly open to suggestions on how best to
    distribute and install a framework project (best to reply privately, I
    suspect).  A framework like RegexKit isn't easy to squeeze in to a
    'one click install' methodology, unfortunately, and it's the best
    compromise I could come up with under the constraints.
  • On 05/12/2007, at 5:52 AM, Matt Neuburg wrote:
    >
    > Cool, but must it come in this funny mpkg? Gives me the installation
    > willies. I don't want stuff installed into /Developer/Local/ and
    > /Developer/Library/Instruments/PlugIns/ and
    > /Library/Developer/Shared/Documentation/DocSets/. I just want some
    > code and
    > some docs on a plate without fries... m.

    FWIW, I liked this distribution -- I was using the framework with my
    app minutes after installing it (and thanks for the explanation of how
    to copy a framework into an app bundle). Having the framework and its
    documentation just appear in sensible, standard places seems like a
    good thing.

    Tom
  • On Nov 30, 2007, at 11:58 PM, John Engelhart wrote:

    > RegexKit Version 0.5 Beta is now available.

    One thing I'd strongly recommend against (which Matt Neuburg brought
    up) is installing anything in the /Developer hierarchy.

    The reason you should do this is that Xcode 2.5 and later support side-
    by-side installation of multiple versions of the Developer Tools.
    They also allow you to move and rename the Developer Tools folder
    itself.  For example, you could keep Xcode 2.5 and Xcode 3.0 on a
    FireWire disk under those names, and have no /Developer hierarchy on
    your system at all.

    Installing everything in the proper Shared locations under ~/Library/
    Application Support/Developer or /Library/Application Support/
    Developer (depending on whether you install for a single user or all
    users on a system) will make your installation available to all
    applicable versions of the Developer Tools rather than just the
    currently-installed-in-/Developer set.

    That said, you've done a great job with this framework and I know that
    a lot of Cocoa developers will find it extremely useful!  Thanks!

      -- Chris
  • On Tue, 4 Dec 2007 17:36:36 -0500, "John Engelhart"
    <jengelhart...> said:
    > On Dec 4, 2007 1:52 PM, Matt Neuburg <matt...>  wrote:
    >> On Sat, 1 Dec 2007 02:58:07 -0500, "John Engelhart"
    >> <jengelhart...> said:
    >>> RegexKit Version 0.5 Beta is now available.
    >>>
    >>> http://regexkit.sourceforge.net/
    >>>
    >>> RegexKit is a BSD licensed Objective-C framework for regular
    >>> expressions using the PCRE (v 7.4, latest) regular expression library.
    >>
    >> Cool, but must it come in this funny mpkg? Gives me the installation
    >> willies. I don't want stuff installed into /Developer/Local/ and
    >> /Developer/Library/Instruments/PlugIns/ and
    >> /Library/Developer/Shared/Documentation/DocSets/. I just want some code and
    >> some docs on a plate without fries... m.
    >
    > I believe you're looking for the source release, available via:
    >
    > http://downloads.sourceforge.net/regexkit/RegexKit_0.5.0_source.tar.bz2
    >
    > This contains nothing but the source and a copy of the HTML
    > documentation, and I suspect is exactly what you're looking for.  If
    > you running 10.5, you can build the DocSet target, which integrates
    > the documentation in to Xcode 3.0, from a shell with:
    >
    > shell% xcodebuild -configuration Release -target DocSet
    >
    > The output will be in build/Release/DocSet, and you can configure
    > Xcode to use this copy by opening the Xcode preferences, selecting the
    > Documentation section, and adding the path '.../build/Release/DocSet'
    > and get all the benefits, plus fries, and installation willies free!

    Sounds great, thanks! m.

    --
    matt neuburg, phd = <matt...>, <http://www.tidbits.com/matt/>
    A fool + a tool + an autorelease pool = cool!
    One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>
    AppleScript: the Definitive Guide - Second Edition!
    <http://www.amazon.com/gp/product/0596102119>
previous month december 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
Go to today