zig
go


zig | go | |
---|---|---|
863 | 2,218 | |
37,281 | 125,661 | |
4.5% | 0.7% | |
10.0 | 10.0 | |
1 day ago | 2 days ago | |
Zig | Go | |
MIT License | BSD 3-clause "New" or "Revised" License |
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
-
Rust Kernel Policy
But the situation for Rust-C++ interop is also worse than for Rust-C interop. Why else would Google spend maybe $1 million on improving it in 2024? https://www.theregister.com/2024/02/05/google_rust_donation/ Many years after Rust got support in Mozilla for usage with Firefox written in C++.
>My sibling is also correct, language decisions were made in order to keep FFI zero overhead.
Yet overhead is only one piece of the puzzle for FFI and interop with C, or for that matter, C++.
How does Rust compare with a language with less advanced and more simple semantics and requirements of invariants, like Zig?
https://ziglang.org/
>Incrementally improve your C/C++/Zig codebase.
-
A tale of several distros joining forces for a common goal: reproducible builds
Regarding the reproducible bootstrapping problem, what is your project's policy on building from binary sources? For instance, Zig is written in zig and bootstraps from a binary wasm file which is translated to C: https://github.com/ziglang/zig/tree/master/stage1
Golang has an even more complicated bootstrapping procedure requiring to build each successive version of the compiler to get to the most recent version.
-
Zig Guide
I love Zig and I love that it’s getting attention, but can someone convince me of its memory safety? One thing that surprised me is that returning pointers to stack-allocated memory doesn’t cause a compiler error — it just segfaults at runtime. This has been an open issue since 2019 [#2646](https://github.com/ziglang/zig/issues/2646).
That, along with the number of memory-related issues in one of Zig’s most popular project, Bun.js [search: segfault](https://github.com/oven-sh/bun/issues?q=is%3Aissue+segfault), gives me pause.
-
Zig; what I think after months of using it
The duck typing argument is absolutely not based on minimal or missing documentation. There wouldn't be countless issues about it in the Zig repository if it were that simple. See https://github.com/ziglang/zig/issues/17198
I'm simply going to quote one of the comments from the linked GitHub issue:
> generic code is hard. Hard to implement correctly, hard to test, hard to use, hard to reason about. But, for better or worse, Zig has generics. That is something that cannot be ignored. The presence of generic capabilities means that generic code will be written; most of the std relies on generic code.
-
In Zig, What's a Writer?
`appendSliceOptimized` is implemented using knowledge of the underlying writer, the way that say an interface implementation in Go would be able to. It's a big part of the reason that reading a file in Zig line-by-line can be so much slower than in other languages (2)
(1) https://gist.github.com/karlseguin/1d189f683797b0ee00cdb8186...
(2) https://github.com/ziglang/zig/issues/17985
-
Ask HN: What are some software projects with impressive websites?
I am looking for some inspiration at websites for software projects that do a very good of job explaining their product right from the get go. Things like programming language or database home pages/docs or open source projects with good git READMEs.
Though I've never used it, I think https://ziglang.org/ is a great example as it explains what makes the language unique, gives a code example right at the beginning, and makes it clear where to find more samples so I can quickly judge the features of the project without having to go through the entire docs.
Maybe this is debatable, but I feel like https://kubernetes.io/ is a counter example. It's one of my favorite tools, but the home page doesn't tell me much. I think I would have liked to see code snippets about Deployments or some sort of architecture diagram that explains what it does in terms of different well established protocols like cri-o or cgroups or something.
You might disagree with my examples above, but I'm still curious to see what other people consider "good".
- LLDB for Zig
-
Development Environment Configuration
Programming Languages: Go, Rust, Zig
-
TIL: Ghostty — a new and quite promising terminal emulator
At the same time, in the internal Slack of the company I work for, my colleague asked the security team whether we have any policies about the apps, as they'd like to start using Ghostty as their terminal emulator. I took a look at it, and it immediately caught my attention: a fresh look, a zero-config setup, platform-native UI (discovered in details in the “Ghostty Is Native—So What?” post by Gregory Anders) and GPU acceleration, and FOSS with very permissive MIT license (here is the GitHub repo). I googled the author (Mitchell Hashimoto), and discovered that he is a co-founder of HashiCorp, that brought Terraform, Vargant, Consult, Vault, and others to the world. That's quite a list. And, last but not the least, Zig as the main programming language was an interesting factor as well.
-
C++ or Rust? I'd stick to my good old C++
I'm not sure which language will be more mainstream in the future between these two. Maybe Zig(https://ziglang.org) can be some contender in the future, but not now at least - it could be a good contender at least it shows OOP grammar as simple as Python, internalizing vtable. For C++ and Rust, at least for me Rust is more like "you MUST do this" while C++ is like "you CAN do it also in this way." While one is highly opinionated, the other is unopinionated at all(that is to say, at least for me. your opinions are always welcome). And that may be one of the reasons that I don't like Qt? :D Maybe C++ is still superset of Rust in some way (it's just "in some way", because there are things unique in Rust language itself. For example, Rust trait can be mimicked with template class and combination of C++ enum and template class can behave like class-associated Rust enum, but C++ doesn't have anything equivalent or similar to borrow checker).
go
-
Extensible WASM Applications with Go
This is awesome. Something to keep in mind[0]:
> Remember that all the webassembly work in Go has been designed and implemented by volunteers, not the Go team, so timelines are dependent on availability of volunteers.
[0]: https://github.com/golang/go/issues/65333#issuecomment-22336...
-
Go 1.24 Is Released
What would be an use case for `os.Root`? Based on my understanding ( https://github.com/golang/go/issues/67002 ), it is related to security. However, under the hood, it doesn't use `Chroot`, so I could imagine, that eventually someone finds a way to escape from the Root.
-
We replaced our React front end with Go and WebAssembly
Go's "nothing is async because everything is async" model, combined with WebAssembly's (current) lack of support for stack switching and arbitrary goto, essentially mean that the compiler needs to insert extra code everywhere to support arbitrarily un/rewinding the stack.
This massively bloats binaries and means that go compiled to wasm is much slower than native speed, significantly more so than than the equivalent slowdown for c/rust.
see https://github.com/golang/go/issues/65440
-
Baffled by generational garbage collection – wingolog
There are some discussions to add optional generational regions to Go: https://github.com/golang/go/discussions/70257
-
Go Data Structures: Interfaces
since when has that stopped go? “[]rune(someString)” is O(n) and quite inobvious
The O(n) loop is here: https://github.com/golang/go/blob/215de81513286c010951624243...
-
Microsoft Go 1.24 FIPS changes
>A number of companies must comply with them, for example as part of a broader FedRAMP compliance posture. (If that's not you, you can ignore this. Run!) [1]
Apparently this isn't me. Sounds like I'm correct in assuming it's security theater at best, and an avenue for new backdoors at worst.
[1] https://github.com/golang/go/issues/69536
- Go proposal: sync/v2: new package
-
Go Supply Chain Attack: Malicious Package Exploits Go Module Proxy Caching
The mechanism was reported last year: https://github.com/golang/go/issues/66653 but not acted on.
-
Top Terraform/OpenTofu tools to Use in 2025
Callable as a Go Module Includes a Semver compatibility promise via the tenvlib wrapper package for seamless integration (details available in TENV_AS_LIB.md). Can be used as a library to download OpenTofu with minimum dependencies.
- Steam Freezes Go Applications
What are some alternatives?
Odin - Odin Programming Language
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
Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
ssr-proxy-js - A Server-Side Rendering Proxy focused on customization and flexibility!
TinyGo - Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
Angular - Deliver web apps with confidence 🚀
rust - Empowering everyone to build reliable and efficient software.
Godot - Godot Engine – Multi-platform 2D and 3D game engine
grule-rule-engine - Rule engine implementation in Golang

