Hacker GitHub

← All repos

mmcloughlin/avo

View on GitHub ↗ ★ 2,995 Go

Generate x86 Assembly with Go

13 mentions on Hacker News by 9 people: 2 stories, 11 comments · first 2019-01-08 · latest 2025-03-25

Mentions per year 13 mentions · busiest year 2019 (5)
20082026
  1. …the Go toolchain (probably by rewriting in assembly) seems doable. Using avo to produce assembly: https://github.com/mmcloughlin/avo
  2. …I tend to prefer just writing ASM functions for critical path code. You can use libraries like https://github.com/mmcloughlin/avo to make it easier to write/maintain.
  3. I would recommend checking out Avo ( https://github.com/mmcloughlin/avo ) if you're interesting in writing Go assembly programs. It provides type safety and does some checks to ensure you output valid assembly. It can dynamically allocate…
    comment by GarrettBodley · 2024-10-19 · in Show HN: Go Plan9 Memo
  4. …details" in https://go.dev/doc/asm The few tools that generate that asm, such as https://github.com/mmcloughlin/avo , would also have follow the rules. You're not meant to take C source, crank it through GCC, and slurp that in as inline as
    comment by yencabulator · 2024-05-29 · in Runtime code generation and execution in Go
  5. …I mention it because it came up the last time we were talking about AVX operations in go.[2, 3] 1 = https://github.com/mmcloughlin/avo 2 = https://news.ycombinator.com/item?id=34465297 3 = https://www.reddit.com/r/golang/comments/10hmh07/ho…
    comment by carbocation · 2024-01-23 · in From slow to SIMD: A Go optimization story
  6. There is also a Go version inspired by PeachPy https://github.com/mmcloughlin/avo (see https://github.com/mmcloughlin/avo#credits )
  7. …instructions with avo. 1 = https://www.reddit.com/r/golang/comments/10hmh07/how_to_use_... 2 = https://github.com/mmcloughlin/avo
    comment by carbocation · 2023-01-23 · in How to Use AVX512 in Golang
  8. …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
    comment by slimsag · 2021-05-05 · in Branchless Coding in Go
  9. …My comment says "Otherwise we could be in the bizarre special-case of 3-argument CMP instructions." https://github.com/mmcloughlin/avo/blob/0e253b3753beb409b3dd... It gets to the point where the only source of truth is the Go assembler…
    comment by mmcloughlin · 2019-01-10 · in Avo: Better X86 Assembly Generation from Go
  10. …here. Yes PeachPy was the inspiration for this, as well as asmjit. Both mentioned in the credits: https://github.com/mmcloughlin/avo#credits PeachPy actually has Go output already, and Damian Gryski has used this to great effect:…
    comment by mmcloughlin · 2019-01-10 · in Avo: Better X86 Assembly Generation from Go
  11. …repo. Producing the instruction database for avo was quite a time-consuming process. See: https://github.com/mmcloughlin/avo/blob/master/internal/load... https://github.com/mmcloughlin/avo/issues/23 I've gained a lot more familiarity with…
    comment by mmcloughlin · 2019-01-10 · in Avo: Better X86 Assembly Generation from Go
  12. ▲ 77
    Avo: Better X86 Assembly Generation from Go
    story by ingve · 2019-01-10 · 19 comments
  13. ▲ 34
    Show HN: Generate x86 Assembly with Go
    story by mmcloughlin · 2019-01-08 · 2 comments