News for hackers. Stuff that matters.
Re:Ask HN: Please Review My Metalanguage by kstenerud on Thursday February 09, 2023 @05:11AM (#34721882)
Swap reverses all bits in chunks of the granularity size. So given bits = ABCDEFGHIJKLMNOP, you get:

    swapped(8, bits) -> IJKLMNOPABCDEFGH
    swapped(4, bits) -> MNOPIJKLEFGHABCD
    swapped(2, bits) -> OPMNKLIJGHEFCDAB
    swapped(1, bits) -> PONMLKJIHGFEDCBA
So the full bit reversal when granularity = 1 is emergent phenomena rather than an exception.
Re:Ask HN: Please Review My Metalanguage by JaumeGreen on Thursday February 09, 2023 @05:33AM (#34722024)
Ok, that is more understandable. If there were some more examples in the page then this emergent behaviour could be seen faster.

Nothing to add then

Re:Ask HN: Please Review My Metalanguage by kstenerud on Thursday February 09, 2023 @06:03AM (#34722245)
Cool! Even this feedback is important. This document needs to be accessible and easy to grasp, otherwise it has a UX problem.