Live data from Hacker News

WebKit is now 100% ES6 complete

twitter.com

91–100 of 119 posts

Re: WebKit is now 100% ES6 complete

#91
post #61

open up chrome console, type `class Foo { }` and it works now out of the box. For what it's worth, when you try define a class that already exists. it throws an error. It seems that re-defining an identifier with the `var` keyword will throw an error too. I don't remember this being the case before.

Maybe code on the REPL is being evaluated with strict mode on?

Re: WebKit is now 100% ES6 complete

#92

So, today I'm using babel to transpile my code to es5. Anyone know of any good tooling to use transpiled code for older browsers and es6 for newer?

It'd be nice to see support similar to Autoprefixer[1]'s use of Browserlist queries[2]. Those let the developer to specify the desired target platforms by browser versions, by global usage stats (e.g. '> 5%'), or by custom usage stats ('> 5% in my stats') etc., and derive the correct prefixes needed to deploy to those targets. EDIT (for clarity): It'd be great to see similar query support to derive a "lowest common d…

Yep, it's our plan to do something like that with community help - have a PR open for discussion at https://github.com/babel/babel/pull/3476.

Also https://twitter.com/samccone/status/722826060161617923.

Re: WebKit is now 100% ES6 complete

#93
post #49
post #33

Earlier quoted context omitted.

If you're using Babel already, WebKit hitting 100% support is irrelevant. IE is going to be the thing that prevents us from running ES6 natively in the browser for several years more.

I was going to reply it wasn't that long, until i realized ie will be around in meaningful numbers for another 4 years. Windows 7 is supported until 2020, and IE is the only game in town there for enterprises. The new distribution policies of w10 will mean plenty of places will run out the clock on w7 support. So, yeah, I guess we're supporting IE 11 for half a decade to come.

IE 11 ships also with Win8.1 and Win10, so IE11 will be around until 2022 or 2025.

IE11 is the new IE6 and will be around a long time in enterprise. Thank you Microsoft. It's epecially annoying as Edge is based just on a refactored and improved trident engine after all, so basically IE12 html engine under hood (and was already called "Edge" in DevTools in IE11).

Re: WebKit is now 100% ES6 complete

#96
post #72
post #64

Earlier quoted context omitted.

I think that was fixed in the last TP.

I don't think I'll be able to handle any instability in that right now. My primary development focus doesn't involve web development so having the latest and greatest browser won't benefit me that much. I do want to try the latest features, but I have patience and can wait a few more months.

I mean, you can have it installed alongside regular Safari and just switch between them at will. It's not an all or nothing decision.

Re: WebKit is now 100% ES6 complete

#97
post #70

Earlier quoted context omitted.

It probably could be, but we deliberately don't do it, because: 1) I'm not aware of complaints about the change to error.stack behavior from users or developers. I don't know of an app that broke because of the change to error.stack. I don't know of an app whose telemetry got messed up because of the change to error.stack. So, we don't have a real-world test case that would be improved or fixed by integrating ShadowC…

I will bite the bullet: Do you have a sense of how many devs use Safari compared to Chrome/FF for debugging?

I do. Sometimes.

Even if were the worst engine since IE4, it's Not Chrome(tm) and can help when chrome dev tools fail (or - more likely - I fail at working with chrome dev tools and need a fresh perspective.)

It's also good practice to run the profilers at least occasionally, because (a) performance in Safari is relevant and I've been bitten by idiosyncrasies where one browser took >5x than another (in all directions. And (b), as above, just by being different they may add useful information.

Re: WebKit is now 100% ES6 complete

#98
post #74

Earlier quoted context omitted.

How does tail call optimization cause a regress in performance? Superficially, it seems very counter-intuitive that this should even be possible.

Messes with calling conventions. Citing Rust: https://mail.mozilla.org/pipermail/rust-dev/2013-April/00355...

GCC/Clang can generate code with tail calls, if you don't mind losing the stack frame. And I don't think they have any issue tail-calling external libraries on the ABIs I know. How are these different?

Re: WebKit is now 100% ES6 complete

#100
post #99

tfw when "complete" has degrees. sigh. I'm 99% super confident that this is an almost optimal solution.

Of course it does. If you're working on a task that will take hundreds of hours and your boss asks how far along you are, is your only possible response either "finished" or "not finished"?
Post reply on HN