Impressive: C++ Lambdas via Template Metaprogramming

U. Utah's Matt Might has implemented lambda expressions in C++, so for instance:

    Function2<int,int,int> h(int a, int b) {
     return lambda<int> (x,y) --> a*x + b*y ;
    }

the value of h(3,4)(1,1) is 7.

more ...


Is It "All About The Framework"?

This thought-provoking post on /dev/why!?! argues that backward compatibility is the root cause of the new iPhone restrictions. The argument is summed up in this quote:

I can think of incidents where Apple reverted OS changes, dumped new APIs, or was forced to committing massive engineering resources to something …

more ...

Twitter Weekly Updates for 2010-04-11

  • Remember the Milk is hiring a Scala programmer: http://jobs.stackoverflow.com/default.asp?6700 #
  • Worrisome new rule for iPhone / iPad causing discussion on #monotouch -- consensus seems to be that MonoTouch is fine. #
  • More scary stuff from new iPhone SDK license: ""Applications must be originally written in Objective-C, C, C …
more ...

"Originally Written in..." vs. Code Generation

My assertion that the iPhone license phrase "Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine" can only mean zero code generation has been questioned. Here's why I stand by that assessment (and consider the clause beyond the pale).

Let …

more ...

Automatic Parallelization of Memory Management

MMT: Exploiting Fine-Grained Parallelism in Dynamic Memory Management, Tiware et al. is worth reading if you are interested in systems-level performance programming. If you work in a managed environment, the briefly described lockless protocol for request-reply queues is worth noting.

This paper describes the use of a "Memory Management Thread …

more ...

The Absurdity of Apple's New iPhone Restrictions

These are the new clauses:

  • Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine

I'm tempted to say that the clause is absurd and to talk about metaprogramming with C++ templates or JavaScript prototypes, but the fact is that it's …

more ...

Using Mathematica to Generate "The Elements" iPad App

The most intriguing part of this Popular Science article on the creation of the iPad app "The Elements" is the all-too-brief mention of the creation of a higher-level Mathematica program to generate the pages:

In about 7 of the precious 60 available days, I was able to create from scratch …

more ...