• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 3rd Party Nonsense (was Re: Regular Expressions?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3rd Party Nonsense (was Re: Regular Expressions?)


  • Subject: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • From: Kevin Grant <email@hidden>
  • Date: Sat, 07 Jun 2008 12:37:37 -0500

It is possible to link your application through C to an
interpreter like Python or Perl, and rely on the built-in
regular expression libraries to do your work.  If you
really wanted to, you could fire off a call to /usr/bin/egrep.

These are all part of the default Mac OS X platform, they
require no dependency on a bundled framework, and have no
license issues.

In all honesty, you wouldn't want Apple to "implement" this
itself, because they'd have to start from scratch and there
would be bugs.  I listed 3 implementations that are very
mature and powerful.

The main downside in each case is that you're converting a
small amount of code and strings to the target form (command
line, Python or Perl code).

Kevin G.


As someone who has worked on a number of 3rd party [open source and
otherwise] frameworks, I wonder where this attitude comes from in the case
of Cocoa/Mac OS X. I have some ideas, but I hesitate to share them.

Four things: 1) There are certain basics like regex support that people are upset at Apple for not implementing because it seems like such an important part of the concept of strings. 2) Licensing issues can arise for third-party frameworks. 3) Objective-C has no namespaces, and categories are fragile. 4) Linking against a third-party framework requires distributing the framework inside the app bundle. Look at the proliferation of Sparkle.framework to see why this is a Bad Thing(TM).

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: 3rd Party Nonsense (was Re: Regular Expressions?)
      • From: glenn andreas <email@hidden>
References: 
 >Regular Expressions? (From: "Cemil Browne" <email@hidden>)
 >Re: Regular Expressions? (From: Jason Stephenson <email@hidden>)
 >Re: Regular Expressions? (From: glenn andreas <email@hidden>)
 >Re: Regular Expressions? (From: "Stephen J. Butler" <email@hidden>)
 >Re: Regular Expressions? (From: Ilan Volow <email@hidden>)
 >3rd Party Nonsense (was Re: Regular Expressions?) (From: Jason Stephenson <email@hidden>)
 >Re: 3rd Party Nonsense (was Re: Regular Expressions?) (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Next by Date: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Previous by thread: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Next by thread: Re: 3rd Party Nonsense (was Re: Regular Expressions?)
  • Index(es):
    • Date
    • Thread