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 a new c-gull crate, which is an above-std libc implementation. #125

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

sunfishcode
Copy link
Owner

The relationship between c-scape and c-gull is:

  • c-gull: uses std and c-scape.
  • c-scape: does not use std.

This means c-scape can be used by std, and c-gull can't be. But it also
means that c-gull can easily implement many more C features. This PR adds:

  • timezone functions using the tz-rs crate
  • stdio functions using the printf-compat crate
  • random functions using the rand crate
  • nss functions using the getent command

c-gull is extraordinarily experimental.

The relationship between c-scape and c-gull is:
 - c-gull: uses std and c-scape.
 - c-scape: does not use std.

This means c-scape can be used by std, and c-gull can't be. But it also
means that c-gull can easily implement many more C features. This PR adds:
 - timezone functions using the tz-rs crate
 - stdio functions using the printf-compat crate
 - random functions using the rand crate
 - nss functions using the getent command

c-gull is extraordinarily experimental.
@tshepang
Copy link
Contributor

I assume c-scape comes from escaping C. Is that correct? What does c-gull come from?

@sunfishcode
Copy link
Owner Author

Yes, c-scape is a pun about escape and the word seascape. c-gull is a pun about the sense of "gull" that means "imitation", and the word seagull. And perhaps there could be an image of a seagull sitting on the tall mast of a sturdy ship (std) floating upon a seascape, very loosely illustrating the dependency sequencing. The analogy isn't perfect, but it was the best I could think of without spending a lot more time thinking about it ;-).

@jplatte
Copy link
Contributor

jplatte commented Jul 11, 2022

The name is absolutely fantastic 👍❤️

@sunfishcode sunfishcode merged commit 92898b7 into main Jul 12, 2022
@sunfishcode sunfishcode deleted the sunfishcode/c-gull branch July 12, 2022 18:25
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

Successfully merging this pull request may close these issues.

3 participants