frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Towards a Harness That Can Do Anything

https://eardatasci.github.io/c/ambiance/index.html
1•evakhoury•1m ago•0 comments

Show HN: An AI agent fixed 98% of vulnerable deps in one run, 14% in the next

https://bomly.dev/blog/coding-agents-with-and-without-bomly-mcp
1•ahmed3lmallah•1m ago•0 comments

Vint Cerf is working on a plan to unleash AI agents on the open internet

https://techcrunch.com/2026/07/15/vint-cerf-is-working-on-a-plan-to-unleash-ai-agents-on-the-open...
1•sbulaev•2m ago•0 comments

High GPU usage while Codex app is "thinking" due to tiny useless animation

https://github.com/openai/codex/issues/16857
1•jeromechoo•2m ago•0 comments

To Read Code or Not: What Both Strategy Visionaries and Code Purists Get Wrong

https://shrsv.hexmos.com/post/to-read-code-or-not
1•atomicnature•3m ago•0 comments

Show HN: I spent a month turning LinkedIn into software

https://www.bulaev.net/p/i-spent-a-month-turning-linkedin
1•sbulaev•3m ago•0 comments

You Need Two Systems for Running an Algorithmic Trading Strategy

https://www.tradingreality.com/p/why-you-need-two-systems-for-running
1•TradingReality•4m ago•0 comments

Show HN: LogoTeddy – Animate logos with AI (no templates)

https://logoteddy.com/
1•humphrey_liu•4m ago•0 comments

Show HN: I Am Hosting Amalia – The First Portuguese LLM

https://iaamalia.com/
1•wbemaker•5m ago•0 comments

China detains US scientist who studied North Korea nuclear tests

https://www.bbc.com/news/articles/cqx1xdn3g4eo
1•tartoran•5m ago•0 comments

AI Lays Bare the Authoritarianism of Modern Work. Time to Rethink Education

https://www.techpolicy.press/ai-lays-bare-the-authoritarianism-of-modern-work-time-to-rethink-edu...
1•cdrnsf•6m ago•0 comments

Ask HN: What company could create an iOS/Android competitor worth adopting?

2•pwython•6m ago•0 comments

Another Day, Another Ban: Brussels Blocks Right-Wing Protest

https://europeanconservative.com/articles/news/another-day-another-ban-brussels-blocks-right-wing...
1•nickslaughter02•7m ago•0 comments

Ask HN: Is HN comments used to train AI models?

2•roschdal•9m ago•2 comments

Ethiopia's Airport Will Transform a Continent [video]

https://www.youtube.com/watch?v=GPh5xtXWwT8
1•surprisetalk•9m ago•0 comments

The Chickens and the Bulls (2012)

https://slate.com/human-interest/2012/07/the-chickens-and-the-bulls-the-rise-and-incredible-fall-...
1•robtherobber•9m ago•0 comments

Show HN: An MCP to create and call Playwright scripts as tools on your extension

https://reduck.ai/
1•DanyWin•10m ago•0 comments

Show HN: StyleSeed – a design-rules engine so AI agents stop building generic UI

https://github.com/bitjaru/styleseed
1•bitjaru0402•14m ago•0 comments

Chiplet3D: Pin- and Thermal-Aware 3D Chiplet Floorplanning

https://arxiv.org/abs/2607.09742
1•rbanffy•15m ago•0 comments

Nuvo – biological age tracker using wearable data and blood biomarkers

https://nuvolongevity.com/
2•fireflylabs•15m ago•0 comments

Elon Musk quietly buys a $1 billion gas turbine company to power Grok

https://electrek.co/2026/07/14/musk-buys-gas-turbine-company-apr-energy-grok/
5•Brajeshwar•16m ago•1 comments

NovaForge AI – Free AI, PDF, Image and Developer Tools in One Place

https://novaforge-ai.pages.dev
3•rrrpro123•16m ago•15 comments

AI's $5.8T Buildout Needs Every Bond Flavor It Can Sell

https://www.bloomberg.com/opinion/articles/2026-07-14/ai-s-5-8-trillion-buildout-needs-every-bond...
1•lesbarclays•16m ago•0 comments

Show HN: InferAll – One API for OpenAI, Anthropic, Google, Nvidia Nim

https://inferall.ai/?src=hn
1•TaylorM492•17m ago•0 comments

All2md: PDF, Docx, PPTX, HTML, Email and 40 More to Markdown – Python+CLI+MCP

https://github.com/thomas-villani/all2md
2•tom-villani•17m ago•1 comments

US House of Representatives takes step to make daylight saving time permanent

https://www.bbc.com/news/articles/cz9l9venjd8o
1•throw0101d•18m ago•1 comments

Show HN: 18KB ls alternative in no_std rust and Libc

https://crates.io/crates/fli-tool
2•tracyspacy•20m ago•0 comments

Title: Show HN: OpenMarkdown – A Markdown editor you and your agent co-edit

https://openmarkdown.dev/
1•XUEYANZ•21m ago•0 comments

GitHub Is Capping the AI Pull Request Flood

https://www.vincentschmalbach.com/github-capping-ai-pull-request-flood/
1•vincent_s•21m ago•0 comments

Tutorial: Algebraic Foundations Powering FlashAttention

https://riftstack.ai/research/learning-flashattention-the-hard-way-part-1
1•gkapur•22m ago•1 comments
Open in hackernews

What `for x in y` hides from you – From Scratch Code

https://fromscratchcode.com/blog/what-for-x-in-y-hides-from-you/
8•rbanffy•1h ago

Comments

WhyNotHugo•25m ago
'for' loops in Rust do the same: they create an iterator and then iterate over that.

You can write the exact same loop with `let mut iter = v.iter(); while Some(x) = iter.next()`.

'for' loops in Rust are purely syntax sugar, and I somewhat wish they didn't exist. They provide you two ways of doing the same thing, but one of them hides the details from you. Having 'for' as a keyword is nice for folks coming from other languages, but then it hides the possibility of other interesting usages, like cloning an iterator inside a loop.

bigfishrunning•17m ago
Which is funny, because whenever I encounter a language for which `for` *doesn't* work this way it feels antiquated. I do however wish another keyword was used in many cases, becuase `for` in C and Go is so much different then `for` in Rust or Python. I think the higher-level case (Rust and Python) should really use a word like `foreach` or maybe something compeletely different like `itr`, although I get that they want to "look" more like C
Martinussen•15m ago
Is "hiding" in the sense that you just need to have read the docs or know how the language works at a pretty basic level really a problem, or even a negative? I would certainly say that the readability and clarity on the form of loop being used is a bigger win, either way.
tialaramex•12m ago
It's true that they're just sugar but Rust does explain how the for-in loop de-sugars and you've over-simplified considerably. Your syntax also doesn't quite work.

The value is in idiom, turning everything into loop expressions (The "while" keyword is also just sugar, Rust's only fundamental loop is named loop) makes it harder to discern what's actually going on.

If you want to clone the iterator in some cases rather than consuming it, that should look different so that reviewers will see what you're up to.