Now Reading
Cyber – Quick and concurrent scripting.

Cyber – Quick and concurrent scripting.

2023-01-27 17:28:45




Cyber – Quick and concurrent scripting.






Cyber
v0.1

Cyber is a brand new language for
quick, environment friendly, and concurrent scripting.

At a look.

  • Simple to be taught.
  • Dynamic and gradual varieties.
  • Concurrency with fibers.
  • Multithreaded.
  • Reminiscence protected.
  • FFI and Embeddable.

NOTE: Cyber is at the moment at (v0.1) and is unstable. Multithread options are nonetheless within the design part.

import m 'math'

worlds = ['World', '世界', 'दुनिया']
worlds.append(m.random())
for worlds every w:
    print 'Hiya, {w}!'

func fib(n int) int:
    coyield
    if n 

Who’s it for.

Cyber needs to supply quick and pleasant scripting.
You’ll be able to embed Cyber into your functions, video games, and engines on desktop or the net.
Cyber additionally comes with a CLI so you are able to do scripting in your laptop.

Efficiency.

Cyber is quick on varied benchmarks.
See extra Benchmarks.
The quick efficiency is because of cautious design of the compiler, bytecode, and interpreter.
Examine Performance.

Bench Check: Fibers Begin/Resume source

This assessments spawning fibers and context switching.
Cyber does nicely because it’s execution context requires only a few save/restore ops.
Some languages like ruby and php haven’t optimized for fibers and are thus omitted.

Displaying whole time (orange), startup time (grey), and peak reminiscence utilization.

Concurrency.

Cyber offers granular management over script execution with fibers.
Cyber plans so as to add multithread help with actors and channels.
Examine Concurrency.

Reminiscence security.

Cyber achieves reminiscence security via automated reference counting as an alternative of a tracing rubbish collector.
This offers Cyber scripts dependable efficiency in realtime functions. Examine Memory safety.

Gradual varieties.

Cyber is dynamically typed by default with gradual typing to supply sort checks and ensures.
Utilizing varieties additionally helps the compiler create extra environment friendly bytecode leading to quicker script execution.

See Also

FFI and embedding.

Cyber helps calling into C ABI suitable libraries.
You can too embed Cyber into your utility, recreation, or engine.

Assist the Challenge.

When you like Cyber, please contemplate supporting the challenge through Github Sponsors or Patreon!

You can too jump over to our Discord when you have any questions on Cyber.

© 2022 Cyber Authors.

Source Link

What's Your Reaction?
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly
0
View Comments (0)

Leave a Reply

Your email address will not be published.

2022 Blinking Robots.
WordPress by Doejo

Scroll To Top