Skip to main content

16 posts tagged with "ECMAScript"

View All Tags

Adding BigInts to V8

· 8 min read
Jakob Kummerow, arbitrator of precision

Over the past couple of months, we have implemented support for BigInts in V8, as currently specified by this proposal, to be included in a future version of ECMAScript. The following post tells the story of our adventures.

Optimizing ES2015 proxies in V8

· 8 min read
Maya Armyanova ([@Zmayski](https://twitter.com/Zmayski)), Optimizer of Proxies

Proxies have been an integral part of JavaScript since ES2015. They allow intercepting fundamental operations on objects and customizing their behavior. Proxies form a core part of projects like jsdom and the Comlink RPC library. Recently, we put a lot of effort into improving the performance of proxies in V8. This article sheds some light on general performance improvement patterns in V8 and for proxies in particular.

High-performance ES2015 and beyond

· 10 min read
Benedikt Meurer [@bmeurer](https://twitter.com/bmeurer), ECMAScript Performance Engineer

Over the last couple of months the V8 team focused on bringing the performance of newly added ES2015 and other even more recent JavaScript features on par with their transpiled ES5 counterparts.

ES2015, ES2016, and beyond

· 9 min read
the V8 team, ECMAScript Enthusiasts

The V8 team places great importance on the evolution of JavaScript into an increasingly expressive and well-defined language that makes writing fast, safe, and correct web applications easy. In June 2015, the ES2015 specification was ratified by the TC39 standards committee, making it the largest single update to the JavaScript language. New features include classes, arrow functions, promises, iterators / generators, proxies, well-known symbols, and additional syntactic sugar. TC39 has also increased the cadence of new specifications and released the candidate draft for ES2016 in February 2016, to be ratified this summer. While not as expansive as the ES2015 update due to the shorter release cycle, ES2016 notably introduces the exponentiation operator and Array.prototype.includes.

RegExp lookbehind assertions

· 3 min read
Yang Guo, Regular Expression Engineer

Introduced with the third edition of the ECMA-262 specification, regular expressions have been part of Javascript since 1999. In functionality and expressiveness, JavaScript’s implementation of regular expressions roughly mirrors that of other programming languages.

There’s `Math.random()`, and then there’s `Math.random()`

· 4 min read
Yang Guo ([@hashseed](https://twitter.com/hashseed)), software engineer and dice designer

Math.random() returns a Number value with positive sign, greater than or equal to 0 but less than 1, chosen randomly or pseudo-randomly with approximately uniform distribution over that range, using an implementation-dependent algorithm or strategy. This function takes no arguments.