Skip to content

Instantly share code, notes, and snippets.

@prologic
Created December 7, 2015 03:59
Show Gist options
  • Save prologic/3ad3e9be7439b1a9b539 to your computer and use it in GitHub Desktop.
Save prologic/3ad3e9be7439b1a9b539 to your computer and use it in GitHub Desktop.
A "Hello World!" written in RPython
#!/usr/bin/env python
import sys
def main(argv):
print "Hello World!"
return 0
def target(*args):
return main, None
if __name__ == "__main__":
raise SystemExit(main(sys.argv))
@prologic
Copy link
Author

prologic commented Dec 7, 2015

Getting Started

mkvirtualenv hello
pip install rpython
rpython --output=hello hello.py
./hello

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