Suggested category: Project Showcase. forum.fossunited.org
Namaste, FOSS United community!
I’m sharing Bhash (भाष), an early-stage, open-source programming language that lets learners write programs using Devanagari keywords and identifiers.
Bhash is a project of Nij Bhasha Sanstha, the nonprofit behind Bhashitva. Our broader mission is to make knowledge and tools for creating knowledge accessible to people who primarily work in Indian languages.
With Bhash, we’re exploring a practical question: can students begin learning programming concepts in a familiar language, then carry that understanding into Java, C#, and other languages?
Here’s a small example:
कार्य गुणनफल(संख्या: पूर्णांक) -> पूर्णांक {
यदि (संख्या <= १) {
लौटाओ १;
}
लौटाओ संख्या * गुणनफल(संख्या - १);
}
कार्य मुख्य() -> शून्य {
लिखो(गुणनफल(५));
}
Output: १२०
What’s available today
-
A working compiler, written in Java, targeting JVM, .NET CLR, and browser WebAssembly backed by .NET.
-
A mobile-friendly browser playground where you can write and run Bhash without installing Java or .NET.
-
Twelve introductory lessons with Hindi lesson plans, runnable examples, coding challenges, and reference solutions.
-
A VS Code extension with Devanagari syntax highlighting, completion, compiler diagnostics, navigation, and build/run commands. It has been submitted to the Visual Studio Marketplace and is awaiting publication.
The language already supports functions, classes, inheritance, interfaces, generics, arrays, lists/maps, collection iteration, exceptions, packages, and multi-file projects.
A bridge to familiar programming concepts
The lessons explicitly connect Bhash constructs to their English equivalents:
| Bhash | Familiar concept |
|---|---|
यदि / अन्यथा |
if / else |
लौटाओ |
return |
जबतक |
while |
वर्ग |
class |
अनुबंध |
interface |
प्रयास / पकड़ो / अंततः |
try / catch / finally |
The teacher guide also explains differences that a simple keyword translation would miss. The aim is for learners to develop transferable understanding of algorithms, types, state, and program structure.
Try it and help shape it
-
Playground: https://play.bhashitva.org/
-
Source code: https://github.com/bhashitva/bhash
-
Teacher’s concept map: https://github.com/bhashitva/bhash/blob/main/lessons/concept-map.md
-
VS Code extension and installation instructions: https://github.com/bhashitva/bhash/tree/main/editors/vscode
Bhash is licensed under Apache 2.0. It is still evolving, and I would welcome candid feedback—especially from teachers, students, compiler developers, and people working on Indic-language computing.
Some useful starting points for contributors:
-
Try a lesson with learners and tell us where they get stuck.
-
Review the Devanagari terminology and suggest clearer alternatives.
-
Test the playground on phones and slower connections.
-
Contribute exercises, documentation, compiler fixes, or editor improvements.
If your FOSS club or teaching community would like to experiment with Bhash, I’d be glad to discuss a small introductory session here.
What would make this useful in your classroom or community?

