frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: CLI tool for detecting non-exact code duplication with embedding models

https://github.com/rafal-qa/slopo
16•rkochanowski•1h ago

Comments

rkochanowski•1h ago
I built Slopo to solve one specific problem: finding similar code that is hardest to detect by other tools, coding AI agents, and humans.

It finds similar-looking code with embeddings. This detects more than just copy-paste clones or even clones with minor changes. Similar code is often not a clone to refactor, and this is a trade-off. Initial results need to be verified, but coding agents can do this quickly. Example prompts are available on https://slopo.dev

Additionally, similar code distant in the codebase is ranked higher to focus on less obvious duplication.

The results differ a lot depending on the codebase. I noticed that sometimes most of the detected duplicates are false positives, but the remaining ones are strong candidates to refactor or even bugs. Sometimes it reveals much more real duplication.

realxrobau•54m ago
If it did PHP I would love to run it over WordPress. What would it take to add that?
rkochanowski•30m ago
PHP support can be easily added, I will release a new version soon.
raro11•2m ago
Thank you
murats•17m ago
Nice idea. I can see this being useful before refactors, especially when the duplication is semantic rather than copy paste.

Trump gets OpenAI to offer US 5% stake, far lower than Sanders' target

https://arstechnica.com/tech-policy/2026/07/openai-floats-giving-us-5-stake-to-win-over-ai-haters/
1•johnhamlin•58s ago•0 comments

French race to get hold of air conditioning as yet another heatwave looms

https://www.france24.com/en/france/20260702-france-race-get-hold-of-air-conditioning-ac-third-hea...
1•rustoo•1m ago•0 comments

Flexible Metaprogramming with Rhombus

https://lwn.net/SubscriberLink/1079001/67840550991151ed/
1•spdegabrielle•2m ago•0 comments

OpenAI proposed donating 5% of its equity to a US sovereign wealth fund

https://techcrunch.com/2026/07/02/openai-proposed-donating-5-of-its-equity-to-a-us-sovereign-weal...
1•CupofChineseTea•3m ago•0 comments

Mapping the human element of AI risks in an AI world

1•rando77•4m ago•0 comments

Apple Seeks to Buy Chinese-Made Memory Chips by Lobbying US

https://www.bloomberg.com/news/articles/2026-07-01/apple-seeks-to-buy-chinese-made-memory-chips-w...
1•ksec•5m ago•0 comments

Terminal Is Your Newspaper

https://www.sayantan.sh/blog/your-terminal-prints-a-newspaper
2•Morningstar317•5m ago•1 comments

Read the Emails Revealing How Anthropic's Pentagon Relationship Fell Apart

https://www.wsj.com/politics/national-security/read-the-emails-revealing-how-anthropics-pentagon-...
1•thm•5m ago•1 comments

Claude Code SOCKS5 Bypass Shows Why Egress Filters Belong at the Boundary

https://medium.com/@Koukyosyumei/claude-codes-socks5-proxy-bypass-why-egress-filtering-must-happe...
1•syumei•5m ago•0 comments

Ask HN: Who is having any amount of success with Fable?

2•kingforaday•6m ago•0 comments

Show HN: ZkGolf

https://zk.golf/
3•rot256•6m ago•0 comments

AI Refactored a 3-Year Codebase in 20 Minutes–and Nearly Torched a Team

https://guibai.dev/a/7657392618506764326/
1•Soarez•7m ago•0 comments

Measuring Input Latency with VK_EXT_present_timing

https://themaister.net/blog/2026/07/02/my-side-quest-measuring-input-latency-with-vk_ext_present_...
1•ledoge•7m ago•0 comments

Show HN: Inkwell – An RSS reader for e-ink devices

https://kendal.codeberg.page/inkwell/
1•imkendal•8m ago•0 comments

Show HN: Egaki – create videos with code and MDX files

https://egaki.org/docs
1•xmorse•8m ago•0 comments

Turkish comedian Deniz Goktas detained at Istanbul airport

https://www.dw.com/en/turkish-comedian-deniz-goktas-detained-at-istanbul-airport/a-77801569
1•m_a_g•10m ago•1 comments

You can't rely on LLMs to understand the grain of your data

http://www.bioinformaticszen.com/post/llms-dont-understand-the-grain-of-your-data/
1•michaelbarton•10m ago•0 comments

Ditching Vagrant

https://benjamintoll.com/2026/06/29/on-ditching-vagrant/
1•mpweiher•13m ago•0 comments

Unipop: Data Federation and Virtualization Engine

https://github.com/unipop-graph/unipop
1•talhof8•14m ago•0 comments

The US tech sector continues bleeding jobs

https://twitter.com/JosephPolitano/status/2072661351881671138
1•enraged_camel•15m ago•0 comments

I built Vocabulary – a word game

https://www.quizingo.app/blog/how-i-built-vocabulary
1•coder97•15m ago•0 comments

The Math Behind NUMB3RS Archive

https://numb3rs.wolfram.com/
1•altilunium•18m ago•0 comments

Hypermind-Swarm: P2P social network with no servers, no algorithms, no history

https://github.com/lklynet/hypermind-swarm
3•killshot•18m ago•1 comments

Claude Does SEO

https://theautomatedoperator.substack.com/p/claude-does-seo
1•idopmstuff•20m ago•0 comments

Since Linux 6.9, LUKS suspend stopped wiping disk-encryption keys from memory

https://mathstodon.xyz/@iblech/116769502749142438
2•IngoBlechschmid•21m ago•0 comments

Falling fertility on the left as key driver of US birth decline

https://www.nature.com/articles/s41598-026-57582-3
2•geox•21m ago•2 comments

CISA: Microsoft SharePoint RCE flaw now actively exploited

https://www.bleepingcomputer.com/news/security/cisa-microsoft-sharepoint-rce-flaw-now-actively-ex...
1•Brajeshwar•21m ago•0 comments

Cloudflare Workers Build Delays

https://www.cloudflarestatus.com/incidents/2z7ff0166l22
1•infomiho•21m ago•0 comments

Tsunami: The Rescued Dog Saving Lives After Venezuela Earthquakes

https://www.forbes.com/sites/luisromero/2026/07/01/tsunami-the-rescued-dog-saving-lives-after-ven...
1•throwme_123•22m ago•0 comments

Vibe Coded X11 Server Written in Rust Adds Xinerama, FreeBSD Support

https://www.phoronix.com/news/YSERVER-1.3-Released
4•hochmartinez•22m ago•0 comments