Answer the question
In order to leave comments, you need to log in
How to output JavaScript calculations from the browser to a standalone Windows application?
Wrote one simple algorithm in JavaScript; in short: checking numbers in a given range for passing a condition.
More details: the upper limit of the range of numbers is set (lower = 1); each number is checked; the result ( ) for each number is written to the console. (A loop is used .)
And everything works :) Everything is wonderfully displayed, iterated, consolidated, and so on.
The problem, in fact, is this: you need to check about a billion numbers. The browser is loaded to the fullest, and sit in VKontakte until "it counts" does not work.
Tell me, how can I bring these calculations from the browser to a separate application? I just want to be able to use the computer during such long calculations (promises to count several days).true/false
for(x; x > 0; x--) {}
PS: If anything, my knowledge of Java is enough to rewrite the script for it.
PPS: You can speed up the algorithm, but it will be much faster. Just take my word for it.
Answer the question
In order to leave comments, you need to log in
Rewrite under nodejs
And run the program in several instances.
I somehow cut off the upper part of a metal barrel with an ax ...
For such purposes, there is a convenient library parallel.js , which uses Web Workers for calculations in separate threads.
If Java is familiar, then what is the question at all? Some kind of web visualization? Foreign libraries on js?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question