frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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/

My minimal, memory-safe Go rsync steers clear of vulnerabilities

https://michael.stapelberg.ch/posts/2026-05-24-minimal-memory-safe-go-rsync-vulns/
1•secure•1m ago•0 comments

How to Tame AI's Voracious Appetite for Energy

https://nautil.us/how-to-tame-ais-voracious-appetite-for-energy-1281212
1•Brajeshwar•1m ago•0 comments

Your Dotfiles Are Not a Distro

https://abyss.fish/your_dotfiles_are_not_a_distro
1•j3s•2m ago•0 comments

Sparrow

https://sparrowhub.io/
1•tosh•9m ago•0 comments

Miranda's Rescue was paid to save dogs, but is accused of killing them instead

https://kymkemp.com/2026/05/22/paid-to-save-them-accused-of-killing-them-the-investigation-of-mir...
1•ilamont•12m ago•0 comments

The seed oil panic is hurting my cardiac patients

https://www.statnews.com/2026/05/22/seed-oils-healthy-fats-tallow-fact-check-cardiac-health/
5•randycupertino•12m ago•0 comments

AI and the Rise of Just-in-Time Knowledge Work

https://operatingnotes.bearblog.dev/ai-and-the-rise-of-just-in-time-knowledge-work/
1•ninja-z•12m ago•0 comments

Salesforce Touts AI Promise over Reality in SaaSpocalypse Fight

https://www.bloomberg.com/news/articles/2026-05-22/salesforce-touts-ai-promise-over-reality-in-sa...
1•kjhughes•13m ago•0 comments

Rust is a great fit for the agentic era

https://kerkour.com/rust-agentic-coding
1•randomint64•14m ago•1 comments

Running Large-Scale GPU Workloads on Kubernetes with Slurm

https://developer.nvidia.com/blog/running-large-scale-gpu-workloads-on-kubernetes-with-slurm/
1•fprog•14m ago•0 comments

Complexity, Problem Solving, and Sustainable Societies, Joseph A. Tainter (1996)

http://www.harbornet.com/folks/theedrich/hive/Tainter/SocietalCollapse.htm
1•walterbell•14m ago•0 comments

Careers After AI

https://careersafter.ai/
1•oinoom•15m ago•0 comments

Blue Origin completes investigation into New Glenn launch failure

https://spacenews.com/blue-origin-completes-investigation-into-new-glenn-launch-failure/
2•bookmtn•19m ago•0 comments

The HTML-in-Canvas API origin trial

https://developer.chrome.com/blog/html-in-canvas-origin-trial
1•mariuz•19m ago•0 comments

Notes for May 17-24

https://taoofmac.com/space/notes/2026/05/24/1445
1•rcarmo•21m ago•0 comments

From Open Source Software to Open Source Strategy

https://p3institute.substack.com/p/from-open-source-software-to-open
2•mooreds•22m ago•0 comments

Cybersecurity Fundamentals for Water and Wastewater Utilities [pdf]

https://www.waterisac.org/wp-content/uploads/2024/12/WaterISAC_12-Fundamentals_FULL-12-High-Res.pdf
1•mooreds•22m ago•0 comments

The pronoun problem in agent identity

https://souveraineai.com/docs/papers/pronoun-problem/
1•Fimeg•23m ago•0 comments

Craig Newmark on Institutional Maintenance, Giving Away Control and the Internet

https://conversationswithtyler.com/episodes/craig-newmark/
2•mooreds•23m ago•0 comments

There Is No AI (It's Just People), with Jaron Lanier [video]

https://www.youtube.com/watch?v=TTppvBU2rU4
2•andrekandre•24m ago•0 comments

Logitech Combo Touch: Four Years Later

https://taoofmac.com/space/reviews/2026/05/23/2130
1•rcarmo•25m ago•0 comments

Show HN: HtmlUnit 5.0.0 Is Available

https://htmlunit.org/
1•rbri•27m ago•0 comments

I Left the U.S. for Shenzhen, China — Here's How Much It Costs

https://www.youtube.com/watch?v=IuVr8hqWG0o
1•bookofjoe•28m ago•0 comments

Reinforcement Learning, in Pictures and Videos

https://suriya.cc/tech/ML/rl_in_pictures/
1•suriya-ganesh•28m ago•0 comments

DeepSeek to Make Permanent 75% Discount on Flagship AI Model

https://www.bloomberg.com/news/articles/2026-05-23/deepseek-to-make-permanent-75-discount-on-flag...
4•moh_maya•30m ago•0 comments

Russians Are in Despair over Truck-Busting 'Martian' Drones

https://www.forbes.com/sites/davidhambling/2026/05/22/why-russians-are-in-despair-over-truck-bust...
2•u1hcw9nx•31m ago•1 comments

Notetux++ – v1.0.2

https://github.com/notetux-plus-plus/notetux-plus-plus
1•andreacoi•36m ago•0 comments

What's Easy Now? What's Hard Now?

https://brooker.co.za/blog/2026/05/18/whats-easy-whats-hard.html
1•vinhnx•37m ago•0 comments

Laravel Lang packages hijacked to deploy credential-stealing malware

https://www.bleepingcomputer.com/news/security/laravel-lang-packages-hijacked-to-deploy-credentia...
2•Brajeshwar•38m ago•0 comments

Show HN: CPU-only fast OCR for screenshots, images, PDFs, webpages

https://github.com/kouhxp/textsnap
1•mrkn1•40m ago•0 comments