February 3rd, 2017

JavaScript spec adds async functions, shared memory

HTML/CSS/JavaScript, Java App Dev, Open Source, others, Programing, Scripting and JVM Languages, by admin.

A few months before its expected approval, ECMAScript 2017, the latest official specification underlying JavaScript, has been fleshed out with async functions and shared memory capabilities.

ECMAScript 2017 is due to be finalized in June, in line with a release cadence that has seen midyear upgrades recently. “Async functions are a terrific tool for writing asynchronous code, and SharedArrayBuffer (shared memory) will enable library authors to experiment with real multiprocessing in JavaScript,” said blogger Axel Rauschmayer, who follows JavaScript’s development.

Async functions were a candidate for inclusion last year but were pushed out to this year. Shared memory, meanwhile, is coupled with atomics, providing atomic operations on shared memory locations.

ECMAScript 2017 also will include Object.values/Object.entries. Similar to the Object.keys capability, Object.values and Object.entries would return arrays, with an ordering matching Object.keys, with indices of all three resulting arrays matching the same key, value, or entry of an object, according to the ECMA proposal.

Back Top

Leave a Reply