Re:Go Slices Are Fat Pointers
by skrebbel on Monday July 01, 2019 @02:34AM
(#20322939)
Did people in the C community consider your proposal?
[ Parent
| on HN ]
Re:Go Slices Are Fat Pointers
by WalterBright on Monday July 01, 2019 @03:28AM
(#20323184)
I haven't officially proposed it, but every time I've shown it to C people they're just silent - no response.
But anyway, you can use D in BetterC mode and have bounds checked slices!
You might be interested in this paper:
"CheriABI: enforcing valid pointer provenance and minimizing pointer privilege in the POSIX C run-time environment"
https://blog.acolyer.org/2019/05/28/cheri-abi/
I would interpret the silence of C people as "Thanks, but no, thanks."
The success of C for such long time without having fat pointers, exceptions, RAII, etc... is probably an indication they weren't needed that much.
(Jonathan Blow: Ideas about a new programming language for games.) https://www.youtube.com/watch?v=TH9VCN6UkyQ&list=PLmV5I2fxai...
C´s success is just like PHP and JavaScript successes.
When a language owns the platform its quality comes second.
Languages are maintained by people. When people have a monopoly quality comes second.