Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Tools > Re: Cross-Platf...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 47 of 55 Topic 607 of 635
Post > Topic >>

Re: Cross-Platform Windows plus Mac

by Ben Artin <macdev@[EMAIL PROTECTED] > Nov 8, 2007 at 01:35 PM

In article <1194542237.815877@[EMAIL PROTECTED]
>,
 Michael Ash <mike@[EMAIL PROTECTED]
> wrote:

> In comp.sys.mac.programmer.help Ben Artin <macdev@[EMAIL PROTECTED]
> wrote:
> > In article <1194537879.688818@[EMAIL PROTECTED]
>, Michael Ash 
> > <mike@[EMAIL PROTECTED]
> wrote:
> > 
> >> In comp.sys.mac.programmer.help Ben Artin <macdev@[EMAIL PROTECTED]
> wrote:
> >> > Given a language feature that is semantically equivalent in two 
> >> > languages (such as exceptions), not being able to use that feature 
> >> > across the two languages has nothing to do with proper separation
and 
> >> > everything to do with running into a limitation of the language
bridge 
> >> > and sucking it up.
> >> 
> >> You could replace "exceptions" with "objects" in the above and still
have 
> >> an accurate statement.
> >> 
> >> Of course this isn't really a defense of ObjC++, more like a proof
that it 
> >> *must* suck, no matter how it's done.
> > 
> > Well, yes and no. 
> 
> You say this, but then you go on to say what appears to be "yes and
yes". 
> :)

I guess you can look at it that way :-)

> > This line of reasoning ultimately leads you to realize that what you
really 
> > need is a common language runtime with well-defined semantics, and
then you 
> > need all the languages that you care about to work on top of that
runtime. 
> > This is what Microsoft did with CLR, and this is increasingly the
direction 
> > that Apple is going in by bridging the Obj-C runtime to Python, Perl,
Ruby, 
> > etc.
> > 
> > Then you realize that C++ can't work on top of any sane runtime, at
which 
> > point, if you are Microsoft, you invent a modified version of C++ that
can 
> > or, if you are me, you realize that you are better off using a
language 
> > (such as Python) that works on top of a sane runtime.
> 
> In other words, the only way for ObjC++ not to suck would be to do
things 
> that result in no longer having C++ anymore. Ergo, ObjC++ must suck.

What I am trying to say is that by its nature Obj-C++ must suck as much as
C++ 
does, but it doesn't have to add suck of its own. Effectively prohibiting
use of 
exceptions in C++ APIs called by Obj-C is one case in which I think
Obj-C++ 
added suck on top of the suck of C++ (and I was glad to see that's fixed
in the 
64-bit runtime).

Programming in C++ is already like being in a straightjacket. In some
cases, 
Obj-C++ also ties your shoelaces together.

[snip]

> Of course a major consequence of this would be to suddenly make C++
*slower* 
> than the others, due to all the extra indirection. That might be enough
to 
> qualify as "suck", but I'm not sure.

Well, it would to C++ weenies. It cracks me up every time I see a
discussion of 
C++ libraries that goes along the lines of

"We should have a C++ Unicode string class"
"Yeah, but what encoding would it use?"
"Store the encoding in a private member, and convert to other encodings if

needed"
"That would be too slow"
"Never mind then."

Ben

-- 
If this message helped you, consider buying an item
from my wish list: <http://artins.org/ben/wishlist>

I changed my name: <http://periodic-kingdom.org/People/NameChange.php>
 




 55 Posts in Topic:
Cross-Platform Windows plus Mac
"Chris Shearer Coope  2007-10-11 15:00:31 
Re: Cross-Platform Windows plus Mac
Reinder Verlinde <rein  2007-10-12 00:22:16 
Re: Cross-Platform Windows plus Mac
Jeffrey Dutky <jeff.du  2007-10-11 22:22:34 
Re: Cross-Platform Windows plus Mac
mlabs <aaron.miramar.l  2007-10-12 07:10:19 
Re: Cross-Platform Windows plus Mac
Simon Slavin <slavins.  2007-10-13 20:43:42 
Re: Cross-Platform Windows plus Mac
"Armel Asselin"  2007-10-22 11:03:19 
Re: Cross-Platform Windows plus Mac
Doc O'Leary <droleary.  2007-10-22 06:52:59 
Re: Cross-Platform Windows plus Mac
"Armel Asselin"  2007-10-22 14:35:48 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-22 11:41:19 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-22 09:48:49 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-22 18:10:17 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-22 17:55:26 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-22 17:25:53 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-23 07:26:23 
Re: Cross-Platform Windows plus Mac
Doc O'Leary <droleary.  2007-10-23 06:16:18 
Re: Cross-Platform Windows plus Mac
Gabriele Greco <gabrie  2007-10-23 13:26:35 
Re: Cross-Platform Windows plus Mac
Sherman Pendley <spamt  2007-10-23 11:00:44 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-23 09:26:15 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 20:41:13 
Re: Cross-Platform Windows plus Mac
Tom Harrington <tph@[E  2007-10-24 15:33:16 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 22:17:12 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-24 18:52:35 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-25 10:48:42 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-25 21:18:27 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-26 11:44:06 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-10-26 23:21:16 
Re: Cross-Platform Windows plus Mac
Gregory Weston <uce@[E  2007-10-27 06:52:40 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-23 10:47:18 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 22:08:24 
Re: Cross-Platform Windows plus Mac
Tom Harrington <tph@[E  2007-10-23 10:00:07 
Re: Cross-Platform Windows plus Mac
Simon Slavin <slavins.  2007-10-25 20:19:27 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-25 17:48:44 
Re: Cross-Platform Windows plus Mac
Steven Fisher <steve@[  2007-10-23 21:32:00 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-23 21:40:56 
Re: Cross-Platform Windows plus Mac
Paul Floyd <root@[EMAI  2007-10-24 20:56:43 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-10-25 16:29:53 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-25 17:52:58 
Re: Cross-Platform Windows plus Mac
Gabriele Greco <gabrie  2007-10-26 11:18:20 
Re: Cross-Platform Windows plus Mac
glenn andreas <gandrea  2007-10-26 08:52:11 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-26 10:01:16 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-10-26 23:10:42 
Re: Cross-Platform Windows plus Mac
Chris Hanson <cmh@[EMA  2007-10-27 02:00:33 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 01:33:48 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-11-08 10:04:40 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 11:39:25 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-11-08 11:17:18 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 13:35:24 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-11-08 21:42:39 
Re: Cross-Platform Windows plus Mac
glenn andreas <gandrea  2007-11-08 10:05:23 
Re: Cross-Platform Windows plus Mac
Ben Artin <macdev@[EMA  2007-11-08 11:42:46 
Re: Cross-Platform Windows plus Mac
Steven Fisher <steve@[  2007-10-26 07:40:08 
Re: Cross-Platform Windows plus Mac
Steven Fisher <steve@[  2007-10-26 07:43:35 
Re: Cross-Platform Windows plus Mac
Michael Ash <mike@[EMA  2007-10-26 10:12:27 
Re: Cross-Platform Windows plus Mac
Steven Fisher <sdfishe  2007-10-27 06:02:07 
Re: Cross-Platform Windows plus Mac
Chris Hanson <cmh@[EMA  2007-10-27 02:09:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 18:03:37 CDT 2008.