Message from JavaScript discussions

October 2018

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

Message permanent page

— 

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

— 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

— 😏

— Yes, it is a dataflow architecture, the overhead generated by dispatching the instruction tokens and data tokens, may very well exceed the computational overhead needed to even complete the users calculations

Message permanent page