frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Improvements to OCaml code editing: the basics of a refactor engine

https://tarides.com/blog/2025-08-20-internship-report-refactoring-tools-coming-to-merlin/
27•nukifw•1h ago

Comments

panglesd•1h ago
Very cool!

Does it replace identical expressions in the same scope? Like:

    let tau = 3.14 +. 3.14
becomes

    let pi = 3.14
    let tau = pi +. pi
?

EDIT: Or even crazier with function:

    let _ = (x + 1) + (y + 1)
becomes

    let plus_one a = a + 1
    let _ = (plus_one x) + (plus_one y)

(I ask this just out of curiosity. Even the "simpler" version is very impressive!)
nukifw•56m ago
Nop, for the moment, we try to not "infer user usages"! But if you extract an expression with variable, there will be, obviously, not be repeated:

    let tau =
      let pi = 3.14 in 
      pi + pi
if we extract `pi + pi` it will lead (if you do not give any concrete name) to the following code:

    let fun_name1 pi = 
       pi + pi

    let tau = 
       let pi = 3.14 in 
       fun_name1 pi
lemonwaterlime•3m ago
I’ve been working on similar refactoring and grepping utility functions for vim, though mine are meant to work in any language.

The most recent one I’ve made runs 'git grep' on the word under cursor or on the visual selection and puts everything into a quick fix list.

Since it is generic, it works on any phrases as well, and helps me find prose snippets and phrases in docs or other writings.

mhitza•2m ago
Extract expression is such a common refactoring, happy to see support for it. I'm even more curious to see now if there are going to be more advanced refactoring possible. A List.map, to for loop, and back refactoring would be such a great thing to have in how I program.

Only thing that would go on my OCD nerve, is the lack of an empty newline when the show_markup function is extracted. Kind of "common sense" when writing top level bindings to leave some breathing room between them.

Subliminal Poisoning Is the LLM Version of a Buffer Overflow

https://eposlabs.ai/research/Subliminal-Blog-Post
1•edenlum•1m ago•0 comments

Too Long, Didn't Model

https://arxiv.org/abs/2505.14925
1•squirrel•1m ago•0 comments

P4 One – Version control for creators

https://www.perforce.com/products/helix-core/p4-one
1•lrm29•2m ago•0 comments

That's Not Refactoring

https://www.codewithjason.com/thats-not-refactoring/
1•doppp•2m ago•0 comments

Chain-of-Agents

https://arxiv.org/abs/2508.13167
1•omarsar•4m ago•0 comments

How the Tech Titans Can Save Social Security

https://thehill.com/opinion/finance/5458662-ai-wealth-ubi-debate/
1•RickJWagner•5m ago•0 comments

Temperature Change Impacts Bitcoin Miners

https://www.guzmanpintos.com/posts/how-temperature-impacts-bitcoin-miners/
1•tsaifu•5m ago•0 comments

Kafka to Iceberg – Exploring the Options

https://rmoff.net/2025/08/18/kafka-to-iceberg-exploring-the-options/
1•mooreds•6m ago•0 comments

Show HN: Randomly switching between LMs at every step boosts SWE-bench score

https://www.swebench.com/SWE-bench/blog/2025/08/19/mini-roulette/
2•lieret•7m ago•0 comments

Boost Your Website Traffic

https://dicloak.com/blog-detail/dicloak-traffic-bot-boost-website-traffic-with-smart-humanlike-automation
1•DICloak•7m ago•1 comments

Everyone Is on Fire

https://drjoshcsimmons.substack.com/p/everyone-is-on-fire
2•joshcsimmons•8m ago•0 comments

What counts as plagiarism? AI-generated papers pose new risks

https://www.nature.com/articles/d41586-025-02616-5
1•rntn•10m ago•0 comments

The free tier death cult

https://arnon.dk/the-free-tier-death-cult/
1•arnon•10m ago•0 comments

StreetViewAI: Making Street View Accessible Using Context-Aware Multimodal AI [pdf]

https://makeabilitylab.cs.washington.edu/media/publications/Froehlich_StreetviewaiMakingStreetViewAccessibleUsingContextAwareMultimodalAi_UIST2025.pdf
1•azhenley•11m ago•0 comments

The Cricket as a Thermometer (1897)

https://www.journals.uchicago.edu/doi/pdf/10.1086/276739
2•firefax•11m ago•0 comments

Show HN: Online equivalence checker for JavaScript RegExp

https://gruhn.github.io/regex-utils/equiv-checker.html
1•ngruhn•12m ago•0 comments

Alphabet of Human Thought

https://en.wikipedia.org/wiki/Alphabet_of_human_thought
1•ewf•14m ago•0 comments

The Blast Playbook

https://www.neelsomaniblog.com/p/the-blast-playbook
1•nsomani•14m ago•0 comments

The Story of A Prompt Engineer - The Emperor's Soul by Brandon Sanderson [video]

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

DNA Methylation in Long Covid

https://www.frontiersin.org/journals/virology/articles/10.3389/fviro.2024.1371683/full
1•FollowingTheDao•16m ago•0 comments

Ask HN: What are you biggest mental / relational challenges?

1•ada1981•18m ago•0 comments

Show HN: A neat news website curated and generated by AI

https://neat.news
2•sumeruchat•20m ago•0 comments

Peeking Under the Hood of Claude Code

https://medium.com/@outsightai/peeking-under-the-hood-of-claude-code-70f5a94a9a62
2•ghuntley•20m ago•0 comments

Why are anime catgirls blocking my access to the Linux kernel?

https://lock.cmpxchg8b.com/anubis.html
20•taviso•21m ago•9 comments

Show HN: A tool to easily juggle sets of environment variables

https://github.com/paholg/envswitch
1•paholg•22m ago•0 comments

Const Trait Counterexamples

https://dbeef.dev/const-trait-counterexamples/
3•Bogdanp•22m ago•0 comments

Crypto groups accuse banks of attempting to 'relitigate' stablecoin law

https://thehill.com/policy/technology/5461363-crypto-groups-accuse-banks-relitigation/
1•petethomas•22m ago•0 comments

American

https://kieranhealy.org/blog/archives/2025/06/28/american/
3•wiredfool•25m ago•0 comments

The Indian cafes where you can pay in rubbish

https://www.bbc.com/future/article/20250818-the-indian-garbage-cafes-giving-out-food-in-exchange-for-plastic-waste
2•Brajeshwar•26m ago•0 comments

How North Korea's IT army is hacking the global job market

https://www.axios.com/2025/08/19/north-korea-it-worker-fraud-fortune-500
2•Brajeshwar•26m ago•0 comments