In the 90’s there was a group experimenting with putting small processors directly on the memory chips and doing data processing there.
Here's a video on Pixel Planes 4 from 1987:
Convergent evolution.
- https://archive.org/details/arxiv-1611.09988 (AND/OR/NOT in RAM)
- https://www.pdl.cmu.edu/PDL-FTP/NVM/rowclone_micro13.pdf (cloning data in RAM; full disclosure, I'm a co-author on this one)
And IIRC at least one start-up (Emu Technology) that has built actual processing-in-memory (PIM) hardware.