Peter Ludemann

(replying to Saagar Jha)

@saagar
I worked on an early digital telephone switch (at a competitor to Bell Labs), using a safe language with bounds checking. We estimated that the bounds checking cost us ~5-10% performance, and that it was a worthwhile price to pay for reliability -- what good is your performance boost if it's causing system crashes?

A few decades later, I see that Go (by someone from Bell Labs) has "invented" similar slices (I wonder if its compiler is as good as ours was at safely removing unneeded bounds checks).

Saagar Jha

(replying to Peter Ludemann)
@PeterLudemann Look I’ll gladly take a 5-10% performance hit *and* system crashes

Peter Ludemann

(replying to Saagar Jha)

@saagar You forgot to include integer overflow, for also getting wrong results; and as a bonus, hinders optimisations.
mastodon.social/@regehr/111308

Saagar Jha

(replying to Peter Ludemann)
@PeterLudemann I’ll take another 5% and crashes for that too