ScratchData LogoScratchData
Back to nembence's profile

Cross Project Communication - Unicode Receiver

NEnembence•Created June 12, 2024
Cross Project Communication - Unicode Receiver
5
4
38 views
View on Scratch

Instructions

Start this project, wait for it to measure the internet speed, then go to https://scratch.mit.edu/projects/1036168131/ in a new tab (new window is better) and type something. Go back to the receiver just before the sending finishes. After 5-10 seconds, this project will detect when the other project finished sending a message to it, and it will take roughly 2 seconds on average for each character to be read by this project (emojis first appear as '�' before they load entirely). Note that this could be inaccurate. How does this work? The translate blocks caches requests. => the time it takes to translate depends on whether the same string has been already translated or not. I break the string into UTF-16 code units and encode them in such a way that most of the time the receiver measures a cached translate, because that is faster.

Project Details

Project ID1036167655
CreatedJune 12, 2024
Last ModifiedJuly 13, 2024
SharedJune 12, 2024
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root