Package dev.gmitch215.bytebox.builtin


package dev.gmitch215.bytebox.builtin
Platform facilities exposed as themselves rather than behind a Java API.

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
  • Classes
    Class
    Description
    Time, and what the platform does to it.
    The platform's Web Crypto, exposed as itself.
    The platform's own locale data, exposed as itself.
    The platform's own encoders, exposed as themselves.