Login
You're viewing the ruby.social public feed.
  • Nov 27, 2026, 12:30 PM

    ASCII is a seven bit protocol, but “char” in C is eight bits. This is because the eighth bit is the sign bit, and is used for negative letters.

    💬 7🔄 10⭐ 0

Replies

  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Hannahuncanny_static@chaos.social
    Nov 27, 2026, 1:10 PM

    @mhoye Now I am imagining negative letters are just regular letters, except when a letter is followed by negative that letter, the two letters cancel and are removed from the string. (Yes, I have done too much non-commutative algebra, recently. Why are you asking?)

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 27, 2026, 1:52 PM

    @mhoye The original sin of the C standard library is that strlen() returns an unsigned number. There's no standard way to deal with antistrings. :(

    💬 2🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 27, 2026, 2:36 PM

    @jond Yeah, it's amazing how these seemingly small decisions can have such far-reaching consequences. No antistrings, no floating point letters, an entire expressive subdomain cut off before anyone realized the importance of arbitrary-precision semantics.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0