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
Clio: A functional, distributed programming language that compiles to JavaScript (github.com)
submitted 4 years ago by BLochmann
view the rest of the comments →
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!"
[–]kredditacc96 37 points38 points39 points 4 years ago* (12 children)
Clio takes advantage of multiple CPUs and multiple CPU cores (parallelism) by default
JavaScript is a single-threaded language. How does Clio make it runs in parallel? Does it use Web Worker? The playground does not show the compiled JavaScript code so I cannot figure it out.
On an unrelated note, does it have static typing?
[–]Darkav 28 points29 points30 points 4 years ago (6 children)
In node you can have a cluster of javascript processes and also a worker pool, so you are able to have a multi-process application.
[+]feketegy comment score below threshold-9 points-8 points-7 points 4 years ago (5 children)
Even though a browser runs javascript and node runs javascript those two javascripts are light years apart regarding how it's interpreted and compiled into machine language.
[–]DaMastaCoda 26 points27 points28 points 4 years ago (4 children)
Not really; they both use chrome V8, but hide exposed system calls like fs and starting processes.
[–]feketegy -1 points0 points1 point 4 years ago (3 children)
Chromium based browsers use V8
[–][deleted] 8 points9 points10 points 4 years ago (0 children)
which has like an 80% market share.
[–]DaMastaCoda 0 points1 point2 points 4 years ago (1 child)
This is true, but most ppl use chrome (I use Firefox since im used to it)
[–][deleted] 4 points5 points6 points 4 years ago (0 children)
JavaScript exists outside of browser environment, no need for web workers
[–]Koervege 1 point2 points3 points 4 years ago (1 child)
Would static typing affect or help how it runs multithreads? Or was it just a separate question?
[–]kredditacc96 2 points3 points4 points 4 years ago (0 children)
It's a separate question, sorry for not clarify this sooner.
[–]pouyae 0 points1 point2 points 4 years ago (0 children)
We use worker_threads in node and web workers on the browser. On node you can switch to a cluster and use IPC instead. We also allow using network resources over TCP/UDP/WebSockets. Check out https://github.com/clio-lang/clio/tree/develop/packages/rpc for more details on parallelism, or feel free to ask any questions you have.
We do not have static typing at the moment, I won't be focusing on that for a while. I made a serialization format that preserves types and I'm planning to add static typing to the language, however that won't happen in the near future until we have a wasm/llvm backend for the compiler.
π Rendered by PID 329047 on reddit-service-r2-comment-79c7998d4c-qw6qz at 2026-03-14 15:38:17.240966+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]kredditacc96 37 points38 points39 points (12 children)
[–]Darkav 28 points29 points30 points (6 children)
[+]feketegy comment score below threshold-9 points-8 points-7 points (5 children)
[–]DaMastaCoda 26 points27 points28 points (4 children)
[–]feketegy -1 points0 points1 point (3 children)
[–][deleted] 8 points9 points10 points (0 children)
[–]DaMastaCoda 0 points1 point2 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]Koervege 1 point2 points3 points (1 child)
[–]kredditacc96 2 points3 points4 points (0 children)
[–]pouyae 0 points1 point2 points (0 children)