Viewing profile — rkochanowski
rkochanowski
HN member- Joined
- Tue, Jun 16, 2026, 7:50 PM UTC
- HN karma
- 45
- Public activity
- 25 items
- HN profile
- View on Hacker News ↗
About rkochanowski
No profile information was provided.
Recent public activity
-
comment
Comment #48784282
Thanks, I will look at this in more detail. To give more context, the current version is already an optimized one I considered good enough and didn't spend more time on it. In the …
-
comment
Comment #48784149
"Non-exact" may be interpreted in different ways, so let's look at the example report: https://github.com/rafal-qa/slopo/tree/main/doc/example-repo... * cluster-01.md has the highe…
-
comment
Comment #48783974
Do you mean to verify if similar code units produce the same result? The goal of the tool is to also detect code that is similar and behaves differently. There are not ideal duplic…
-
comment
Comment #48776358
Slopo doesn't deduplicate. It only reports similar code units, which in most cases are not duplicates. This needs to be cleaned up by the user, which is fast and easy with coding a…
-
comment
Comment #48775992
PHP was added in the latest release.
-
comment
Comment #48775957
Elixir was added in the latest release.
-
comment
Comment #48773050
It can be added with https://pypi.org/project/tree-sitter-elixir/ similar to other languages. I will add this and plan to release a new version today.
-
comment
Comment #48773004
Function level only. I will add more granular chunking in next versions.
-
comment
Comment #48772972
It's the opposite. jscpd is advertised as "Copy/paste detector", Slopo is advertised as "non-exact code duplication". Slopo also detects copy/pasted code, but this is not the main …
-
comment
Comment #48772892
Finding similar code is something different than deduplication, even when the final goal looks similar. Deduplication backend is the easiest part of the tool and it doesn't need an…
-
comment
Comment #48767729
My solution for false positives is simpler: 1. The tool uses only cosine similarity plus boost depending on distance in the codebase. 2. Classification with LLM. This can be done b…
-
comment
Comment #48767415
I just focused on embeddings without comparing them to deterministic solutions. But I plan to do my own analysis of different embedding models in the context of code similarity det…
-
comment
Comment #48767148
Currently, only whole functions (including function-like constructs depending on language) are considered as unit. Skipping the extraction of conditional branches was my decision t…
-
comment
Comment #48766723
Based on your example there is only a single function a() which is embedded. The rest is just a code and dependencies are not resolved. Did you think about adding this feature in y…
-
comment
Comment #48765765
Generally, I chunk by function/method (not by whole class), but different languages have specific concepts and features. Nested code units, anonymous functions, lambdas, closures a…
-
comment
Comment #48765496
There are good mature tools for deterministic duplication detection and I intentionally focused on embedding-based to fill this gap (I didn't find other tools using this approach).…
-
comment
Comment #48765205
Recently there was a popular article on HN saying that sometimes code duplication is better than abstraction, so I assume that this question is not a joke. While testing this tool,…
-
comment
Comment #48764888
No. It depends the most on general code quality and architecture. Some implementations require more code similarity by design. Some languages, like Java, may tend to have more dupl…
-
comment
Comment #48762932
PHP support can be easily added, I will release a new version soon.
-
comment
Comment #48762050
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 embeddi…
- story
-
comment
Comment #48671568
That's why it's so important to design a solution before letting AI implement it. I noticed that AI often can't see clean, elegant and primitive solutions that fit best for a given…
-
comment
Comment #48627389
There are bunch of tools to manage context or fix what Claude does wrong. They may be popular because non software engineers want to improve their workflows, like you mentioned. Bu…
-
comment
Comment #48623061
I realized how easily it can be confused and generate a bad answer in effect. It's difficult to control context when we have instructions in AGENTS/CLAUDE.md, memory, SKILLs, somet…
-
comment
Comment #48609154
I think "lack of effort required" is the key. We can just throw prompts without understanding and caring about output. This way we can build something in 10 min we don't own. We ca…