frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Writing string.h functions using string instructions in asm x86-64

https://pmasschelier.github.io/x86_64_strings/
21•thaisstein•3d ago

Comments

themafia•41m ago

    vpcmpestri xmm2, xmm3, BYTEWISE_CMP 
    test cx, 0x10    ; if(rcx != 16)
I see this test/cmp all the time after the instruction and I don't understand it. pcmpestri will set ZF if edx < 16, and it will set SF if eax < 16. It is already giving you the necessary status. Also testing sub words of the larger register is very slow and is a pipeline hazard.

You've got this monster of an instruction and then people place all this paranoid slowness around it. Am I reading the x86 manual wrong?

kevinday•6m ago
I think people started doing that after one of the Intel SSE examples did it and everyone just copied it.

But on any modern CPU there should be essentially no penalty for doing that now. Testing the full register is basically free as long as you aren't doing a partial write followed by a full read (write AH then read AX), and I don't think there's any case where this could stall on anything newer than a Core 2 era processor. But just replacing that with a "jnc" or whatever you're exactly trying to test for would be less instructions at least. I'd love to see benchmarks though if someone has dug deeper into this than I have.

Tim Cook to become Apple Executive Chairman. John Ternus to become CEO

https://www.apple.com/newsroom/2026/04/tim-cook-to-become-apple-executive-chairman-john-ternus-to...
478•schappim•55m ago•205 comments

AI Resistance Is Growing

https://stephvee.ca/blog/artificial%20intelligence/ai-resistance-is-growing/
191•speckx•1h ago•136 comments

Qwen3.6-Max-Preview: Smarter, Sharper, Still Evolving

https://qwen.ai/blog?id=qwen3.6-max-preview
452•mfiguiere•7h ago•237 comments

Kimi vendor verifier – verify accuracy of inference providers

https://www.kimi.com/blog/kimi-vendor-verifier
80•Alifatisk•2h ago•6 comments

We got 207 tok/s with Qwen3.5-27B on an RTX 3090

https://github.com/Luce-Org/lucebox-hub
95•GreenGames•2h ago•25 comments

GitHub's fake star economy

https://awesomeagents.ai/news/github-fake-stars-investigation/
665•Liriel•13h ago•335 comments

ggsql: A Grammar of Graphics for SQL

https://opensource.posit.co/blog/2026-04-20_ggsql_alpha_release/
313•thomasp85•8h ago•71 comments

Kefir C17/C23 Compiler

https://sr.ht/~jprotopopov/kefir/
82•conductor•2d ago•4 comments

Deezer says 44% of songs uploaded to its platform daily are AI-generated

https://techcrunch.com/2026/04/20/deezer-says-44-of-songs-uploaded-to-its-platform-daily-are-ai-g...
231•FiddlerClamp•5h ago•228 comments

Modern Rendering Culling Techniques

https://krupitskas.com/posts/modern_culling_techniques/
47•krupitskas•1d ago•5 comments

Quantum Computers Are Not a Threat to 128-Bit Symmetric Keys

https://words.filippo.io/128-bits/
64•hasheddan•4h ago•35 comments

Kimi K2.6: Advancing open-source coding

https://www.kimi.com/blog/kimi-k2-6
481•meetpateltech•6h ago•242 comments

10 years ago, someone wrote a test for Servo that included an expiry in 2026

https://mastodon.social/@jdm_/116429380667467307
164•luu•1d ago•97 comments

F-35 is a masterpiece built for the wrong war

https://warontherocks.com/cogs-of-war/the-f-35-is-a-masterpiece-built-for-the-wrong-war/
92•anjel•1h ago•109 comments

Bloom (YC P26) Is Hiring

https://www.ycombinator.com/companies/trybloom/jobs
1•RayFitzgerald•4h ago

Writing string.h functions using string instructions in asm x86-64

https://pmasschelier.github.io/x86_64_strings/
21•thaisstein•3d ago•2 comments

WebUSB Extension for Firefox

https://github.com/ArcaneNibble/awawausb
169•tuananh•9h ago•151 comments

M 7.4 earthquake – 100 km ENE of Miyako, Japan

https://earthquake.usgs.gov/earthquakes/eventpage/us6000sri7/
237•Someone•11h ago•105 comments

We accepted surveillance as default

https://vivianvoss.net/blog/why-we-accepted-surveillance
242•speckx•5h ago•108 comments

Atlassian enables default data collection to train AI

https://letsdatascience.com/news/atlassian-enables-default-data-collection-to-train-ai-f71343d8
427•kevcampb•9h ago•99 comments

Brussels launched an age checking app. Hackers took 2 minutes to break it

https://www.politico.eu/article/eu-brussels-launched-age-checking-app-hackers-say-took-them-2-min...
83•axbyte•12h ago•62 comments

The Work Runs on Different Maps

https://yusufaytas.com/the-work-runs-on-different-maps
27•yusufaytas•1d ago•1 comments

Tim Cook Stepping Down

https://www.macrumors.com/2026/04/20/tim-cook-stepping-down/
34•schappim•59m ago•3 comments

I learned Unity the wrong way

https://darkounity.com/blog/how-i-learned-unity-the-wrong-way
110•lelanthran•4d ago•45 comments

Not buying another Kindle

https://www.androidauthority.com/amazon-kindle-2026-3657863/
239•mikhael•6h ago•199 comments

Figma's woes compound with Claude Design

https://martinalderson.com/posts/figmas-woes-compound-with-claude-design/
80•martinald•11h ago•68 comments

Sauna effect on heart rate

https://tryterra.co/research/sauna-effect-on-heart-rate
319•kyriakosel•7h ago•173 comments

OpenClaw isn't fooling me. I remember MS-DOS

https://www.flyingpenguin.com/build-an-openclaw-free-secure-always-on-local-ai-agent/
250•feigewalnuss•13h ago•284 comments

OpenAI ad partner now selling ChatGPT ad placements based on "prompt relevance"

https://www.adweek.com/media/exclusive-leaked-deck-reveals-stackadapts-playbook-for-chatgpt-ads/
8•jlark77777•14m ago•0 comments

Show HN: Alien – Self-hosting with remote management (written in Rust)

83•alongub•6h ago•29 comments