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/

Microsoft event debuts new AI-friendly hardware and Windows changes

https://arstechnica.com/gadgets/2026/10/microsoft-event-debuts-new-ai-friendly-hardware-and-windo...
1•rlv-dan•9m ago•0 comments

Mathematics Is Not Real

2•RAWGOD•13m ago•0 comments

Studying metagaming latents in language models

https://alignment.openai.com/metagaming-latents/
1•Klaster_1•15m ago•0 comments

Hawaiian Harmony Reviews and Complaints 2026 ( Read Before Buying)

https://script.google.com/macros/s/AKfycbwa0L-VYEKBZYw-ZwhH_9RStnRil53WbgddYtT5ySEQ6xLMnVSa_WBcue...
1•tasyhauq•21m ago•0 comments

The state of the tech industry in 2026

https://newsletter.pragmaticengineer.com/p/the-state-of-the-tech-industry-in
3•qikouki•23m ago•2 comments

Steve Krouse's Readme

https://stevekrouse.com/readme
2•Curiositry•23m ago•1 comments

The nuclear clock has begun ticking

https://www.eurekalert.org/news-releases/1146229
2•geox•24m ago•0 comments

Xeal to Launch Edge Inference Compute Using Idle EV Charging Capacity

https://www.businesswire.com/news/home/20260918640145/en/Xeal-to-Launch-Laitent-Worlds-First-Edge...
1•JumpCrisscross•26m ago•0 comments

The Hagedorn Temperature (2003)

https://cerncourier.com/a/the-tale-of-the-hagedorn-temperature/
3•EA-3167•33m ago•0 comments

Tools Ecosystem

https://100r.ca/site/tools_ecosystem.html
2•andsoitis•35m ago•0 comments

Rabbit Waves

https://rabbitwaves.ca/
2•andsoitis•36m ago•0 comments

Death Grips – The Story You Never Knew

https://www.youtube.com/watch?v=Wv0lDc5XpH0
2•rasengan0•46m ago•0 comments

Show HN: Pacer – will your AI coding subscription last until the reset?

https://github.com/dkremsa/claude-pacer
2•dkremsa•47m ago•0 comments

AI Changed the Team, Not the Process

https://www.compile.la/ai-changed-the-team-not-the-process/
1•dalfonso•47m ago•0 comments

Language-model ratings of depression reflect the rater more than the patient

https://arxiv.org/abs/2610.08501
1•sbulaev•51m ago•0 comments

An Upper Bound of 9/4 for the Matrix Multiplication Exponent [pdf]

https://github.com/openai/math/blob/main/preprints/Matrix-Multiplication-Nine-Fourths-October-2-2...
1•theanonymousone•51m ago•0 comments

In Defense of White Chocolate

https://www.gourmetboutique.net/blogs/tasting-room/17250051-in-defense-of-white-chocolate
1•JumpCrisscross•53m ago•0 comments

I Will Wait

https://throwawaythoughts.blog/
1•campbellman•1h ago•0 comments

Alang Ship Breaking Yard

https://en.wikipedia.org/wiki/Alang_Ship_Breaking_Yard
1•vismit2000•1h ago•0 comments

Self-Modeling Interventions Modulate Emergent Misalignment

https://www.lesswrong.com/posts/7wrzfaiCq3u8xkY5G/self-modeling-interventions-modulate-emergent-m...
2•gmays•1h ago•0 comments

Towards Efficient HPC Systems for Agents: Challenges and Opportunities

https://arxiv.org/abs/2609.38723
1•matt_d•1h ago•0 comments

The Science That Has Oil Companies Running Scared

https://www.nytimes.com/2026/10/06/opinion/oil-companies-supreme-court.html
4•thelastgallon•1h ago•1 comments

Show HN: A utility microservice for human trust

https://futex.rodmena.co.uk/
1•rodmena•1h ago•0 comments

The 3dfx Voodoo Turns 30 – interview with cofounder Ross Smith

https://www.club386.com/3dfx-voodoo-history-ross-smith-interview/
4•nickt•1h ago•0 comments

Mozilla met with Microsoft to discuss their harmful design practices

https://www.reddit.com/r/firefox/comments/1wzzk6l/mozilla_met_with_microsoft_to_discuss_their/
13•botanical•1h ago•1 comments

A 100x faster* alternative to homebrew

https://github.com/zerobrewhq/zerobrew
2•cachebag•1h ago•1 comments

Was the Human Gut Healthier in Ancient Times?

https://www.nytimes.com/2026/10/07/science/microbiome-evolution-hadza-tsimane.html
1•gumby•1h ago•1 comments

Paper Mono Typeface

https://paper.design/mono
3•miguel-muniz•1h ago•4 comments

Application compatibility layers are there for the customer (2010)

https://devblogs.microsoft.com/oldnewthing/20100311-00/?p=14643/
1•crispinh•1h ago•0 comments

A Categorical Analysis of LLMs and the Symbol Grounding Problem (2025)

https://arxiv.org/abs/2512.09117
2•rockwindmemento•1h ago•0 comments