Cyber is a new language for fast, efficient, and concurrent scripting.
At a glance. Easy to learn.
Dynamic and static types.
Concurrency with fibers.
Memory safe.
FFI and Embeddable.
Fast VM and JIT.
Cross platform.
use math var worlds = ['World', '世界', 'दुनिया'] worlds.append(math.random()) for worlds -> w: print "Hello, $(w)!" -- Optional static typing. func fib(n int) int: coyield if n < 2: return n return fib(n - 1) + fib(n - 2) -- Counts fib calls. var count = 0 var fiber = coinit(fib, 30) var res any = 0 while fiber.status() != .done: res = coresume fiber count += 1 print "$(res) $(count)"
Use cases.
... continue reading