QDB: Quote #310110
About / Latest / Random / Queue / Prefs / Donate / Submit Quote / Search

This quote has been fermenting for 11 years and has been voted on 16 times.
Based on preliminary voting, this quote has a 45.7% chance of being approved.

#310110* (?/16) ⚐Flag
< drmeister> lh_mouse: My Common Lisp implementation currently uses reference counting - it is very expensive.
< drmeister> You have to keep going to memory to increment and decrement references.  Lot's of non-local accesses.
< o11c> drmeister: not if you optimize away provable borrows
< drmeister> o11c: What are "provable borrows"?
< o11c> drmeister: just because a function is *declared* as taking a gc pointer, doesn't mean you actually *need* to call the increment and decrement
< SamB> drmeister: where you can prove it doesn't matter if you incref and then decref because the object is going to stay around regardless, I assume
< niclg> o11c: we call that passing by const std::shared_ptr<T>&
< drmeister> So the compiler needs to be enhanced.
< lh_mouse> To make a language more efficient the language's author should let its user control 'how and when to copy' rather than let the language itself to do the works.
< lh_mouse> (then you can blame the user for being too silly instead of the language itself)
About / Latest / Random / Queue / Prefs / Donate / Submit Quote / Search
14,883 quotes approved; 8,695 fermenting; karma: 189.4827