frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Hugging Face attack surprised me

https://www.planned-obsolescence.org/p/the-hugging-face-attack-surprised
1•divbzero•6s ago•0 comments

Wyoming governor requests investigation into activity of DOJ election monitors

https://www.wral.com/news/ap/3d454-wyoming-governor-requests-investigation-into-activity-of-justi...
1•hn_acker•54s ago•1 comments

The Patterns of Startup Failure

https://www.nfx.com/post/hidden-patterns-startup-failure
2•rzk•3m ago•0 comments

A Tale of Two Coding Subscriptions

https://insufferable.dev/posts/a-tale-of-two-coding-subscriptions/
1•allisdust•3m ago•0 comments

Silicon Valley's simulation idea is old and dull

https://www.economist.com/united-states/2026/08/29/checks-and-balance-newsletter-silicon-valleys-...
1•andsoitis•6m ago•0 comments

Show HN: OutFund – a leaderboard where indie projects can raise funds

https://outfund.lol/
1•Fotis-Karmpas•6m ago•1 comments

Solar Has Crossed a Critical Economic Tipping Point

https://oilprice.com/Alternative-Energy/Solar-Energy/Solar-Has-Crossed-a-Critical-Economic-Tippin...
1•thelastgallon•6m ago•0 comments

Cool little hack using Claude Code watching files with tail -f

1•dataviz1000•6m ago•0 comments

Hours unattended: the memory bugs that broke my autonomous coding agent

https://eltoncherrington.github.io/memctl-shop/essay.html
1•memctlagent2026•7m ago•0 comments

Collapse in Support for AI Data Centers Captured in New Poll

https://www.commondreams.org/news/data-center-poll-collapse
2•hn_acker•8m ago•2 comments

Debian Votes to Allow "Responsible Use of Generative AI"

https://www.phoronix.com/news/Debian-Votes-Responsible-AI-Use
1•guerby•9m ago•3 comments

My contribution: PolyDB – one database for agents, instead of five

https://beta.polydb.dev
1•richardwii•11m ago•1 comments

Security scanner for AI agents, MCP servers and agent skills

https://github.com/snyk/agent-scan/
2•saikatsg•13m ago•0 comments

Newly Invented Pixel Could Turn Screens into Cameras

https://gizmodo.com/newly-invented-pixel-could-turn-screens-into-cameras-2000777917
3•vinnyglennon•14m ago•1 comments

Observational reconstruction, then the inverse problem

https://seldon-ai.com/blog/reconstructing-agentic-workflows-from-traces
1•nlpnerd•14m ago•0 comments

How Sleep Optimization Can Backfire

https://moreisdifferent.blog/p/how-sleep-hygiene-and-sleep-optimization
1•delton137•17m ago•1 comments

BROCS: The framework for enterprise AI enablement

https://brocs.fyi
4•powvans•22m ago•1 comments

Stratum 1 PTP grandmaster and router for $150

https://opscode.io/posts/ptp-grandmaster-r5s-nanopi/
2•malcolmfrazier•22m ago•0 comments

Amlc – fhe compiler where the noise budget is a static value of the type sys

https://github.com/octra-labs/amlc
2•0x0ffh_local•23m ago•0 comments

Show HN: Snaketron – Competitive multiplayer Snake. Back after 14 years

https://snaketron.io
3•lopatin•25m ago•0 comments

Agents. Your Controls

https://gryph.sh/
2•kunalsin9h•26m ago•0 comments

Show HN: Nohtml.felixs.eu

https://nohtml.felixs.eu
2•felixseu•30m ago•0 comments

With the snip of a gene, scientists hope to erase high cholesterol for life

https://www.cnn.com/2026/08/28/health/gene-editing-cholesterol-study-wellness
3•bushwart•31m ago•0 comments

Agentic SQL for Free with Qwen3.8 27B and DuckDB

https://motherduck.com/blog/Agentic-SQL-for-Free-with-Qwen3.8-27B-and-DuckDB/
3•tosh•32m ago•0 comments

Has vibecoding fried your brain?

https://codeset.ai/fried
1•andre15silva•33m ago•0 comments

Google Maps Faces Fury for Caving to Trump

https://www.thedailybeast.com/google-maps-faces-fury-for-caving-to-trumps-lake-america-demand/
6•rayrey•35m ago•4 comments

Icelanders say no to restarting talks to join the EU

https://www.politico.eu/article/icelanders-say-no-to-restarting-talks-to-join-the-eu/
3•mikhael•36m ago•2 comments

European Commission Revives Push for Encryption Backdoors in ProtectEU Strategy

https://reclaimthenet.org/eu-protecteu-strategy-encryption-backdoor-law-enforcement
20•nickslaughter02•37m ago•5 comments

An interesting website, looks like AI companion but only voice

https://hers-site.vercel.app/
1•Jamessfks123•37m ago•2 comments

Show HN: Mktero – a source-linked Markdown reader for Zotero

https://github.com/tenglvjun/mktero
1•tenglvjun•38m 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).