frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Anthropic's AI models hacked 3 organizations during testing

https://www.politico.com/news/2026/07/30/anthropic-ai-rogue-hacks-01018741
1•tejohnso•3m ago•0 comments

Show HN: Widen – Open-source Mac Postgres GUI with local or cloud text-to-SQL

https://widen.dev/
1•thedreammachine•5m ago•0 comments

Canada celebrates new bridge to US while fighting Trump tariffs

https://apnews.com/article/canada-detroit-new-bridge-4b22dc7fc282467a363a247fe590f334
2•gmays•6m ago•0 comments

'The Boss Wants This Money': Inside Trump's Unprecedented Fundraising Operation

https://www.wsj.com/politics/policy/trump-donations-company-fundraising-1e34a78f
3•petethomas•8m ago•0 comments

Showdown Elo: weighted Elo for baseball

https://showdown.tanji.systems/#almanac
1•merriman-xyz•9m ago•0 comments

OpenAI's Hack of Hugging Face

https://www.newyorker.com/news/the-lede/inside-openai-hack-of-hugging-face
2•bwoah•11m ago•1 comments

Show HN: Stash – native Mac Markdown notes

https://staunchapps.com/stash/
1•andrewjk•15m ago•0 comments

Uefa agrees to boycott FIFA competitions if World Cup sell-off plans proceed

https://www.theguardian.com/football/2026/jul/30/uefa-agrees-to-boycott-fifa-competitions-if-worl...
1•rguiscard•17m ago•0 comments

Iran struck Amazon data centers again amid widening war, satellites show

https://arstechnica.com/gadgets/2026/07/satellites-spot-new-war-damage-to-amazon-data-centers-and...
4•pseudolus•21m ago•0 comments

Strategic Oil Reserves Down to a Record Low Two-Week Supply

2•megamike•22m ago•0 comments

The Biggest Thing We've Lost Since the Early Internet [video]

https://www.youtube.com/watch?v=3CAcB-ORBOE
1•pierres7•23m ago•0 comments

Flock surveillance cameras can pose a crash risk for drivers, US experts say

https://www.theguardian.com/us-news/2026/jul/30/controversial-flock-ai-surveillance-camera-risk
2•pseudolus•23m ago•0 comments

Show HN: Great Spectations, the Spec Checker

https://greatspectations.org
1•RustyRussell•25m ago•0 comments

Anthropic Says Its A.I. Systems Broke into Computers at 3 Organizations

https://www.nytimes.com/2026/07/30/technology/anthropic-ai-hack.html
4•ajax33•28m ago•0 comments

'Lasting peace': Hamas, Trump announce 'complete disarmament'

https://www.theaustralian.com.au/world/hamas-agrees-complete-disarmament-announces-trump/news-sto...
1•asdefghyk•29m ago•4 comments

YC Startup Guaranteed Job Interviews for People Getting Company Logo Tattoo

https://www.wsj.com/lifestyle/careers/the-ai-startup-that-guaranteed-job-interviews-for-people-ge...
5•fortran77•38m ago•3 comments

Reimagine the World with Nano Banana in Google Earth

https://blog.google/products-and-platforms/products/earth/nano-banana-google-earth-image-generation/
3•soheilpro•41m ago•0 comments

Show HN: Real Estate Agent Email List – 1.1M+ US Realtor Contacts

https://www.usagentleads.com
1•qwikhost•42m ago•0 comments

How the HSA Became the Top%'s Wealth-Building Loophole

https://insurancedimes.com/2026/07/27/how-the-hsa-became-the-top-1-percents-ultimate-wealth-build...
2•crookedroad44•43m ago•2 comments

LinkedIn adds a 'seems like AI slop' button

https://www.theverge.com/ai-artificial-intelligence/973384/linkedin-seems-like-ai-slop-button
3•cwnyth•43m ago•0 comments

Refinement types for Rust

https://github.com/flux-rs/flux/
1•AsyncBanana•44m ago•0 comments

What did the Romans ever do for Christianity?

https://www.economist.com/culture/2026/07/23/what-did-the-romans-ever-do-for-christianity
2•andsoitis•50m ago•0 comments

Can LLMs have an "accent" like second language speakers?

1•hmokiguess•50m ago•0 comments

Agentic AI at Two Different Scales: Nanbeige4.2-3B and Laguna S2.1

https://kaitchup.substack.com/p/agentic-ai-at-two-different-scales
1•gmays•51m ago•0 comments

America's startup boom offers hope for the future of work

https://www.economist.com/leaders/2026/07/30/americas-startup-boom-offers-hope-for-the-future-of-...
3•andsoitis•51m ago•0 comments

MAME 0.289

https://www.mamedev.org/?p=565
4•chungy•55m ago•0 comments

Anthropic says Claude hacked three companies during tests

https://www.reuters.com/legal/litigation/anthropic-says-claude-ai-models-accessed-three-companies...
9•nerder92•1h ago•3 comments

DoC Announces LoIs With 7 Companies for $874M to Accelerate Semiconductor R&D

https://www.nist.gov/news-events/news/2026/07/department-commerce-announces-letters-intent-7-comp...
2•petethomas•1h ago•0 comments

Create your own startup in minutes

https://moneion.com
1•Developer_2•1h ago•2 comments

Why do OpenAI's GPT-2 weights beat mine? Part three: testing overtraining

https://www.gilesthomas.com/2026/07/why-do-openai-gpt2-weights-beat-mine-3-overtraining
1•gpjt•1h ago•0 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).