Fri, Apr 15, 3:38am Ray Tracing à la Metal
So, a couple of days ago, I was feelin' pretty suave getting the ray tracing going in pure Swifty goodness. But I could not resist the allure of the GPU. I decided to stalk the illusive beast known as Metal. And that's kinda what it felt like. I did not jump right in and start coding it up, since I have but a modest idea what's going on in Metal, apart from aping Apple's example code, and transliterating some OpenCL code, earlier in the year. For me the troubles were about how to paint on a texture and to understand the ins and outs of the Metal Shading Language.

For those just wanting to know if it was worth it: The same 1600x800 scene and over 480 reflective objects, went from 702 seconds in the pure Swift version down to 14 seconds! Roughly a 50x speed improvement. That is racing a 12-core Xeon with hyperthreading against a D700 graphics card. Well worth the time invested to compare. [Read more…]
Tue, Apr 12, 10:28pm Ray Tracing à la Swift
Recently, after a big work push, I needed a break. Something else to work on for fun. While asking around if there was a Slack domain that specifically tried to gather people together interested in doing graphics and GPU programming, I decided to just start it and see if it could draw any interest. The group is called Cocoa3d (email me if you'd like an invite), targeting any kind of use for GPUs on Apple devices, also including gaming in general. A bunch of really great people joined and we started talking about various projects people were up to. [Read more…]
Sat, Jul 12, 2014, 1:56am A Big Year for Programming
So 2014 has turned into an unexpectedly big year for programming for me. As an Apple developer, it's obviously been affected by Swift's arrival, but I was already in the middle of a lot of new projects, making for a crowded learning schedule. I've sort of grouped them into different areas: scientific, functional, parallel and Mac/iOS-related.

And I'm dabbling with going back to blogging. If you find this interesting and are reading, thanks! I'll try to keep things interesting. [Read more…]
(6 comments, in Programming)
Sun, Nov 27, 2011, 7:19pm Journal Article Reading / Tracking
There are times when (a) I'd rather use a Terminal shell to search for something, or it's already where I am, and (b) when I'm in the mood to write a little set of scripts to do something neat. And so it came that I wrote a set of little scripts to keep track of my completely out-of-control PDF collection from various journals. This isn't a blog article about how you should use this tool, since your reading neuroses probably differ, but just a quick "hey, I think this is neat" and something that may inspire someone on to other cool command-line tools (or whatnot). [Read more…]
Tue, Nov 2, 2010, 3:34pm Off-Limits Class Names in Cocoa
I just wanted document somewhere on the internet unprefixed object names in the Objective-C runtime that could potentially trip you up. I'm just talking about capitalized words, not C keywords, and I'm not talking about anything already given a namespace prefix like the NS* types.

There are un-prefixed, capitalized type names lurking in the runtime. [Read more…]
(in Programming » Cocoa)
Sun, Mar 7, 2010, 5:16pm F-Script Switching Options
There are many ways to think through the flow of a program, and times when certain constructs like switch statements are a nice option, even in a language with no syntactical support for it, per se. Philippe Mougin was discussing just such options in F-Script back in the Oughts. I had a need for switching in F-Script, and came up with a few versions that I found useful. [Read more…]
(2 comments, in Programming » F-Script)
Mon, Mar 1, 2010, 7:17pm 360iDev Coming Soon!
And I'll even be speaking at it, together with the mighty Joe Pezzillo of Metafy and Push IO fame (and all-around good guy). We're giving a talk on the subject of open source on the iPhone. If there are specific points that you would like us to address, feel free to leave a note and I'll take it all into consideration. If you're there, please be sure to say hi. Please consider going if you've never been! It's more intimate than the larger WWDC. The Mac/iPhone dev community is great, and this should be a very fun conference.

360iDev — "the Premier iPhone developer conference" (April 11-14)
(in Programming » iOS)
Older items:
Tue, Feb 9, 2010, 3:27pm
Xcode Shortcuts
(1 comment, in Programming » Cocoa)
Tue, Nov 17, 2009, 5:27pm
Quick Text Substitution Hack via F-Script
(4 comments, in Programming » F-Script)
Wed, Nov 11, 2009, 2:29am
Additional mathy-Pythonic touches
(134 comments, in Programming » Math-Science)
Thu, Mar 19, 2009, 1:56am
iPhone SDK 3.0 Beta Night
(2 comments, in Programming » iOS)
Wed, Jun 25, 2008, 11:33pm
Mac-specific Server Coding
Wed, Mar 19, 2008, 4:06pm
OpenMP/GL Particle Demo
(3 comments, in Programming » OpenMP)
Sun, Mar 16, 2008, 10:57pm
TIOBE #s
(1 comment, in Programming)
Tue, Feb 26, 2008, 3:43am
First dip into the OpenMP world
Wed, Feb 20, 2008, 2:56am
OpenMP/GL Brain Food
Wed, Nov 28, 2007, 1:32am
Automator Joy: Amazon Wish List to Text
(6 comments, in Programming » Automator)
Sat, Sep 1, 2007, 4:16am
Temp(la)ting Thoughts
Thu, Mar 29, 2007, 8:07pm
F-Script Style Thoughts
Thu, Mar 29, 2007, 6:01am
F-Script Web Test Working
(2 comments, in Programming » F-Script)
Mon, Mar 5, 2007, 12:27am
Picking my next standard web language
(1 comment, in Programming)
Wed, Dec 6, 2006, 12:16am
CSS Alignment Styles
(3 comments, in Programming)