This hello world loads the Numpy library, no special modifications were required to allow the Numpy C modules to work on OSv. The final VM image is tiny, just 25.7MB.
The Python script above is marked with @embed, which directs Pythia to inline it into the final compiled C++ module below.
The statically typed python-like-code above uses special syntax for interacting with CPython Objects, this is transpiled by Pythia into C++11.
No comments:
Post a Comment