Package dev.gmitch215.bytebox.builtin
The isolate already carries locale data, timezone rules, every text encoding the WHATWG registry
lists, and Web Crypto. Reaching them costs no bytes in the binary, while the class library's
equivalents would compile their tables into it: String.format and its locale graph measure
over 230 KB of WebAssembly against a hello world of 16 KB.
These are deliberately not the java.text and java.time APIs. They are the
JavaScript ones, named as such, for the cases where a standard-looking Java surface would be a lie
about which rules apply. Where a Java API can be backed faithfully it is, and that needs no
separate name.
Clock is worth reading before using any of them: Workers
pin the clock between I/O, which changes what timing code can do.
- Since:
- 1.0.0