Sunday, May 24, 2026

programming concept

according to gemini ai 
in object oriented programming data is scattered across the ram 
but in data oriented programming data is kept in arrays in the cpu cache 
which makes data oriented programming faster 
than object oriented programming 

but I think that if data from object oriented programming 
is kept in virtual containers 
that are placed in the cpu cache 
then that would get the speed from data oriented programming 
while keeping the code object oriented 
which could be easier for humans to understand 
and the code won't have to be rewritten 

No comments:

Post a Comment

programming concept

according to gemini ai  in object oriented programming data is scattered across the ram  but in data oriented programming data is kept in ar...