Jump to content

Execute Brain****/Erlang: Difference between revisions

m
adding links
(Created page with '{{implementation|Brainf***}}{{collection|RCBF}}Category:Erlang Implementation of a Brainfuck interpreter in Erlang. Normal brainfuck implementations rely on the use of a…')
 
m (adding links)
Line 1:
{{implementation|Brainf***}}{{collection|RCBF}}[[Category:Erlang]]
Implementation of a [[Brainfuck]] interpreter in [[Erlang]].
 
Normal brainfuck implementations rely on the use of arrays to store data and increment pointers. Given Erlang is a functional language and its usual array structures are relatively slow, this version relies on binaries and bit syntax. Binaries can be iterated through in linear time, but you can jump through them at any point in constant time. This makes binaries ideal for storing data as a tape and moving from cell to cell in one way or another, where standard lists would be inefficient.
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.