[email protected]

On Mon, 3 Jun 2019 at 02:22, Philip Jägenstedt <[email protected]> wrote:

> A few questions, this is the first TC39 intent I've looked closely at...
>
> There are concrete examples of the new things in
> https://github.com/tc39/proposal-unified-intl-numberformat. Currently, in
> Chrome 74, the example in "I. Units" throws RangeError, while the example
> in "II. Scientific and Compact Notation" just returns "987,654,321", which
> isn't the expected value.
>
> Given this, how should web developers detect support for these new things?
> Is there a polyfill in Babel?
>
> Also, will Chromium be the first browser engine to ship support for this?
> Are there bugs filed for shipping it in Gecko and WebKit too?
>
> Thanks!
>
> On Sat, Jun 1, 2019 at 2:01 AM Frank Tang <[email protected]> wrote:
>
>> Intend to ship for Chrome m77
>>
>> Title: Intent to Ship: Intl.NumberFormat Unified API Proposal
>>
>> Contact emails
>>
>> [email protected], [email protected]
>>
>> Explainer
>>
>> Stage 3 Proposal in TC39/ECMA402
>>
>> https://github.com/tc39/proposal-unified-intl-numberformat
>>
>> Spec
>>
>>
>> https://tc39.github.io/proposal-unified-intl-numberformat/section11/numberformat_diff_out.html
>>
>> and
>>
>>
>> https://tc39.github.io/proposal-unified-intl-numberformat/section6/locales-currencies-tz_diff_out.html
>>
>> Design Doc:
>>
>> https://goo.gl/ZAtL1f
>>
>> Why the tag review process is being skipped: JavaScript features do not
>> need to go through a TAG review, as they already get significant scrutiny
>> as part of the TC39 staging process
>> <https://tc39.github.io/process-document/>.
>>
>> Summary
>>
>> Improves Intl.NumberFormat by adding support for measurement units,
>> currency and sign display policies, and scientific and compact notation.
>>
>> Link to “Intent to Implement” blink-dev discussion
>>
>>
>> https://groups.google.com/a/chromium.org/forum/?fromgroups#!searchin/blink-dev/$20ftang%7Csort:date/blink-dev/q3U7sPOG1uo/M7XZU7fxAwAJ
>>
>> Is this feature supported on all six Blink platforms (Windows, Mac,
>> Linux, Chrome OS, Android, and Android WebView)?
>>
>> Yes
>>
>> Demo link
>>
>> https://github.com/tc39/proposal-unified-intl-numberformat
>>
>> Debuggability
>>
>> Nothing special.
>>
>> Risks
>>
>> Interoperability and Compatibility
>>
>> This API change the pre-existing Intl.NumberFormat API by adding new
>> options to control the formatted output. It is advanced to TC39 Stage 3 in
>> the end of Oct 2018. Engineer from Firefox team is supporting this proposal
>> .
>>
>> Ergonomics
>>
>> The implementation depend on newer ICU class LocalizedNumberFormatter
>> class, which require us to switch from the old NumberFormat. The switching
>> in cl  1392233
>> <https://chromium-review.googlesource.com/c/v8/v8/+/1392233> speed up
>> the Intl.NumberFormat constructor x4 in speed.
>>
>> During the prototype phrase we identify a size increase issue of this
>> proposal and work with the ECMA402 committee to reduce the scope of the
>> number of “units” supported in the proposal.
>>
>> Activation
>>
>> Web developers could use the API immediately upon our shipment, based on
>> the usage of previous well supported Intl.NumberFormat object.
>>
>>
>> Is this feature fully tested by web-platform-tests
>> <https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md>?
>> Link to test suite results from wpt.fyi.
>>
>> Tests under tc39/test262 includes many tests to test this API.
>>
>> Tests with “features: [Intl.NumberFormat-unified]” under
>> test/intl402/NumberFormat/
>> <https://github.com/tc39/test262/tree/master/test/intl402/NumberFormat/>
>>
>> Also tests under src/v8/test/intl/number-format/unified/
>> <https://cs.chromium.org/chromium/src/v8/test/intl/number-format/unified/>
>>
>> Entry on the feature dashboard <http://www.chromestatus.com/>
>>
>> https://www.chromestatus.com/feature/5430420699086848
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "blink-api-owners-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/a/chromium.org/d/msgid/blink-api-owners-discuss/CAOcELL-eWi2Q6%3D9S%3DxRo5cgXbSDgHAUym7e-O_TsXgLggS0wJA%40mail.gmail.com
>> <https://groups.google.com/a/chromium.org/d/msgid/blink-api-owners-discuss/CAOcELL-eWi2Q6%3D9S%3DxRo5cgXbSDgHAUym7e-O_TsXgLggS0wJA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
Frank Yung-Fong Tang
譚永鋒 / 🌭🍊
Sr. Software Engineer

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CA%2B7fzPGBjn7maYLvcRocgBzw6o7ukJO5NjUJEm1b_RHfoKJXuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to