Skip to content

Commit

Permalink
classic funcall benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
samrushing committed Nov 8, 2012
1 parent 3f42fb4 commit 3f305a8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tak.py
@@ -1,9 +1,14 @@
# -*- Mode: Python -*-

# this won't run under the 'normal' cps transform, because
# it blows out the stack. You can however convert it using the
# 'trampoline' version.

@cps_manual
def cps_print (k, v):
print (v)
k()
#k()
schedule (k)

def cps_tak (x, y, z):
if y >= x:
Expand Down

0 comments on commit 3f305a8

Please sign in to comment.