Cheng Lou's Handwired compiles JavaScript into an exact neural net
Cheng Lou published Handwired, a toy that turns ordinary JavaScript into an exact neural net with no training. The repository is MIT.
Topic · 33 stories · page 2 of 2
33 stories tagged javascript on AI Tamer, newest first.
Cheng Lou published Handwired, a toy that turns ordinary JavaScript into an exact neural net with no training. The repository is MIT.
A valid JSON integer may lose precision when parsed as a JavaScript Number. Decimal strings keep opaque IDs stable across runtimes.
AbortSignal.reason and throwIfAborted help distinguish cancellation from ordinary failure; combine caller cancellation with a timeout for bounded AI requests.
Two tabs can start the same sync at once. Web Locks lets them coordinate the work within one browser, with clear limits for retries and work beyond that browser.
When generated chunks arrive faster than downstream code can process them, queues grow. Backpressure gives the producer a signal to slow down, if that signal can reach it.
An older tab can leave an IndexedDB schema upgrade waiting. Here is how versionchange and blocked coordinate the handoff, and how to give users a clear way forward.
Trusted Types and Content Security Policy can make the browser require a reviewed policy before dynamic HTML reaches an injection sink. Here is how to introduce that boundary.
Use BroadcastChannel to update open tabs after logout. Keep session invalidation on the server and account for storage partitions and missed messages.
Space-based splitting can put transcript highlights around the wrong text. Intl.Segmenter offers locale-sensitive word boundaries and text offsets.