Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1018 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 1018 Bytes

image

nocktensors

emulated processing-in-memory stack-based Nock interpreter using tensor operations

see this paper for an explanation of the pypim framework; tldr we use it to emulate a memristor isa with cuda to work with nouns represented as tensors and create a stack-based interpreter for nock, a minimal turing-complete functional combinator, with bitwise operations in VRAM. this is just for fun!

Requirements:
  • nvcc
  • gcc10

(both of these are for the PyPIM dependency)

Installation
  • git clone https://github.com/Native-Planet/nocktensors
  • cd nocktensors && git submodule update --remote PyPIM
  • pip3 install -e . --user
  • python3 -m unittest discover tests
  • python3 examples/demo.py