Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
akomtu
3 months ago
|
parent
|
context
|
favorite
| on:
A binary tree of all Pythagorean triples
A simple trick to solve nearly all freezing problems: move the computations to a background thread, aka Worker in JS terms.
aabhay
3 months ago
[–]
Another trick — use comlink (
https://github.com/GoogleChromeLabs/comlink
) to make the worker thread into essentially an async API of your local methods.
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: