Apr 072024
 

I had understood in principle that printf is Turing complete, but I am still aghast at this interactive game of tic-tac-toe implemented with a single printf statement.

Computing the NOT of a single value is also easy:

printf("%1$255d%1$s%hhn", a, b)

will compute

*b = (strlen(a)+255)%256 = strlen(a)-1

and again, because strlen(x) is either 1 or 0 we have

*c = !b

From here we can compute any binary circuit.

Previously, previously, previously, previously, previously, previously, previously, previously, previously, previously.

External feed Read More at the Source: https://www.jwz.org/blog/2024/04/the-turing-police-say-x-wins/

 2024-04-07  No Responses »
Apr 072024
 

North Carolina has never had an independent candidate for U.S. House on a government-printed ballot. But in 2024, Shelane Etchison appears to have qualified in the Ninth District. Here is her website. She needed 7,460 valid signatures and the county election boards have verified 7,532.

The Ninth District is in central North Carolina, just west of Raleigh. It has a first-term Republican incumbent, Richard Hudson. He is running for re-election. In 2022 he won the general election in a two-person race with 56.5%.

External feed Read More at the Source: https://ballot-access.org/2024/04/07/north-carolina-independent-candidate-for-u-s-house-appears-to-qualify-no-independent-had-ever-before-appeared-on-a-government-printed-ballot/

 2024-04-07  No Responses »