chibi-scheme icon indicating copy to clipboard operation
chibi-scheme copied to clipboard

Embedding API example code, or a tutorial.

Open gamagan opened this issue 5 years ago • 3 comments

Hi there, Chibi-scheme seems cool. I'm trying to embed it into a C++ app, and I'm running into issues doing so. I'm sure the issues are my lack of understanding about how to use the API, so I'm trying to self-serve by studying the documentation, but there is not much of that. Since Chibi was designed to be embedded, it would be cool if there was a tutorial showing how to do that. I'm aware of this page: http://synthcode.com/scheme/chibi/

...but, unfortunately, it's not enough info to learn to use the API. It's more of an overview.

If a tutorial is too much, then perhaps a set of C test-cases showing the embedding API in action. I looked into the 'tests' directory, but the files there are for testing Scheme code. C API test-cases would do the trick for me.

Regards

gamagan avatar Jun 12 '19 18:06 gamagan

The embedding examples in: "/chibi-scheme/tests/foreign" is the type of example code that I would find really useful.

gamagan avatar Jun 17 '19 16:06 gamagan

In addition, all the page says about installation is about dynamic libraries, while I need to embed them statically.

Zireael07 avatar Sep 20 '20 12:09 Zireael07

https://github.com/ashinn/chibi-scheme/issues/875

Does this help?

husnoo avatar Dec 07 '22 21:12 husnoo