Live data from Hacker News

Viewing profile — rkochanowski

rkochanowski

HN member
Joined
Tue, Jun 16, 2026, 7:50 PM UTC
HN karma
45
Public activity
25 items

About rkochanowski

No profile information was provided.

Recent public activity

  1. 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 …

  2. 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…

  3. 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…

  4. 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…

  5. comment
    Comment #48775992

    PHP was added in the latest release.

  6. comment
    Comment #48775957

    Elixir was added in the latest release.

  7. 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.

  8. comment
    Comment #48773004

    Function level only. I will add more granular chunking in next versions.

  9. 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 …

  10. 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…

  11. 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…

  12. 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…

  13. 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…

  14. 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…

  15. 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…

  16. 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).…

  17. 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,…

  18. 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…

  19. comment
    Comment #48762932

    PHP support can be easily added, I will release a new version soon.

  20. 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…

  21. story
  22. 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…

  23. 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…

  24. 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…

  25. 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…