More Than You Want to Know about Java's String
summary
Explains why Java’s UTF-16 strings force costly encode/decode on every IO and waste space, and shows a working alternative used in JRuby: strings as a byte array plus an encoding with a small mutable buffer ByteList, fast byte↔byte transcoding in JCodings and a stackless, interruptible regex engine Joni. Claims Joni runs 2–3× faster than java.util.regex for tested workloads, avoids stack overflows, and is already used by Facebook Presto, TruffleRuby and Nashorn, with libraries production proven and seeking contributors.
AI-written summary · about
chapters (19)
- 0:00Start
- 3:27What Strings Are
- 3:44Character Encodings
- 4:03What Is a Character
- 4:31Ascii
- 5:32Ascii Chart
- 10:38Multibyte Encodings
- 12:14Shift Gist
- 13:32Chinese
- 15:26Unicode
- 16:16Standard Code Points
- 21:34Problems with Use with Java's Utf-16
- 22:52Han Unification
- 34:03Regular Expression Engine
- 38:20J Coatings
- 39:19Encoding Support
- 40:33Transcoding
- 41:59Bonus Features
- 53:08Transcoding Performance
