Skip to content

Instantly share code, notes, and snippets.

@aj07
Created June 6, 2015 06:51
Show Gist options
  • Save aj07/db93a1fa0ab665ca171d to your computer and use it in GitHub Desktop.
Save aj07/db93a1fa0ab665ca171d to your computer and use it in GitHub Desktop.
problem of $end solving approach?
require 'ffi'
require 'capn_proto'
ADDRESSBOOK_SCHEMA = File.expand_path("../addressbook.capnp", __FILE__)
module AddressBook extend CapnProto::SchemaLoader
load_schema(ADDRESSBOOK_SCHEMA)
end
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_function :puts, [ :string ], :int
$end
Hello.puts("Hello, World")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment