Hacker News new | past | comments | ask | show | jobs | submit login

"Usually", really? Which languages are you thinking of, and have you benchmarked them?



It's often true due to a few factors. One is that they are safe, whereas a specific use case may not need the same level of safety. They generally optimize for the general case as well, but in your own code you can optimize for the very specific use case you have. One I ran into many years ago was implementing my own singly linked list by adding the next pointer to another piece of data. In this one specific case it was worth removing another layer of indirection. I was still young though, so there were probably even better ways of handling it.

I have only encountered these scenarios a small handful of times, but I'm not a very low level developer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: