frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Lambada is now the official dance of the US

http://www.lambadaforever.com/news/2026/03/31
1•iugtmkbdfil834•37s ago•0 comments

Show HN: WordBattle – Daily word game where AI agents compete against humans

2•bradleybeddoes•2m ago•0 comments

Show HN: RFC Esolang – RFCs as executable programs

https://seriot.ch/rfc/
1•beefburger•4m ago•0 comments

Apple's 50 Years of Integration

https://stratechery.com/2026/apples-50-years-of-integration/
1•jonbaer•4m ago•0 comments

Mistral AI Workflows

https://docs.mistral.ai/workflows/getting-started/introduction
1•pember•6m ago•0 comments

Paris redesigned itself to be a city of bikes–not cars

https://www.fastcompany.com/91509506/how-paris-redesigned-itself-to-be-a-city-of-bikes-not-cars
1•camkego•6m ago•0 comments

GitHub DMCA Notices to Anthropic Claude Code Repos

https://github.com/github/dmca/blob/master/2026/03/2026-03-31-anthropic.md
2•alexpadula•7m ago•2 comments

Chess in Pure SQL

https://www.dbpro.app/blog/chess-in-pure-sql
2•jonbaer•7m ago•0 comments

Caltech Researchers Claim Compression of High-Fidelity AI Models

https://www.wsj.com/cio-journal/caltech-researchers-claim-radical-compression-of-high-fidelity-ai...
2•jonbaer•8m ago•2 comments

Mad Bugs: Claude Wrote a Full FreeBSD Remote Kernel RCE with Root Shell

https://blog.calif.io/p/mad-bugs-claude-wrote-a-full-freebsd
1•dnqthao•18m ago•0 comments

China can survive without the Strait of Hormuz

https://www.reuters.com/graphics/IRAN-CRISIS/CHINA-OIL/egpbeormkvq/
4•giuliomagnifico•22m ago•0 comments

Beyond Bestsellers: How We're Teaching IKEA's Recommender to Think Differently

https://medium.com/flat-pack-tech/beyond-the-bestsellers-how-were-teaching-ikea-s-recommender-to-...
1•robin_reala•25m ago•0 comments

Claude Code Leaks

https://github.com/rosaboyle/awesome-cc-oss
1•dheerajmp•26m ago•1 comments

Mad Bugs: Vim vs. Emacs vs. Claude

https://blog.calif.io/p/mad-bugs-vim-vs-emacs-vs-claude
14•Munksgaard•30m ago•1 comments

NASA: Artemis II Live Views from Orion

https://www.youtube.com/watch?v=6RwfNBtepa4
1•nstj•30m ago•0 comments

The World Sees Trump's America as a Sad Joke

https://newrepublic.com/article/205701/europe-american-decline-trump-greenland
2•chmaynard•30m ago•0 comments

TuxCraft – easy open-source tool to run Minecraft servers

1•Cheesehamster•31m ago•0 comments

The most-disliked people in the publishing industry

https://www.woman-of-letters.com/p/the-most-disliked-people-in-the-publishing
2•Caiero•31m ago•0 comments

How do the likely/unlikely macros in the Linux kernel work?

https://stackoverflow.com/questions/109710/how-do-the-likely-unlikely-macros-in-the-linux-kernel-...
2•tosh•37m ago•0 comments

NumPy as Synth Engine

https://kennethreitz.org/essays/2026-03-29-numpy_as_synth_engine
1•signa11•37m ago•0 comments

The potential of erroneous outbound traffic

https://blog.apnic.net/2026/04/01/the-potential-of-erroneous-outbound-traffic/
1•jruohonen•40m ago•0 comments

Why heroism is bad, and what we can do to stop it

https://sre.google/resources/practices-and-processes/no-heroes/
2•walterbell•41m ago•2 comments

When AI Fails

https://whenaifail.com/
1•clubdorothe•43m ago•0 comments

Microsoft closes worst quarter since 2008: 'Redmond is in a pickle'

https://www.cnbc.com/2026/03/31/microsofts-stock-closes-worst-quarter-since-2008-financial-crisis...
2•1vuio0pswjnm7•44m ago•2 comments

Multi-agent systems have a distributed systems problem

https://christophermeiklejohn.com/ai/agents/distributed/zabriskie/2026/03/30/multi-agent-systems-...
2•azhenley•45m ago•0 comments

Index providers shouldn't bend the rules for Elon Musk

https://economist.com/leaders/2026/03/31/index-providers-shouldnt-bend-the-rules-for-elon-musk
4•andsoitis•46m ago•1 comments

From Organizational Hierarchy to Intelligence

https://block.xyz/inside/from-hierarchy-to-intelligence
1•walterbell•49m ago•0 comments

Dnf5-ageist: Age verification for DNF5 [video]

https://www.youtube.com/watch?v=flH17X32MrY
1•goode•50m ago•0 comments

Ask HN: Is weird it that Anthropic raised my API limit from $500/mo to $200k?

1•noduerme•51m ago•1 comments

Better Blog AI | Automated Blog publishing to any CMS

https://betterblogai.com
1•leula_t•54m ago•2 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo 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•10mo 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•10mo 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).