You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nim -v
Nim Compiler Version 1.1.1 [Linux: amd64]
Compiled at 2020-02-08
Copyright (c) 2006-2019 by Andreas Rumpf
active boot switches: -d:release
parafib.nim:
import weave
procfib(n: int): int=# int64 on x86-64if n <2:
return n
let x =spawnfib(n-1)
let y =fib(n-2)
result=sync(x) + y
procmain() =var n =20init(Weave)
let f =fib(n)
exit(Weave)
echo f
main()
parafib.nim:
The text was updated successfully, but these errors were encountered: