frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Spirit Airlines shuts down; says it can't keep up with higher oil prices

https://apnews.com/article/spirit-airlines-trump-bailout-bankruptcy-37a4818e1b71c0905d022f669d85948c
1•ZeidJ•3m ago•0 comments

Big Tech cut 80k jobs, blamed AI; experts say firms are overstaffed 25%-75%

https://finance.yahoo.com/sectors/technology/articles/big-tech-cut-80-000-211500038.html
1•ZeidJ•6m ago•0 comments

Show HN: Sync agent skills across devices, projects or teams

https://privateaiskills.com/
1•arewethereyeta•10m ago•0 comments

Cozy.Talk – Old web inspired discussion community

https://cozy.talk/
2•rickcarlino•10m ago•0 comments

Ex-DeepMind David Silver Raises $1.1B for AI Startup Ineffable

https://www.cnbc.com/2026/04/27/deepmind-ineffable-intelligence-record-seed-funding-nvidia-google...
1•gmays•29m ago•0 comments

Coffee appears to rewire the gut-brain connection

https://www.sciencedaily.com/releases/2026/05/260502233911.htm
5•loh•37m ago•1 comments

Show HN: Interactive Marimo Moss Ball

https://github.com/ledhieu/imoss
1•ldhieu•39m ago•0 comments

Nerves in Skin Can Slow Melanoma Growth

https://news.weill.cornell.edu/news/2026/04/nerves-in-skin-can-slow-melanoma-growth
1•gmays•39m ago•0 comments

Ask HN: Do you feel reading AI generated readme tiring?

4•maytc•39m ago•1 comments

Verleer – Learn a language from any content

https://verleer.com
1•CallMePapi-_-•41m ago•0 comments

Pilots Shut Off Both Engines Before China Eastern 737 Crash

https://viewfromthewing.com/pilots-shut-off-both-engines-before-china-eastern-737-crash-china-cit...
2•qsi•50m ago•3 comments

Letters from Steve

https://davidgelphman.wordpress.com/2013/03/29/2-letters-from-steve/
2•prawn•58m ago•0 comments

ChatGPT Wrestles with Its Most Chilling Conversation: How Do I Plan an Attack?

https://www.wsj.com/us-news/chatgpt-mass-shooting-openai-78a436d1
2•Brajeshwar•1h ago•1 comments

OpenAI Codex system includes explicit directive to "never talk about goblins"

https://arstechnica.com/ai/2026/04/openai-codex-system-prompt-includes-explicit-directive-to-neve...
4•randycupertino•1h ago•3 comments

Checkpoint/Restore in Userspace (CRIU)

https://criu.org/Main_Page
1•htfy96•1h ago•0 comments

OpenJDK 25 Security Update Released

https://tux.re/forum/viewtopic.php?t=222
1•sys3000•1h ago•0 comments

Enabling Monoglot Programming

https://www.humprog.org/~stephen/blog/research/enabling-monoglot-programming.html
1•htfy96•1h ago•0 comments

The Shape of a Guitar Pick

https://www.johndcook.com/blog/2026/05/03/guitar-pick/
2•malshe•1h ago•0 comments

Quantum teleportation between two quantum dots demonstrated over 270M

https://www.sciencedaily.com/releases/2026/04/260429102030.htm
1•thegdsks•1h ago•0 comments

Ask HN: Does Claude Code succeed after being asked "should we give up?" for you?

5•webwielder2•1h ago•0 comments

Show HN VibeAI FoldSpace by HugonomySystems

https://hugonomy.com/
2•GlyphWeaver_a•1h ago•0 comments

Scientists discover 27 potential new planets that orbit two stars

https://www.theguardian.com/science/2026/may/04/scientists-discover-27-potential-new-planets
4•nhatcher•1h ago•0 comments

Make some art with your phone sensors

https://tautme.github.io/phone-sensors/sensor-etch.html
1•adm4•1h ago•0 comments

Why Almost Everyone Loses on Prediction Markets

https://www.wsj.com/finance/investing/polymarket-kalshi-betting-profits-prediction-markets-eb23ac11
3•tysone•1h ago•0 comments

Don't fly if you can help it

https://michaelbluejay.com/airfare/dontfly.html
1•cxr•1h ago•2 comments

The Rise of Emotional Surveillance

https://www.theatlantic.com/culture/2026/05/worker-surveillance-emotion-ai/687029/
2•eloisius•1h ago•0 comments

Show HN: ReflowPDF – wrote a layout engine because every PDF library failed

https://reflowpdf.com
1•exsol•1h ago•0 comments

Think pop music is basic? Even classical and jazz are getting less complex

https://connectsci.au/news/news-parent/9259/Think-pop-music-is-basic-Even-classical-and-jazz
3•gmays•1h ago•1 comments

Shoppers falsely identified by facial recognition system

https://www.theguardian.com/technology/2026/may/03/guilty-until-proven-innocent-shoppers-falsely-...
2•kayfox•1h ago•0 comments

GameStop Proposes to Acquire eBay at $125.00 per Share

https://investor.gamestop.com/news-releases/news-details/2026/GameStop-Proposes-to-Acquire-eBay-a...
5•tech234a•1h ago•3 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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