Text this: Physical principles of memory and logic devices based on nanostructured Dirac materials