frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Quantum advantage for simulating Floquet dynamics

https://arxiv.org/abs/2607.24937
1•nsoonhui•4m ago•0 comments

CtxRay – see and lock what Codex loads before a task

https://github.com/FramY2/ctxray
1•framy2•5m ago•0 comments

China became the great oil power

https://www.economist.com/finance-and-economics/2026/08/09/how-china-became-the-worlds-great-oil-...
2•toomuchtodo•13m ago•1 comments

MatrAIx: Simulating the World with 8.3B Persona Agents

https://arxiv.org/abs/2608.04205
1•birriel•18m ago•1 comments

Show HN: SynapsCLI – lightweight agent runtime in Rust, control an agent swarm

https://github.com/HaseebKhalid1507/SynapsCLI
1•0x04am•19m ago•0 comments

LLMs Get Lost in Evolving User Intent

https://arxiv.org/abs/2607.20734
2•Anon84•24m ago•0 comments

How We Pushed CDC into Postgres

https://www.snowflake.com/en/blog/engineering/postgres-to-snowflake-replication-mirroring/
8•craigkerstiens•30m ago•0 comments

Blender MCP maintainer GitHub account hacked

https://twitter.com/sidahuj/status/2086445625147793503
4•babuskov•33m ago•0 comments

Profile-Guided Optimization in Go

https://lemire.me/blog/2026/08/09/profile-guided-optimization-in-go/
1•prattmic•34m ago•0 comments

Spy cameras on Navy drones sent data to China

https://www.telegraph.co.uk/news/2026/08/09/spy-cameras-on-navy-drones-secretly-sent-data-to-china/
1•el_duderino•34m ago•0 comments

EGA and Me: A Complicated Relationship

https://reanthsoft.com/blog_260806_ega_and_me.html
1•doener•35m ago•0 comments

Simple, multi-key sorting algorithm for 2D+ points gridification

https://github.com/ArmanddeCacqueray/Cartesian-Grid-Sort
1•adec314•37m ago•0 comments

Forbidden fruit: Buick Electra gets 435 mile range and 376 HP for $25K in China

https://electrek.co/2026/08/06/forbidden-fruit-buick-electra-gets-435-mile-ev-range-and-25000-pri...
5•MilnerRoute•47m ago•1 comments

Pentagon presses defense firms to build weapons as Iran war depletes stocks

https://www.washingtonpost.com/technology/2026/08/08/pentagon-presses-defense-firms-build-weapons...
2•Teever•49m ago•0 comments

California Cyberattack on 911 Systems

https://www.latimes.com/california/story/2026-08-09/cyberattack-forces-emergency-declaration-in-s...
1•vsgherzi•53m ago•0 comments

Show HN: Acquired Podcast Idea Dinner Returns

https://acquirers.vercel.app/
1•Taikhoom2010•53m ago•0 comments

Japanese court overturns Red RAW video patent

https://www.dpreview.com/news/panasonic-did-what-apple-sony-and-nikon-couldnt-overturn-a-red-raw-...
9•anigbrowl•55m ago•2 comments

Is Europe safer than America?

https://economist.com/graphic-detail/2026/08/09/is-europe-safer-than-america
2•andsoitis•59m ago•0 comments

Ask HN: How do you set comp at an early stage startup?

2•jeffreyfate•1h ago•1 comments

The Anatomy of a Pass

https://davidorban.substack.com/p/the-anatomy-of-a-pass
1•mayukh•1h ago•0 comments

Before We Click "Publish" on Hugging Face

https://twitter.com/icoxfog417/status/2086606980584714495
1•icoxfog417•1h ago•0 comments

Ask HN: What Project are you the most proud of?

2•emn4tor•1h ago•2 comments

Cloudflare OS

https://os.cloudflare.app/
4•phirschybar•1h ago•1 comments

What do I want to be? – a poem about parenting in the AI age

https://www.reddit.com/r/Adulting/s/1ZF6OLsjko
1•AmbroseBierce•1h ago•0 comments

I've Been to the Future. It Worked Out

https://iwanajohannsen.substack.com/p/ive-been-to-the-future-it-worked
1•herbertl•1h ago•3 comments

Owner of original Intel 8080 pre-production Rubylith mask seeks restorer

https://www.tomshardware.com/pc-components/cpus/owner-of-original-intel-8080-pre-production-layou...
1•sbulaev•1h ago•1 comments

Show HN: Discord-delete – Delete all your Discord messages from your data export

https://github.com/DatCodeMania/discord-delete
2•DatCodeMania•1h ago•1 comments

America's Military Is Dangerously Exposed

https://www.wsj.com/opinion/americas-military-is-dangerously-exposed-26706217
7•petethomas•1h ago•3 comments

Show HN: A local-first, modular replacement for your accounting software

https://github.com/celerp/celerp
2•ngsevers•1h ago•0 comments

Optimizing a GPT-2-Class Transformer on a GPU

http://martinkristiansen.com/llm-gpu-optimization/index.html
2•mkristiansen•1h ago•1 comments
Open in hackernews

Avoid Continue

https://www.teamten.com/lawrence/programming/avoid-continue.html
2•todsacerdoti•1y ago

Comments

zoezoezoezoe•1y ago
I dont know if I fully agree. Sure, there is definitely an argument the be had about whether or not `continue` is the best word to use in this instance, but why avoid it entirely? Every programmer is able to easily understand what code like this would do:

``` for (Node node : nodeList) { if (node.isBad()) { continue; } processNode(node); } ```

Every keyword in any programming language is largely arbitrary in my opinion let's take a look at the beginning of the codeblock `for (Node node : nodeList)` also completely arbitrary, though it's clear to anyone who's ever written C++ that it is equivalent to saying "for every node in nodeList".

Continue is not meant to read as "continue execution" it's meant to be "continue to the next item of the list", and I think avoiding it entirely is a pointless effort.

Ukv•1y ago
I feel `skip` may have been a better name, but disagree with it being logically difficult to parse beyond that.

If I'm reading a loop and see

    for x in y {
        if exclusions.contains(x) { skip; }
        if x.children.length == 0 { skip; }
        if os.file.exists(x.name) { skip; }
        ...
I instantly know that processing for those elements is skipped, and they won't be relevant for the rest of the loop.

Whereas if I see

    for x in y {
        if !exclusions.contains(x) {
            if x.children.length != 0 {
                if !os.file.exists(x.name) {
        ...
I feel like there's still mental overload with not knowing where those `if` blocks end, and so having to keep the conditions in mind. It doesn't immediately tell me that the rest of the loop is being skipped.

The `log()` mistake seems no less likely to happen using early-returns in function instead, and I'd argue nesting checks actually introduces more room for that kind of error overall, where you append something at the end within the wrong set of brackets, compared to a flatter structure.