truffleruby
truffleruby copied to clipboard
A high performance implementation of the Ruby programming language, built on GraalVM.
Even when hot (confirmed hot by Thermometer), Dir[] is almost 4x slower than MRI. Code snippet below was run in this directory, and MRI and Truffleruby output below. | |...
If you pass a single string argument to `Process.spawn`, it should interpret it as a command line to pass to the standard shell (see e.g. the documentation at https://ruby-doc.org/core-2.7.5/Process.html#method-c-spawn). Only...
[This is more of a discussion starter, not sure this is a great idea, but wanted to put it out there] Currently, the cast nodes are used when ever a...
## Background Keyword arguments are being used more often and we'd like to optimize it. There was a [previous implementation](https://github.com/oracle/truffleruby/commit/5dc368f3709a288a89f3535485d77c0ba4cf3cb4) that was reverted but we're trying to re-implement as according...
From Michael Aponte on Slack (https://graalvm.slack.com/archives/CMY63522F/p1639877980162600): ``` /usr/lib/jvm/java-11-graalvm/languages/ruby/lib/gems/gems/tk-0.4.0/ext/tk/tcltklib.c:10924:in `Init_tcltklib': External LLVMFunction is_ruby_native_thread cannot be found. (com.oracle.truffle.llvm.runtime.except.LLVMLinkerException) (RuntimeError) Translated to internal error from /usr/lib/jvm/java-11-graalvm/languages/ruby/lib/mri/rubygems/core_ext/kernel_require.rb:83:in `gem_original_require' from /usr/lib/jvm/java-11-graalvm/languages/ruby/lib/mri/rubygems/core_ext/kernel_require.rb:83:in `require' from /usr/lib/jvm/java-11-graalvm/languages/ruby/lib/gems/gems/tk-0.4.0/lib/tk.rb:7:in `'...
Hi, The truffleruby build of [rodauth-oauth](https://gitlab.com/honeyryderchuck/rodauth-oauth) started failing out of the blue (I have set up monthly automated builds, this was [the last successful one](https://gitlab.com/honeyryderchuck/rodauth-oauth/-/jobs/1624266723), this was the [first failing...
I discussed with @byroot and we tried to find out if it's possible to implement the ObjectSpace::WeakMap semantics like CRuby does it. It's "doubly weak" which means both the keys...
https://github.com/SamSaffron/fast_blank ``` ================== Test String Length: 0 ================== Warming up -------------------------------------- Fast Blank 93.707k i/100ms Fast ActiveSupport 510.726k i/100ms Slow Blank 76.211k i/100ms New Slow Blank 22.244M i/100ms Calculating -------------------------------------...
``` core/string.rb:354:in `encode!': wrong number of arguments (given 3, expected 0) (ArgumentError) from core/string.rb:431:in `encode' from core/array.rb:589:in `join' from core/posix.rb:132:in `attach_function_eagerly' from core/posix.rb:98:in `getpid' ``` Is it possible to turn...
I'm trying out truffleruby 20.2.0 embedded with a custom filesystem and native-access disabled. Calling "open" causes a SecurityError to be thrown "native access is not allowed." Looking at Truffle::POSIX in...