A Javascript backend for the Boo language
JavaScript Boo Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



BooJs logo

Javascript backend for Boo.

You should read Boo's manifesto to start to grasp what this nice language is about and the philosophy behind it.

Boo is a new object oriented statically typed programming language ... with a python inspired syntax and a special focus on language and compiler extensibility.

Boo's syntax is readable and expressive, mixing imperative, object oriented and functional idioms. One of the motos of the language is that if the compiler can figure out what you want it should, avoiding the need for verbose and repeatitive syntax.

One nice feature of Boo is that it's statically typed but allows the developer to opt-out of it and use dynamic typing when needed (or viceversa). This means that it's possible to build a large statically typed code base with it but still offer a dynamic feeling to it, integrating nicely with external libraries. Moreover it supports type inference so most of the time you end up writing type checked code without even noticing it.

Developing large code bases with Javascript is hard, even with the current set of tools and frameworks there are just so many times when a statically typed language would find subtle bugs at the compiling stage instead of when testing. Morever, people from many different backgrounds are put together to develop large applications and not all of them embrace or are trained in using the good parts of the language. The situation is somewhat improved by the use of languages like CoffeeScript, although for the overhead of adding a compilation step they don't offer much more than a nicer syntax. Boo is great because it will not only give you a nicer, more structured syntax but also has a pretty intelligent compiler to help you in your development.


BooJs specific features are being documented in the docs directory and automatically published in ReadTheDocs.


The compiler works on Windows, Mac and Linux using the .Net or Mono runtimes.

  • .Net 4.0 or Mono 3.x


$ msbuild src/boojs.sln   (xbuild in Mono)

For advanced build options run make help.


$ boojs <file>.boo


Build Status

  • Imperative idioms - 95%
  • Functional idioms - 90%
  • Closures (annonymous functions) - 75%
  • Classes - 10%
  • Namespaces and packaging - 75%
  • Method overloading - 40%
  • Operator overloading - 95%
  • Events (Delegation / Observer pattern) - 10%
  • Source Maps - 100%
  • Meta-programming (Macros, Syntactic attributes) - 70%
  • Preprocessor - 10%
  • Type hinted interfaces for common Javascript APIs (DOM, jQuery, HTML5...) 50%
  • Reduce the size of the runtime by making the compiler more intelligent
  • Generators - 90%
  • Support for optional and named params