frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Fun with Algebraic Effects – From Toy Examples to Hardcaml Simulations

https://blog.janestreet.com/fun-with-algebraic-effects-hardcaml/
1•agluszak•31s ago•0 comments

Third Pole

https://en.wikipedia.org/wiki/Third_Pole
1•vismit2000•1m ago•0 comments

One pixel attack for fooling deep neural networks

https://arxiv.org/abs/1710.08864
1•rafaepta•1m ago•0 comments

US to slash routine vaccine recommendations for children

https://www.theguardian.com/society/2026/jan/05/trump-rfk-jr-child-vaccine-recommendations
1•LopRabbit•2m ago•0 comments

Show HN: Fin2cents – Portfolio simulator I built because quant ≠ good investor

https://www.fin2cents.com/
1•amywangyx•5m ago•1 comments

Shelfware

https://en.wikipedia.org/wiki/Shelfware
1•chatmasta•7m ago•0 comments

Doom on a Cooking Pot by Aaron Christophel

https://www.youtube.com/watch?v=V5Jtc7wTbQ8
1•wewewedxfgdf•8m ago•0 comments

Academia and FOSS – an eOn case-study

https://rgoswami.me/posts/eon-acad-foss/
1•HaoZeke•9m ago•0 comments

Making Redstone circuits with SAT solvers

https://alloc.dev/2026/01/09/redstone_from_sat
1•Retro_Dev•10m ago•0 comments

Natural daylight during office hours improves glucose control

https://www.sciencedirect.com/science/article/pii/S1550413125004905
1•PaulHoule•10m ago•0 comments

Final Steps Underway for NASA's First Crewed Artemis Moon Mission

https://www.nasa.gov/missions/artemis/artemis-2/final-steps-underway-for-nasas-first-crewed-artem...
2•italophil•12m ago•1 comments

PowRSS – a blog directory for the indie web

https://powrss.com/
1•Curiositry•12m ago•0 comments

Don't believe "software never fails"

https://www.slater.dev/2026/01/dont-believe-software-never-fails/
2•sltr•13m ago•0 comments

AI Plays Rollercoaster Tycoon

https://labs.ramp.com/rct
1•kylejrp•14m ago•0 comments

Used Abused to I don't exist they own me. me

1•NewUSAisReal•15m ago•0 comments

Free Software

https://www.fsf.org/
1•Mdbabo•16m ago•0 comments

Google AI generating regular expressions = fail

1•prirun•17m ago•0 comments

Tessellated Materials

https://tessellated-materials.mpikg.mpg.de
1•twalichiewicz•18m ago•0 comments

Seeking mentees: new techniques for model diffing and data attribution

https://sparai.org/projects/sp26/recOtYE5Pujj6ddN1/
1•aranguri•18m ago•0 comments

Show HN: Visionary AI Video Generator – Create cinematic videos from text

https://visionaryvideo.app/
1•aykuty•19m ago•0 comments

Seeking mentees: richer evals to address reward hacking and eval awareness

https://sparai.org/projects/sp26/recYx6pnyHAzhPhAy/
1•aranguri•20m ago•0 comments

Show HN: Viidx – AI video generation with Reference-to-Video and Frame control

https://viidx.com
1•qinggeng•22m ago•0 comments

Why the French don't obsess over purpose

https://theparisialite.substack.com/p/why-the-french-dont-obsess-over-purpose
2•kirso•23m ago•1 comments

Show HN: Turn any topic into a 3Blue1Brown-style video

https://github.com/mateolafalce/topic2manim
1•lafalce•26m ago•0 comments

After planning, work history scatters across tools and people's heads

1•aryan_192002•27m ago•0 comments

UK threatened with sanctions if Starmer bans X

https://www.telegraph.co.uk/business/2026/01/09/uk-threatened-with-sanctions-if-starmer-bans-x/
1•TheAlchemist•28m ago•0 comments

Not All Browser APIs Are "Web" APIs

https://polypane.app/blog/not-all-browser-apis-are-web-apis/
1•OuterVale•29m ago•0 comments

Asset Hoard – Local-first asset manager for indie game devs (beta)

https://assethoard.com
1•markyg•33m ago•1 comments

Show HN: Awesome-Nanobanana-Prompts

https://github.com/Transcendo/awesome-nanobanana-prompts
1•hellomerlin•35m ago•0 comments

Hush Line review: Accessible whistleblowing platform for journalists and lawyers

https://www.privacyguides.org/posts/2026/01/09/hush-line-review-an-accessible-whistleblowing-plat...
2•evolve2k•36m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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