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 feature 14 great preprocessors for developers who love to code Sometimes it seems like the rules of programming are designed to make coding a chore. Here are 14 ways preprocessors can help make software development fun again. By Peter Wayner Nov 18, 2024 10 mins Development Tools Software Development feature Designing the APIs that accidentally power businesses Well-designed APIs, even those often-neglected internal APIs, make developers more productive and businesses more agile. By Jean Yang Nov 18, 2024 6 mins APIs Software Development news Spin 3.0 supports polyglot development using Wasm components Fermyon’s open source framework for building server-side WebAssembly apps allows developers to compose apps from components created with different languages. By Paul Krill Nov 18, 2024 2 mins Microservices Serverless Computing Development Libraries and Frameworks news Go language evolving for future hardware, AI workloads The Go team is working to adapt Go to large multicore systems, the latest hardware instructions, and the needs of developers of large-scale AI systems. By Paul Krill Nov 15, 2024 3 mins Google Go Generative AI Programming Languages Resources Videos