Multithreaded (parallel) language "Pythonic"

Now I mainly write in python, however I am looking for a thread-friendly language (rather than JAVA, C #, C or C ++).

Python threads are good when they are related to IO, but it ends when I do something intensive CPU.

Any ideas?

Thanks James

+3
source share
8 answers

Python , , Python . "" , , . , , - .

Erlang, , , "Pythonic" .: -)

+1

Clojure , . lisp, JVM. -, , Java, , *. Java- , , clojure , Java .

" ", (- > Python dicts) (- > Python), .

, , concurrency. , . , : .

*: , " hinting", , Java, . Clojure.

+7

- , ? GIL ? ( , , .)

, , , .

, GIL , , :

+4

boo - Python-inspired. , : , , , , ( LISP "" ), " " C).

, , IronPyton , .NET.

+3

Stackless Python, EVE online .

Stackless Python - Python . . microthreads, Stackless Python - , , , .

+2

GIL, python jython cpython

+1

. , CPU, . .

, , .

  • , .

    script : a.py | b.py | c.py | d.py...

  • Python, sys.stdin sys.stdout. , raw_input() print() .

  • .

- - . . ​​ . .

, .

+1

python, API , . . Stackless Python ( ) Pyrex.

+1

Source: https://habr.com/ru/post/1769079/


All Articles