Message from JavaScript discussions

October 2018

— I have had to learn advanced theoretical computer science in order to know how to do this stuff, however the hardest part of this whole thing has always been how to adapt it to JavaScript

Message permanent page

— 

All that said... we can do some crazy shit.... https://en.wikipedia.org/wiki/Concurrent_constraint_logic_programming

— With usage of multiple real CPU cores... this is extremely powerful.. the above concept can allow us to run certain steps of the same function at the exact same time, out-of-order, and recombine the results as they would appear in programmed order

Message permanent page

— More than concurrency... running some or all the steps of a function in their own CPU core

— 

function mathFunc() {
var num1 = 2 + 2; // in core 0
var num2 = 3 + 3; // in core 1
var num3 = 4 + 4; // in core 2
var num4 = num1 + num2 + num3; // waits...
return num4;
}

Message permanent page

— Dont get mad. simplify

— That code will be slow as it will cost processor time to start cores/threads..

— The api should take array or maybe two dimensional array of heavy functions

— It's a multiqueue model

— Yeah go practical pragmatic

— You can implement a queue with an array

— 😏