Re: [v8-users] Compile in icudtl.dat

2019-05-23 Thread Ben Noordhuis
On Tue, May 21, 2019 at 8:45 PM Joel Scarfone  wrote:
> I do not want to have to include icudtl.dat on the machine running my 
> executable that i have v8 embedded in to achieve the EXMAScript 402 
> specification (going off of https://v8.dev/docs/i18n). Is there any way to do 
> this?

You can (Node.js does, for example) but I don't know how
well-documented or supported it is. Googling 'icu genccode' doesn't
turn up any hits for me at any rate. :-)

ICU's source/tools/genccode/genccode.c turns the data file into a .c
file that you can compile and link into your final executable or
library. There's a bit of a chicken and egg problem in that genccode.c
itself depends on ICU but you can work around it by linking genccode
to source/stubdata/stubdata.cpp.

I'd refer you to how Node.js builds its embedded copy of ICU but it
also has extra steps to strip unneeded data and such, so it's a little
more complex than what I just described. But if you're interested, the
steps are here:
https://github.com/nodejs/node/blob/165916b1f3ec094b1694bd5a056c2fc5e56027c2/tools/icu/icu-generic.gyp

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/CAHQurc-gyLSs5zaLrO8hR1cZEdMTqyD8tHDDqTU1mwp_GpzELQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Re: Intent to Implement: Add dayPeriod option for Intl.DateTimeFormat

2019-05-23 Thread Adam Klein
On Thu, May 23, 2019 at 1:11 AM Frank Tang  wrote:

> Contact emails ft...@chromium.org,js...@chromium.org Explainer
> https://github.com/tc39/ecma402/pull/346
>

I'd like to better-understand the ECMA 402 process around small additions
like this (and your other email about "quarter"). Will this become a formal
proposal (and an attached issue, https://github.com/tc39/ecma402/issues/343)
the extent of the specification process for this feature? Is there a
"stage" process for these things?


> Design docs/spec Specification: https://github.com/tc39/ecma402/pull/346
> https://github.com/tc39/ecma402/pull/346 TAG review No TAG review needed
> since it is part of TC39 ECMA402 Summary Add dayPeriod option to
> Intl.DateTimeFormat so the caller can format time such as "7 in the
> morning", "11 in the morning", "12 noon", "1 in the afternoon", "6 in the
> evening", "10 at night" (or in Chinese "清晨7時", "上午11時", "中午12時", "下午1時"
> ,"下午6時" ,"晚上10時") Motivation It enhances the Intl.DateTimeFormat API to
> match what the developer cal already do in C++ and Java by calling ICU and
> ICU4J. Without this feature, developer need to either format the quarter in
> the server or ship a set of day period pattern and hour to day period
> mapping logic from the server to client to perform such task. Risks
> Interoperability and Compatibility low. *Firefox*: No public signals
> *Edge*: No public signals *Safari*: No public signals *Web developers*:
> No signals Ergonomics No increase of data. All required data already
> build into ICU.
> Will this feature be supported on all six Blink platforms (Windows, Mac,
> Linux, Chrome OS, Android, and Android WebView)? Yes Is this feature
> fully tested by web-platform-tests
> 
> ? Yes Tests will be added into test262 before we consider shipping it. Link
> to entry on the Chrome Platform Status
> https://www.chromestatus.com/features/6520669959356416
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/CAEvLGcJoZOD-B4Uyh%3D1m3a%3D0J%3DFdDVa7%2BaA6UqN%2BBdwHrW5X%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.