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

Comments

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

What Does a Hologram Trademark Signify When the Hologram Isn't There?

https://blog.ericgoldman.org/archives/2026/03/what-does-a-hologram-trademark-signify-when-the-hol...
1•hn_acker•2m ago•1 comments

Microsoft's "Fix" for Windows 11: Flowers After the Beating

https://www.sambent.com/microsofts-plan-to-fix-windows-11-is-gaslighting/
1•speckx•3m ago•0 comments

Migrating Snapchat's AB Pipelines to GPU-Accelerated Spark

https://eng.snap.com/snap-nvidia-gcp
1•Kaedon•3m ago•0 comments

We Built an AI Memory System That Learns

https://getcoherence.io/blog/how-we-built-an-ai-memory-system-that-actually-learns-55bcdf82
1•keithfawcett•3m ago•0 comments

Gen 13: how we built our most powerful server yet

https://blog.cloudflare.com/gen13-config/
1•NicoJuicy•4m ago•0 comments

ChatGPT and the Meaning of Life: Guest Post by Harvey Lederman

https://scottaaronson.blog/?p=9030
1•gwintrob•7m ago•0 comments

Free Multilingual Dictionaries

https://yap.town/d/
1•ChadNauseam•7m ago•1 comments

Ancient machine gun was used by Romans to attack Pompeii

https://www.telegraph.co.uk/world-news/2026/03/22/ancient-machine-gun-was-used-by-romans-to-attac...
1•Stratoscope•8m ago•0 comments

A Ramsey-Style Problem on Hypergraphs

https://epoch.ai/frontiermath/open-problems/ramsey-hypergraphs
1•yusufozkan•8m ago•0 comments

Canvas Unrolls AI Teaching Agent

https://www.insidehighered.com/news/tech-innovation/artificial-intelligence/2026/03/23/canvas-unr...
1•speckx•9m ago•0 comments

The Magnet Suspension Skateboard

https://www.youtube.com/watch?v=yzXZ7cZXifo
1•mhb•9m ago•0 comments

macOS app to copy LaTeX renders/text/QR codes from screenshot automatically

https://github.com/Blobosle/screen-copy/
1•blobosle•11m ago•0 comments

Show HN: Zoom Auto-Joiner

https://github.com/PiotrMackowski/auto-joiner
1•ptrmc•13m ago•1 comments

Neo Store: The modern and feature-rich F-Droid client for everyone

https://github.com/NeoApplications/Neo-Store
1•pretext•15m ago•0 comments

Simply looking up inspires scientific exploration

https://bigthink.com/starts-with-a-bang/why-we-look-up/
1•Brajeshwar•17m ago•0 comments

XMind MCP Server – Incremental mind map editing for LLMs

https://github.com/sc0tfree/xmind-mcp
1•sc0tfree•19m ago•1 comments

Intel Core Ultra 200S Plus Content Creation Review

https://www.pugetsystems.com/labs/articles/intel-core-ultra-200s-plus-content-creation-review/
1•zdw•19m ago•0 comments

Philips to drop Google TV for European-based Titan OS

https://9to5google.com/2026/03/23/google-tv-just-lost-a-big-tv-brand-to-web-app-based-titan-os/
4•pentagrama•19m ago•3 comments

Unix philosophy is dead Long live something else?

https://sdomi.pl/weblog/27-manifesto-of-a-burnt-out-hacker/
1•caminanteblanco•20m ago•0 comments

A single Keycloak commit broke our p99 latency

https://old.reddit.com/r/KeyCloak/comments/1rto63s/how_a_single_keycloak_commit_broke_our_p99/
1•mooreds•23m ago•0 comments

10MB Go Alternative to OpenClaw (Full Clawhub Skills)

https://github.com/General-Specialist/capabot
2•gen_specialist•24m ago•1 comments

Ten Months with Copilot Coding Agent in Dotnet/Runtime

https://devblogs.microsoft.com/dotnet/ten-months-with-cca-in-dotnet-runtime/
2•pestkranker•24m ago•0 comments

Startup left production AWS keys public for 5 months; their VDP was silent

https://benzimmermann.dev/blog/pump-vdp-silence
2•Terretta•25m ago•2 comments

The Picture They Paint of You – AI SREs

https://ferd.ca/the-picture-they-paint-of-you.html
1•sylvainkalache•25m ago•0 comments

"Will AI force code to evolve or make it extinct?"

https://thenewstack.io/ai-programming-languages-future/
1•MilnerRoute•26m ago•1 comments

Value creation in the metaverse (2022) [pdf]

https://www.mckinsey.com/~/media/mckinsey/business%20functions/marketing%20and%20sales/our%20insi...
1•toomuchtodo•27m ago•1 comments

Pancakes, Hot Takes, and Social Media's Flatness

https://tedium.co/2026/03/23/social-media-flat-discussion/
2•freediver•27m ago•0 comments

The OpenBSD init system and boot process

https://overeducated-redneck.net/blurgh/openbsd-init-system.html#content
1•speckx•28m ago•0 comments

Fastest general-purpose sorting library for JavaScript – 95.2% win rate vs. NPM

https://github.com/AyoobAI/ayoob-sort
1•Husain-Ayoob-I•29m ago•4 comments

Biosynthesis of Cinchona Alkaloids

https://www.nature.com/articles/s41586-026-10227-x
1•bookofjoe•30m ago•0 comments