frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•1y ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

A thesis isn't enough for a PhD

https://lemire.me/blog/2026/09/26/a-thesis-isnt-enough-for-a-phd/
1•ibobev•2m ago•0 comments

How fast can you fix a UTF-16 string in C#?

https://lemire.me/blog/2026/09/26/how-fast-can-you-fix-a-utf-16-string-in-c/
1•ibobev•2m ago•0 comments

NAND-16: a computer built from 277,248 NAND gates

https://somethingbig.ai/computer
1•rossant•2m ago•0 comments

T3rnel Browser – DevTools you can talk to, and a browser your AI can drive

https://t3ratech.github.io/t3rnel-browser-plugin/
1•tkaviya•4m ago•0 comments

Neo – Hugh Howey

https://hughhowey.com/neo-fiction-without-friction/
2•seesthruya•6m ago•1 comments

Show HN: Jev-Like Model Learns to Cook

https://rlafuente.com/posts/2026-9-26-training-a-small-decision-model-to-cook#
1•andes314•7m ago•0 comments

A Programmable Programming Language (2018)

https://cacm.acm.org/research/a-programmable-programming-language/
2•so-cal-schemer•12m ago•1 comments

EV Sales Are Booming in Europe with Gasoline at $10 a Gallon

https://www.bloomberg.com/news/articles/2026-09-24/electric-car-sales-soar-52-in-europe-with-fuel...
3•blondie9x•13m ago•0 comments

Did Anthropic's A.I. Really Make a Scientific Discovery on Its Own?

https://www.nytimes.com/2026/09/27/science/anthropic-biology-enzyme-mestre.html
2•jbegley•15m ago•0 comments

Show HN: Minecraft PvP against DiffusionGemma-as-Jev, 24 ms per decision

https://mc.alexzms.com
1•alexzms•15m ago•0 comments

UFO-core multiplayer agentic environs

https://github.com/ufo-ai/ufo-core
1•handfuloflight•15m ago•0 comments

Cognitive Sanctuaries Or: Manifesto of the Department Chair

https://terrytao.wordpress.com/2026/09/27/cognitive-sanctuaries-or-manifesto-of-the-department-ch...
1•smilelamp•15m ago•0 comments

Cloudflare fixes Containers cross-tenant flaw exposing customer data

https://www.bleepingcomputer.com/news/security/cloudflare-fixes-containers-cross-tenant-flaw-expo...
1•sbulaev•21m ago•0 comments

Lunar Terminator Paradox

https://notes.secretsauce.net/notes/2026/09/27_lunar-terminator-paradox.html
8•dima55•22m ago•0 comments

Session Revocations at Scale

https://www.canva.dev/blog/engineering/session-revocations-at-scale/
1•bucket2015•22m ago•0 comments

Banned from Reddit for my plugin that evades tracking and monetization

5•kookabburrabarr•29m ago•2 comments

Solving a corn puzzle with CP-SAT

https://thill.me/2026/07/16/corn-puzzle-sat-solver.html
2•luu•29m ago•0 comments

Anthropic is a supply chain risk for all of us

https://building138.com/anthropic-is-a-supply-chain-risk-for-all-of-us
1•usernamed7•37m ago•1 comments

App Store review allowed a Meta Muse copycat

https://lapcatsoftware.com/articles/2026/9/8.html
3•krackers•39m ago•1 comments

Show HN: Jevdit – a social network moderated by Jev

https://jevdit.com
3•TN1ck•42m ago•0 comments

Haven: One Privacy App. Zero Compromise

https://havenmessenger.com/
1•cristoperb•43m ago•1 comments

Citrix NetScaler Remote Code Execution

https://support.citrix.com/external/article/CTX697096/citrix-netscaler-adc-and-citrix-netscale.html
2•wylie39•44m ago•0 comments

Cold War

https://en.wikipedia.org/wiki/Cold_War
1•chistev•44m ago•0 comments

Uber CEO says you should answer emails over the weekend

https://fortune.com/article/uber-ceo-dara-khosrowshahi-really-demanding-work-culture-includes-exp...
2•xlayn•46m ago•2 comments

Two Companies Built a $71B Drug Class

https://research.socialcapital.com/p/glp1
1•brandonb•46m ago•0 comments

Raspberry Pi prevents the device from booting if unofficial RAM chip is detected

https://hackaday.com/2026/09/26/the-least-annoying-of-all-evils/
3•Muhammad523•47m ago•0 comments

Procedurally animated koi pond that runs in the browser

https://koi.m4yank.com/
2•kewonit•47m ago•1 comments

Show HN: [Curbwise] Explore crash data and redesign dangerous streets

https://curbwise.org
1•kcirtapfrmspc•53m ago•0 comments

My Recent Woodworking Projects

https://notoriousbfg.com/recent-woodworking-projects/
2•trwhite•54m ago•0 comments

My slides are a TUI app now

https://blog.klobuc.ar/posts/tui-slides/
2•meltmymind•55m ago•1 comments