Latest update to the JavaScript standard brings seven new features including array grouping, growable ArrayBuffers, and promises with resolvers. Credit: Marina_Skoropadskaya / Getty Images ECMAScript 2024, a planned update to ECMA’s standard for JavaScript, is set to include seven new features ranging from array grouping to Unicode strings. The 2024 specification, from ECMA’s Technical Committee 39, is expected to be approved in June. Among the list of finished features cited for publication this year is a proposal for array grouping. Motivating this proposal is the notion that array grouping is a common operation best exemplified by SQL’s GROUP BY clause and mapreduce programming. The ability to combine like data into groups lets developers compute higher order data sets. Other new features for the 2024 specificaton include ArrayBuffer transfer, which adds new methods to ArrayBuffer.prototype, and resizable and growable ArrayBuffers, which extend ArrayBuffer constructors to take an additional maximum length, allowing for in-place growing and shrinking of buffers. Growable ArrayBuffers promise to provide better memory management and serve as a sync-up capability with WebAssembly memory growth. Another ECMAScript 2024 feature, asynchronous atomic await, would be primarily for use in agents that are not allowed to block. Another new feature, promise with resolvers, makes it easier to configure a promise’s resolution and rejection behavior after instantiating it. This has required a cumbersome workaround to extract resolve and reject functions from a callback scope, the proposal states. With well-formed Unicode strings, ECMAScript developers are moving forward on a method to verify if a given ECMAScript string is well-formed or not. Goals of the proposed method include improving performance and increasing the clarity for readers of code where this test is being performed, especially for readers without extensive Unicode or regular expression knowledge. ECMAScript 2024 also will extend the syntax for character classes to add support for set difference/subtraction, set intersection, and nested character classes. Last year’s ECMAScript 2023 featured methods for searching and changing arrays and extended the WeakMap API. Related content analysis Beyond the usual suspects: 5 fresh data science tools to try today The mid-month report includes quick tips for easier Python installation, a new VS Code-like IDE just for Python and R users, and five newer data science tools you won't want to miss. By Serdar Yegulalp Jul 12, 2024 2 mins Python Programming Languages Software Development analysis Generative AI won’t fix cloud migration You’ve probably heard how generative AI will solve all cloud migration problems. It’s not that simple. Generative AI could actually make it harder and more costly. By David Linthicum Jul 12, 2024 5 mins Generative AI Artificial Intelligence Cloud Computing news HR professionals trust AI recommendations HireVue survey finds 73% of HR professionals trust AI to make candidate recommendations, while 75% of workers are opposed to AI making hiring decisions. By Paul Krill Jul 11, 2024 3 mins Technology Industry Careers how-to Safety off: Programming in Rust with `unsafe` What does it mean to write unsafe code in Rust, and what can you do (and not do) with the 'unsafe' keyword? The facts may surprise you. By Serdar Yegulalp Jul 11, 2024 8 mins Rust Programming Languages Software Development Resources Videos