Hacker News new | past | comments | ask | show | jobs | submit login

brainfuck isn't an obfuscator, but a language with a very small and simple instruction set. Technically it falls somewhere between c and assembly, since it doesn't have a 1:1 relationship with machine code, but in practice it is less powerful than assembly because you have to work within the confines of its restrictive conventions to recreate something as simple as y = x

There are some tasks which lend themselves to the way the language is constructed, and can be done with few instructions.

Reversing a string, for example, is just ,[[<]<+>>[>],]<[.<] which is quite short compared to most "practical" programs in this language.

And a destructive y = y + x is just [->+<] (destructive because this also sets x to zero)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: