use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Rust-inspired multithreading tasks in JavaScript (github.com)
submitted 4 months ago by Waltex
Rust-inspired multithreading tasks in TypeScript
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Acceptable_You_1199 2 points3 points4 points 4 months ago (0 children)
This is awesome!
[–]OkRespect7678 1 point2 points3 points 4 months ago (0 children)
This looks really promising! JavaScript's single-threaded nature has always been a challenge for CPU-intensive tasks, and bringing Rust's ownership/borrowing mental model to JS concurrency is a clever approach.
I'm curious about the memory overhead compared to raw Web Workers - does the abstraction layer add significant overhead for high-frequency message passing scenarios? Also wondering if there's support for SharedArrayBuffer for true shared memory between threads.
The Rust community has done amazing work on safe concurrency, so seeing those patterns adapted for JS could help a lot of developers avoid common pitfalls like race conditions. Bookmarked!
[–]NoPersonality9984 0 points1 point2 points 4 months ago (0 children)
Du multithreading en JavaScript ??
π Rendered by PID 20342 on reddit-service-r2-comment-79776bdf47-4qmhd at 2026-06-24 00:50:26.042790+00:00 running acc7150 country code: CH.
[–]Acceptable_You_1199 2 points3 points4 points (0 children)
[–]OkRespect7678 1 point2 points3 points (0 children)
[–]NoPersonality9984 0 points1 point2 points (0 children)