Skip to content

zenc-lang/awesome-zenc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Zen C

Official examples, community projects, and Rosetta Code implementations for the Zen C programming language.

Overview

This repository serves as the primary collection of examples for Zen C. It demonstrates the language's modern features, ergonomics, and seamless C interoperability across various domains, from simple algorithms to systems programming.

Repository Structure

  • rosetta/: A wide collection of Rosetta Code implementations showcasing idiomatic Zen C solutions to common programming tasks.
  • internal/: Internal feature demos, including networking, SIMD, graphics, and more.

Rosetta Code

Many of the examples in this repository are extracted from the Zen C category on Rosetta Code.

We are always looking to expand our presence there! All additions and improvements to Zen C tasks on Rosetta Code are greatly appreciated and help showcase the language's capabilities to the wider programming community.

Some Examples

Rosetta Code

Internal Demos

  • SIMD: Leveraging hardware acceleration for performance.
  • Networking: Real-world communication examples.
  • Games: Interactive demos built with Zen C.

To run any example, ensure you have the Zen C compiler installed. Since this repository is intended to be used as a submodule at examples/ in the Zen C root, you can run examples like this:

# From Zen-C root zc run examples/rosetta/Hello_world_Newbie.zc

Tip

You can also compile these examples to standalone executables:

zc build examples/rosetta/FizzBuzz.zc -o fizzbuzz ./fizzbuzz

Contributing

Found a bug or want to add a new example? Contributions are welcome! Please feel free to open a Pull Request or report an Issue.

Related Projects

  • zenc: The core compiler and standard library.
  • docs: Official documentation and language reference.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors