feat: add recursive fibonacci benchmark scripts in lua, python, wren and implicit fields design doc

Add three language implementations of a naive recursive fibonacci(35) benchmark
alongside a design document exploring implicit field declaration semantics for
the wren language, including nested class scoping and static field conventions.
This commit is contained in:
Bob Nystrom
2013-11-15 04:57:56 +00:00
parent f88fb3d9bb
commit e98ee92efa
4 changed files with 49 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
def fib(n):
if n < 2: return n
return fib(n - 1) + fib(n - 2)
print fib(35)