#768883 Impossible to run Prime.b

Package:
hsbrainfuck
Source:
haskell-brainfuck
Description:
interpreter for the brainfuck programming language
Submitter:
Robert de Bath
Date:
2014-11-09 22:51:04 UTC
Severity:
normal
#768883#5
Date:
2014-11-09 20:53:52 UTC
From:
To:
The original brainfuck distribution written by Urban Müller in 1993 has a
few example programs in it one of these is a prime number generator.

I would expect a brainfuck interpreter to be able to run this code
hsbrainfuck cannot!

I would expect a reasonable brainfuck interpreter to get to 255 in less
than twenty seconds. A good one will be subsecond.

Download:       http://aminet.net/dev/lang/brainfuck-2.lha
Readme:         http://aminet.net/dev/lang/brainfuck-2.readme

Extracted copy of prime.b
https://github.com/rdebath/Brainfuck/raw/a7caec11b54dd960ecf6172b58822997b5208bb9/src/prime.b

Slightly 'modernised' version of prime.b
https://github.com/rdebath/Brainfuck/raw/master/testing/Prime.b

#768883#10
Date:
2014-11-09 21:34:14 UTC
From:
To:
Hi,


Am Sonntag, den 09.11.2014, 20:53 +0000 schrieb Robert de Bath:

thanks for your report. It seems that hsbrainfuck is not maintianed by
upstream any more. Maybe we should just remove it, and patch lambdabot
not to use it.

Greetings,
Joachim

#768883#15
Date:
2014-11-09 22:45:02 UTC
From:
To:
Ah, that explains it, it's not supposed to be a standalone interpreter.

I would say that it's not really useful on it's own ('useful' as a
programmer's toy that is.)  as it can't run anthing that uses the input
command or takes more than a few million BF instructions. I suspect it's
specifically designed as the reverse of a dumb text to BF converter.

ie: the most complicated it expects is something like:

+++++++++++[>+++>+++++++>++++++++++>+++++++++>+<<<<<-]>>---.>+.>--.++.+
++++.+.<--.<<-.>--------.>+++++.>----.++++.<++.------.>----.<++++.>>-.

So, yes, it can go as a standalone package, but it may be reasonable to
merge it into the lambdabot package as a contrib or something.