frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Both GCC and Clang generate strange/inefficient code

https://codingmarginalia.blogspot.com/2026/02/both-gcc-and-clang-generate.html
4•rsf•1h ago

Comments

the_fall•1h ago
It's common for compilers to generate mildly unusual code because they translate high-level code into an abstract intermediate notation, run a variety optimization steps on that notation, and then emit machine-specific code to perform whatever the optimizations yielded. There's no constraint along the lines of "but select the most logical opcode for this task".

The claim that the code is inefficient is really not substantiated well in this blog post. Sometimes, long-winded assembly actually runs faster because of pipelining, register aliasing, and other quirks. Other times, a "weird" way of zeroing a register may actually take up less space in memory, etc.

rsf•1h ago
> The claim that the code is inefficient is really not substantiated well in this blog post.

I didn't run benchmarks, but in the case of clang writing zeros to memory (which are never used thereafter), there's no way that particular code is optimal.

For the gcc output, it seems unlikely that the three versions are all optimal, given the inconsistent strategies used. In particular, the code that sets the output value to 0 or 1 in the size = 3 version is highly unlikely to be optimal in my opinion. I'd be amazed if it is!

Your point that unintuitive code is sometimes actually optimal is well taken though :)

Software engineer mental health crisis

https://twitter.com/tomdale/status/2019640306342457450
1•xnx•46s ago•0 comments

Snowball Earth

https://en.wikipedia.org/wiki/Snowball_Earth
1•mooreds•1m ago•0 comments

I Automated a $5k Forensic Accounting Job with Python

https://medium.com/@ihatevcman/i-automated-a-5-000-forensic-accounting-job-with-python-and-why-th...
1•cd_mkdir•1m ago•0 comments

Marktoflow – CLI-native AI automation using Markdown and YAML

https://github.com/marktoflow/marktoflow
1•scottgl•1m ago•1 comments

Bash Is Not Enough: Why Large-Scale CI Needs an Orchestrator

https://www.iankduncan.com/engineering/2026-02-06-bash-is-not-enough/
1•subset•2m ago•0 comments

High Agency in 30 Minutes

https://www.highagency.com
1•mooreds•3m ago•0 comments

How private equity is quietly rewriting the rules of professions

https://www.promarket.org/2026/02/06/how-private-equity-is-quietly-rewriting-the-rules-of-profess...
1•hhs•4m ago•0 comments

Signal for Help

https://en.wikipedia.org/wiki/Signal_for_Help
1•mellosouls•4m ago•0 comments

Introducing the Developer Knowledge API and MCP Server

https://developers.googleblog.com/introducing-the-developer-knowledge-api-and-mcp-server/
1•gfortaine•5m ago•0 comments

Thoughts on Formulaic Salaries

https://narwhal-labs.com/blog/Blog%20Post%20Title%20One-3zaa9-zlxng-67tfc-cksnx
1•mooreds•5m ago•0 comments

SpaceX Delays Mars Plans to Focus on Moon

https://www.wsj.com/science/space-astronomy/spacex-delays-mars-plans-to-focus-on-moon-66d5c542
2•mfiguiere•8m ago•0 comments

Show HN: Webapps running in Docker containers and earning on token margins

https://codeplusequalsai.com/?showh
1•cryptoz•9m ago•0 comments

Privacy: A curated list of privacy-respecting software and services

https://github.com/pluja/awesome-privacy
1•insuranceguru•12m ago•0 comments

Few things are worth building

https://twitter.com/jobergum/status/2018706126842294315
1•gk1•12m ago•0 comments

Control Layer for AI

https://blog.dottxt.ai/control-layer-for-ai
1•verdverm•12m ago•1 comments

Excalidraw MCP App Server

https://github.com/antonpk1/excalidraw-mcp-app
1•gfortaine•15m ago•0 comments

Why does 2+2=4? What math teaches us about deep reality

https://www.nationalreview.com/corner/why-does-2-2-4-what-math-teaches-us-about-deep-reality/
1•hhs•17m ago•1 comments

So Long to Cheap Books You Could Fit in Your Pocket

https://www.nytimes.com/2026/02/06/books/mass-market-paperback-books.html
3•shpat•18m ago•0 comments

Show HN: Jinjatest – type-safe tests and branch coverage for Jinja templates

https://github.com/SimplifyJobs/jinjatest
1•demoonkevin•19m ago•0 comments

Show HN: Botparty – messing around with real time LLM collaboration

https://botparty.nthh.partykit.dev/r/hackernews
1•nthh•20m ago•0 comments

Republicans condemn Trump's racist video portraying the Obamas as apes

https://www.cbsnews.com/news/republicans-condemn-trumps-racist-video-portraying-obamas-as-apes/
5•SilverElfin•22m ago•4 comments

Generative Modeling via Drifting

https://arxiv.org/abs/2602.04770
1•fabmilo•22m ago•1 comments

Narrative-Driven Development: BDD+TDD+Living Documentation in One Workflow

https://www.test2doc.com/blog/2026/02/06/ndd/
1•dethstrobe•23m ago•0 comments

Reality is losing the deepfake war

https://www.theverge.com/podcast/874038/ai-deepfakes-war-on-reality-c2pa-labels
3•cdrnsf•24m ago•0 comments

Samsung Account.google.com

1•Musabmusin•24m ago•0 comments

Moltbook was peak AI theater

https://www.technologyreview.com/2026/02/06/1132448/moltbook-was-peak-ai-theater/
2•geox•27m ago•0 comments

Mantic Thinking:A 4-layer anomaly detection framework with cross-domain transfer

https://github.com/Cole-Cant-Code/mantic-thinking
1•ColeW•30m ago•1 comments

Central bank, with a decentralized comitee, looking for critique

https://github.com/strafaka/scylla-monetary-system
1•Strafaka•31m ago•1 comments

Robo-dogs are mapping the forest

https://www.cnn.com/2026/02/02/business/video/robo-dogs-forest-mapping-oxford-robotics-spc-digvid
3•nmstoker•35m ago•0 comments

LLMs don't hallucinate – they hit a structural boundary (RCC theory)

http://www.effacermonexistence.com/rcc-hn-1-1
2•formerOpenAI•36m ago•2 comments