This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Hello *insert any name here* program in BrainFuck  RSS feed

 
Ranch Hand
Posts: 49
Eclipse IDE Fedora MySQL Database
  • 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: 2282
95
Eclipse IDE Google Web Toolkit 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 Fedora MySQL Database
  • 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??
 
Get me the mayor's office! I need to tell her about this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!