frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Can someone make a CAS just checking last bit on x86/ARM please?

1•goofy_lemur•1h ago
Guys/gals, I was thinking about doing some work here and I noticed there's no operation that allows a atomic compare/exchange based on the last bit.

There should be an instruction that allows you to do an update of a 64 bit value only if the last bit is a 0.

The idea here is you would be able to swap pointer values atomically only if they were unlocked.

2^63 is such a huge number, it is sufficient to represent practically all the data in the universe. If we allowed an atomic compare exchange on the last bit, or something like check if the last bit is 0, allow the write, otherwise don't, it would make programming a lot easier.

Thanks!

Comments

Normal_gaussian•1h ago
You're going to have to give a much clearer set of examples and justifications. I've had to CAS on bit masks, but not enough that it would make sense to introduce a new operation for it. I just CAS and spin if it fails and the bitmask is still valid.

Commuter train in Spain hits collapsed wall killing driver and injuring 37

https://www.theguardian.com/world/2026/jan/20/commuter-train-near-barcelona-hits-collapsed-wall-i...
1•embedding-shape•1m ago•0 comments

Transit: A Data Interchange Format

https://github.com/cognitect/transit-format
1•tosh•1m ago•0 comments

Rediscovering Galois Theory

https://groshanlal.github.io/math/2026/01/14/galois-1.html
1•nill0•2m ago•0 comments

Show HN: SERP and Reader API (from $0.56/1k). No monthly subscriptions

https://www.searchcans.com/
1•Yuriypee2233•3m ago•0 comments

Show HN: cc-cleaner – A cache cleaner for the AI coding era

https://github.com/elexingyu/cc-cleaner
1•elexingyu•3m ago•0 comments

Vibecoding #2

https://matklad.github.io/2026/01/20/vibecoding-2.html
1•ibobev•3m ago•0 comments

Managing HWRT in Instance-Heavy Scenes

https://real-mrbeam.github.io/2026/01/20/Managing-HWRT-in-Instance-Heavy-Scenes.html
1•ibobev•4m ago•0 comments

I told Claude to build an executive assistant. This is what work looks like now

https://twitter.com/obie/status/2013955736292704342
1•obiefernandez•4m ago•0 comments

Devices Target the Gut to Maintain Weight Loss from GLP-1 Drugs

https://spectrum.ieee.org/weight-loss-devices
1•sohkamyung•5m ago•0 comments

How to Emulate a C64 Modem and Dial a BBS Using Vice

https://retrogamecoders.com/vice-c64-modem-emulation/
1•ibobev•5m ago•0 comments

Why Cowork Can't Work

https://benn.substack.com/p/why-cowork-cant-work
1•indigodaddy•5m ago•0 comments

The Messy Human Drama That Dealt a Blow to One of AI's Hottest Startups

https://www.wsj.com/tech/ai/the-messy-human-drama-that-dealt-a-blow-to-one-of-ais-hottest-startup...
1•impish9208•6m ago•1 comments

I'm 20 and built trinith after losing mass money to confirmation bias

https://trinith-ai.vercel.app
2•rvnx_exe•6m ago•1 comments

Ted J Kaczynski

https://en.wikipedia.org/wiki/Ted_Kaczynski
1•nothrowaways•6m ago•0 comments

Crans-Montana fire bar had safety issues for years

https://www.swissinfo.ch/eng/various/crans-montana-authorities-informed-about-offences-in-the-bar...
2•cumo•7m ago•0 comments

Executive order barring Wall Street investors from buying single-family homes

https://thehill.com/homenews/administration/5698163-trump-executive-order-wall-street-single-fami...
1•csa•7m ago•1 comments

Building a Better Golang Linker

https://docs.google.com/document/d/1D13QhciikbdLtaI67U6Ble5d_1nsI4befEd6_k1z91U/mobilebasic
1•fanf2•8m ago•0 comments

Building a Blog in Gleam

https://gearsco.de/blog/blog-in-gleam/
1•todsacerdoti•8m ago•0 comments

Show HN: I Dare You. Create a Dare. Set a Price. Accept or Reject

https://idareyou.vercel.app/
1•pelmenibenni•8m ago•0 comments

Tsexec: Run a command inside your Tailnet without root

https://bou.ke/blog/tsexec/
1•bouk•9m ago•0 comments

Why VIPER and MVVM in SwiftUI are the same pattern

https://matteomanferdini.com/mvvm-vs-viper/
1•DeusExMachina•9m ago•0 comments

Creative talent: has AI knocked humans out?

https://nouvelles.umontreal.ca/en/article/2026/01/20/creative-talent-has-ai-knocked-humans-out
2•geox•9m ago•0 comments

Mental Models for Debugging Hard Problems

https://leomax.fyi/blog/mental-models-for-debugging-hard-problems/
2•MaxMussio•10m ago•0 comments

Show HN: Trading cards for learning – 16 albums, 2.7k cards, learn by collecting

https://tradingpicturecards.com/
1•Manuel_TPC•10m ago•1 comments

The EU Commission Is Gutting Net Neutrality

https://epicenter.works/en/content/the-eu-commission-is-gutting-net-neutrality
1•wtfishackernews•10m ago•0 comments

Membranes

https://encyclopedia.che.engin.umich.edu/membranes/
1•o4c•11m ago•0 comments

Unsealed: Spotify Lawsuit Triggered Anna's Archive Domain Name Suspensions

https://torrentfreak.com/unsealed-spotify-lawsuit-triggered-annas-archive-domain-name-suspensions/
3•t-3•15m ago•0 comments

Ask HN: Is retreq / retspec a thing?

2•foobarbecue•16m ago•0 comments

100 Years – Harvesting Ice

https://trianglex.com/blog/100-years-harvesting-ice/
1•eightturn•16m ago•0 comments

NASA to end support for planetary science groups

https://spacenews.com/nasa-to-end-support-for-planetary-science-groups/
1•defrost•16m ago•0 comments