Parallel Programming related Projects ith Python Interfacing
< Parallel Processing and Multiprocessing in Python
< 40_How-tos
< Python
< Programming
< Development
< Computer Related
< jal
Get flash to fully experience Pearltrees
Parallel Programming Laboratory
YML is a research project that aims at providing tools for using
Example #1: sum_primes.py Example #2: reverse_md5.py Example #3: dynamic_ncpus.py Example #4: callback.py Example #5: auto_diff.py Download all examples Example #1: sum_primes.py #!/usr/bin/python # File: sum_primes.py # Author: VItalii Vanovschi # Desc: This program demonstrates parallel computations with pp module # It calculates the sum of prime numbers below a given integer in parallel # Parallel Python Software: http://www.parallelpython.com import math, sys, time import pp def isprime (n): """Returns True if n is prime and False otherwise""" if not isinstance(n, int): raise TypeError( "argument passed to is_prime is not of 'int' type" ) if n < 2 : return False if n == 2 : return True max = int(math.ceil(math.sqrt(n))) i = 2 while i <= max: if n % i == 0 : return False i += 1 return True
What is it? It is a light-weight, Python only, distributed computing framework. Jug allows you to write code that is broken up into tasks and run different tasks on different processors. You can also think of it as a lightweight map-reduce type of system, although it's a bit more flexible (and less scalable). It has two storage backends: One uses the filesystem to communicate between processes and works correctly over NFS, so you can coordinate processes on different machines.
Urbi is a robotics software platform. It includes a C++/Java middleware API called UObject to interface components such as motors, cameras, and algorithms, and an innovative scripting language, urbiscript, with built-in support for parallel and event-based programming, used to write high-level behaviors and orchestrate the interactions between components. UObject components are built as shared libraries exposed as native objects within urbiscript, and either hot-plugged in a running Urbi engine, or started as a remote autonomous process communicating with the engine via the network.