All Projects → oracle → Truffleruby

oracle / Truffleruby

Licence: other
A high performance implementation of the Ruby programming language. Built on the GraalVM by Oracle Labs.

Programming Languages

ruby
36898 projects - #4 most used programming language
java
68154 projects - #9 most used programming language
c
50402 projects - #5 most used programming language
Yacc
648 projects
HTML
75241 projects
Roff
2310 projects

Projects that are alternatives of or similar to Truffleruby

mozart-graal
An implementation of Oz on top of Truffle and Graal
Stars: ✭ 37 (-98.59%)
Mutual labels:  truffle, graalvm
Angular Truffle Starter Dapp
Angular CLI + Truffle Starter Dapp; write, compile & deploy smart contracts on Ethereum blockchains
Stars: ✭ 174 (-93.36%)
Mutual labels:  truffle
Starter Kit
An OpenZeppelin starter kit containing React, OpenZeppelin SDK & OpenZeppelin Contracts.
Stars: ✭ 101 (-96.15%)
Mutual labels:  truffle
Truffle Next
🛰️ A boilerplate Truffle Box project with Next.js for rapid Ethereum Dapp development
Stars: ✭ 130 (-95.04%)
Mutual labels:  truffle
Contracts
A set of reusable smart-contracts
Stars: ✭ 101 (-96.15%)
Mutual labels:  truffle
Sablier
The protocol for real-time finance on the Ethereum blockchain
Stars: ✭ 147 (-94.39%)
Mutual labels:  truffle
React Uport Box
Truffle, Webpack, React, Redux boilerplate with routing and authentication via a UPort.
Stars: ✭ 99 (-96.22%)
Mutual labels:  truffle
Erc20 Generator
Create an ERC20 Token for FREE in less than a minute with the most used Smart Contract Generator for ERC20 Token. No login. No setup. No coding required.
Stars: ✭ 202 (-92.29%)
Mutual labels:  truffle
React Auth Box
Truffle, Webpack, React, Redux boilerplate with routing and authentication via a smart contract.
Stars: ✭ 172 (-93.44%)
Mutual labels:  truffle
Spring Native
Spring Native provides beta support for compiling Spring applications to native executables using GraalVM native-image compiler.
Stars: ✭ 2,282 (-12.9%)
Mutual labels:  graalvm
Spring Fu
KoFu and JaFu configuration DSLs for Spring Boot
Stars: ✭ 1,567 (-40.19%)
Mutual labels:  graalvm
Truffle
A tool for developing smart contracts. Crafted with the finest cacaos.
Stars: ✭ 11,909 (+354.54%)
Mutual labels:  truffle
Babashka
Native, fast starting Clojure interpreter for scripting
Stars: ✭ 2,462 (-6.03%)
Mutual labels:  graalvm
Web3 Vs Ethers
A basic cheatsheet of Web3.js vs Ethers (along w/ example apps!)
Stars: ✭ 103 (-96.07%)
Mutual labels:  truffle
Armors Solidity
Armors-solidity is a framework to build secure smart contracts on Ethereum.
Stars: ✭ 184 (-92.98%)
Mutual labels:  truffle
Mumbler
My experimental programming language using Truffle
Stars: ✭ 100 (-96.18%)
Mutual labels:  truffle
Truffle Assertions
🛠 Assertions and utilities for testing Ethereum smart contracts with Truffle unit tests
Stars: ✭ 109 (-95.84%)
Mutual labels:  truffle
Truffle Plugin Verify
✅ Verify your smart contracts on Etherscan from the Truffle CLI
Stars: ✭ 144 (-94.5%)
Mutual labels:  truffle
Sparkle Proof Of Loyalty
Sparkle Proof of Loyalty Contract
Stars: ✭ 216 (-91.76%)
Mutual labels:  truffle
Trufflesqueak
A Squeak/Smalltalk VM and Polyglot Programming Environment for the GraalVM.
Stars: ✭ 200 (-92.37%)
Mutual labels:  truffle

TruffleRuby logo

TruffleRuby is the GraalVM high-performance implementation of the Ruby programming language.

Getting Started

TruffleRuby comes in two distributions:

  • Standalone: This only contains TruffleRuby in the Native configuration, making it a smaller download.
  • GraalVM: This includes support for other languages such as JavaScript, Python and R, and supports both the Native and JVM configurations. We recommend that you use a Ruby manager to use TruffleRuby inside GraalVM.

You can install either of those:

  • Via your Ruby manager/installer (RVM, rbenv, chruby, ruby-build, ruby-install). We recommend trying TruffleRuby dev builds which contain the latest fixes and improvements.

Standalone:

RVM:    $ rvm install truffleruby
rbenv:  $ rbenv install truffleruby-VERSION OR truffleruby-dev
chruby: $ ruby-install truffleruby
        $ ruby-build truffleruby-dev ~/.rubies/truffleruby-dev

GraalVM:

rbenv:  $ rbenv install truffleruby+graalvm-VERSION OR truffleruby+graalvm-dev
chruby: $ ruby-install truffleruby-graalvm
        $ ruby-build truffleruby+graalvm-dev ~/.rubies/truffleruby+graalvm-dev
