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/

SSH tunneling [from mobile] has unrealized potential

https://probablymarcus.com/blocks/2026/11/20/ssh-tunneling-has-unrealized-potential.html
1•mrcslws•7s ago•0 comments

From Customer to Hostage

https://donmoynihan.substack.com/p/from-customer-to-hostage
1•hn_acker•1m ago•0 comments

On self-healing code and the obvious issue

https://gynvael.coldwind.pl/?id=766
1•zdw•1m ago•0 comments

Blockers and Grifters

https://donmoynihan.substack.com/p/blockers-and-grifters
1•hn_acker•1m ago•0 comments

Show HN: Interactive map of Mars with "Streets" view

https://anvaka.github.io/mars/
1•anvaka•1m ago•0 comments

LLM Programming and Theory Building

https://kevinlynagh.com/newsletter/2026_10_29_llm_programming_and_theory_building/
1•surprisetalk•3m ago•0 comments

China blocked our IPv4 address overnight

https://natbox.io/blog/china-blocked-our-ipv4
2•msarrph•4m ago•0 comments

A 26B AI Model Just Challenged Qwen 3.8 (Inkling 2 Mini) – [video-essay]

https://www.youtube.com/watch?v=TcrPYFdvR7c
1•lroe•4m ago•0 comments

Show HN: Long Season, a pitch by pitch baseball simulator in the browser

https://longseason.ecbtx.com/
1•willwalterburns•5m ago•0 comments

GrapheneOS: We made a proof of concept RCS messaging app

https://grapheneos.social/@GrapheneOS/117655062915356333
1•thunderbong•5m ago•1 comments

Desire Paths and Software

https://www.abahgat.com/blog/on-desire-paths-and-software/
3•ankitg12•6m ago•0 comments

Show HN: Sticks & Stones – 4,600yrs of historical conflict on an interactive map

https://sticksandstones.fyi/
1•Nathanadian•9m ago•0 comments

US Oil Refining's Stellar Run Is Starting to Slow

https://www.bloomberg.com/news/newsletters/2026-11-23/us-oil-refining-s-stellar-run-is-starting-t...
1•toomuchtodo•9m ago•0 comments

Vibe Coding a Rocket

https://starbench.substack.com/p/vibe-coding-a-rocket
1•kmcannon•11m ago•0 comments

I built a fast natural-language notepad-calculator for Mac OS (and Web)

https://calculingo.app/
1•heyholuhluhlay•11m ago•1 comments

Show HN: NukeTorch – Run Qwen3.6 35B at 517 tok/s on a MacBook Pro

https://github.com/NukeTorch/Qwen3.6-35B
1•klay_moon•13m ago•0 comments

Sneakernet: A slow, decentralized messaging network

https://drewdevault.com/blog/Introducing-sneakernet/
1•hn_acker•14m ago•0 comments

The Model Now Runs the Orchestration

https://theagenticengineer.waltsoft.net/archive/the-model-now-runs-the-orchestration
1•awsnovabot•14m ago•0 comments

25 Learnings from 25 Years in Software

https://carlwiedemann.github.io/post/2026-11-22-learnings-from-years-in-software.html
1•carlwiedemann•14m ago•0 comments

The Uber Song: How quiet cars found their voices

https://learningfromloss.org/the-uber-song/
2•dbrans•15m ago•1 comments

One Man's Quest to End Daylight Savings

https://www.newyorker.com/magazine/2026/11/30/one-mans-quest-to-end-daylight-savings
3•Brajeshwar•15m ago•0 comments

Show HN: Mcpwatch – Lockfile and runtime guard for MCP tool descriptions

https://www.mcpwatch.io
1•amirtlv•15m ago•0 comments

TK Solver

https://en.wikipedia.org/wiki/TK_Solver
1•PaulHoule•16m ago•0 comments

Controlling a Synth using a Neural Network in Supercollider (2022) [video]

https://www.youtube.com/watch?v=mxmMBvi3Cb0
1•Eridanus2•18m ago•0 comments

Cognitive Radius

https://lemire.me/blog/2026/11/16/cognitive-radius/
2•ibobev•18m ago•0 comments

Bitbucket Is Down

https://bitbucket.status.atlassian.com/incidents/s1l5qlhvlplh
2•linsomniac•19m ago•0 comments

Decoding base64 email attachments: a speed ranking of programming languages

https://lemire.me/blog/2026/11/20/decoding-base64-email-attachments/
2•ibobev•19m ago•0 comments

Show HN: Terminal Tasks Open – What we built after auditing Terminal-Bench 4.1

https://vetto.ai/companies/terminal-tasks-v2/
1•dvaplima•21m ago•0 comments

Show HN: Built an ADHD Unblocker for Claude

https://ryanpark.ai/claude-skills
1•bigryanhacks•21m ago•0 comments

Sales to CS Handoff: Why Your Kickoffs Still Start in the CRM Notes

https://pronovahq.com/blog/sales-to-cs-handoff
1•tuiizzyy•22m ago•0 comments