मनसा is a statically-typed, object-oriented programming language. It's programs are written in Devanagari script using Nepali language constructs. Write fluid and expressive programs in नेपाली.
Object-Oriented
नेपाली
Self-compiling
System programming
Help
 
नमस्ते नेपाल‍!
Want to try मनसा? It's easy. Just type in code in the code editor, then press the चलाउनुहोस button.


If you run the default program, it should display 'नमस्ते नेपाल'.
नेपाली टाइपीङ्ग

If you have a Nepali keyboard layout installed, then you should be able to type in Nepali normally.


Don't worry if you don't have a keyboard installed. Click on the en→ने button on the left.

यो टाइप गरीहेर्नुस

अङ्क क ।
क पढ ।
(क = ४) भए
    क लेख ॥

Then press the चलाउनुहोस button. Easy, right?

प्रारम्भ

This is the end of our micro tutorial. But your journey has just begun.

You can now go and read the beginner's tutorials, or dive into the documentation.

If you're feeling particularly adventurous, head over to our github and help us out.

Stream

मनसा is currently being developed. In this section of the website, we'll post a stream of updates and events, as well as to-dos and other things. In the updates below, the pronoun 'I' will refer to Nirav.

Oct 26, 12:02 AM: I've decided to move this project to a good framework because there are a lot of moving parts and states to keep track of, and this complexity will only increase with time. VueJS is a good choice but I'd like to search for something even more lightweight if it's available.

Other than that, I'm experimenting with techniques load-balancing techniques and caching ideas for the server. But that will take significantly longer. The results of the stress-test were not so promising.

Oct 23, 11:32 PM: I did the Keyboard Layout changer without any input from Sauhard, and it looks great! I also did some work in the backend, and did some preliminary stress testing on the servers.

I need to reevaluate compactibility of all JS I've written and either fix them or introduce polyfills. Responsiveness is also an issue right now. Speaking of responsiveness, Phone Browsers don't trigger onkeypress, so I need to make massive changes to the keyboard handling module. Once I've done that, though, I should be able to package it as a neat little JS library and throw it into the interwebs.

I'm also considering moving this whole project to VueJS. Ahhh, vueJS. Why didn't I use you in the first place?

Oct 23, TODO: Need to design the keyboard layout swithcher. Need to find place for reporting all kinds of errors (probably inside the terminal). Then, back to studying for Back exams (sedlyf). Caching doesn't work as intended. I need to work on that.

When a failed program is recompiled, a previous successfully compiled program is run. Also, I need to write code to buffer-and-flush compiled program output. Otherwise it's incredibly easy for a long loop that writes stdin to jam the socket.io server and client.

Oct 22, 9:03: The new logo is placed where the old one was. The terminal has been made. Today, I'll finish in-browser Nepali keyboard. Sauhard is trying to design a new look for the site in Adobe XD.

Oct 22, TODO: I need to get the backend infrastructure to work seamlessly with the code editor on this web page.

Sauhard will design a nice looking in-browser keyboard layout switcher(We'll call it KLS). I have already written most of the code for the KLS. I will integrate the KLS to this website, and realize the design in HTML.

Because the example code on the homepage is going to be executed much more than user-written code, I'll need to figure out some way to cache outputs of programs in the memory.

Oct 21, 11:40 AM: I bought the mnsa.cc domain name today, and started writing code. I've decided that we'll tackle this project iteratively. So, instead of spending months trying to design the perfect layout, I made a rough Adobe XD layout and started coding.

Sauhard has been working on a better logo, because the one currently on the page could do with a makeover. The new logo is lovely.

On the backend side, I have already prototyped a rough system for running code in the browser, complete with security, overload protection and socket.io based STDIN/STDOUT pipes. Most of my research on security is documented here (tl;dr I used minijail).

The language itself is being re-imagined. A programming language in 2019 doesn't have to be *that* low level. Strings should be a primitive data-type and arrays should be bound-checked.

Nov 23, 2026, 3:32 AM: I'm archiving this website for now. The domain `mnsa.cc` has lapsed and I've moved this site to mnsa.bynirav.com. I might come back to mnsa again, but it'll have to be fully written in C++ and by hand again.