Branchless Coding in Go (Golang)

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. rjson

    A fast json parser for go

    I wrote a mostly branchless json parser in go using ragel to generate most of the code.

    https://github.com/WillAbides/rjson

    The code isn't much to look at, but it is certainly fast.

    https://github.com/WillAbides/rjson/blob/main/object_handler...

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. zig

    General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

    Sad but true. This is why I'm hopeful that Zig will add support for "constant time" blocks: https://github.com/ziglang/zig/issues/1776

  4. avo

    Generate x86 Assembly with Go

    You could perhaps just have the Go compiler generate the assembler for your code:

    go tool compile -S file.go > file_amd64.s

    Then you could verify it doesn't change over time, and choose to begin maintaining by hand if it makes sense.

    If you do want to go the route of rolling it yourself, I'd suggest looking into something like Avo: https://github.com/mmcloughlin/avo

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Decoding JSON sum types in Go without panicking

    5 projects | news.ycombinator.com | 15 Mar 2025
  • When Zig Is Safer and Faster Than Rust

    5 projects | news.ycombinator.com | 30 Dec 2024
  • Golang on PSP (and other languages)

    3 projects | dev.to | 27 Dec 2024
  • Good union types in Go would probably need types without a zero value

    3 projects | news.ycombinator.com | 8 Dec 2024
  • Show HN: Generate Go structs from multiple JSON objects

    1 project | news.ycombinator.com | 12 Sep 2024

Did you know that Go is
the 4th most popular programming language
based on number of references?