home.social

#hackersdelight — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #hackersdelight, aggregated by home.social.

fetched live
  1. Gestern ist das Buch mit den Bitzaubersprüchen angekommen. Da muss man als Softwareentwickler einfach mal drin schmökern. Bevor es verboten wird, weil derartiges Wissen nur noch der KI vorbehalten ist.🤣

    Da stehen ohne Ende so Sachen drin wie:

    "Use the following formula to turn off the rightmost 1-bit in a word, producing 0 if none (e.g., 01011000 01010000):
    x & (x – 1)"

    Wobei x ein 32Bit-Wert ist.

    #hacker #hackersDelight #programming #bitmanipulation

  2. In German, "altes Wissen", maybe "ancient wisdom", correlates with Fantasy novels or magic or esoteric idiocy.

    Here is a case where this may soon be a real thing. Look at this code github.com/openjdk/jdk/blob/3d

    to count bits in an 8 byte word. 😀 🤯 It cites "HD, Figure 5-2". I wonder when, in the age of vibe coding, this truly becomes "ancient wisdom" passed on from sourcerer to sourcerer (no typo🙂).

    HD: Hacker's Delight, Henry S. Warren

    #java #vibecoding #hackersdelight #bitcount #altesWissen