zig
llvm-project
zig | llvm-project | |
---|---|---|
902 | 419 | |
39,860 | 33,320 | |
1.5% | 1.9% | |
10.0 | 10.0 | |
about 8 hours ago | 6 days ago | |
Zig | LLVM | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
zig
-
Zig paradigm shift – initial Writergate
Actually, nobody.
Here is the commit where Reader/Writer was introduced: https://github.com/ziglang/zig/commit/5e212db29cf9e2c06aba36...
This is a few months after `git init`. You can see I was really just working on the parser, with a toy example to get things started.
Over time, I merged contributions that made minor changes and shuffled things around, and these APIs evolved to kind of work okay. But nobody really considered "the Zig IO stack" as a whole and put in design effort. That is happening for the first time right now.
- Allocators Are Monkeys with Typewriters
-
Bzip2 crate switches from C to 100% rust
This list's Zig as an entry, despite the Zig project having very clear plans[0] for a 1.0 release. That's not 0ver, it's just the beta stage of semver.
[0] https://github.com/ziglang/zig/milestone/2
-
Show HN: Dk – A script runner and cross-compiler, written in OCaml
I usually structure teaching the same way done in https://www.writethedocs.org/videos/eu/2017/the-four-kinds-o.... So "the Quick Walkthrough Guide will explain what dk scripts are and give you small examples to run" is simply a learning-oriented tutorial which is mostly about giving students confidence and visual feedback. And simultaneously it an explanation of nothing (the video has a great explanation for why to do that). So, I agree that an explanation of threads + Internet + cross-compilation would quite nuts, but for an experienced developer I'd expect to see a meaty example (take a look at https://ziglang.org/ for comparison).
One concrete action may be to make two distinct Quick Start guides ... one for the experienced and one for the inexperienced students though. Is that your thinking?
- Zig Devlog: Self-Hosted x86 Back End Is Now Default in Debug Mode
-
Low-Level Optimization with Zig
> I feel like I can write powerful code in any language, but the goal is to write code for a framework that is most future proof, so that you can maintain modular stuff for decades.
I like Zig a lot, but long-term maintainability and modularity is one of its weakest points IMHO.
Zig is hostile to encapsulation. You cannot make struct members private: https://github.com/ziglang/zig/issues/9909#issuecomment-9426...
Key quote:
> The idea of private fields and getter/setter methods was popularized by Java, but it is an anti-pattern. Fields are there; they exist. They are the data that underpins any abstraction. My recommendation is to name fields carefully and leave them as part of the public API, carefully documenting what they do.
You cannot reasonably form API contracts (which are the foundation of software modularity) unless you can hide the internal representation. You need to be able to change the internal representation without breaking users. I hope Zig reverses this decision someday and supports private fields.
-
Why Use Structured Errors in Rust Applications?
> Did Zig really do that?
https://github.com/ziglang/zig/issues/544#issuecomment-61807...
> In order to simplify everything, tabs are not allowed. Spaces are necessary; we can't ban spaces.
They seem to be open to the alternative but not to a solution that isn't forced on people:
> Maybe someday, we'll switch to tabs for indentation, spaces for alignment and make it a compile error if they are incorrectly mixed
Zig already has a builtin code formatter that automatically changes formatting to their preference, but that's not enough.
-
A new language inspired by Go
Zig solved this by not having a string type at all and not shipping full Unicode support in std: https://github.com/ziglang/zig/issues/234#issuecomment-27630....
- Learning C3 (As a Zig User)
-
What is Bun? The Node.js Alternative Explained
Bun is written from scratch in Zig, a low-level language focused on performance and safety. Instead of using V8 (the engine behind Node and Deno), Bun runs on JavaScriptCore, the engine used in Safari. This choice helps it stay fast and efficient, both in terms of memory and startup time.
llvm-project
-
So you want to serialize some DER?
The most interesting part of this post is the bit about half way down, where Alex uses Claude to help identify a missing compiler optimization in LLVM... and then uses Claude Code to implement that optimization and gets a PR accepted to LLVM itself! https://github.com/llvm/llvm-project/pull/142869
-
NativeJIT: A C++ expression –> x64 JIT
it's mostly upstream now, no need to dig around in their repos
https://github.com/llvm/llvm-project/tree/main/clang/tools/c...
-
Performance Debugging with LLVM-mca: Simulating the CPU
> Are you saying the model used to simulate many different cpu models is the same, which makes comparing CPUs harder? Or are you saying the model is not accurate?
Both, but mostly the former. You can view the scheduling models used for a given CPU here: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...
* CortexA53Model used for: A34, A35, A320, a53, a65, a65ae
- What I talk about when I talk about IRS
-
Getting C++ Hello World working on Windows (a comedy and& tragedy)
3. Clang-LLVM + Windows SDK + Cmake + jom (and Windows CRT from C3 install) => Works fine https://github.com/llvm/llvm-project/releases/download/llvmo...
(I use 3 for D too)
I would like to add toyour guide with OpenWatcom V2 (https://github.com/open-watcom/open-watcom-v2)
-
Top researchers leave Intel to build startup with 'the biggest, baddest CPU'
These files exist (https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...) but it is very complicated because the processors themselves are very complicated.
- Apple is adding Mach-O's riscv32 support to LLVM
-
Claude 4
I used Cline+Claude 3.7 Sonnet for the initial draft of this LLVM PR. There's a lot of handholding and the final version was much different than the original.
https://github.com/llvm/llvm-project/pull/130458
Right now I'm using Roo Code and Claude 4.0. Roo Code looks cooler and draws diagrams but I don't know if it's better.
-
Making the rav1d Video Decoder 1% Faster
https://news.ycombinator.com/item?id=43888005
> In a non-inlined, non-PGO scenario the compiler doesn't have enough information to tell whether the optimization is suitable.
I guess you're talking about stores and load across function boundaries?
Trivia: X86 LLVM creates a whole Pass just to prevent this partial-store-to-load issue on Intel CPUs: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Targ...
-
Project Verona: Fearless Concurrency for Python
Do you like have any idea what you're talking about? Or are you just making it up for internet points? The target is part of the input.
Lemme ELI5
https://github.com/llvm/llvm-project/tree/main/llvm/test/Cod...
You see how this folder has folders for each target? Then within each target folder there are tests (thousands of tests)? Each of those tests is verified deterministically on each commit.
What are some alternatives?
ssr-proxy-js - A Node.js tool for Server-Side Rendering (SSR) and Static Site Generation (SSG) using headless Chrome via Puppeteer
Lark - Lark is a parsing toolkit for Python, built with a focus on ergonomics, performance and modularity.
Odin - Odin Programming Language
gcc
v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
dmd - dmd D Programming Language compiler