-
But if you are in a special environment where Intl.Segmenter is not available, try unicode-segmenter. It provides good performance in a reasonable size.
-
Civic Auth
Auth in Less Than 5 Minutes. Civic Auth comes with multiple SSO options, optional embedded wallets, and user management — all implemented with just a few lines of code. Start building today.
-
Rust people have a cultural idiom called RIIR (Rewrite It In Rust).
-
I already knew that there was a good quality library unicode-segmentation in Rust, and Rust has a great WebAssembly toolchain called wasm-bindgen.
-
rescript
ReScript is a robustly typed language that compiles to efficient and human-readable JavaScript.
Since JavaScript doesn't have a pattern-matching like Rust, it could be hard to replicate the same logic. I used the ReScript compiler to maintain the original logic as much as possible. It made me able to port it confidently. Specifically check_pair function can be converted into this.
-
I already knew that there was a good quality library unicode-segmentation in Rust, and Rust has a great WebAssembly toolchain called wasm-bindgen.
-
I use mitata (pretiously tinybench). If you care about performance, I highly recommend you do it.
-
fast-check is the most popular PBT tool in JavaScript ecosystem. With fast-check, I can easily write test code that defines properties and verifies them based on automated inputs.
-
InfluxDB
InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.
-
I use mitata (pretiously tinybench). If you care about performance, I highly recommend you do it.