chibi-scheme

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

  • Owner: ashinn/chibi-scheme
  • Platform: Android, BSD, iOS, Linux, Mac, Windows
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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。

Overview

Name With Ownerashinn/chibi-scheme
Primary LanguageScheme
Program languageScheme (Language Count: 10)
PlatformAndroid, BSD, iOS, Linux, Mac, Windows
License:Other
Release Count18
Last Release Name0.10 (Posted on )
First Release Name0.2 (Posted on )
Created At2015-03-16 12:05:57
Pushed At2024-03-19 14:03:44
Last Commit At2024-03-19 23:03:21
Stargazers Count1.2k
Watchers Count53
Fork Count139
Commits Count3.9k
Has Issues Enabled
Issues Count691
Issue Open Count87
Pull Requests Count227
Pull Requests Open Count5
Pull Requests Close Count29
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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.

To the top