While the primary development language for Rugs is TypeScript, any language that can be compiled into JavaScript can be used to develop Rugs. Rug code is transpiled into JavaScript and executed in the JVM using Nashorn.

Since Rugs are executed in Nashorn, there are some things to keep in mind.

  • Single-threaded runtime
  • Do not use callbacks
  • Do not operate on the file system, use the Project object passed in
  • Some Node modules may not behave as you expect