Skip to content

TruffleRuby support#145

Merged
k0kubun merged 5 commits into
masterfrom
truffleruby-support
Sep 8, 2019
Merged

TruffleRuby support#145
k0kubun merged 5 commits into
masterfrom
truffleruby-support

Conversation

@k0kubun

@k0kubun k0kubun commented Sep 8, 2019

Copy link
Copy Markdown
Owner

@k0kubun k0kubun changed the title truffleruby support TruffleRuby support Sep 8, 2019
@k0kubun k0kubun force-pushed the truffleruby-support branch from 44b60ad to a345008 Compare September 8, 2019 06:09
Comment thread test/haml/engine_test.rb
assert_equal expected, actual
end
end
end if RUBY_ENGINE != 'truffleruby' # truffleruby cannot run Haml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

truffleruby cannot run Haml

Is it because of missing Ripper support? (truffleruby/truffleruby#1712)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right.

Comment thread ext/hamlit/hamlit.c
@@ -1,5 +1,6 @@
#include <ruby.h>
#include <ruby/encoding.h>
#ifndef TRUFFLERUBY

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to skip this entire file under file under TruffleRuby, is it because of missing rb_ary_sort_bang?
Is a pure-Ruby implementation used instead then?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both are correct. truffleruby/truffleruby#1600 was also relevant, but I could workaround it by casting VALUE to ptrdiff_t.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TruffleRuby support

2 participants