Opal is a Ruby to JavaScript source-to-source compiler. It comes packed with the Ruby corelib you know and love. It is both fast as a runtime and small in its footprint. The lib directory holds the Opal parser/compiler used to compile Ruby into JavaScript. It is also built ready for the browser into opal-parser.js to allow compilation in any JavaScript environment. This directory holds the Opal runtime and corelib implemented in Ruby and JavaScript. opal-parser allows you to eval Ruby code directly from your HTML (and from Opal) files without needing any other building process. Opal.compile is a simple interface to just compile a string of Ruby into a string of JavaScript code. See the website for more detailed instructions and guides for Rails, jQuery, Sinatra, rack, CDN, etc.

Features

  • Compile Ruby code with the CLI
  • Compile Ruby code from Ruby
  • Compile Ruby code from HTML
  • Run automated tests
  • You can run MSpec tests
  • Code runs inside your Ruby environment

Project Samples

Project Activity

See All Activity >

Categories

Compilers, Runtimes

License

MIT License

Follow Opal

Opal Web Site

Other Useful Business Software
Professional Email Hosting for Small Business | Greatmail Icon
Professional Email Hosting for Small Business | Greatmail

Ready to switch to a more reliable and secure email hosting solution?

Dependable cloud based email hosting with spam filtering, antivirus protection, generous storage and webmail. Compatible with Outlook and all other POP3/IMAP clients. High volume SMTP service for responsible senders. Outbound relay service for transactional messages, email marketing campaigns, newsletters and other applications. Dedicated email servers, clustering and multiple IP load balancing for high volume senders. Fixed monthly cost with unlimited sending and reputation monitoring. Greatmail is an email service provider (ESP) specializing in business class email hosting, SMTP hosting and email servers. For ISPs, application programmers and cloud developers, we also provide custom solutions including dedicated IP servers and process specific, load balanced configurations with multiple servers.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Opal!

Additional Project Details

Programming Language

Ruby

Related Categories

Ruby Compilers, Ruby Runtimes

Registered

2021-12-02