Skip to main content

Bhailang - The language by and for Indian bros!

 Hi folks!

If you ever get bored of the same, everyday, hard-coded keyword coding style, take a look here -

- a toy language created by two Indian 'bros' - Aniket Singh from Amazon and Rishabh Tripathi from Groww.

The language combines "Bhai", a word in Hindi for 'brother' and "lang", short for 'Language', popular in the coding culture, to derive it's name.

The developers said "Bhailang" came up as idea from an insider joke.

Syntax

It is written in TypeScript, and has it's own well-defined syntax, but every statement contains the word 'bhai'.

The programs of bhailang begin with a "hi bhai" statement and end with "bye bhai".

bhailang.png
Bhailang (Source: bhailang.js.org)

Keywords

Bhailang uses keyword in Hindi language for it's purpose of programming.

Numbers and strings are used and created like other languages. While, Boolean values of True and False are represented by "sahi" and "galat" instead.

Compilation and Execution

If your code is error-free and executes correctly the compiler returns with a message saying Shandaar bhai! in green.

successful execution in bhailang
Successful execution (Source: bhailang.js.org)

But if the compiler encounters an error, it returns with a message saying Arre Bhai Bhai Bhai !!! in red.

error encountered in bhailang
Error encountered (Source: bhailang.js.org)

Installation instructions can be referred to from the website of Bhailang.

Reactions

The language has gone viral on the internet, even if just for fun, and receiving various comments from users around the world.

A user on twitter replied:

and another one said:

You can check out #bhailang on Twitter to follow up more. It's quite active at the time.

And memes like these too are surfacing:


Try it Out

If you want to really use Bhailang for projects, or just for fun, visit the website: bhailang.js.org. It is the official website of the language created by the developers. They also have an online playground there, just in case if you want to try it before downloading and installing the language to your systems.

For more details

You can visit the website or github page of "Bhailang":
Website: bhailang.js.org


Comments

Popular posts from this blog

AtlasApp CLI (v1.0)

Hi Guys, I recently started learning Python and with the little experience I had, I created a small CLI desktop (windows or maybe cross-platform) (Linux and MacOS users please test it and reply) Application. So everyone and anyone reading this blog, please please test it and reply to me how you liked it. I'll be making a GUI version of the same and will keep updating it regularly for betterments. You Can download it from here :   👇         https://drive.google.com/file/d/1kYseZYT2d1QkCUyRk4QKKuhxlLCd4UlO/view?usp=sharing                                                                                                               ...

Hello World in 30 Programming Languages (Part 2)

How many programming languages do you think you know? Think a lot? Let's Check that out... This post is the second part of a bigger series, if you haven't read the first part, do so here . 11. BASIC: Let's begin with the basics Developed by: John G. Kemeny and Thomas E. Kurtz Developed in: May1, 1964 HelloWorld.bas CLS PRINT "Hello World!" END 12. Java: Just have a sip! Java Developed by: James Gosling and Oracle Corp. Developed in:  May 23, 1995 HelloWorld.java public class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); } } 13. GDScript: Go, go Godot! GDScript Developed by: Juan Linietsky and Ariel Manzur Developed in:  14 January, 2014 HelloWorld.gd extends Node2D func _ready (): print ( "Hello World!" ) 14. Lua: Powerful, fast, lightweight, embeddable scripting language Lua Developed by: Roberto ierusalimschy, Waldemar Celes and Luiz Henrique de Figueiredo Develope...

Hello World in 30 Programming Languages (Part 3)

How many programming languages do you think you know? Think a lot? Let's Check that out... This post is the third part of a bigger series, if you haven't read the first part,  do so here , and for the second part, go here . 21. QBASIC: Quick with the basics this time! The QB64 BASIC Compiler for QBASIC Developed by: Microsoft Developed in: 1931 HelloWorld.bas CLS PRINT "Hello World!" END REM ?"Hello World!" is also equivalent 22. Scala: Do more with less code Scala Developed by: Martin Odersky and Programming Methods Laboratory of École Polytechnique Fédérale de Lausanne Developed in: 20 January, 2004 HelloWorld.sc object HelloWorld extends App{ println("Hello World!") } 23. Go: Let's go, straight into it! Go Developed by: Robert Griesemer, Rob Pike, Ken Thompson and The Go Authors Developed in: 10 November, 2009 HelloWorld.go package main import "fmt" func main(){ fmt.Println("Hello World!") } 24. Swift: Swifter ...