An Introduction to JS-Ctypes
Update If you have time follow the whole story in es-discuss mailing list while if you don't have time here the quick summary: js-ctypes purpose is different from JS.next typed structs/arrays so it looks like it was my mistake to compare tomatoes and potatoes. I bet everybody else in this world could have compared these two different beasts due identical name, look, and similar usage. If ctypes are not used outside JS these are not JIT optimized in any case so now we know why performances are so slow compared with JS code. On new Struct({literal:pairs}) VS new Struct(literal = pairs) there is still no answer and even if it's obviously possible to avoid an object creation per each created instance, recycling a single object and refreshing its properties same as we could do with properties descriptors and Object.defineProperty I have pointed this out in that way on purpose since I can already see a massive usage of that unoptimized pattern and I would like to know that engi...