News for hackers. Stuff that matters.
Re:Ask HN: What Happened to Borland? by nerdponx on Friday December 10, 2021 @02:07PM (#29514070)
I hardly consider four bytes to track the length of a string "waste".

I also don't really know why you assume that "sane" means "doesn't let you manage memory effectively".

That said, how many applications really are bottlenecked by string processing in the first place? I don't care if processing Unicode graphemes is slow, as long as it's correct and doesn't mangle users' names.

Re:Ask HN: What Happened to Borland? by jstimpfle on Friday December 10, 2021 @03:27PM (#29515061)
Well I for one optimized an authorization module of an enterprise application written in Delphi by getting rid of standard library strings. Speedups where 100x-1000x, accelerating application startup time from minutes to maybe 3 seconds.
Re:Ask HN: What Happened to Borland? by novok on Friday December 10, 2021 @02:36PM (#29514458)
He is probably thinking about the context of the 1980s, when a large amount of 3 byte waste (the 1 byte null char is a form of 'waste' itself) might have been a problem back then.
Re:Ask HN: What Happened to Borland? by jstimpfle on Friday December 10, 2021 @03:28PM (#29515072)
Packed structs with char fields of 8 bytes or so are still common.