OSDN Git Service

Let's play with more cores.
authorSimon Forman <sforman@hushmail.com>
Thu, 22 Sep 2022 16:13:11 +0000 (09:13 -0700)
committerSimon Forman <sforman@hushmail.com>
Thu, 22 Sep 2022 16:13:11 +0000 (09:13 -0700)
implementations/Python/joys.py [new file with mode: 0644]
implementations/Python/ojoy/__init__.py [moved from implementations/Python/joy/__init__.py with 100% similarity]
implementations/Python/ojoy/__main__.py [moved from implementations/Python/joy/__main__.py with 100% similarity]
implementations/Python/ojoy/defs.txt [moved from implementations/Python/joy/defs.txt with 100% similarity]
implementations/Python/ojoy/library.py [moved from implementations/Python/joy/library.py with 100% similarity]
implementations/Python/ojoy/utils/__init__.py [moved from implementations/Python/joy/utils/__init__.py with 100% similarity]
implementations/Python/ojoy/utils/snippets.py [moved from implementations/Python/joy/utils/snippets.py with 100% similarity]

diff --git a/implementations/Python/joys.py b/implementations/Python/joys.py
new file mode 100644 (file)
index 0000000..84eb37e
--- /dev/null
@@ -0,0 +1,11 @@
+import multiprocessing as mp
+from joy import (
+    initialize,
+    default_defs,
+    text_to_expression,
+    joy,
+    )
+
+
+if __name__ == '__main__':
+    mp.set_start_method('fork')