Affinity is mainly written in C++ with the Mac version front-end written in Objective C. Scripting will be Java script as we feel this will cover the largest use cases people want.