mikeash.com: just this guy, you know?

NSBlog
RSS feed (full text feed)

assembly blocks(10) continuation continuations errorhandling evil(2) fridayqna(8) futures(2) gcd(2) objectivec(2) trampoline translation

Showing entries tagged "blocks". Full blog index.

Tags: fridayqna blocks gcdWelcome back to another Friday Q&A. This week I'm departing from my usual user-driven format to present a class I've written for what I'm calling "background timers", and discuss potential uses for it.
(Read More) 0 comments

Blocks and GCD in Russian at 2010-06-29 15:22
Tags: blocks gcd translationAlexander Babaev has been kind enough to translate my series of posts on blocks and GCD into Russian for TouchDev.ru. So far he has posted two, Blocks in Objective-C and Intro to Grand Central Dispatch, Part I. Others in the series will be going up in the future. If you happen to speak Russian, check them out!
(Read More) 0 comments

An Objective-C Continuations Library at 2010-04-13 16:25
Tags: objectivec continuation blocksA couple of months ago I wrote about using Continuation Passing Style in Objective-C as an alternative technique for returning errors from methods. The major downside to that technique is that it integrates poorly with Cocoa, since Cocoa isn't written to use CPS. Jordan Breeding has spent the intervening time building up an impressive CPS adapter library which allows converting any Cocoa NSError ** call into CPS style with virtually no work. Source code and extensive examples are available, and I encourage you to check it out.
(Read More) 0 comments

Friday Q&A 2010-03-05: Compound Futures at 2010-03-05 13:53
Tags: fridayqna futures blocksWelcome back to another thrilling edition of Friday Q&A. This week I want to extend my discussion from last week about futures, and talk about compound futures, an extension to the basic futures system that I developed previously.

Tags: fridayqna futures blocksWelcome back to another shiny edition of Friday Q&A. Guy English suggested taking a look at implementing futures in Objective-C using blocks, and for this week's post I'm going to talk about the futures implementation that I built.

Tags: fridayqna blocks trampoline assembly evilWelcome to another edition of Friday Q&A, where deep technical talk and complete insanity combine! This week, I'm going to take a quick break from my usual reader-driven format and talk about a little toy I built earlier in the week, an adapter between blocks and more traditional function-pointer-based callback systems.

Tags: fridayqna blocks objectivec continuations errorhandlingThe Earth has moved 6.9 degrees around the Sun since my last post, which means it's time for another edition of Friday Q&A. This 6.9-degree segment, Guy English has suggested that I talk about the use of continuation passing style to simplify error returns in Objective-C code.

Tags: fridayqna blocks evilIt's Friday again, and that means another Friday Q&A. This week, Guy English proposed talking about a blocks-based object system, and that is what I will do. The system I've developed is a rudimentary system for doing object-oriented programming in pure C (plus blocks), and I'll discuss how it works and how to use it.

Tags: fridayqna blocksWelcome back to another edition of Friday Q&A. I'm back from my break and ready to bring you more programming goodies. This week I want to take Landon Fuller's suggestion to write a followup to my original Friday Q&A on blocks now that the design is finalized and code available for them.

Friday Q&A 2008-12-26 at 2008-12-26 17:19
Tags: fridayqna blocksWelcome to another Friday Q&A. This week I thought I would take fellow amoeboid Jeff Johnson's suggestion and talk about blocks in Objective-C.