惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
量子位
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
Y
Y Combinator Blog
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Security Blog
Microsoft Security Blog
B
Blog
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
博客园 - 聂微东
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - mi11ione/iris
mi11ion · 2026-06-12 · via Hacker News: Show HN

An ARM64/ARM64E disassembler with a semantic layer validated against LLVM. A command-line tool first, a Swift library underneath.

iris --semantics on an arm64e binary:

_helper:
100000398: d503237f  pacibsp
10000039c: d10083ff  sub sp, sp, #32                             ; reads=sp writes=sp
1000003a0: a9017bfd  stp x29, x30, [sp, #16]                     ; reads=x29,x30,sp mem=store
...
1000003b0: 97ffffde  bl 0x100000328 ; _add42                     ; writes=x30 branch=call
...
1000003d4: d65f0fff  retab                                       ; reads=x30,sp branch=return

Symbols and function starts from the binary, branch targets resolved and symbolicated, data-in-code rendered as data instead of garbage instructions, and a semantic column nothing else prints: registers read and written, memory behavior, branch class, all computed during decode and validated against llvm-mc.

Install

Prebuilt binary (macOS universal, Linux x86_64/aarch64):

curl -fsSL https://raw.githubusercontent.com/mi11ione/iris/main/install.sh | sh

or through Homebrew:

brew install mi11ione/tap/iris

Inspect a binary

$ iris MyApp.app/Contents/MacOS/MyApp           # full listing: symbols, function starts,
                                                # symbolicated branches, data-in-code kinds
$ iris disasm --arch arm64e --semantics MyApp   # the listing above, semantics on every line
$ iris functions MyApp                          # one row per function: address, name,
                                                # instruction count, calls, PAC use
$ iris stats MyApp                              # the extension census (PAC, MTE, AMX, crypto)
$ iris 0xd503233f                               # 0: d503233f  paciasp
$ iris --bytes "1f 20 03 d5"                    # 0: d503201f  nop

iris <file> is the disassemble verb (its name, disasm, is optional). stats, functions, and decode are the other three. iris 0x<word> and iris --bytes are decode without the word. The single-word forms answer "what is this instruction" from a hex dump in one command. Run iris --help for the verb list, or iris <verb> --help for a verb's options.

Triage a crash from raw bytes

A crash report gives you a faulting PC and the bytes around it, and the binary is not on your machine. Decode the window anywhere, including a Linux backend, and read what faulted straight off the semantics:

$ iris --bytes "e0 07 40 f9 08 08 40 f9 c0 03 5f d6" --semantics
0: f94007e0  ldr x0, [sp, #8]                            ; reads=sp writes=x0 mem=load
4: f9400808  ldr x8, [x0, #16]                           ; reads=x0 writes=x8 mem=load
8: d65f03c0  ret                                         ; reads=x30 branch=return

If the fault was at offset 4, the record says it directly: a load through x0, sixteen bytes in. The bad pointer is x0.

Audit what ships in your build

iris stats censuses a binary for pointer authentication, MTE, AMX, and crypto sites:

$ iris stats hello-arm64e
total words        56
undefined          0
data-in-code       0

extension sites:
  pointer-auth     4
  memory-tagging   0
  amx              0
  crypto           0
...

Gate CI on the answer, for example "fail the build if PAC adoption ever drops to zero":

iris stats --json MyApp | jq -e '.extensions.pointerAuthentication > 0'

Script it from any language

--json emits NDJSON under a versioned schema: one self-contained object per instruction, byte-stable across runs, so it pipes, diffs, and caches. Every call site of a binary:

$ iris --json hello-arm64e | jq -r 'select(.branchClass=="call") | .address'
0x1000003b0
0x1000003bc
0x1000003f8

Byte-stable output also makes patch review mechanical: run iris --json over two versions of a patched binary and diff the streams. The only lines that differ are the instructions that changed.

Exit codes, stdout/stderr separation, --color auto|always|never, and --quiet are scripting-clean.

Feed an LLM

Disassembly text is what model pipelines choke on. It carries too many tokens, too little structure, and too much room to hallucinate. Iris emits the dataflow already computed and produces byte-identical output for identical input, so prompts cache and evals reproduce. Unknown encodings stay UNDEFINED with the raw word preserved, so a model is never handed a confident wrong instruction.

iris functions chunks the binary into one JSON object per function, the unit a model prompt usually wants. Boundaries come from LC_FUNCTION_STARTS and section membership, so a function holds exactly its own instructions and never the trailing __stubs padding that grouping the per-instruction stream by symbol would sweep in:

iris functions --json hello-arm64 | jq -c '{symbol, address, endAddress, instructionCount}'
# {"symbol":"_add42","address":"0x100000328","endAddress":"0x100000340","instructionCount":6}
# {"symbol":"_sum_to","address":"0x100000340","endAddress":"0x100000398","instructionCount":22}
# {"symbol":"_helper","address":"0x100000398","endAddress":"0x1000003d4","instructionCount":15}
# {"symbol":"_main","address":"0x1000003d4","endAddress":"0x100000400","instructionCount":11}

Each function object wraps its instruction objects, and each of those names its function in a symbol field and carries a targetSymbol when a branch resolves to a known name, including imports reached through a __stubs entry. That gives a model function context and named call edges with no extra passes. The per-instruction stream carries the same fields, so a call-graph pass reads straight off it:

# named call-graph edges: from = caller function, to = resolved callee
# (an absent targetSymbol means the target had no known name)
iris --json MyApp | jq -c 'select(.branchClass=="call") | {from: .symbol, to: .targetSymbol, at: .address}'
# {"from":"_helper","to":"_add42","at":"0x1000003b0"}
# {"from":"_helper","to":"_sum_to","at":"0x1000003bc"}
# {"from":"_main","to":"_helper","at":"0x1000003f8"}

Decode from Swift

The same facts as typed fields, no text parsing:

import Iris

let words: [UInt8] = [0xFD, 0x7B, 0xBF, 0xA9,   // stp x29, x30, [sp, #-16]!
                      0x03, 0x00, 0x00, 0x94,   // bl #12
                      0xC0, 0x03, 0x5F, 0xD6]   // ret
let stream = InstructionStream(bytes: words, at: 0x4000)

for inst in stream where inst.isCall {
    print(inst.text, "->", String(inst.branchTarget ?? 0, radix: 16))
}
// bl #12 -> 4010

Every Instruction carries bit-exact register read/write sets, memory access and ordering, per-flag effects, ADR/ADRP page math, and precisely-scoped predicates. It is the precomputed layer that CFG builders, emulators, and decompilers otherwise write first. The library has no dependencies and no imports, so it runs anywhere Swift compiles: macOS, Linux, Windows, Android, and on-device iOS. CI builds it on every one of them.

dependencies: [
    .package(url: "https://github.com/mi11ione/iris", from: "0.3.0")
]

The DocC articles on the Swift Package Index cover the full surface, including the retain-free withSession tier for hot loops.

ISA coverage

surface status
Base ARM64 (DPI, branches/exception/system, loads & stores, DPR) full, through the v9.6-era extensions llvm-mc recognizes (CSSC, FlagM, HBC, CHK, MOPS, LS64, RCPC tiers, D128, …)
NEON & floating point full AdvSIMD + FP, including FP16, BF16, FP8, i8mm
Crypto AES, SHA1/SHA256, SHA3/SHA512, SM3/SM4
Pointer authentication full. Hint-space and authenticated branches on the base ISA, LDRAA/LDRAB behind Features.arm64e
Memory tagging (MTE) full tag-management set
Atomics exclusives, LSE, LSE128, RCpc orderings
Apple AMX decoded (Apple's undocumented coprocessor ISA, validated structurally since llvm-mc has no AMX target)
SVE / SME / SVE2 UNDEFINED at 0.x. Apple silicon now ships SME, so this is first on the post-1.0 roadmap and the flagship contribution area

Every possible 32-bit word decodes to a well-formed record. Unknown encodings yield UNDEFINED with the raw word preserved, never a plausible-looking guess and never a crash.

Why you can trust it

CI Parity Nightly Platforms Swift Package Index

Correctness is defined by external oracles, never asserted from inside:

  • The in-repo iris-parity tool diffs Iris against llvm-mc at each encoding partition's maximal feature set: ≈600M rows harvested from real shipped Apple code, zero true divergences. It runs on every PR and on your machine.
  • Nightly CI decodes the entire 2³² word space twice and asserts the digests match: every word decodes, deterministically, forever.
  • Every known divergence from llvm-mc lives in KNOWN-DEVIATIONS.md with evidence. There is exactly one (Apple AMX, which LLVM cannot decode at all), and anything uncatalogued fails the build.
  • No decoder change merges without that battery green (CONTRIBUTING.md).

Performance

Apple M4, release build, 256 MiB mixed buffer, medians over 5 runs. Methodology and reproduction commands in Benchmarks/README.md.

  • Bulk decode: 16.1M words/s single-thread, 117.7M words/s parallel.
  • Address lookups: 11.0 ns stable (the library's pinned-session tier), 5.2 ns raw index arithmetic.
  • Against Capstone v5 on identical input: ~10.3× faster at decode while computing more than its detail mode, ~3.3× faster at text-output parity (methodology).

A nightly smoke guards these numbers with checked-in thresholds.

Scope

Iris is a disassembler. ARM64 only, decode only, one direction. It does not assemble, build CFGs, lift, recover types, or emulate, and it ships no Mach-O parsing as library API: the CLI's walker is internal, the library takes raw bytes, your loader owns file formats.

License

Apache 2.0. See LICENSE.