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/

Recursive Cognitive Optimization (RCO)

https://github.com/sealvlon/Recursive-Cognitive-Optimization-RCO-
1•sealvarezl•2m ago•0 comments

Trump says it's time to rebrand AI with a new name

https://techcrunch.com/2026/09/19/trump-suggests-rebranding-ai-with-a-new-name-says-hes-also-crea...
1•GymInMeCricket•3m ago•1 comments

Can You Beat Jev?

https://antics.gg/can-you-beat-jev
1•eric_khun•9m ago•1 comments

Sub-15ms, non-autoregressive, local drop-in alternative to TypeSafe Jev

https://github.com/wfzyx/von
1•0x1997•11m ago•0 comments

Models know when they're reward hacking – and we can catch them at scale

https://www.goodfire.com/research/reward-hacking-activation-monitors
1•gmays•12m ago•0 comments

Fundamental Theorem of Calculus [Slop]

https://www.proofatlas.ai/library-theorems/fundamental-theorem-calculus/
1•throwyonion•15m ago•0 comments

Show HN: Vsqrd – AWS for Biology Experiments

https://vsqrd.com/
1•misterchocolat•17m ago•0 comments

The First Ten Years

https://gregorygundersen.com/blog/2025/01/30/first-ten-years/
1•andsoitis•18m ago•0 comments

Succinct Sounds-Like Starting Vowels

https://wiredream.com/vowels/
1•dgacmu•19m ago•0 comments

Show HN: Lain, a structural code graph and agent coordinator for coding agents

https://github.com/spuentesp/lain
1•spuentesp•22m ago•1 comments

Two similar AI judges fail together 7.7x more often than independence predicts

https://github.com/LAWLESS1987/covenant
1•Lawless1987•26m ago•0 comments

A refined phylochronology of the second plague pandemic in Western Eurasia

https://www.pnas.org/doi/10.1073/pnas.2534899123
1•Thevet•32m ago•0 comments

How I view LLMs as Sept 2026

https://bhardwajrish.blogspot.com/2026/09/how-i-view-llms-as-sept-2026.html
1•crearo•34m ago•0 comments

ZCode: silently uploading your Git history to the cloud

https://news.routley.io/posts/inside-zcode-silently-uploading-your-git-history-to-the-cloud.html
3•fourfire•37m ago•0 comments

A CERN for AI-assisted science

https://terrytao.wordpress.com/2026/09/17/a-cern-for-ai-assisted-science/
1•andsoitis•38m ago•0 comments

Show HN: Converting AVS audio viz to WebAssembly using GPT 5.6

https://strlns.github.io/very-serious-vibecoding/AVS-Web-Native-Editor-Alpha/
1•moritzwarhier•39m ago•0 comments

Spending on data centers and hardware now exceeds housing investment

https://fortune.com/2026/09/20/us-economy-milestone-spending-data-centers-ai-boom-housing-residen...
4•rawgabbit•40m ago•1 comments

Amiga Unix, Again

https://amigaux.org/
8•doener•41m ago•3 comments

Building an NBA stats warehouse without writing any of the code

https://jeffknupp719305.substack.com/p/paul-reed-is-tenth
2•jknupp•44m ago•0 comments

Prototype of a Windows 11-inspired Web OS with autonomous IA agents

https://github.com/davidpoliquin30-design/Prototype-autonom-ia-OS
1•davidpoliquin•45m ago•0 comments

Tools to Prevent Dementia

https://www.scmp.com/lifestyle/health-wellness/article/3368006/why-dementia-preventable-and-new-t...
1•elo2000•55m ago•0 comments

New startup to test psychedelic-like drug against Parkinson's symptom

https://www.statnews.com/2026/09/17/biotech-news-ariadne-testing-psychedelic-like-drug-parkinsons...
2•elo2000•56m ago•0 comments

Chronic stress may trigger hidden inflammation that damages the heart

https://lms.mrc.ac.uk/chronic-stress-may-trigger-hidden-inflammation-that-damages-the-heart/
2•doener•58m ago•1 comments

Are we talking less? A Q&A with psychologist Matthias Mehl (March 2026)

https://news.arizona.edu/news/are-we-talking-less-qa-psychologist-matthias-mehl
1•BiraIgnacio•59m ago•0 comments

Does Jev Have Politics? (Yes)

https://idlerambling.substack.com/p/does-jev-have-politics-yes
1•Sketchy_•1h ago•0 comments

Turn curiosity into a map you can explore

https://www.echohive.ai/experiments/drift
1•echohive42•1h ago•0 comments

AI Netscape – 1997 Chrome, 2026 AI

https://ainetscape.com/
2•TStringham•1h ago•2 comments

The addiction of online sports gambling: "Like crack in the '80s"

https://www.cbsnews.com/news/sports-betting-apps-gambling/
4•dzonga•1h ago•2 comments

The Crown of Creation

https://mika.global/post/1789946288.html
1•mika314•1h ago•0 comments

KDE Goes to the Pyramids [video]

https://media.ccc.de/v/kde2026-58-kde_goes_to_the_pyramids
2•sho_hn•1h ago•0 comments