Why is node.js so much faster?
My answer to Why is node.js so much faster? on Quora
There are two main reasons.
Secondly, Node emphasises callback-based asynchronous IO and makes it very hard to make blocking calls. For web apps that spend most of their time waiting on network or database connections this can be a lot more efficient: http://code.danyork.com/2011/01/...
Ruby can do asynchronous IO using EventMachine or similar but you have to specifically work for it—with Node you get that behaviour by default.
More recent articles
- Lawyer cites fake cases invented by ChatGPT, judge is not amused - 27th May 2023
- llm, ttok and strip-tags - CLI tools for working with ChatGPT and other LLMs - 18th May 2023
- Delimiters won't save you from prompt injection - 11th May 2023
- Weeknotes: sqlite-utils 3.31, download-esm, Python in a sandbox - 10th May 2023
- Leaked Google document: "We Have No Moat, And Neither Does OpenAI" - 4th May 2023
- Midjourney 5.1 - 4th May 2023
- Prompt injection explained, with video, slides, and a transcript - 2nd May 2023
- download-esm: a tool for downloading ECMAScript modules - 2nd May 2023
- Let's be bear or bunny - 1st May 2023
- Weeknotes: Miscellaneous research into Rye, ChatGPT Code Interpreter and openai-to-sqlite - 1st May 2023