chibi-scheme

Chibi-Scheme 是一个非常小的库,用于在 C 程序中作为扩展和脚本语言使用。(Chibi-Scheme is a very small library intended for use as an extension and scripting language in C programs.)

  • 所有者: ashinn/chibi-scheme
  • 平台: Android, BSD, iOS, Linux, Mac, Windows
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Chibi Scheme

用作扩展语言的最小 Scheme 实现。

http://synthcode.com/wiki/chibi-scheme

Chibi-Scheme 是一个非常小的库,用于在 C 程序中作为扩展和脚本语言使用。除了支持基于 VM 的轻量级线程外,每个 VM 本身运行在一个独立的堆中,允许多个 VM 在不同的 OS 线程中同时运行。

没有外部依赖,因此相对容易进入任何项目。

默认的 repl 语言包含来自 R7RS small 的所有绑定,可以显式地作为(scheme small)库使用。但是,该语言是分层构建的 -- 有关使用较少特性进行编译或在启动时请求更小的语言的说明,请参阅手册。

众所周知,Chibi-Scheme 可用于32位和64位 Linux、FreeBSD、NetBSD、OpenBSD 和 OS X、Plan 9、Windows(使用 Cygwin)、iOS、Android、ARM 和 Emscripten。还存在对本机 Windows 桌面的基本支持。有关详细信息和构建说明,请参阅 README-win32.md。

要在大多数平台上构建,只需运行 make && make test。这将提供共享库 libchibi-scheme,以及一个 chibi-scheme 命令行 repl 示例。然后就可以运行了。

sudo make install

安装二进制文件和库。您可以选择为安装目录指定 PREFIX:

make PREFIX=/path/to/install/
sudo make PREFIX=/path/to/install/install

默认情况下,文件安装在 /usr/local 中。

如果你想在没有安装的情况下试用 chibi-scheme,一定要设置 LD_LIBRARY_PATH,这样才能找到共享库。

有关更详细的文档,请运行 make doc 并查看生成的 doc/chibi.html。

主要指標

概覽
名稱與所有者ashinn/chibi-scheme
主編程語言Scheme
編程語言Scheme (語言數: 10)
平台Android, BSD, iOS, Linux, Mac, Windows
許可證Other
所有者活动
創建於2015-03-16 12:05:57
推送於2025-08-24 00:04:12
最后一次提交2025-08-24 09:04:12
發布數19
最新版本名稱0.11 (發布於 )
第一版名稱0.2 (發布於 )
用户参与
星數1.3k
關注者數51
派生數147
提交數4.1k
已啟用問題?
問題數752
打開的問題數78
拉請求數252
打開的拉請求數3
關閉的拉請求數34
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Chibi-Scheme

Minimal Scheme Implementation for use as an Extension Language

http://synthcode.com/wiki/chibi-scheme

Chibi-Scheme is a very small library intended for use as an extension
and scripting language in C programs. In addition to support for
lightweight VM-based threads, each VM itself runs in an isolated heap
allowing multiple VMs to run simultaneously in different OS threads.

There are no external dependencies so is relatively easy to drop into
any project.

The default repl language contains all bindings from
R7RS small,
available explicitly as the (scheme small) library. The
language is built in layers, however - see the manual for
instructions on compiling with fewer features or requesting
a smaller language on startup.

Chibi-Scheme is known to work on 32 and 64-bit Linux, FreeBSD,
NetBSD, OpenBSD and OS X, Plan 9, Windows (using Cygwin), iOS, Android,
ARM and Emscripten. Basic
support for native Windows desktop also exists. See README-win32.md
for details and build instructions.

To build on most platforms just run make && make test. This will
provide a shared library libchibi-scheme, as well as a sample
chibi-scheme command-line repl. You can then run

sudo make install

to install the binaries and libraries. You can optionally specify a
PREFIX for the installation directory:

make PREFIX=/path/to/install/
sudo make PREFIX=/path/to/install/ install

By default files are installed in /usr/local.

If you want to try out chibi-scheme without installing, be sure to set
LD_LIBRARY_PATH so it can find the shared libraries.

For more detailed documentation, run make doc and see the generated
doc/chibi.html.