This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% rake | |
/Users/bfish/Documents/truffleruby-ws/truffleruby/mxbuild/truffleruby-native/jre/languages/ruby/bin/truffleruby test/run-test.rb | |
Loaded suite test | |
Started | |
..................................................................................................................E | |
============================================================================================================================================================================================================ | |
<internal:core> core/throw_catch.rb:36:in `catch' | |
<internal:core> core/throw_catch.rb:36:in `catch' | |
647: def test_assert_raise_jruby | |
648: omit("For JRuby") unless Object.const_defined?(:Java) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CHANGELOG.md b/CHANGELOG.md | |
index 77a39c23ca..5da6d4b423 100644 | |
--- a/CHANGELOG.md | |
+++ b/CHANGELOG.md | |
@@ -1,20 +1,3 @@ | |
-# 20.3.0 | |
- | |
-New features: | |
- | |
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with cellulloid | |
behaves like an snmp client | |
#get | |
Threads and backtraces: | |
#<Thread:0x6300@<foreign thread> run> | |
#<Celluloid::Thread:0x6308@/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-0.17.4/lib/celluloid/group/spawner.rb:47 sleep> | |
/Users/brandonfish/Documents/oracle-workspace/truffleruby-ws/truffleruby/mxbuild/truffleruby-jvm/jre/languages/ruby/lib/truffle/truffle/cext_ruby.rb:37:in `closed?' | |
/Users/brandonfish/Documents/oracle-workspace/gem_home/gems/celluloid-io-0.17.3/lib/celluloid/io/reactor.rb:52:in `wait' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActionController::RoutingError (uninitialized constant ApplicationController): | |
app/controllers/welcome_controller.rb:2:in `<top (required)>' | |
ActionController::RoutingError: uninitialized constant ApplicationController | |
from /Users/bfish/Documents/railstest/skip_active_record/app/controllers/welcome_controller.rb:2:in `<top (required)>' | |
from /Users/bfish/Documents/gem_homes/nokogiri_gem_home/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:261:in `const_get' | |
from /Users/bfish/Documents/gem_homes/nokogiri_gem_home/gems/activesupport-4.2.9/lib/active_support/inflector/methods.rb:261:in `block in constantize' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create module name for our imports | |
// represented in bytes for UTF-8 compatability | |
char *module_name = "env"; | |
wasmer_byte_array module_name_bytes; | |
module_name_bytes.bytes = module_name; | |
module_name_bytes.bytes_len = strlen(module_name); | |
// Define a function import | |
char *import_name = "_print_str"; | |
wasmer_byte_array import_name_bytes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call the exported "hello_wasm" function of our instance | |
wasmer_value_t params[] = {}; | |
wasmer_value_t result_one; | |
wasmer_value_t results[] = {result_one}; | |
wasmer_result_t call_result = wasmer_instance_call(instance, "_hello_wasm", params, 0, results, 1); | |
printf("Call result: %d\n", call_result); | |
assert(call_result == WASMER_OK); | |
assert(print_str_called); | |
// Use *_destroy methods to cleanup as specified in the header documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call the exported "hello_wasm" function of our instance | |
wasmer_value_t params[] = {}; | |
wasmer_value_t result_one; | |
wasmer_value_t results[] = {result_one}; | |
wasmer_result_t call_result = wasmer_instance_call(instance, "_hello_wasm", params, 0, results, 1); | |
printf("Call result: %d\n", call_result); | |
assert(call_result == WASMER_OK); | |
assert(print_str_called); | |
// Use *_destroy methods to cleanup as specified in the header documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read the wasm file bytes | |
FILE *file = fopen("wasm-sample-app/target.wasm", "r"); | |
fseek(file, 0, SEEK_END); | |
long len = ftell(file); | |
uint8_t *bytes = malloc(len); | |
fseek(file, 0, SEEK_SET); | |
fread(bytes, 1, len, file); | |
fclose(file); | |
// Creates a WebAssembly Instance from wasm bytes and imports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
wasmer_value_tag params_sig[] = {WASM_I32, WASM_I32}; | |
wasmer_value_tag returns_sig[] = {}; | |
wasmer_import_func_t *func = wasmer_import_func_new(print_str, params_sig, 2, returns_sig, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void print_wasmer_error() | |
{ | |
int error_len = wasmer_last_error_length(); | |
printf("Error len: `%d`\n", error_len); | |
char *error_str = malloc(error_len); | |
wasmer_last_error_message(error_str, error_len); | |
printf("Error str: `%s`\n", error_str); | |
} |
NewerOlder