Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples collection of small programs showing how to use GC for varioues features and with different configurations #626

Open
Tracked by #3
plajjan opened this issue Mar 18, 2024 · 2 comments

Comments

@plajjan
Copy link
Contributor

plajjan commented Mar 18, 2024

I'd like to suggest the addition of a collection of small programs that show how the GC can be used, e.g. in a examples/ directory. I think the primary point of the example programs is to be as simple as possible as to explain a particular concept.

The test suite is the closest thing we have to examples today but it is riddled with preprocessor conditions and defines which can make it difficult to read and gctest tests many many things, again making it hard to take in a particular concept.

I don't think it is possible to maintain a comprehensive set of example programs, i.e. having examples that demonstrate all aspects of the GC. But I do think it is possible to maintain a reasonable set of programs that demonstrate some common use cases. The addition of new examples can be entirely best-effort.

In order to maintain relevance, the example collection should be tested in CI though, to ensure it is working.

@ivmai
Copy link
Owner

ivmai commented Mar 18, 2024

Okay. Please let me know how do you think it should be (I think a draft PR with a single sample would be enough to explain the proposed architecture).
I think the samples should be treated as small tests (and be a part of make check).

@ivmai
Copy link
Owner

ivmai commented Mar 25, 2024

If convenient, I think we could consider using some popular framework, e.g. Cpputest.

@kassane kassane mentioned this issue Apr 17, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants