[PD] Pd *is* a programming language!
Claude Heiland-Allen
claudiusmaximus at goto10.org
Thu Sep 28 18:25:02 CEST 2006
Hi everybody,
Remember those long discussions about whether Pd is a programming
language or (an inferior) something else?
Well, to settle the matter, I made a brainf*ck[1] interpreter in vanilla
Pd using no externals[2].
Now you can be sure that you can compute anything computable[3] using
your favourite multimedia tool!
As Pd's string handling sucks, output is a printout of the decimal value
of each character.
Keyboard input is through [key], so you enter characters fairly
naturally (wait for the yellow signal before you type each character).
There is no way to indicate end-of-file.
[1] http://en.wikipedia.org/wiki/Brainfuck
[2] As Pd's string handling sucks, you need to convert your .bf source
code into decimal form before loading it. A simple C program
"decdump.c" to do this is attached.
[3] Provided it can be computed within the memory available, which in
this interpreter is 1,000,000 cells each being an integer from 0 to 255
inclusive.
Claude
--
http://claudiusmaximus.goto10.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bfi.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060928/74767b95/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decdump.c
Type: text/x-csrc
Size: 136 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20060928/74767b95/attachment.c>
More information about the Pd-list
mailing list