ES?.next()

Rate this content
Bookmark

Does hearing about potential new features of Javascript makes you excited? Then this talk is for you! We will walk through a few interesting proposals from TC39 from stage-0 to stage-3. Let us see how beneficial these proposals are with code samples and some live coding.

FAQ

The TC39 committee is a technical committee within ECMA (European Computer Manufacturing Association International) that is responsible for developing and maintaining the ECMAScript specification, which is the standard underlying JavaScript. They work through a process involving multiple stages, from initial ideas (stage 0) to finalized features (stage 4) that are ready for implementation in JavaScript engines.

The ECMAScript proposal process involves five stages, starting from stage 0 (Strawperson) where initial ideas are presented, to stage 4 (Finished) where the proposal is ready to be implemented in browsers. Each stage progressively refines and tests the proposal, gathering feedback and making necessary adjustments.

The term 'Strawman' was updated to 'Strawperson' in the ECMAScript proposal process terminology. This change was made to use more inclusive language within the technical discussions and documentation.

No, regular JavaScript users cannot directly vote on ECMAScript proposals. Voting is typically conducted within the TC39 committee, which consists of delegates from various organizations that have a stake in the web technologies. However, the general public can participate in discussions, provide feedback, and influence the direction of proposals through forums and social media.

The bind syntax, introduced in stage 0 of the ECMAScript proposal process, provides a more intuitive and simplified way to handle 'this' context in functions, making the code easier to read and understand. It allows chaining methods directly without needing to explicitly bind 'this' or use additional function calls.

The TC39 committee meticulously reviews each proposal to ensure that new features do not break existing JavaScript code. This involves extensive testing, discussions about potential edge cases, and consideration of how new features interact with existing features. The goal is to evolve the language while maintaining compatibility across the web.

Hemanth HM
Hemanth HM
31 min
10 Jun, 2021

Comments

Sign in or register to post your comment.

Video Summary and Transcription

The Talk discusses various proposals for the next version of ECMAScript (ES Next) and the TC39 process. It covers features such as binding syntax, shorthand property assignments, pattern matching, async match, operator overloading, and more. These proposals aim to simplify code, make it more readable, and introduce new functionalities. The Talk also addresses questions about the committee's decision-making process and the experience of being part of the TC39 committee.

Available in Español: ES?.next()

1. Introduction to ES Next and TC39 Process

Short description:

Hello, JS Nation. We are talking about ES Next in this talk. ECMA has many technical committees that decide and define the specifications of different entities. The TC39 works on ECMAScript and has 5 stages in the process. The first stage is a strawperson, followed by proposal, draft, candidate, and finished. We will be going through interesting proposals in each stage. Some features may not make it to the final state.

Hello, JS Nation. We are talking about ES Next in this talk. I am Hemant. I am a member of technical staff at PayPal, a GDE in web and payment domain and of course a TC39 delegate and you can tweet to me at gnumonth. ECMA, the European Computer Manufacturing Association International, has many technical committees that decide and define the specifications of different entities.

And one such, the 39th, is the TC39 which works on ECMAScript. How does the process basically work like? So we have basically 5 stages starting from stage 0 to stage 4. The first stage is called a strawperson. At this stage, you allow input into the specification. It's more like you have an idea and it's not yet presented in the committee. And stage 1 is more like a proposal. So you have an idea and you make a case for the additional and then describe the shape and also the solution. And what you are trying to solve and what is the solution like and what is the problem that you want to solve for is what you discuss here at stage 1. And at stage 2, you have a draft where you precisely describe the syntax and semantics using formal specification language. And then at stage 3, you have a candidate which indicates kind of, hey, this can be tested with a flag may be on your browser or a node environment. So it's kind of you are seeking feedback on the candidate from developers and saying, hey, use it with caution because now it's under a flag. Just use it and let us know how it looks like. And finally, at stage 4, it's finished and it's ready to be shipped. And sometimes it's already shipped with the flag, as I said, in stage 3, the flag is kind of removed at this stage and it's available in most of the modern browsers and other environments. That's the whole process of how TC39 works, like starting from straw person to the finished after the proposal drafted candidate, of course. Interestingly, this was called as Strawman before, and it's renamed to be Strawperson, which makes a lot of sense.

