frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

AI for People

https://justsitandgrin.im/posts/ai-for-people/
1•dive•39s ago•0 comments

Rome is studded with cannon balls (2022)

https://essenceofrome.com/rome-is-studded-with-cannon-balls
1•thomassmith65•5m ago•0 comments

8-piece tablebase development on Lichess (op1 partial)

https://lichess.org/@/Lichess/blog/op1-partial-8-piece-tablebase-available/1ptPBDpC
2•somethingp•7m ago•0 comments

US to bankroll far-right think tanks in Europe against digital laws

https://www.brusselstimes.com/1957195/us-to-fund-far-right-forces-in-europe-tbtb
2•saubeidl•8m ago•0 comments

Ask HN: Have AI companies replaced their own SaaS usage with agents?

1•tuxpenguine•11m ago•0 comments

pi-nes

https://twitter.com/thomasmustier/status/2018362041506132205
1•tosh•13m ago•0 comments

Show HN: Crew – Multi-agent orchestration tool for AI-assisted development

https://github.com/garnetliu/crew
1•gl2334•13m ago•0 comments

New hire fixed a problem so fast, their boss left to become a yoga instructor

https://www.theregister.com/2026/02/06/on_call/
1•Brajeshwar•15m ago•0 comments

Four horsemen of the AI-pocalypse line up capex bigger than Israel's GDP

https://www.theregister.com/2026/02/06/ai_capex_plans/
1•Brajeshwar•15m ago•0 comments

A free Dynamic QR Code generator (no expiring links)

https://free-dynamic-qr-generator.com/
1•nookeshkarri7•16m ago•1 comments

nextTick but for React.js

https://suhaotian.github.io/use-next-tick/
1•jeremy_su•17m ago•0 comments

Show HN: I Built an AI-Powered Pull Request Review Tool

https://github.com/HighGarden-Studio/HighReview
1•highgarden•18m ago•0 comments

Git-am applies commit message diffs

https://lore.kernel.org/git/bcqvh7ahjjgzpgxwnr4kh3hfkksfruf54refyry3ha7qk7dldf@fij5calmscvm/
1•rkta•20m ago•0 comments

ClawEmail: 1min setup for OpenClaw agents with Gmail, Docs

https://clawemail.com
1•aleks5678•27m ago•1 comments

UnAutomating the Economy: More Labor but at What Cost?

https://www.greshm.org/blog/unautomating-the-economy/
1•Suncho•34m ago•1 comments

Show HN: Gettorr – Stream magnet links in the browser via WebRTC (no install)

https://gettorr.com/
1•BenaouidateMed•35m ago•0 comments

Statin drugs safer than previously thought

https://www.semafor.com/article/02/06/2026/statin-drugs-safer-than-previously-thought
1•stareatgoats•37m ago•0 comments

Handy when you just want to distract yourself for a moment

https://d6.h5go.life/
1•TrendSpotterPro•38m ago•0 comments

More States Are Taking Aim at a Controversial Early Reading Method

https://www.edweek.org/teaching-learning/more-states-are-taking-aim-at-a-controversial-early-read...
2•lelanthran•40m ago•0 comments

AI will not save developer productivity

https://www.infoworld.com/article/4125409/ai-will-not-save-developer-productivity.html
1•indentit•45m ago•0 comments

How I do and don't use agents

https://twitter.com/jessfraz/status/2019975917863661760
1•tosh•51m ago•0 comments

BTDUex Safe? The Back End Withdrawal Anomalies

1•aoijfoqfw•54m ago•0 comments

Show HN: Compile-Time Vibe Coding

https://github.com/Michael-JB/vibecode
7•michaelchicory•56m ago•1 comments

Show HN: Ensemble – macOS App to Manage Claude Code Skills, MCPs, and Claude.md

https://github.com/O0000-code/Ensemble
1•IO0oI•59m ago•1 comments

PR to support XMPP channels in OpenClaw

https://github.com/openclaw/openclaw/pull/9741
1•mickael•1h ago•0 comments

Twenty: A Modern Alternative to Salesforce

