Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon, Cocoa, and 64 bits - I'm confused



On 6/28/07, Mark Wagner <email@hidden> wrote:
On 6/28/07, Tim Jones <email@hidden> wrote:
> Okay, even though I swore that I wouldn't add fuel to this fire, I'm
> totally confused as to the level of confusion that I'm reading
> (discounting the C/C++ vs. ObjC arguments).  From what I see, Carbon
> isn't going away, it's just not getting the full 64 bit monty.  How
> does that affect my Carbon UI development?  It doesn't unless I need
> to display a 2TB+ image in a window, or display 2TB+ of cell contents
> simultaneously in a table (yeh, right).  So my confusion is that I
> don't understand how not having a 64 bit UI API will really affect
> Carbon users.  If I've got a huge data model that requires 64 bit
> value handling, I don't need to use Carbon UI functions, so I'm not
> limited by Carbon's lack of 64 bit underpinnings.  Is not having a
> "UI is 64 bit" checkbox on product datasheets that big of a deal for
> customers' perception of a product?

First, the barrier is gigabytes, not terabytes.  Second, what you're not seeing:
1) It's much easier to write programs if you don't need to split them
into a 32-bit UI and a 64-bit worker.

No argument there

2) Data exchange between 32-bit and 64-bit programs is slow.  You
can't just map memory back and forth.

Yes, you can. I have done this in Tiger apps running on the G5. You can have the same physical memory mapped into a 32-bit and a 64-bit process, and it all just works as you would expect. Indeed, this is a way to allow a 32-bit app to access more than 4GB of physical memory. Map and unmap the pages as you work with them, and let the VM system worry about keeping them resident (which, absent any memory pressure it does just fine).

--
Clark S. Cox III
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Carbon, Cocoa, and 64 bits - I'm confused (From: Tim Jones <email@hidden>)
 >Re: Carbon, Cocoa, and 64 bits - I'm confused (From: "Mark Wagner" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.