Best of Zig2022

  1. 1
    Article
    Avatar of newstackThe New Stack·4y

    Meet Bun: A JavaScript Runtime for the Whole Dev Lifecycle

    Bun is a drop-in replacement for running JavaScript and Typescript applications. It was designed to be an all-in-one tool for bundling, transpiling, and running code at lightning speed. It processes about three times more HTTP requests per second than Node.js when rendering React server-side.

  2. 2
    Article
    Avatar of quastorQuastor Daily·4y

    How Netflix Implements Load Shedding

    API Gateway sits between the backend and the client and it handles things like rate limiting, authentication, monitoring and routing requests. The first decision was where to implement the load shedding algorithm. Zuul will throttle requests below a certain priority threshold. This is meant to protect the API gateway itself. The metrics used to trigger global throttling are concurrent.

  3. 3
    Article
    Avatar of hnHacker News·3y

    Goodbye to the C++ Implementation of Zig ⚡ Zig Programming Language

    The old one, written in 80,000 lines of C++, plus sharing Zig code with the new one. The new one was faster, used less memory, and was actively maintained and enhanced. This was a huge pain, especially as the design of these two compilers diverged. The C++ implementation of Zig originally used the same strategy.

  4. 4
    Article
    Avatar of hnHacker News·4y

    Self Hosted Compiler Upgrade Guide · ziglang/zig Wiki

    The new compiler, sometimes called "stage2" or "stage3" is in many ways better than the old compiler. All 0.10.x releases will have the -fstage1 option; the upgrade only will become mandatory starting with 0.11.0.0. For Zig, building itself went from using 9. is a comptime-only function due to its Comptime only return type. However, pointers are still zero bit types.