Sha256: 09dfa5741a8adc224632bcc2ce50d0f4160ebaaa586dff1cc51ec245041d09ea

Contents?: true

Size: 231 Bytes

Versions: 3103

Compression:

Stored size: 231 Bytes

Contents

require 'ffi'

module Foo
  extend FFI::Library
  ffi_lib FFI::Library::LIBC
  attach_function("cputs", "puts", [ :string ], :int)
  freeze
end
Ractor.new do
  Foo.cputs("Hello, World via libc puts using FFI in a Ractor")
end.take

Version data entries

3,103 entries across 3,101 versions & 24 rubygems

Version Path
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.109.23 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_id_ruby-0.109.23 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.109.23 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.109.22 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.109.22 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_id_ruby-0.109.22 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.109.21 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.109.21 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_id_ruby-0.109.21 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_id_ruby-0.109.20 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.109.20 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.109.20 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.109.19 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_id_ruby-0.109.19 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.109.19 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
ory-client-1.2.14 vendor/bundle/ruby/2.5.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_organization_ruby-0.109.17 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_bank_ruby-0.109.17 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb
cybrid_api_id_ruby-0.109.17 vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/samples/hello_ractor.rb