https://github.com/twentyhq/twenty
1•tosh•1h ago•0 comments

Raspberry Pi: More memory-driven price rises

https://www.raspberrypi.com/news/more-memory-driven-price-rises/
2•calcifer•1h ago•0 comments

Level Up Your Gaming

https://d4.h5go.life/
1•LinkLens•1h ago•1 comments

Di.day is a movement to encourage people to ditch Big Tech

https://itsfoss.com/news/di-day-celebration/
4•MilnerRoute•1h ago•0 comments

Show HN: AI generated personal affirmations playing when your phone is locked

https://MyAffirmations.Guru
4•alaserm•1h ago•3 comments
Open in hackernews

Ask HN: Can recursion be more useful than regular loops?

5•DenisDolya•2mo ago

Comments

rossdavidh•2mo ago
The times I've found it useful are for walking org charts or file folders, which are of unknown depth and match neatly into a recursive approach.
ArtRasel•2mo ago
Main Folder/ ├── Subfolder 1/ │ ├── File A │ └── Subfolder 1.1/ │ └── File B └── Subfolder 2/ └── File C
ArtRasel•2mo ago
Recursion vs Loops - Android Development Perspective

In Android development, both have their places, but recursion shines in specific scenarios:

Where recursion works better: • File System Traversal - Scanning nested app directories and external storage • View Hierarchy Processing - Traversing through complex ViewGroup structures • JSON/XML Parsing - Handling nested data structures from API responses

Practical Android Example: fun findAllImageFiles(dir: File): List<File> { val imageFiles = mutableListOf<File>() dir.listFiles()?.forEach { file -> if (file.isDirectory) { imageFiles.addAll(findAllImageFiles(file)) // Recursion } else if (file.isImageFile()) { imageFiles.add(file) } } return imageFiles }

When to prefer loops: • Performance-critical tasks (avoid StackOverflowError) • Simple iterations with known depth • Memory-constrained environments

Key Insight: Recursion provides cleaner code for tree-like structures, while loops are better for linear tasks. Choose based on data structure complexity rather than personal preference.

ArtRasel•2mo ago
fun findAllImageFiles(dir: File): List<File> { val imageFiles = mutableListOf<File>() dir.listFiles()?.forEach { file -> if (file.isDirectory) { imageFiles.addAll(findAllImageFiles(file)) // } else if (file.isImageFile()) { imageFiles.add(file) } } return imageFiles }
btilly•2mo ago
It depends on what you consider "more useful".

First, anything that you can do with recursion, you can do without. This is trivially obvious to anyone who knows that any Turing complete language can simulate any other, and therefore there is an equivalence of what they can do. And this is demonstrated in practice when you consider that every language with recursion, is ultimately implemented in machine language. Which doesn't have recursion.

That said, the concept of recursion can allow us to think about and solve problems that we would otherwise find challenging to think about. This is fundamental to how programming works. We build abstractions on top of lower primitives. These abstractions then make it easier to think about and solve our problems. We could have done the same thing without the abstraction. But it would have taken more work, and it would be harder for us to keep that well-organized.

The widespread popularity of languages with recursion demonstrates that it is a useful abstraction.

But let's pull back the curtain. What recursion does for us is allow us to organize our computation using the call stack. What we do implicitly using the call stack, can always be done instead using an explicit stack. The code looks different, but is actually equivalent.

The value of knowing how to do that is that we then can ask what happens if we choose to replace the stack with something else. For this example, let's add a caching layer on top of the recursion. This gives us a top-down dynamic programming algorithm. It is doing a depth-first search. If we replace the stack with a queue, we get a breadth-first search. If we replace it with the right priority queue instead, we get an A*-search. If we go back to the breadth-first search and optimize to throw away data as soon as we are done with it, we can get a bottom-up dynamic programming algorithm.

Therefore recursion is absolutely a valuable tool in your mental toolbox. But it becomes even more powerful if you know how to implement it with loops, and then know how to manipulate that, we can get a whole set of powerful tools that recursion alone does not give you.