4 ms·
Wow, this is extremely cool! Only problem, the JS slows my Firefox almost to freezing, is it normal?
by lollobomb 2y ago
Wow, this is extremely cool! Only problem, the JS slows my Firefox almost to freezing, is it normal?
- hakmem 2y agoYes, this is normal. I am sorry, I am working on a more efficient implementation. The JavaScript of this page does a lot of number crunching. It is actually doing arithmetic on the Stern-Brocot tree. It is all written in ClojureScript and not really optimized yet. I mention in the paper that I do not even use TCO. Anyway, thank you - and all the people here - for the kind words! I am so happy that my article was so well received today.
- akomtu 2y agoA simple trick to solve nearly all freezing problems: move the computations to a background thread, aka Worker in JS terms.
- aabhay 2y agoAnother trick — use comlink (https://github.com/GoogleChromeLabs/comlink https://github.com/GoogleChromeLabs/comlink) to make the worker thread into essentially an async API of your local methods.
- deleted 2y ago[deleted]