News for hackers. Stuff that matters.
Re:Strings Are Evil by phyzome on Wednesday June 20, 2018 @02:31PM (#17358245)
Heck, even in Java, String.split returns shared references (with different offsets) to the same backing byte array.

Mind you, that can bite you pretty hard if you're taking in giant documents, splitting down to a few tiny tokens, and then holding those tiny tokens in a long-lived in-memory cache (ugh, voice of experience here) but most of the time that's the Right Thing.

Re:Strings Are Evil by cesarb on Wednesday June 20, 2018 @02:49PM (#17358450)
Re:Strings Are Evil by phyzome on Thursday June 21, 2018 @09:55AM (#17365089)
...well crud. Thanks, that's good to know about. I should go read up on other change notes. -.-