r/javascript • • Dec 05 '15

Microsoft Edge's JavaScript engine to go open-source

https://blogs.windows.com/msedgedev/2015/12/05/open-source-chakra-core/
317 Upvotes

84 comments sorted by

View all comments

Show parent comments

12

u/bterlson_ @bterlson Dec 05 '15 edited Dec 06 '15

My day-to-day work is actually the editor of the ECMAScript standard itself. I am very bullish on JavaScript's future. As for improvements, I have many ideas (too many to list), but a short list is:

  • Async functions (supported in Chakra)

  • Some notion of observables

  • Private/protected state for classes

  • RegExp improvements (look-behinds, named capture groups, and a few other features).

  • Value types

  • New number types (decimal, bignum, int64/uint64)

  • Decorators

Probably many others I missed. I'm excited about many proposals!

4

u/cincilator Dec 05 '15

Value types

What is your opinion on typed objects and/or type annotations?

Frankly one improvement I would love to see (but won't since it would break a lot of compatibility) is using separate symbol for string concatenation, so + is exclusively for math.

1

u/bterlson_ @bterlson Dec 05 '15

Typed objects and type annotations are two orthogonal concepts. Typed Objects (now called value types) are about how to provide new and custom primitives to JS and have reasonable semantics for operators. Type annotations are all about giving developers errors early and potentially allowing runtimes to optimize better. Value types I'm super bullish on and hope to get a proposal moving soon. Standard type annotations I've talked a lot about and is something that would be nice I think, but I'm not pushing it too hard at this point.

If I could make breaking changes to JS, I would make so many changes.... alas :(

1

u/ogrechoker Dec 06 '15

Typescript vs Flow vs SoundScript, go

also how long until a real standard is proposed/implemented? ES2018?

1

u/bterlson_ @bterlson Dec 06 '15

TypeScript, of course :) Flow has some strengths (eg. I like nullable types). SoundScript is interesting and I look forward to more progress.

Hard to say when a standard for types will be proposed, let alone be ratified. It's a lot of work and difficult to get through the standards process (for good reasons).