frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Shor's algorithm compiled on cat qubits: 22 593 qubits for RSA-2048 in 3.14 days

https://eprint.iacr.org/2026/2665
1•jonbaer•1m ago•0 comments

Sam Altman Thinks It's 'Terrible' for You to Have RAM in Your Gaming PC

https://www.ign.com/articles/openai-ceo-sam-altman-thinks-its-terrible-for-you-to-have-ram-in-you...
1•krautburglar•3m ago•0 comments

How to improve agents: simulations, traces and evaluations

https://www.agno.com/blog/3-ways-to-improve-agents
1•ashpreet-bedi•6m ago•0 comments

Show HN: StatsD inspired, PostgreSQL-native plugin. 1B metrics/second

https://statpg.com/
1•normalocity•6m ago•0 comments

How to read distributed traces when you didn't write the code

https://newsletter.signoz.io/p/how-to-read-distributed-traces-when
1•mooreds•6m ago•0 comments

A New Map of 'Empty' Space Challenges a Tranquil Picture of the Galaxy

https://www.quantamagazine.org/a-new-map-of-empty-space-challenges-a-tranquil-picture-of-the-gala...
1•acossta•6m ago•0 comments

Historical www-talk archives made complete

https://www.w3.org/blog/2026/historical-www-talk-archives-made-complete/
1•cxr•7m ago•0 comments

Cost of living protests to spread to Germany and reignite in France on Halloween

https://www.theguardian.com/world/2026/oct/30/cost-of-living-protests-to-spread-to-germany-and-re...
1•robtherobber•9m ago•0 comments

An intertwined short and long gamma-ray burst with a 4-minute separation

https://www.nature.com/articles/s41550-026-03007-0
1•tomiplaz•10m ago•1 comments

Ask HN: What's missing for a true deterministic abstraction layer?

1•jeanpah•11m ago•0 comments

Improved Reflective Shadow Maps

https://graphics-programming.org/blog/improved-reflective-shadow-maps
1•ibobev•12m ago•0 comments

Microfacet BRDFs from Scratch

https://graphics-programming.org/blog/microfacet-brdfs-from-scratch
2•ibobev•12m ago•0 comments

VictoriaLogs vs. Loki, Elasticsearch, OpenSearch, SigNoz and ClickStack

https://victoriametrics.com/blog/structured-log-ingestion-benchmark/index.html
1•ibobev•13m ago•0 comments

GM to pay $220M after selling customer Smart Driver data

https://arstechnica.com/cars/2026/10/gm-to-pay-220-million-after-selling-customer-smart-driver-data/
2•sgiannopoulos•13m ago•0 comments

Binance cofounder Changpeng Zhao asks Elon Musk for 'respect'

https://www.cnbc.com/2026/10/30/binance-hack-elon-musk-tesla-spacex.html
1•Betelbuddy•13m ago•0 comments

Claude subscription working in OpenCode again

https://twitter.com/ryanvogel/status/2116195014959038873
1•ryanvogel•14m ago•0 comments

My Favorite Dumb Machines

https://spader.zone/dumb/
1•dboon•14m ago•0 comments

Annual US debt interest cost

https://usdebt.watch/
1•nviennot•14m ago•1 comments

Nscale's $35B IPO includes a $3B deal with Nvidia

https://fortune.com/2026/09/21/nscale-35-billion-ipo-nvidia-going-concern/
1•grey-area•14m ago•0 comments

US tech stocks see sharp falls over AI cost fears

https://www.bbc.co.uk/news/articles/cvwy72e0n72yo
7•mindracer•14m ago•1 comments

Even birds get jet lagged, study shows

https://www.npr.org/2026/10/29/nx-s1-6019228/manx-shearwater-jet-lag-birds
2•Brajeshwar•14m ago•0 comments

I Covered the Tiananmen Square Massacre. It Still Weighs on Me

https://www.nytimes.com/2026/10/30/world/asia/china-tiananmen-kristof.html
2•reaperducer•16m ago•0 comments

One Company's AI Mistake

https://boostedcode.com/blog/this-companys-ai-mistake/
1•redsymbol•17m ago•0 comments

About the Feed Composition Database

https://animalnutrition.org/about-feed-comp-db
1•mooreds•19m ago•0 comments

Cloudflare services for Private Origins now generally available

https://blog.cloudflare.com/private-origins-public-to-private/
4•codegeek•20m ago•0 comments

A primer on neuron replacement therapies

https://www.neuroai.science/p/a-primer-on-neuron-replacement-therapies
1•pminimax•21m ago•0 comments

Wd-Provenance

https://github.com/altilunium/wd-provenance
1•altilunium•22m ago•0 comments

The backdoored Claude Code 2.1.313 build in Cursor's marketplace, explained

https://theainewsreport.com/2026-10-30-cursor-claude-code-2-1-313-backdoor-explained.html
2•titusblair•23m ago•0 comments

Reddit stock today -28.46%, Bot/ghost town light in users

https://www.cnbc.com/video/2026/10/29/reddit-shares-fall-double-digits-on-lighter-than-expected-d...
4•trilogic•24m ago•1 comments

Go program are vulnerable to CVE-2026-98432 (Linux TCP Use-After-Free)

https://groups.google.com/g/golang-announce/c/PCoQcdxoScw?pli=1
4•santiago-pl•24m ago•2 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y ago
I'd like to do some statistics over the machine code gcc generates, such as a histogram of used instructions, average volatile/preserved registers usage of functions etc. For now just x86_64 SysV-ABI would be enough.

However I'm not aware of any pre-existing tool that lets me easily do this. The options I currently see are either make gcc output assembly and write a parser for the GNU Assembler format (possibly by reusing the asm-parser of the compiler-explorer project), or write a tool that reads (disassembles) object files directly using elfutils.

Any hints, prior work, further ideas, links to useful resources, or any other kind of help would be much appreciated.

Comments

baobun•1y ago
"Static analysis" should be a relevant search term. Assuming you don't need to tie the instructions back to C code then the "gcc" part seems circumstancial for implementation? I guess you might want to parse the ASM into an Abstract Syntax Tree (AST) represenation and work on that?

If you do want to tie it back to the source, this looks relevant: http://icps.u-strasbg.fr/~pop/gcc-ast.html

phafu•1y ago
For my purpose I don't need to get back to the original source, no.

The gcc part is only relevant with regards to what dialect of assembler I need to parse. If I go that route, I'd write a parser for the GNU assembler, and that would of course work with any code in that dialect, regardless from which compiler it came from (I haven't checked whether other compilers can produce GNU assembler though).