https://github.com/hellerve/gt.carp
A gt wrapper for Carp (greenthreads, yay!)
https://github.com/hellerve/gt.carp
Last synced: 12 months ago
JSON representation
A gt wrapper for Carp (greenthreads, yay!)
- Host: GitHub
- URL: https://github.com/hellerve/gt.carp
- Owner: hellerve
- Created: 2019-03-19T10:26:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T11:39:15.000Z (about 6 years ago)
- Last Synced: 2025-02-12T05:12:04.978Z (about 1 year ago)
- Language: C
- Size: 4.88 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gt.carp
A simple wrapper around [my greenthread implementation](https://github.com/hellerve/gt).
## Installation
Currently you have to use `make install` to get `libgt` on your system. The
process then becomes
```
make install
carp -x examples/print.carp
```
## Caveat Emptor
This implementation will leak memory whenever `gt_stop` or `gt_ret` are called,
since they kill the current thread before its resources can be reclaimed. Since
those processes do not get killed before the system exits, this is “only” an
annoyance, since we’re wasting memory. The OS will later reclaim that memory,
but oh well. In order to rectify this, we’d probably need deeper support for
greenthreads inside Carp proper.
Have fun!