frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Def3r/haka: A lightweight, fast and plugable hotkey utility

https://github.com/def3r/haka
1•ankitg12•4m ago•0 comments

Beer.drv.drv.drv

https://fzakaria.com/2026/11/14/beer-drv-drv-drv
1•birdculture•4m ago•0 comments

Ops Needs Friction

https://www.jeffgeerling.com/blog/2026/ops-needs-friction/
1•dverlaeckt80•4m ago•0 comments

OpenAI sued by California over Hugging Face attack

https://www.bbc.com/news/articles/c6wy4xv2mxglo
1•vrganj•5m ago•0 comments

Brian Eno's idea of Scenius – visualised

https://www.neil-scott.com/scenius/
1•f91w•5m ago•0 comments

Quality IMAP, Part 1: Your Mailbox Is a Database

https://aerogramme.deuxfleurs.fr/blog/2026-quality-imap-part-1/
1•dverlaeckt80•5m ago•0 comments

Show HN: Call Nara. An AI voice companion built with older people in mind

https://apps.apple.com/au/app/call-nara/id6794990805
1•anthonyjg_sec•7m ago•0 comments

The founder of Teenage Engineering opens up to his creative space (2022)

https://scandinavianmind.com/human-touch-interview-jesper-kouthoofd-teenage-engineering/
1•tosh•9m ago•0 comments

Try Pragtical – Fast, extensible C and Lua code editor in the browser

https://pragtical.dev/try-it
1•rd07•10m ago•0 comments

Leak of 15M Deutsche Bank files exposes systemic failures

https://www.ft.com/content/df518845-ed97-4a38-8a38-7fa9d4d24003
2•petethomas•10m ago•0 comments

Coding Agents Underestimate the Cost of Code They Own

https://ben3d.ca/blog/coding-agents-underestimate-the-cost-of-code
1•sebg•19m ago•0 comments

A new evolution of databases: Self learning Databases

https://heatherdb.com/
1•nguthiru•20m ago•0 comments

Oxide Integrates Micron Memory and Storage into Its Cloud Computer

https://oxide.computer/blog/oxide-micron-second-generation-cloud-computer
1•tosh•24m ago•0 comments

OVH announces Olala mini 7A1B

https://corporate.ovhcloud.com/en-ie/newsroom/news/ovh-olala-mini/
4•Nico2706•29m ago•1 comments

Ask HN: Syncthing

2•bikvfeee•29m ago•0 comments

Building trade desk – Using agents to trade all possible markets

https://www.sayantan.sh/blog/hood-agent
1•sayantan317•31m ago•1 comments

The METR Graph, Updated

https://twitter.com/ben_j_todd/status/2122318704260403562/photo/1
2•simonebrunozzi•32m ago•0 comments

Joyce in Bloom (2011)

https://www.vanityfair.com/culture/2004/06/hitchens-200406
1•hamonrxe•35m ago•0 comments

Meta built TLX, a GPU compiler extension for Triton

https://engineering.fb.com/2026/11/10/open-source/tlx-a-hardware-native-gpu-compiler-for-producti...
1•fourfire•35m ago•0 comments

Redict Is Deprecated

https://redict.io/posts/2026-11-17-redict-deprecated/
2•progval•36m ago•0 comments

Show HN: AI Agent Infrastructure and Memory Compaction Specifications

https://github.com/grfdsasdvef/awesome-ai-agent-infrastructure
1•snowdensay•40m ago•0 comments

Run your FreeBSD services from one console

https://jailops.net/
2•root420•43m ago•0 comments

A Deep Dive into Building the Pylyzer-Zed Language Server Extension

https://medium.com/@therealcomtom/extending-zed-a-deep-dive-into-building-the-pylyzer-zed-languag...
1•comtom•43m ago•0 comments

Show HN: Lantern – desktop app that maps your repo and reviews AI-written PRs

https://github.com/MobileReality/lantern
2•gitsad•44m ago•0 comments

Chasing Ghosts in the Machine: Debugging a File Descriptor Leak in Exchangelib

https://medium.com/@therealcomtom/chasing-ghosts-in-the-machine-debugging-a-file-descriptor-leak-...
1•comtom•45m ago•0 comments

Detroit bus drivers get training to accommodate horses

https://apnews.com/video/city-of-detroit-says-drivers-will-get-additional-training-after-horses-w...
3•illidan1000•47m ago•2 comments

Autopilot: Use whichever AI model you want, with one coding-agent interface

https://github.com/directionally-local/autopilot
1•doppp•48m ago•0 comments

C++ Proposal: break label; and continue label;

https://eisenwave.github.io/cpp-proposals/break-continue-label.html
1•qtqtqt•48m ago•0 comments

Trump: I don't take any responsibility

https://bsky.app/profile/atrupar.com/post/3n2grgyw3u32e
1•o_-_o•48m ago•0 comments

What should an agent memory leaderboard measure beyond recall?

https://x.com/AgentMemoryL/
1•SndOfViento•50m ago•1 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).