Login
You're viewing the code4lib.social public feed.
  • Nov 28, 2026, 4:50 PM

    @mcc have you seen the cheap micro controllers that use a PRNG for the PC? A LFSR uses less die area and propagates faster than an increment carrier adder, so why not randomly access the random access memory.

    💬 1🔄 0⭐ 0

Replies

  • Nov 28, 2026, 5:08 PM

    @th @mcc ah, my favorite kind of joke, the kind where it might not a actually be a joke

    💬 0🔄 0⭐ 0
  • 💬 4🔄 2⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 29, 2026, 12:09 AM

    @TomF @th @phooky @mcc Gray code counters are more complicated than binary ones afaict. Useful for crossing clock domains though. When I had to implement one, I found that the most obvious implementation of a counter (convert count to binary, increment, then convert back to Gray code and latch the new value) was patented! I presume it has expired by now.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 28, 2026, 6:30 PM

    @th @phooky @mcc folks of a certain age are pretty likely to have actually used one of these chips -- the TMS1000 and derivatives are probably the most common example. They powered the Speak-n-Spell and most other 1980s "computerized" toys.

    Because the instructions executed in a bizarre order, TI had paper forms you'd fill out with your desired program, and they'd shuffle the instructions for you before putting them in ROM.

    💬 0🔄 0⭐ 0
  • Nov 28, 2026, 8:52 PM

    @th @phooky @mcc i also found this kinda approach useful when multiplexing LEDs (e.g. lots of panel indicators) by rows/column: if you address with a long enough pseudorandom pattern, someone taking a video of the device with short-ish shutter angle won't get an image with synchronized stroboscopic interference (and any crosstalk that might end up on analog outputs gets kinda dithered away to noise rather than a repeating signal)

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