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•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/

The CEO Agenda 2025

https://www.oliverwymanforum.com/ceo-agenda/how-ceos-navigate-geopolitics-trade-technology-people...
1•1vuio0pswjnm7•1m ago•0 comments

Ex-Google CEO Eric Schmidt Fails to Read Room on AI, Gets Booed into Oblivion

https://gizmodo.com/ex-google-ceo-eric-schmidt-fails-to-read-room-on-ai-gets-booed-to-oblivion-20...
1•imichael•1m ago•0 comments

Usual implementation of attention transformers (SDPA) is kind of bad, actually

https://gist.github.com/celoyd/6bf10122c3f5f7e64b0c684704e4ffb2
1•teleforce•3m ago•0 comments

Apple Is Making Hit Products and High Profits from Imperfect Chips

https://www.wsj.com/tech/apple-is-making-hit-products-and-high-profits-from-imperfect-chips-d32c21d8
1•ryan_j_naughton•4m ago•0 comments

Meta Defeated as EU Backs Publishers in Content Pay Dispute

https://www.law.com/international-edition/2026/05/17/meta-defeated-as-eu-backs-publishers-in-cont...
1•1vuio0pswjnm7•4m ago•0 comments

Neovim sweetspot between trad coding and AI coding

https://github.com/cachebag/jumpy
1•cachebag•11m ago•0 comments

Saturn V Haynes Manual

https://www.amazon.com/Saturn-1967-1973-Apollo-Skylab-Workshop/dp/0857338285
2•bilegeek•12m ago•0 comments

AI May, Paradoxically, Increase Demand for Higher Ed

https://jimmyalfonsolicon.substack.com/p/ai-may-paradoxically-increase-demand
1•NomNew•14m ago•0 comments

How to Work and Compound with AI

https://eugeneyan.com/writing/working-with-ai/
1•eigenBasis•20m ago•0 comments

Show HN: Pdf2md – 10MB Rust PDF-to-Markdown Tool with a Free API

https://pdf2md.deepdiy.net/
1•johnson_nie•21m ago•0 comments

Emergence of Wasp Dope in Rural Appalachian Kentucky

https://pmc.ncbi.nlm.nih.gov/articles/PMC8046840/
1•Eisenstein•22m ago•0 comments

Show HN: NextEra discussing $66B deal for Dominion Energy

https://nypost.com/2026/05/17/business/nextera-discussing-66b-deal-for-dominion-energy-report/
1•wasimsk•23m ago•0 comments

AnyFrame – Sandboxes for Your AI Agents

https://github.com/tinyhq/anyframe-python
1•inishchith•23m ago•2 comments

How to Write to SSDs

https://arxiv.org/abs/2603.09927
1•eigenBasis•27m ago•0 comments

Show HN: Map of 90 companies in the co-packaged optics supply chain

https://leoinai.substack.com/p/supply-chain-photonics-and-co-packaged
1•lboquillon•38m ago•0 comments

America's Most-Spoken Languages After English and Spanish

https://www.visualcapitalist.com/mapped-americas-most-spoken-languages-after-english-and-spanish/
2•RyeCombinator•45m ago•0 comments

Which country voted the best at Eurovision?

https://lalitm.com/post/which-country-voted-best-at-eurovision/
2•shintoist•47m ago•0 comments

A Year Late, Claude Beats Pokémon

https://www.lesswrong.com/posts/sehJYg5Yny9fvpbpt/a-year-late-claude-finally-beats-pokemon
2•sambellll•56m ago•0 comments

Show HN: AnyFrame – Sandboxes for AI Agents

https://anyfrm.com
2•inishchith•56m ago•0 comments

Build a Searchable Catalog with Filters, Facets, and Semantic Search

https://manticoresearch.com/blog/manticore-php-demo/
1•snikolaev•56m ago•0 comments

Carbonara Before the Rules [video]

https://www.youtube.com/watch?v=jrz0KhclCWM
1•gadtfly•1h ago•0 comments

Best Proxy for Twitter 2026

https://momoproxy.com/blog/best-proxy-for-twitter-2026
1•xbjamilnz•1h ago•0 comments

Battery-Free 'MicroSparc' That Allegedly Draws Power from the Quantum Vacuum

https://thedebrief.org/free-energy-from-the-vacuum-warp-drive-pioneer-unveils-battery-free-micros...
3•rramadass•1h ago•1 comments

There Is No 'Hard Problem of Consciousness'

https://www.noemamag.com/there-is-no-hard-problem-of-consciousness/
26•ahalbert4•1h ago•62 comments

Building a multi-agent system from scratch: 50 lines of bash and Git

https://en.andros.dev/blog/ed26ea98/building-a-multi-agent-system-from-scratch-50-lines-of-bash-git/
2•thunderbong•1h ago•1 comments

Multiple commencement speakers booed for AI comments during graduation speeches [video]

https://www.youtube.com/watch?v=xwWaoyIy5e8
1•mgh2•1h ago•0 comments

Turn inbound call recordings into structured JSON

https://www.gensail.com/call-data-extraction
1•vartana•1h ago•0 comments

What A.I. Did to My College Class

https://www.nytimes.com/2026/05/17/opinion/chatgpt-ai-college-school-graduation.html
7•mmooss•1h ago•1 comments

Ben Affleck Banned from Hard Rock Casino When Caught Counting Cards (2014)

https://www.yahoo.com/entertainment/ben-affleck-banned-hard-rock-casino-counting-cards-223154372....
1•thunderbong•1h ago•0 comments

LLM Performance by Programming Language

https://gertlabs.com/blog/llm-performance-by-language
4•gertlabs•1h ago•1 comments