Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Ram Rachum <ram <at> rachum.com>
Subject: Pythonect
Newsgroups: gmane.comp.python.israel
Date: Sunday 1st April 2012 20:23:25 UTC (over 5 years ago)
Hey guys,

Check out a cool project made by our fellow countryman Itzik Kotler:

http://www.pythonect.org/

Pythonect is a new, experimental, general-purpose dataflow programming
language based on Python.

It aims to combine the intuitive feel of shell scripting (and all of its
perks like implicit parallelism) with the flexibility and agility of
Python.

Pythonect interpreter (and reference implementation) is written in Python,
and is available under the BSD license.

Here's a quick tour of Pythonect:

The canonical "Hello, world" example program in Pythonect:

>>> "Hello World" -> print
 : Hello World
Hello World
>>>

'->' and '|' are both Pythonect operators.

The pipe operator (i.e. '|') passes one item at a item, while the other
operator passes all items at once.


Python statements and other None-returning function are acting as a
pass-through:

>>> "Hello World" -> print -> print
 : Hello World
 : Hello World
Hello World
>>>

>>> 1 -> import math -> math.log
0.0
>>>


Parallelization in Pythonect:

>>> "Hello World" -> [ print , print ]
 : Hello World
 : Hello World
['Hello World', 'Hello World']

>>> range(0,3) -> import math -> math.sqrt
[0.0, 1.0, 1.4142135623730951]
>>>

In the future, I am planning on adding support for multi-processing, and
even distributed computing.


I don't know whether Itzik is a member of this group. If you are, congrats
Itzik, very cool project!


Ram.
 
CD: 18ms