Here's an interesting graph, which is being pulled in the current stat where we have proposals from stage 0 to stage 4 and we have 18 such proposals on stage 0 and 79 proposals on stage 1, and we have 26 on stage 2, 14 on stage 3 and 49 on stage 4. So during this talk, we will be going through some interesting proposals in each of these stages and word of caution of course, because we are talking about some of the proposals which are at the very early state. Of course they will change, some of them might even change how they behave. The syntax might change, some of them might not even make it to the final state, so don't presume that all of these features will be available in Javascript some day. So these are some of the potential future features that we will be looking into. So I kind of marked each of the slides with these two emojis here, on the left what we see here with the glass icon is more like an IP saying that, hey, this is how we are doing it today. And on the right with the glasses is what we are saying, hey, how the future would probably look like. Let's say I have an iterLib and you have a function get players, which kind of gives you an object, which has characters and has attributes on strength and you need to pull some information out of it. So the iterLib is giving you map, take while and forEach methods.

2. Binding Syntax and Simplification

Short description:

And the get player here, with the val, gives you an object. So you want to map or as of today, you do a map.call on that value and fetch all the characters. And then you do a take while and say, hey, if the strength is greater than a hundred, give me all of those. And finally, you would probably have to forEach and do some processing. In this case, we are just console logging the value. Can this be better? So on state zero, we have this binding syntax, which makes life easier with the bind operator. If you can think of it as two successive columns here, what we see after get player, you have map and then you have take while and then you have forEach. Isn't it simpler compared to how we are doing it today, probably and how precise and simple it looks like here at state zero we have this bind syntax. So this bind syntax, if you were to summarize in the different variants that it provides, if you see object with the bind operator and function, which is equal to function.bind object followed by the bind operator object.function, which is indeed equivalent to object.function.bind with object. If you have object bind with function value, that's equivalent of function.call object.value. And if you just have bind object.function.value, which is equal to object.function.call object.value. This makes lives much simpler and intuitive to read, understand. And also the syntax looks beautiful, doesn't it?

And the get player here, with the val, gives you an object. So you want to map or as of today, you do a map.call on that value and fetch all the characters. And then you do a take while and say, hey, if the strength is greater than a hundred, give me all of those. And finally, you would probably have to forEach and do some processing. In this case, we are just console logging the value. Can this be better?

So on state zero, we have this binding syntax, which makes life easier with the bind operator. If you can think of it as two successive columns here, what we see after get player, you have map and then you have take while and then you have forEach. Isn't it simpler compared to how we are doing it today, probably and how precise and simple it looks like here at state zero we have this bind syntax. So this bind syntax, if you were to summarize in the different variants that it provides, if you see object with the bind operator and function, which is equal to function.bind object followed by the bind operator object.function, which is indeed equivalent to object.function.bind with object. If you have object bind with function value, that's equivalent of function.call object.value. And if you just have bind object.function.value, which is equal to object.function.call object.value. This makes lives much simpler and intuitive to read, understand. And also the syntax looks beautiful, doesn't it?

QnA

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Scaling Up with Remix and Micro Frontends
Remix Conf Europe 2022Remix Conf Europe 2022
23 min
Scaling Up with Remix and Micro Frontends
Top Content
Do you have a large product built by many teams? Are you struggling to release often? Did your frontend turn into a massive unmaintainable monolith? If, like me, you’ve answered yes to any of those questions, this talk is for you! I’ll show you exactly how you can build a micro frontend architecture with Remix to solve those challenges.
Full Stack Components
Remix Conf Europe 2022Remix Conf Europe 2022
37 min
Full Stack Components
Top Content
Remix is a web framework that gives you the simple mental model of a Multi-Page App (MPA) but the power and capabilities of a Single-Page App (SPA). One of the big challenges of SPAs is network management resulting in a great deal of indirection and buggy code. This is especially noticeable in application state which Remix completely eliminates, but it's also an issue in individual components that communicate with a single-purpose backend endpoint (like a combobox search for example).
In this talk, Kent will demonstrate how Remix enables you to build complex UI components that are connected to a backend in the simplest and most powerful way you've ever seen. Leaving you time to chill with your family or whatever else you do for fun.
Making JavaScript on WebAssembly Fast
JSNation Live 2021JSNation Live 2021
29 min
Making JavaScript on WebAssembly Fast
Top Content
JavaScript in the browser runs many times faster than it did two decades ago. And that happened because the browser vendors spent that time working on intensive performance optimizations in their JavaScript engines.Because of this optimization work, JavaScript is now running in many places besides the browser. But there are still some environments where the JS engines can’t apply those optimizations in the right way to make things fast.We’re working to solve this, beginning a whole new wave of JavaScript optimization work. We’re improving JavaScript performance for entirely different environments, where different rules apply. And this is possible because of WebAssembly. In this talk, I'll explain how this all works and what's coming next.
Debugging JS
React Summit 2023React Summit 2023
24 min
Debugging JS
Top Content
As developers, we spend much of our time debugging apps - often code we didn't even write. Sadly, few developers have ever been taught how to approach debugging - it's something most of us learn through painful experience.  The good news is you _can_ learn how to debug effectively, and there's several key techniques and tools you can use for debugging JS and React apps.
Webpack in 5 Years?
JSNation 2022JSNation 2022
26 min
Webpack in 5 Years?
Top Content
What can we learn from the last 10 years for the next 5 years? Is there a future for Webpack? What do we need to do now?
Towards a Standard Library for JavaScript Runtimes
Node Congress 2022Node Congress 2022
34 min
Towards a Standard Library for JavaScript Runtimes
Top Content
You can check the slides for James' talk here.

