Skip to content

Instantly share code, notes, and snippets.

@astatide
Created September 12, 2019 22:06
Show Gist options
  • Select an option

  • Save astatide/f843c0c243e0f146ae0aa52b637d12ce to your computer and use it in GitHub Desktop.

Select an option

Save astatide/f843c0c243e0f146ae0aa52b637d12ce to your computer and use it in GitHub Desktop.
Python's attempt to start Chapel's Begin
pythonlib:
chpl pBegin.chpl --library-python --library-python-name=pBegin --library --comm none --launcher none --devel
export proc iCallBegin() {
begin {
writeln("some libraries just like to watch the world burn");
}
}
import pBegin
pBegin.chpl_setup()
pBegin.iCallBegin()
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