nixpulvis / brainfuck

A simple brainfuck interpreter in Rust.
http://nixpulvis.com/brainfuck
23 stars 3 forks source link

Vec Based Tape #21

Closed nixpulvis closed 8 years ago

nixpulvis commented 8 years ago

All semantics are the same, still 30,000 cells. Just no need for a 30,000 cell statically allocated array up front.

offlinemark commented 8 years ago

:+1:

nixpulvis commented 8 years ago

Next idea to play with might be to make Tape a trait, since parasitizing it didn't seem to buy much. Or try to implement generic code for some things like Deref. I'm expecting the generic code to be difficult however now that I've seen what the Vec tape looks like.