Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

How to make JavaScript use 100% of the user's CPU

Name: Anonymous 2018-09-05 3:05

Any ideas for something simple that will slow down the user's CPU? It doesn't have to be useful, it can be some random function. Anything CPU-intensive.

Name: Anonymous 2018-09-05 3:44

Mining Monero

Name: Anonymous 2018-09-05 3:58

>>2
how about a non-botnet solution?

Name: Anonymous 2018-09-05 6:01

while (true) {}

Name: Anonymous 2018-09-05 6:06

>>4
this would just freeze up one thread. you need to make a bunch of WebWorkers all doing that at the same time.

Name: Anonymous 2018-09-05 6:07

>>5
Good luck with that then.

Name: Anonymous 2018-09-05 6:08

Try a recursive iframe, it used to crash firefox a few years back.

Name: Anonymous 2018-09-05 7:14

use webworkers. also, why not make money with it? make those webworkers mine cryptocurrencies

Name: Anonymous 2018-09-05 7:16

>>1
Start using latest javascript frameworks, dynamically loaded modules and micro-services, with a scalable responsive(i.e. each Action = One+ Ajax calls) Architecture that solves all business and customer needs, accelerating synergy between legacy programs and web 3.0 edge products.

Name: Anonymous 2018-09-05 11:49

Joke's on you: modern browsers have infinite loop detectors and will just stop your script.

Name: Anonymous 2018-09-05 11:54

>>10
nice try: You're just saying that so people would crash their browsers testing this.

Name: JavaScript Mind 2018-09-07 4:01

Name: Anonymous 2018-09-07 6:36

>>10
halting problem solved!

Name: Anonymous 2018-09-07 7:26

>>13
For the restricted subset of resource-intensive scripts. Not in general abstract sense.

Name: Anonymous 2018-09-07 10:13

>>13
You can solve the halting problem with a hierarchy of oracles, this is a well known concept.

Name: Anonymous 2018-09-07 10:21

>>15
didn't know that modern browsers include a hyperturing machine

Name: Anonymous 2018-09-07 10:26

>>16
They could actually easily do what I am suggesting if they tried to learn a little bit of CS theory instead of circlejerking about web 3.0 nodejs enterprise user-restraining webextensions.

Name: Anonymous 2018-09-07 11:37

>>17
yeah, I took CS101 and built a hyperturing machine over a weekend. fucking js ignorants wouldn't be able to do that even if I put zenomachine.js on npm

Name: Anonymous 2018-09-07 12:22

The idea that "JS script execution limit" is analogous to "halting problem" isn't correct. Its more about a linear quota to perform computation, not detecting it in advance.

Name: Anonymous 2018-09-07 12:38

>>19
YHBT

Name: Anonymous 2018-09-07 12:44

>>20
YMCA

Name: Anonymous 2018-09-07 12:52

>>22
CMD

Name: Anonymous 2018-09-07 13:39

>>24
JP2GMD

Name: Anonymous 2018-09-07 13:48

>>23
Go back to Russia, Poland boi.

Name: Anonymous 2018-09-08 0:15

>>13
>>16

The "stuck script" feature in present day browsers isn't Touring anything. It's retarded. Basically if a web page's JavaScript engine runs for longer than n milliseconds without polling from the event queue, they offer to kill it.

Name: Anonymous 2018-09-08 7:35

>>23
interesting, I thought I was the only Polish /prague/rider

Name: Anonymous 2018-09-08 8:38

>>26
So there are at least three of us.

Name: Anonymous 2018-09-08 14:22

zetrzyj mój odbyt

Name: Anonymous 2018-09-08 14:55

>>26,27
Poland is very white and Christian. Stay that way. You don't want to become like America. Do not vote for politicians who want more immigrants or liberalism. It will only destroy your country like it's done to mine.

Name: Anonymous 2018-09-08 17:37

>>29
Funnily enough there are a shit-ton of Polish rapefugees everywhere in Europe and the Americas. There are about 60 million Poles totally and only 38 million live in Poland. It would be hypocritical as fuck to do what you say.

Name: Anonymous 2018-09-08 18:33

>>24,26-30
Get out of my thread

Name: Anonymous 2018-09-08 18:59

>>31
I'm the OP, ya dingus

Name: Anonymous 2018-09-08 20:01

for(let i = 0; i < navigator.hardwareConcurrency; i++) new Worker("data:,for(;;);")
it works: https://jsbin.com/zudajidiri

Name: Anonymous 2018-09-08 20:32

>>33
the JS equivalent to a forkbomb?

Name: Anonymous 2018-09-08 20:36

also jsbin is like pastebin but it runs javascript so don't click the link unless you wanna run the forkbomb

Name: Anonymous 2018-09-09 5:32

>>34
no, it's only checking how many threads the CPU can run and creating that many workers to just run an infinite loop.

>>35
the link no longer automatically runs the script because I created it anonymously, apparently jsbin only runs scripts automatically for 90 minutes then defaults to the editor view unless it was created with a registered account

Name: Anonymous 2018-09-09 5:57

Name: Anonymous 2018-09-09 12:39

>>37
You my friend are either old and wise or just plane smart.

Name: Anonymous 2018-09-09 16:08

>>37
virus, don't click

Name: Anonymous 2018-09-09 20:27

>>23,26-27
KURWA MAC O JA PIERDOLE

Name: Anonymous 2018-09-09 20:57

>>40
cyka blyat vittu saatana perkele

Don't change these.
Name: Email:
Entire Thread Thread List