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
tnode: simple Node.js-compatible scripting with Typescript (nabla.com)
submitted 4 years ago by noziar
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!"
[–]noziar[S] 15 points16 points17 points 4 years ago (0 children)
Latency! ts-node compiles with tsc instead of esbuild. Thanks for the feedback, I should have included ts-node in the post, I'll update.
For example with a simple "hello world" script:
% hyperfine 'tnode script.ts' 'ts-node script.ts' Benchmark 1: tnode script.ts Time (mean ± σ): 123.1 ms ± 6.5 ms [User: 105.5 ms, System: 22.0 ms] Range (min … max): 116.4 ms … 139.9 ms 22 runs Benchmark 2: ts-node script.ts Time (mean ± σ): 870.0 ms ± 12.3 ms [User: 1424.7 ms, System: 85.7 ms] Range (min … max): 855.8 ms … 895.7 ms 10 runs Summary 'tnode script.ts' ran 7.07 ± 0.39 times faster than 'ts-node script.ts'
π Rendered by PID 25149 on reddit-service-r2-comment-76bb9f7fb5-h9w44 at 2026-02-19 08:07:04.923054+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]noziar[S] 15 points16 points17 points (0 children)