home | show tags | navigation

switch to tags
switch to navbar

programming

Next Entries »

Coolness

Tuesday, June 26th, 2007

Stackless Python is one of the coolest languages I’ve seen recently. To put it very (very) simply, it’s Python with coroutines. Take this example (stolen from here):

ping_channel = stackless.channel()
pong_channel = stackless.channel()

def ping():
  while ping_channel.receive(): #blocks here
print “PING”
[…]

Posted in programming, posted by cardi | No Comments »>
Next Entries »