Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by penneallagricia on Monday November 06, 2023 @04:07AM
(#38160282)
How is it different from setInterval in JS?
[ Parent
| on HN ]
Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by vanderZwan on Monday November 06, 2023 @04:12AM
(#38160326)
Technically speaking? Go has parallelism by default, I suppose. But if your functions take negligible time to execute and the interval is sufficiently large enough then nothing from a user perspective.
Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by eddtries on Monday November 06, 2023 @11:56AM
(#38165115)
Yeah I was designing an internal lambda server so mostly parallelism, all I had to do was have a dynamic match and everything else was out the box for the load I needed
Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by vanderZwan on Monday November 06, 2023 @01:35PM
(#38166720)
Yeah, I'm sure a well-written parallel Rust or C++ program (using just the CPU cores) can do better, but Go really hits a Pareto sweet spot in terms of "effort vs speedup" return on investment.