Workshops on related topic

Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
React Day Berlin 2022React Day Berlin 2022
86 min
Using CodeMirror to Build a JavaScript Editor with Linting and AutoComplete
Top Content
WorkshopFree
Hussien Khayoon
Kahvi Patel
2 authors
Using a library might seem easy at first glance, but how do you choose the right library? How do you upgrade an existing one? And how do you wade through the documentation to find what you want?
In this workshop, we’ll discuss all these finer points while going through a general example of building a code editor using CodeMirror in React. All while sharing some of the nuances our team learned about using this library and some problems we encountered.
Testing Web Applications Using Cypress
TestJS Summit - January, 2021TestJS Summit - January, 2021
173 min
Testing Web Applications Using Cypress
WorkshopFree
Gleb Bahmutov
Gleb Bahmutov
This workshop will teach you the basics of writing useful end-to-end tests using Cypress Test Runner.
We will cover writing tests, covering every application feature, structuring tests, intercepting network requests, and setting up the backend data.
Anyone who knows JavaScript programming language and has NPM installed would be able to follow along.
Build a powerful DataGrid in few hours with Ag Grid
React Summit US 2023React Summit US 2023
96 min
Build a powerful DataGrid in few hours with Ag Grid
WorkshopFree
Mike Ryan
Mike Ryan
Does your React app need to efficiently display lots (and lots) of data in a grid? Do your users want to be able to search, sort, filter, and edit data? AG Grid is the best JavaScript grid in the world and is packed with features, highly performant, and extensible. In this workshop, you’ll learn how to get started with AG Grid, how we can enable sorting and filtering of data in the grid, cell rendering, and more. You will walk away from this free 3-hour workshop equipped with the knowledge for implementing AG Grid into your React application.
We all know that rolling our own grid solution is not easy, and let's be honest, is not something that we should be working on. We are focused on building a product and driving forward innovation. In this workshop, you'll see just how easy it is to get started with AG Grid.
Prerequisites: Basic React and JavaScript
Workshop level: Beginner
0 to Auth in an Hour Using NodeJS SDK
Node Congress 2023Node Congress 2023
63 min
0 to Auth in an Hour Using NodeJS SDK
WorkshopFree
Asaf Shen
Asaf Shen
Passwordless authentication may seem complex, but it is simple to add it to any app using the right tool.
We will enhance a full-stack JS application (Node.JS backend + React frontend) to authenticate users with OAuth (social login) and One Time Passwords (email), including:- User authentication - Managing user interactions, returning session / refresh JWTs- Session management and validation - Storing the session for subsequent client requests, validating / refreshing sessions
At the end of the workshop, we will also touch on another approach to code authentication using frontend Descope Flows (drag-and-drop workflows), while keeping only session validation in the backend. With this, we will also show how easy it is to enable biometrics and other passwordless authentication methods.
Table of contents- A quick intro to core authentication concepts- Coding- Why passwordless matters
Prerequisites- IDE for your choice- Node 18 or higher
Build a Powerful Datagrid With AG Grid
React Summit 2024React Summit 2024
168 min
Build a Powerful Datagrid With AG Grid
WorkshopFree
Brian Love
Brian Love
Does your React app need to efficiently display lots (and lots) of data in a grid? Do your users want to be able to search, sort, filter, and edit data? AG Grid is the best JavaScript grid in the world and is packed with features, highly performant, and extensible. In this workshop, you’ll learn how to get started with AG Grid, how we can enable sorting and filtering of data in the grid, cell rendering, and more. You will walk away from this free 3-hour workshop equipped with the knowledge for implementing AG Grid into your React application.
JavaScript-based full-text search with Orama everywhere
Node Congress 2023Node Congress 2023
49 min
JavaScript-based full-text search with Orama everywhere
Workshop
Michele Riva
Michele Riva
In this workshop, we will see how to adopt Orama, a powerful full-text search engine written entirely in JavaScript, to make search available wherever JavaScript runs. We will learn when, how, and why deploying it on a serverless function could be a great idea, and when it would be better to keep it directly on the browser. Forget APIs, complex configurations, etc: Orama will make it easy to integrate search on projects of any scale.