Panzerschrek
Joined 1 year ago
Joined 1 year ago
Is there such thing as "community" at all? As I know, the majority of open-source projects are developed by a single person, where others only contribute bug reports (in best case). It's not a community, if there is such imbalance in contribution and power.
Only a handful of projects (a small percentage) has actual community with many members doing meaningful contribution. But they are most notable ones, so that one may think, that all open-source projects function like this.
for( size_t i_plus_one = count; i_plus_one > 0; --i_plus_one )
{
const size_t i= i_plus_one - 1;
// actual loop code
}
It's in my opinion better than using i-- as condition, since I generally avoid using results of -- and ++, because doing so is bug-prone.This sounds too easy to be true. As I understand, that's the core of the whole approach - to find a table filled with some magic values giving perfect hashing. And it shouldn't be that simple, since search space is huge (a table with 256-values each with 8 bits size at least).
I doubt this can work well in all cases. Sooner or later one needs proper heap.
C++ is a good example of this. It had duck-typing in templates for decades. Then some sort of trait-like mechanism named concepts has been introduced. The only benefit of them seems to be slightly better error messages if someone misuses a template class/function.
if ($LastExitCode -ne 0)
after each command.
But I agree, that using an "AI" tool may be a serious temptation and thus way less new porting projects will be done with such care.