D
D
Dmitry Parzhitsky2015-07-01 19:11:25
JavaScript
Dmitry Parzhitsky, 2015-07-01 19:11:25

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/falsefor(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

4 answer(s)
A
Alexander Taratin, 2015-07-01
@Taraflex

Rewrite under nodejs
And run the program in several instances.
I somehow cut off the upper part of a metal barrel with an ax ...

I
Ilya Shatokhin, 2015-07-01
@iShatokhin

For such purposes, there is a convenient library parallel.js , which uses Web Workers for calculations in separate threads.

A
Adamos, 2015-07-01
@Adamos

If Java is familiar, then what is the question at all? Some kind of web visualization? Foreign libraries on js?

_
_ _, 2015-07-01
@AMar4enko

Can you run it in a separate browser?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question