SADev retweeted
Beautiful, this is exactly why I’m building Deslop. Every bit of duplicate code you clean up is fewer bugs, less tokens and less cognitive load.
Thanks @johnjkattenhorn
I spent this morning trying Deslop (deslop.live/), a duplicate-code finder built by my friend @CFDevelop .
I ran it across something I'm build for my agent-practice monorepo: TypeScript server and web app, Python tooling, 61k lines.
The plain scan is fast and useful so can be used on a CI step.
Here's what it found:
- 341 files in about 6 seconds, ranked worst first, with HTML, JSON and text reports.
- 534 groups of duplicated code, 9.5% of lines.
- Its top hit was a 2,000-line protocol file we copy on purpose. One exclude line fixes that.
- The real finds were in production code. One response-handling block was copied across three API routes, and one data-polling hook was copied in two views. Both fold into a single function.
It compares syntax trees, not lines, so it catches renamed copies and not just pasted ones.
It compares syntax trees, not lines, so it catches renamed copies and not just pasted ones.
It also has an MCP server, so a coding agent can check before it writes. I gave Claude Code a hook it was about to write, and find-similar pointed it straight at the existing copy.
That's the "don't write a third one" loop I want in every agent session.
The optional embedding layer looks for code that does the same thing but is written differently.
- I pointed it at Ollama (nomic-embed-text) on my homelab GPU.
- It found something the plain scan couldn't: two versions of the same git helper in two different reporters, written in different styles.
- That costs about 20 minutes on a first run against 6 seconds, but its cache makes a second run's embeddings almost free.
It take a far while to run with embeddings so I'll run it as a review, not as a CI gate.
Definitely sorth a run on your own repo:
github.com/Nimblesite/Deslop
SADev retweeted
I added C support to Deslop and added walkthrough videos on each of the docs pages. This really helps to show you how Deslop works. This is the one tool you absolutely need in the AI era
deslop.live/docs/research-ba…
SADev retweeted
This tutorial shows you how to build an app that casts MP3 audio to your TV with algebraic effects. Like and subscribe for more Osprey content
youtu.be/bwaDoJf0DNM
SADev retweeted
Osprey is heating up
Come and join the Discord server to chat about the language and building programming languages in general
discord.gg/eK6X3BjRP
SADev retweeted
My first 100% handwritten blog post in a while
christianfindlay.com/blog/fu…
SADev retweeted
This is for my F# peeps
Fuck yeah 👍
sharplsp.dev/docs/fsharp-pro…
Replying to @CFDevelop
"SharpLsp's profiler attaches to the .NET runtime, not to a language, so an F# program gets everything a C# program gets"
Very nice
2
203






