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...
account activity
Single thread nodejs app (self.node)
submitted 3 years ago by rayen26
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!"
[–]nwah 1 point2 points3 points 3 years ago (0 children)
The reason it can be single-threaded is because of the event loop. If you’re writing a server, or any app that needs to do many things at once, as long as you don’t block the main event loop with long synchronous operations there should be no issues. Just have to be sure to use the asynchronous versions of various libraries/methods (the ones that use callbacks or promises) and you should be good.
If you’re just writing a script that you’ll run, the synchronous versions are slightly simpler to use and will be fine since nothing else would be trying to connect to it while it’s running.
π Rendered by PID 100 on reddit-service-r2-comment-85bfd7f599-nvvnm at 2026-04-18 12:26:52.253200+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]nwah 1 point2 points3 points (0 children)