Comment

Comment by enriquto

> Can someone give me an elevator-pitch for Zig?

The main page ziglang.com makes a good job at that:

  A simple language:
    * No hidden control flow.
    * No hidden memory allocations.
    * No preprocessor, no macros.

  Compile time goodness:
    * Call any function at compile-time.
    * Manipulate types as values without runtime overhead.
    * Comptime emulates the target architecture.

  Close to C and C++:
    * Use Zig as a zero-dependency, drop-in C/C++ compiler
      that supports cross-compilation out-of-the-box.
    * Add a Zig compilation unit to C/C++ projects;
      cross-language LTO is enabled by default.
parent enriquto 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton