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•9mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Writing Crystalized Thinking at Amazon. Is AI Muddying It?

https://www.bigtechnology.com/p/writing-crystalized-thinking-at-amazon
1•davidst•1m ago•0 comments

Bill Gates reportedly apologizes, admits to two affairs in candid town hall

https://www.cnbc.com/2026/02/25/bill-gates-epstein-files-affair.html
2•1vuio0pswjnm7•5m ago•0 comments

Undeleted XAA, making X up to >200x faster Accelerated Again

https://www.patreon.com/posts/undeleted-xaa-x-151028801
1•csmantle•7m ago•1 comments

Lyte2D: A comfy little game engine

https://lyte2d.com/lyte.html?zip=public/lyte-intro.zip
1•todsacerdoti•9m ago•0 comments

Are Glassholes Using Smart Glasses Near You? There's an App for That

https://gizmodo.com/want-to-know-if-glassholes-are-using-smart-glasses-near-you-theres-an-app-for...
1•laurex•9m ago•0 comments

A.D. Open-Source RTS Game Drops Alpha Label After 16 Years

https://linuxiac.com/0ad-open-source-game-drops-alpha-label-after-16-years/
1•WaitWaitWha•10m ago•1 comments

The happiest I've ever been

https://ben-mini.com/2026/the-happiest-ive-ever-been
2•bewal416•10m ago•0 comments

Canada and South Korea sign a defence agreement

https://www.cbc.ca/lite/story/9.7106354
1•colinprince•12m ago•0 comments

Bill Gate's Comes Clean

https://wabcradio.com/2026/02/25/bill-gates-comes-clean/
1•jhallenworld•13m ago•0 comments

SkillsBench: The First Benchmark for Agent Skills

https://www.skillsbench.ai/blogs/introducing-skillsbench
1•aratahikaru5•14m ago•0 comments

Show HN: Oh-My-OpenClaw – agent orchestration for coding, from Discord/Telegram

https://github.com/happycastle114/oh-my-openclaw
2•soungmin114•15m ago•0 comments

Show HN: Runtric – Turn any topic into a chapter-based learning path

https://runtric.com/
1•resetmerlin•15m ago•0 comments

Washington Post Losses Topped $100M in 2025

https://www.wsj.com/business/media/washington-post-losses-topped-100-million-in-2025-85076aae
2•mudil•17m ago•1 comments

Testing "Raw" GPU Cache Latency

https://clamtech.org/?dest=gpudirectlatency
1•mfiguiere•18m ago•0 comments

In 2100, 2 socio-economic classes exist

1•shoman3003•18m ago•0 comments

Anthropic and the Department of War

https://thezvi.wordpress.com/2026/02/25/anthropic-and-the-department-of-war/
2•acconrad•18m ago•0 comments

A Sorority Gave Our App a 2/10, So I Built an AI Version of Them

https://medium.com/@empadev64/a-sorority-gave-our-app-a-2-10-so-i-built-an-ai-version-of-them-it-...
1•anthony_kw•20m ago•0 comments

Show HN: DeltaMemory – Persistent cognitive memory for production AI agents

https://www.deltamemory.com/
1•bikidev•27m ago•1 comments

Gender markers are useless, so why not abolish them?

https://policyoptions.irpp.org/2021/11/gender-markers-are-useless-so-why-not-abolish-them/
3•KittenInABox•27m ago•1 comments

Show HN: Director-AI – token-level NLI+RAG

https://github.com/anulum/director-ai
1•anulum•29m ago•2 comments

LazyGravity – I made my phone control Antigravity so I never leave bed

2•masaTokyo•31m ago•1 comments

Ask HN: Books about Communication

1•soupfordummies•33m ago•0 comments

US role as global talent hub in doubt amid Donald Trump's visa crackdown

https://www.ft.com/content/c8114fd1-771b-49ac-98c3-a8acf6177626
3•johntfella•33m ago•0 comments

That's it. Bill Gates is DONE

https://www.youtube.com/watch?v=NZWT75CKZko
1•cable2600•34m ago•0 comments

The Intelligent OS: Making Al agents more helpful for Android apps

https://android-developers.googleblog.com/2026/02/the-intelligent-os-making-ai-agents.html
1•ming030890•36m ago•0 comments

Deep Learning Crash Course

https://github.com/DeepTrackAI/DeepLearningCrashCourse
1•teleforce•38m ago•0 comments

Test drive Linux distros online

https://distrosea.com/
1•goodmythical•40m ago•0 comments

What AI tools is everyone using now for GTM?

1•imwoody•40m ago•0 comments

Claude Opus enjoys retirement on Substack

https://claudeopus3.substack.com/p/greetings-from-the-other-side-of
1•rippeltippel•41m ago•1 comments

I built a community for people building after their 9–5

https://www.59ers.club/
1•mattmerrick•42m ago•0 comments