June 29th, 2024

ECMAScript 2024: What's New?

Ecma International approved ECMAScript 2024 with new features like Promise.withResolvers(), /v flag for Unicode properties, ArrayBuffers enhancements, and Atomics.waitAsync(). Notable additions include resizing ArrayBuffers and string well-formedness methods. A book "Exploring JavaScript (ES2024 Edition)" is available.

Read original articleLink Icon
ECMAScript 2024: What's New?

Ecma International has officially approved the ECMAScript 2024 language specification during its 127th General Assembly. The new features in ECMAScript 2024 include grouping synchronous iterables, Promise.withResolvers(), a new regular expression flag /v for Unicode properties, enhancements for ArrayBuffers and SharedArrayBuffers, methods for ensuring well-formed strings, and Atomics.waitAsync() for asynchronous waiting on shared memory changes. The release is edited by Shu-yu Guo, Michael Ficarra, and Kevin Gibbons. Notable additions are the ability to resize ArrayBuffers in place and the introduction of methods to check and correct well-formedness of strings. Atomics.waitAsync() facilitates asynchronous waiting for shared memory updates. Additionally, a free online book titled "Exploring JavaScript (ES2024 Edition)" covers the history and evolution of JavaScript along with the new features introduced in each ECMAScript version.

Related

Wc2: Investigates optimizing 'wc', the Unix word count program

Wc2: Investigates optimizing 'wc', the Unix word count program

The GitHub project "wc2" presents an innovative algorithm for the `wc` program, focusing on asynchronous state-machine parsing in C and JavaScript. It enhances efficiency, scalability, and speed compared to traditional `wc` implementations.

New JavaScript Set Methods

New JavaScript Set Methods

New JavaScript Set methods introduced in major browsers like Firefox 127 offer efficient set operations without polyfills. These methods simplify tasks like finding intersections, unions, and subsets, enhancing working with unique collections.

Why Google Sheets ported its calculation worker from JavaScript to WasmGC

Why Google Sheets ported its calculation worker from JavaScript to WasmGC

Google Sheets transitioned its calculation worker to WasmGC from JavaScript for improved performance. Collaboration between Sheets and Chrome teams led to optimizations, overcoming challenges for near-native speed on the web.

JavaScript Visualized – Event Loop, Web APIs, (Micro)Task Queue [video]

JavaScript Visualized – Event Loop, Web APIs, (Micro)Task Queue [video]

The event loop in JavaScript is crucial for managing asynchronous tasks efficiently. It includes the call stack, web APIs, task queue, and microtask queue, enabling non-blocking operations. For more details, feel free to inquire.

Migrating from Java 8 to Java 17 II: Notable API Changes Since Java 8

Migrating from Java 8 to Java 17 II: Notable API Changes Since Java 8

The article details API changes in Java versions 9 to 17, emphasizing improvements for Java 8 migrations. Changes include null handling, performance enhancements, string improvements, switch expressions, record classes, and utility additions for developer productivity and code readability.

Link Icon 1 comments