```网络脚本```
Cyberscript

原始链接: https://cyberscript.dev

Cyber 是一门现代、高性能的脚本语言,专为速度、效率和并发而设计。它结合了动态类型与静态类型、内存安全以及基于纤程(fiber)的并发机制,旨在提供“令人愉悦”的编程体验。 主要特性包括: * **高性能**:内置快速的虚拟机和即时(JIT)编译器,从底层设计即追求速度。 * **可嵌入**:通过 `libcyber`,该语言可集成到应用程序、游戏引擎和服务器中。 * **灵活的互操作性**:支持通过强大的外部函数接口(FFI)与兼容 C-ABI 的库无缝集成,并为 Raylib 和 LLVM 等工具提供自动绑定生成功能。 * **跨平台**:能够在桌面和服务器环境中运行脚本。 Cyber 目前作为一个开源项目不断发展。我们鼓励开发者通过 GitHub 参与贡献,或通过赞助支持该项目。对于那些既需要易用性,又要求底层执行效率的快速、可嵌入脚本语言需求的开发者而言,Cyber 是一个理想的解决方案。

Sorry.
相关文章

原文
Cyber - Fast and concurrent scripting.
Cyber v0.3

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 

Use cases.

Cyber wants to provide fast and delightful scripting.

  • The compiler and VM can be embedded into applications, games, and engines.
  • The CLI app can run scripts on desktops and servers.
  • Performance.

    Cyber is fast on various benchmarks. The language was designed with performance in mind from the start. See more Benchmarks or read more about Performance.

    Recursive Fibonacci (VM) source

    This tests how fast function calls are with a growing call stack.

    Recursive Fibonacci (JIT) source
    Showing script time (orange), load time (gray), and peak memory usage.

    Features.

    To get a comprehensive overview of the language and its features, see the Documentation.

    Interop.

    libcyber allows Cyber to be embedded into your applications. Cyber's CLI and core library were built using libcyber.

    The FFI API allows your scripts to use any C-ABI compatible library. cbindgen.cy was also created as a tool to automatically generate full bindings from just a C header file. Some example bindings include Raylib and LLVM.

    Support us.

    Cyber is still evolving so ideas are always welcome! Feel free to file issues on GitHub or hop on over to our Discord.

    If you're feeling generous, consider supporting the project via Github Sponsors or Patreon!

    © 2022-2023 Cyber Authors.

    联系我们 contact @ memedata.com