Computer Association of SIUE - Forums

CAOS Forums => Technical Knowledge => Topic started by: William Grim on 2009-09-02T00:32:43-05:00 (Wednesday)

Title: Snow Leopard and Multi-Core Computing
Post by: William Grim on 2009-09-02T00:32:43-05:00 (Wednesday)
Ars Technica has done a really good job of reviewing Apple's latest operating system, Snow Leopard.  You can find that review here. (http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/)

I have to say, the two main features I was looking forward to seeing were Grand Central Dispatch and OpenCL (http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/13).  However, I didn't realize the latest builds of LLVM and CLang (gcc-compatible front-end written for LLVM) (http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/9) are building code 3x as fast and producing executables that run several percentage points (5-25%) faster.  That is pretty impressive, and all this can be setup on Linux or BSD as well, for those of you wanting to do that.  Not to mention it has much better error reporting, and Xcode utilizes that well with actual graphs in your editor.

Anyway, Apple extended all C-derivative languages it has (C, C++, Objective-C, Objective-C++) with anonymous functions they call "blocks" (http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars/10).  Hopefully this will make it into the final C spec, but it lets you take easy control of GCD to multithread your app easily and scale up to however many CPU/GPGPUs you have (see first link in last paragraph).

I don't want to repeat the whole article, but check it out!  You guys with Macs should try it all out like I am doing, and those of you just interested in the state-of-the-art should just have a read to see what's going on in this space.  It's going to get interesting...
Title: Re: Snow Leopard and Multi-Core Computing
Post by: Bryan on 2009-09-02T07:08:40-05:00 (Wednesday)
Yes, but can it play games?

(sorry, Mike, I had to!)
Title: Re: Snow Leopard and Multi-Core Computing
Post by: William Grim on 2009-09-02T10:27:15-05:00 (Wednesday)
Well, they've got WoW and Super Breakout.

P.S. Starcraft 2 is coming to it!
Title: Re: Snow Leopard and Multi-Core Computing
Post by: Shaun Martin on 2009-09-02T10:56:48-05:00 (Wednesday)
I just recently purchased a Macbook Pro and it runs WoW better than my gaming PC.
Title: Re: Snow Leopard and Multi-Core Computing
Post by: Adam C on 2009-09-02T11:03:44-05:00 (Wednesday)
I'm running snow leopard as we speak. Its great so far!
Title: Re: Snow Leopard and Multi-Core Computing
Post by: Shaun Martin on 2009-09-02T16:19:57-05:00 (Wednesday)
Also meant to add that I am running Snow Leopard.
Title: Re: Snow Leopard and Multi-Core Computing
Post by: Jeff Croxell on 2009-09-02T21:05:49-05:00 (Wednesday)
Yes improved processor core usage is nice, but how's everyone like their new file/drive sizes?

http://www.macworld.com/article/142471/2009/08/snow_leopard_math.html
Title: Re: Snow Leopard and Multi-Core Computing
Post by: William Grim on 2009-09-03T11:41:51-05:00 (Thursday)
Quote from: Jeff Croxell on 2009-09-02T21:05:49-05:00 (Wednesday)
Yes improved processor core usage is nice, but how's everyone like their new file/drive sizes?

http://www.macworld.com/article/142471/2009/08/snow_leopard_math.html

Jeff, I'm not a major fan of it, because it's inconsistent across the system and Unix tools.  In reality, if they want to be more correct and cause the least amount of disruption, I think they simply should have changed the prefixes from, say, "MB" to "MiB".  Having said that, I completely understand the reasoning and agree CS got it wrong.  We should all just complain to Apple, and I'll try to complain on their developer forums.  I don't know how much impact it'll have, but maybe they'll at least put in an option to change it, as they seem to listen to their 3rd party devs, no matter how big or small you are.