- uses: ruby/setup-ruby@v1
  with:
    ruby-version: truffleruby # or truffleruby-head, or truffleruby+graalvm or truffleruby+graalvm-head

You can use gem and bundle to install gems, as usual.

Please report any issues you might find on GitHub.

Aim

TruffleRuby aims to:

  • Run idiomatic Ruby code faster.
    • TruffleRuby is the fastest Ruby implementation for many CPU-intensive benchmarks.
  • Run Ruby code in parallel.
    • TruffleRuby does not have a global interpreter lock and runs Ruby code in parallel.
  • Support C extensions.
    • Many C extensions work out of the box, including database drivers.
  • Add fast and low-overhead interoperability with languages like Java, JavaScript, Python, and R.
  • Provide new tooling, such as debuggers and monitoring, that works across languages.
  • Provide all of the above while maintaining very high compatibility with the standard implementation of Ruby.

TruffleRuby Runtime Configurations

There are two main runtime configurations of TruffleRuby, Native and JVM, which have different trade-offs.

Configuration: Native (--native, default) JVM (--jvm)
Time to start TruffleRuby about as fast as MRI startup slower
Time to reach peak performance faster slower
Peak performance (also considering GC) good best
Java host interoperability needs reflection configuration just works

To find out which runtime configuration is being used, run ruby --version on the command line, or check the value of RUBY_DESCRIPTION or TruffleRuby.native? in Ruby code. Runtime configurations are further detailed in Deploying TruffleRuby.

System Compatibility

TruffleRuby is actively tested on the following systems:

  • Oracle Linux 7
  • Ubuntu 18.04 LTS
  • Ubuntu 16.04 LTS
  • Fedora 28
  • macOS 10.14 (Mojave)
  • macOS 10.15 (Catalina)

Architectures:

  • AMD64 (aka x86_64): Supported
  • AArch64 (aka arm64): Supported on Linux (from 21.2)

You may find that TruffleRuby will not work if you severely restrict the environment, for example, by unmounting system filesystems such as /dev/shm.

Dependencies

  • make and gcc for building C and C++ extensions
  • libssl for the openssl C extension
  • zlib for the zlib C extension

Without these dependencies, many libraries including RubyGems will not work. TruffleRuby will try to print a nice error message if a dependency is missing, but this can only be done on a best effort basis.

You also need to set up a UTF-8 locale if not already done.

See the contributor workflow document if you wish to build TruffleRuby from source.

Current Status

We recommend that people trying TruffleRuby on their gems and applications get in touch with us for help.

TruffleRuby can run Rails and is compatible with many gems, including C extensions. However, TruffleRuby is not 100% compatible with MRI 3.0 yet. Please report any compatibility issues you might find. TruffleRuby passes around 97% of ruby/spec, more than any other alternative Ruby implementation.

TruffleRuby might not be fast yet on Rails applications and large programs. Notably, large programs currently take a long time to warmup on TruffleRuby and this is something the TruffleRuby team is currently working on. Large programs often involve more performance-critical code so there is a higher chance of hitting an area of TruffleRuby which has not been optimized yet.

Releases

TruffleRuby has the same version, and is released at the same time as GraalVM. There is a release every 3 months. See the release roadmap.

Migration from MRI

TruffleRuby should in most cases work as a drop-in replacement for MRI, but you should read about our compatibility.

Migration from JRuby

For many use cases TruffleRuby should work as a drop-in replacement for JRuby. However, our approach to integration with Java is different to JRuby so you should read our migration guide.

Documentation

Extensive user documentation is available in doc/user.

See our source code repository and contributor documentation to contribute to TruffleRuby. In particular, see the contributor workflow document for how to build and run TruffleRuby.

Contact

The best way to get in touch with us is to join the #truffleruby channel on GraalVM Slack. You can also Tweet to @TruffleRuby, or email [email protected].

Please report security vulnerabilities via the process outlined in the reporting vulnerabilities guide, rather than by something public such as a GitHub issue or a Gitter conversation.

Mailing List

Announcements about GraalVM, including TruffleRuby, are made on the graal-dev mailing list.

Authors

The main authors of TruffleRuby ordered by first contribution are: Chris Seaton, Benoit Daloze, Kevin Menard, Petr Chalupa, Brandon Fish, Duncan MacGregor, Christian Wirth, Rafael França, Alan Wu, Nicolas Laurent, Carol Chen, Nikolay Sverchkov, Lillian Zhang, Tom Stuart, and Maple Ong.

Security

See SECURITY for how to report security vulnerabilities to Oracle. For known vulnerabilities in Ruby, please refer to the known-cves file.

Licence

TruffleRuby is copyright (c) 2013-2021 Oracle and/or its affiliates, and is made available to you under the terms of any one of the following three licenses:

  • Eclipse Public License version 2.0, or
  • GNU General Public License version 2, or
  • GNU Lesser General Public License version 2.1.

For further licensing information, see LICENCE, 3rd_party_licenses, and doc/legal/legal.

Attribution

TruffleRuby includes infrastructure code from JRuby (e.g. parser, JCodings, Joni), core library code from the Rubinius project, as well as code from the standard implementation of Ruby, MRI.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].