At a glance.
- Easy to learn.
- Dynamic and gradual types.
- Concurrency with fibers.
- Multithreaded.
- Memory safe.
- FFI and Embeddable.
NOTE: Cyber is currently at (v0.1) and is unstable. Multithread features are still in the design phase.
import m 'math'
worlds = ['World', '世界', 'दुनिया']
worlds.append(m.random())
for worlds each w:
print 'Hello, {w}!'
func fib(n int) int:
coyield
if n < 2:
return n
return fib(n - 1) + fib(n - 2)
count = 0 -- Counts iterations.
fiber = coinit fib(30)
while fiber.status() != #done:
res = coresume fiber
count += 1
print '{res} {count}'
Who's it for.
Cyber wants to provide fast and delightful scripting.
You can embed Cyber into your applications, games, and engines on desktop or the web.
Cyber also comes with a CLI so you can do scripting on your computer.