Created
September 12, 2019 22:06
-
-
Save astatide/f843c0c243e0f146ae0aa52b637d12ce to your computer and use it in GitHub Desktop.
Python's attempt to start Chapel's Begin
This file contains hidden or 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
| pythonlib: | |
| chpl pBegin.chpl --library-python --library-python-name=pBegin --library --comm none --launcher none --devel |
This file contains hidden or 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
| export proc iCallBegin() { | |
| begin { | |
| writeln("some libraries just like to watch the world burn"); | |
| } | |
| } |
This file contains hidden or 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
| import pBegin | |
| pBegin.chpl_setup() | |
| pBegin.iCallBegin() |
This file contains hidden or 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
| export PYTHONPATH=./lib/:$PYTHONPATH | |
| python pbtest.py |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment