• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Hello *insert any name here* program in BrainFuck

 
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

This is not a question, I just wanted to share about this troll of a language that I came across
Okay, so I implemented this for my name (Saurabh), i.e the result of this program is Hello Saurabh
This is the program -

Although not very good in time utilization, this program optimizes space, using only 7 memory cells to print. I am still trying to print all using only two memory cells.

Hope you like it



BrainFuck operates using cells, so when you write and has following actions


> shifts to the next cell
< shifts to the previous cell
+ increment the cell value by one
- decrement the cell value by one
. prints the character corresponding to the current cell's ascii value
, takes one byte input
[
//This symboizes a loop, code inside it continues to execute until the current cell's value reaches zero
]

 
Bartender
Posts: 2345
102
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Brain** language you mentioned is under the classification of Esoteric programming languages. Wiki:https://en.wikipedia.org/wiki/Esoteric_programming_language
Here's a quote:

Wiki wrote:An esoteric programming language (sometimes shortened to esolang) is a programming language designed to test the boundaries of computer programming language design, as a proof of concept, as software art, as a hacking interface to another language (particularly functional programming or procedural programming languages), or as a joke. The use of esoteric distinguishes these languages from programming languages that working developers use to write software. Usually, an esolang's creators do not intend the language to be used for mainstream programming, although some esoteric features, such as visuospatial syntax,[1] have inspired practical applications in the arts. Such languages are often popular among hackers and hobbyists.

Usability is rarely a goal for esoteric programming language designers—often it is quite the opposite. Their usual aim is to remove or replace conventional language features while still maintaining a language that is Turing-complete, or even one for which the computational class is unknown.

I am not sure that you can call it a troll language, but it definitely is not readable and hence I do not see much practical uses for it. Having said that, it's a great topic for "software art". I have come across Chef language that is quite interesting too. Maybe you can come up with a secret message party trick or similar using such languages
 
Mishra Saurabh
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Fedora
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Having said that, it's a great topic for "software art". I have come across Chef language that is quite interesting too. Maybe you can come up with a secret message party trick or similar using such languages



I agree that it is indeed art, and there are some great code snippets out there for these languages.
If you can, will you please post some sample hello world program in chef??
 
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!