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

Comments

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

Building a Platform Is a Balancing Act

https://matthewboston.com/blog/building-a-platform-is-a-balancing-act.html
1•bostonaholic•6m ago•0 comments

Rich Sutton's University of Alberta Convocation Address

http://www.incompleteideas.net/IncIdeas/ConvocationAddress.html
2•mercurybee•8m ago•0 comments

Show HN: Group Relative Policy Optimization, visualized step by step

https://adamsohn.com/grpo/
1•dataviz1000•10m ago•0 comments

OpenAI Under Criminal Probe in Florida over Mass Shooter's ChatGPT Use

https://www.wsj.com/us-news/law/openai-under-criminal-probe-in-florida-over-mass-shooters-chatgpt...
1•reed1234•17m ago•1 comments

New Drugs for Pancreatic Cancer Show Remarkable Promise for Deadly Disease

https://www.wsj.com/health/healthcare/new-drugs-for-pancreatic-cancer-show-remarkable-promise-for...
1•megacorp•18m ago•0 comments

We translated the Palantir manifesto for actual human beings

https://www.theverge.com/policy/915237/palantir-manifesto
2•tastyface•19m ago•1 comments

Voxyflow – An AI companion that plans, codes, and ships with you

https://github.com/jcviau81/voxyflow
1•jcviau•20m ago•0 comments

A true story about interviewing at Google in 2006

https://www.threads.com/@peternbiddle/post/DXaCcKuEvAA
3•Anechoic•20m ago•1 comments

Anthropic tests how devs react to yanking Claude Code from Pro plan

https://www.theregister.com/2026/04/22/anthropic_removes_claude_code_pro/
1•angrydev•21m ago•1 comments

Revisit Your Old Ideas

https://www.robot-future.com/preview/69e8117520bc1661002087bc
1•robot-future•23m ago•0 comments

Weaponized Deepfakes

https://www.technologyreview.com/2026/04/21/1135652/weaponized-deepfakes-ai-artificial-intelligence/
1•gnabgib•23m ago•0 comments

Anthropic's Mythos model accessed by unauthorized users

https://www.reuters.com/technology/anthropics-mythos-model-accessed-by-unauthorized-users-bloombe...
2•c420•26m ago•2 comments

AI Server Demand to Drive Memory Contract Price Increases in 2Q26

https://www.trendforce.com/presscenter/news/20260331-12995.html
2•Sibexico•29m ago•0 comments

MCP Scope Creep Is a Runtime Problem, Not a Prompt Problem

https://sunglasses.dev/blog/mcp-scope-creep-runtime-problem
1•azrollin•30m ago•1 comments

Gbench Intelligence Benchmark

https://gertlabs.com/
4•gertlabs•31m ago•1 comments

ENIAC's Architects Wove Stories Through Computing

https://spectrum.ieee.org/eniac-80th-anniversary-weaving
1•sohkamyung•32m ago•0 comments

Maze of Doom (self-changing) simulation [video]

https://www.youtube.com/watch?v=-1ryPxPVsf8
1•graphai•33m ago•1 comments

TPM software for Intel Macs / Windows systems

https://flextpm.com/
1•thewhitekanye•37m ago•1 comments

Ravix – An AI agent that runs on your Claude Code subscription (alpha)

2•raunaksingwi•41m ago•0 comments

A text adventure game, all in Markdown

https://vas-blog.pages.dev/markdown-adventure
1•s314•43m ago•0 comments

Misconceptions About Majority Rule

https://groupincome.org/2016/09/misconceptions-about-majority-rule/#user-content-fnref-5
1•gslepak•46m ago•0 comments

Webby Person of the Year: Claude

https://winners.webbyawards.com/2026/specialachievement/476/claude
1•watusername•47m ago•0 comments

Unauthorized group has gained access to Anthropic's exclusive cyber tool Mythos

https://techcrunch.com/2026/04/21/unauthorized-group-has-gained-access-to-anthropics-exclusive-cy...
2•jnord•50m ago•1 comments

Submit your startup profile with Claude or ChatGPT. 60 seconds or less

https://www.startuphub.ai/agents/submit
1•compulsivebuild•52m ago•0 comments

Higher education's frozen yogurt moment

https://www.washingtonpost.com/opinions/2026/04/19/yale-report-shows-colleges-universities-face-r...
1•paulpauper•52m ago•0 comments

AI was ruining my college philosophy classes. So I assigned a new kind of essay

https://globeopinion.substack.com/p/ai-was-ruining-my-college-philosophy
1•paulpauper•53m ago•0 comments

A forty-year-old problem, briefly available

https://www.parahealth.ai/company/dispatch/thesis
1•dylburns•56m ago•0 comments

Ray-Ban Meta and Oakley Meta AI Glasses Officially Available in Singapore

https://cnalifestyle.channelnewsasia.com/style-beauty/ray-ban-meta-and-oakley-meta-ai-glasses-sin...
1•kelt•56m ago•0 comments

Learning Material for Idiomatic Rust

https://corrode.dev/blog/idiomatic-rust-resources/
1•lwhsiao•57m ago•0 comments

Show HN: gcx – The Official Grafana Cloud CLI

https://github.com/grafana/gcx
1•annanay•57m ago•0 comments