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
20082026
-
…the Go toolchain (probably by rewriting in assembly) seems doable. Using avo to produce assembly: https://github.com/mmcloughlin/avo
comment by dolmen · 2025-03-25 · in Hann: A Fast Approximate Nearest Neighbor Search Library for Go -
…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.
comment by zbobet2012 · 2025-03-03 · in Go-attention: A full attention mechanism and transformer in pure Go -
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 -
…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 -
…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 -
There is also a Go version inspired by PeachPy https://github.com/mmcloughlin/avo (see https://github.com/mmcloughlin/avo#credits )
comment by cristaloleg · 2024-01-05 · in Portable Efficient Assembly Code-Generator in Higher-Level Python (PeachPy) -
…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 -
…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 -
…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 -
…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 -
…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