Skip to content

Instantly share code, notes, and snippets.

@chrisseaton
Last active August 29, 2015 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisseaton/698bd36e2ddba92049fc to your computer and use it in GitHub Desktop.
Save chrisseaton/698bd36e2ddba92049fc to your computer and use it in GitHub Desktop.
$ bin/jruby -X+T bin/irb
irb(main):001:0> Truffle::CExt.inline %s{
irb(main):002:0: #include <unistd.h>
irb(main):003:0: #include <stdio.h>
irb(main):004:0: }, %s{
irb(main):005:0: printf("Hello, World! I'm %d\n", getpid());
irb(main):006:0: }
Hello, World! I'm 36641
=> true
irb(main):002:0> exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment