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/

Localmaxxing – Local LLM Inference Benchmarks

https://www.localmaxxing.com/en
1•ilreb•6m ago•0 comments

Upper stage impacting the moon on 2026 August 5

https://www.projectpluto.com/25010d.htm
1•MaysonL•9m ago•0 comments

Benchmarks Are Dead (For Us)

https://poetiq.ai/posts/benchmarks_are_dead/
1•felixbraun•13m ago•0 comments

There is no steady state

https://www.benlandautaylor.com/p/there-is-no-steady-state
1•vinyl7•15m ago•0 comments

Show HN: A local, extensible session viewer for Pi and Codex

https://github.com/skorotkiewicz/sessions-viewer
1•modinfo•18m ago•0 comments

Ask HN: What websites do you visit every day?

2•b8•18m ago•4 comments

4th Circuit: Border Agents Can Search Your Phone by Hand, No Suspicion Required

https://www.eff.org/deeplinks/2026/07/fourth-circuit-says-border-agents-can-search-your-phone-han...
3•hn_acker•19m ago•1 comments

Tell HN: Old Reddit now requires an account

https://old.reddit.com/r/pics
3•bgc•19m ago•1 comments

Scrum Poker estimation no signup – free – gamification

https://jonathanlink.ch/poker
1•jlink•23m ago•1 comments

German Peasants' War

https://en.wikipedia.org/wiki/German_Peasants%27_War
1•constantius•27m ago•1 comments

The State of WebMCP in July 2026

https://www.spronta.com/blog/state-of-webmcp-july-2026/
2•seandotexe•27m ago•0 comments

What the New 100x Agentic Engineer Looks Like in the Era of Fable and GPT 5.6

https://twitter.com/systematicls/status/2074142558595207435
3•gmays•29m ago•1 comments

Creating your own RISC-V processor, SoC and board with Claude

https://cimons.com/article/developing-a-risc-v-processor-soc-and-board-with-claude
3•etcimon•30m ago•1 comments

Milky Way planetary system leaves scientists puzzled

https://www.reuters.com/science/strange-milky-way-planetary-system-leaves-scientists-puzzled-2026...
2•chrisaycock•31m ago•0 comments

MLPs Are Hebbian Memories: A Simple Recipe for Fact-Storing Transformers

https://hazyresearch.stanford.edu/blog/2026-07-22-mlps-are-hebbians
2•ayushpai•32m ago•0 comments

PenguinHarness, Open, Efficient, Self-Improving Harness

https://github.com/Prism-Shadow/penguin-harness
2•mountainview•33m ago•0 comments

Thoughts on the "Netflix Analogy"

https://www.science.org/content/blog-post/thoughts-netflix-analogy
2•maxall4•36m ago•0 comments

Microsoft Developer Changelog – Unified Changelog Azure, GitHub & MS Dev Updates

https://developer.microsoft.com/en-us/changelog
2•richardboegli•39m ago•0 comments

Substack's new tool tells you who's been writing their newsletters with AI

https://techcrunch.com/2026/07/22/substacks-new-tool-tells-you-whos-been-writing-their-newsletter...
5•justswim•40m ago•2 comments

Open Fan Engine to Be Tested on A380

https://www.cfmaeroengines.com/press-articles/photo-release----airbus-and-cfm-international-unvei...
2•r2sk5t•42m ago•4 comments

Requesting for a Review and Feedback

https://www.thebuildnation.com/login?next=%2Fhttp%3A%2Flocalhost%3A3000
2•Guru_Raj•42m ago•0 comments

Show HN: KageOps – An open-source, local-first alternative to Devin

https://github.com/hmanoor/kageops-core
2•hmanoor•43m ago•0 comments

A Top Mathematician's 9 Lessons for Anyone Who Feels Behind, by Ken Ono [video]

https://www.youtube.com/watch?v=MG0CPqjjOvk
3•binyu•43m ago•0 comments

You've Been Pressing That Button Your Whole Life

https://arram.substack.com/p/youve-been-pressing-that-button-your
2•paulpauper•44m ago•0 comments

What Happened When Flock Came to My Town

https://www.404media.co/what-happened-when-flock-came-to-my-town/
8•HotGarbage•45m ago•1 comments

Want to Bet on My Wedding?

https://www.nytimes.com/2026/07/19/style/want-to-bet-on-my-wedding.html
2•paulpauper•48m ago•0 comments

The Capture of a Country

https://dvorak.substack.com/p/the-capture-of-an-entire-country
5•paulpauper•48m ago•0 comments

The Acknowledgment Gap – How Event-Driven Systems Lose Messages Without Errors

https://sahansera.dev/the-acknowledgment-gap/
2•sahan•50m ago•0 comments

US Department of Energy: AI funding opportunities for small businesses

https://www.energy.gov/technologycommercialization/articles/doe-announces-10m-sbirsttr-funding-op...
2•glokta•54m ago•1 comments

GM Is Quietly Becoming a Subscriptions Company

https://www.businessinsider.com/general-motors-gm-earnings-subscriptions-revenue-business-2026-1
3•jnord•1h ago•2 comments