News for hackers. Stuff that matters.
Re:The prospects for 128 bit processors (1995) by Animats on Wednesday February 23, 2022 @04:31PM (#30446762)
Symbolics tried that.

Scary thought: how many bytes of RAM are there in the world? Probably more than 2^64. There are around 7 billion smartphones, and many have over 4GB of memory. That's over 2^64 right there.

I'd like to have 128-bit atomic operations. If you're doing lock-free programming, hardware compare and swap on a structure that contains two pointers is useful. Then you can update lists atomically. In a 64-bit pointer machine, that takes 128 bit atomics. So far, not much hardware offers that.

Re:The prospects for 128 bit processors (1995) by Dylan16807 on Wednesday February 23, 2022 @05:14PM (#30447295)
CMPXCHG16B has been standard for the vast majority of the time x86_64 has existed. If a CPU can run windows 8.1, then it has 128-bit atomic operations.
Re:The prospects for 128 bit processors (1995) by Animats on Thursday February 24, 2022 @01:02AM (#30451025)
Rust does not have AtomicU128, for some reason. Need to look into that.
Re:The prospects for 128 bit processors (1995) by Dylan16807 on Thursday February 24, 2022 @01:15AM (#30451135)
Re:The prospects for 128 bit processors (1995) by Animats on Thursday February 24, 2022 @02:05AM (#30451548)
Ah. There are still some AMD64 CPUs out there that don't have cmpxchg16b capability. The Linux developers made the decision to not use cmpxchg16b and continue supporting them. Microsoft made the decision to use cmpxchg16b for Windows 8 and later. There are some libraries which probe on first use and either use cmpxchg16b or use a global lock. That's probably a viable strategy at this point, since CPUs without it are now rare. But I can see the argument against it.

[1] https://superuser.com/questions/187254/how-prevalent-are-old...

Re:The prospects for 128 bit processors (1995) by monocasa on Wednesday February 23, 2022 @09:44PM (#30449634)
Symbolics maxed out at 40-bit pointers.
Re:The prospects for 128 bit processors (1995) by Animats on Thursday February 24, 2022 @01:53PM (#30458663)
There was some kind of scheme for accessing objects on other machines over the local network using a very long memory address, but I don't know if it was ever used.