SHENZHEN I/O

SHENZHEN I/O

Not enough ratings
UTF-8 Stream Validator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
9.404 KB
5 Apr, 2019 @ 11:04am
1 Change Note ( view )

Subscribe to download
UTF-8 Stream Validator

Description
*stream* is an XBus input emitting a stream of bytes (in decimal) from a toaster connected to the Internet.
*smash* is an XBus output connected to a hydraulic hammer above the toaster.
Read the byte stream and ensure it is perfect. Should an error occur, immediately send a 1 to the hammer.
This kind of reinforcement will teach the toaster that we will not tolerate mistakes.
See https://en.wikipedia.org/wiki/UTF-8 for a definition of the encoding.
4 Comments
pv2b 19 Apr, 2019 @ 12:02pm 
A state machine was my initial idea as well, but my implementation did not end up as a pure state machine. :)
Monkey Boson  [author] 15 Apr, 2019 @ 5:21pm 
Wow I'm so impressed somebody else did this. I thought for sure it would be a lonely deep dive into a vital but unappreciated bit of technology. Thanks @pv2b! I ended up writing a state machine, did you do the same?
pv2b 15 Apr, 2019 @ 3:54pm 
I can't tell whether solving this was fun or painful. Probably a bit of both. :) Managed in 25/1330/52.
Monkey Boson  [author] 5 Apr, 2019 @ 11:44am 
Author's solution: 30/2030/70