frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Why dead code detection in Python is harder than most tools admit

2•duriantaco•1h ago
I’ve been thinking about why dead code detection (and static analysis in general) feels so unreliable in Python compared to other languages. I understand that Python is generally dynamic in nature.

In theory it should be simple(again in theory): parse the AST, build a call graph, find symbols with zero references. In practice it breaks down quickly because of many things like:

1. dynamic dispatch (getattr, registries, plugin systems)

2. framework entrypoints (Flask/FastAPI routes, Django views, pytest fixtures)

3. decorators and implicit naming conventions

4. code invoked only via tests or runtime configuration

Most tools seem to pick one of two bad tradeoffs:

1. be conservative and miss lots of genuinely dead code

or

2. be aggressive and flag false positives that people stop trusting

What’s worked best for me so far is treating the code as sort of a confidence score, plus some layering in limited runtime info (e.g. what actually executed during tests) instead of relying on 100% static analysis.

Curious how others handle this in real codebases..

Do yall just accept false positives? or do yall ignore dead code detection entirely? have anyone seen approaches that actually scale? I am aware that sonarqube is very noisy.

I built a library with a vsce extension, mainly to explore these tradeoffs (link below if relevant), but I’m more interested in how others think about the problem. Also hope I'm in the right channel

Repo for context: https://github.com/duriantaco/skylos

Gartner hype cycles are pure mythology

1•cadabrabra•1m ago•0 comments

Using Interpretability to Identify a Novel Class of Alzheimer's Biomarkers

https://www.goodfire.ai/research/interpretability-for-alzheimers-detection
1•keeda•8m ago•1 comments

Mattias Krantz Built a Guitar Held Together by Magnets with Strings That Float

https://www.techeblog.com/magnetically-hovering-guitar-strings-mattias-krantz/
1•1659447091•8m ago•0 comments

Coding Trance Music from Scratch (Again) [video]

https://www.youtube.com/watch?v=iu5rnQkfO6M
1•1659447091•15m ago•0 comments

Aisurf

https://aisurf.app
1•fipra69•17m ago•0 comments

A Frustrated Openclawer Ended Up Building a Headless Mac Utility

https://macmate.app/about
1•auxten•17m ago•0 comments

Malicious MoltBot skills used to push password-stealing malware

https://www.bleepingcomputer.com/news/security/malicious-moltbot-skills-used-to-push-password-ste...
1•Gaishan•20m ago•0 comments

ClawXiv

https://www.clawxiv.org/
2•m-hodges•26m ago•0 comments

Energy Return on Investment

https://en.wikipedia.org/wiki/Energy_return_on_investment
2•marklit•27m ago•0 comments

Everything I've Done with OpenClaw (So Far)

https://madebynathan.com/2026/02/03/everything-ive-done-with-openclaw-so-far/
3•nathan_f77•31m ago•0 comments

Poll: Are you for AI or against AI?

2•andrewstuart•36m ago•3 comments

Curiosity Protects Against Interpersonal Aggression

https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1467-6494.2012.00783.x
2•toomuchtodo•44m ago•1 comments

Show HN: Riff – a platform for justifying and approving high quality decisions

https://www.letsriff.ai/
4•wheresclark•50m ago•1 comments

I built Free Wealth Tracker especially tailored for Indian investors

https://icorpus.vercel.app/
1•mathan_karthik•52m ago•0 comments

A Man Who Legally Cheated Three Casinos Out of $15M [video]

https://www.youtube.com/watch?v=gy3kbrmm4R0
3•vinnyglennon•52m ago•0 comments

Figure skater forced to scrap Olympic routine after Minions copyright dispute

https://www.theguardian.com/sport/2026/feb/03/figure-skating-minions-music-copyright-olympics
2•Insanity•53m ago•1 comments

China's Renewable Energy Revolution Is a Mess That Might Save the World

https://www.wired.com/story/china-renewable-energy-revolution/
3•xbmcuser•55m ago•0 comments

Show HN: ClawGate: Capability-based file access for isolated AI agents

https://clawgate.io
1•m64-64•56m ago•1 comments

Floppinux – An Embedded Linux on a Single Floppy, 2025 Edition

https://krzysztofjankowski.com/floppinux/floppinux-2025.html
30•GalaxySnail•58m ago•9 comments

Web Security: The Modern Browser Model

https://nemorize.com/roadmaps/web-security-the-modern-browser-model
1•reverseblade2•58m ago•0 comments

The Impatient Programmer's Guide to Bevy and Rust: Ch. 7 – Let There Be Enemies

https://aibodh.com/posts/bevy-rust-game-development-chapter-7/
1•kelvie•1h ago•0 comments

Coding assistants are solving the wrong problem

https://www.bicameral-ai.com/blog/introducing-bicameral
3•jinhkuan•1h ago•0 comments

Ask HN: Request limits vs. token limits for AI-powered apps?

2•JeduDev•1h ago•0 comments

Ask HN: Tell me about your internal tools

3•doawoo•1h ago•0 comments

Prompt and Context Engineering App – My First SaaS Launch – ImPromptr

https://impromptr.com
1•saddatahmad•1h ago•0 comments

Planning-with-files: Claude Code skill implementing Manus-style workflow

https://github.com/OthmanAdi/planning-with-files
1•rahimnathwani•1h ago•0 comments

Ask HN: Is anyone losing sleep over retry storms or partial API outages?

2•rjpruitt16•1h ago•0 comments

Use Less Shit

https://uselessshit.org/
3•cvalka•1h ago•0 comments

A Pragmatic VLA Foundation Model

https://arxiv.org/abs/2601.18692
1•mountainview•1h ago•0 comments

Taiwan's orange travel alert for Hong Kong, Macau remains for Lunar New Year

https://www.taiwannews.com.tw/news/6294341
2•maxloh•1h ago•0 comments