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

Comments

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

Meta Superintelligence Labs: Scaling Agent Learning via Experience Synthesis

https://arxiv.org/abs/2511.03773
1•babelfish•3m ago•0 comments

The Silent (R)evolution of SAT

https://cacm.acm.org/research/the-silent-revolution-of-sat/
1•RebelPotato•4m ago•0 comments

The Complexity of Simplicity [video]

https://www.youtube.com/watch?v=Cum5uN2634o
1•bestinterest•18m ago•0 comments

Abstraction, but for Robots

https://stackoverflow.blog/2025/12/02/abstraction-but-for-robots/
1•quapster•18m ago•0 comments

Why Replicate is joining Cloudflare

https://blog.cloudflare.com/why-replicate-joining-cloudflare/
2•chmaynard•20m ago•0 comments

New FDA-approved glasses can slow nearsightedness in kids

https://abcnews.go.com/US/wireStory/new-fda-approved-glasses-slow-nearsightedness-kids-127991874
2•plun9•20m ago•0 comments

Show HN: Eatelligence – Scan pantry items, get AI recipe suggestions

https://apps.apple.com/us/app/eatelligence/id6755645485
1•xsonerx•22m ago•0 comments

Ask HN: Did I do a 5 year BS to become an algo whore?

1•leetcodewhore•23m ago•0 comments

Imposter Game Oneline

https://impostergame.win/
1•tomstig•23m ago•1 comments

Show HN: Webclone.js – A simple tool to clone websites

https://github.com/jademsee/webclone
1•jadesee•28m ago•0 comments

AlphaFold is five years old – these charts show how it revolutionized science

https://www.nature.com/articles/d41586-025-03886-9
2•digital55•31m ago•0 comments

High School Dropout to OpenAI Researcher [video]

https://www.youtube.com/watch?v=vq5WhoPCWQ8
1•gmays•33m ago•0 comments

Frequently Asked Unicycling Questions

https://vale.rocks/posts/unicycle-faq
2•edent•33m ago•0 comments

OWASP LLM Top 10 2026: Predicted New Threats

https://scanmyllm.com/owasp-llm-top-10-2026
1•adam_ftt•37m ago•1 comments

Byte-Level Tokenizers Unavoidably Enable LLMs to Generate Ill-Formed UTF-8

https://arxiv.org/abs/2511.05578
1•PaulHoule•40m ago•0 comments

Draft: Challenge for Persistent DNS TXT Record Validation

https://datatracker.ietf.org/doc/html/draft-sheurich-acme-dns-persist-01
1•wrayjustin•41m ago•0 comments

Show HN: Personal AI Assistant

https://chat.gmujtaba.com/
1•sumo86•41m ago•0 comments

Energy Department Renames NREL 'National Lab of the Rockies'

https://www.nrel.gov/news/detail/press/2025/news-release-energy-department-renames-nrel-%27nation...
3•zekrioca•42m ago•2 comments

Responsible Bot Operation

https://cryptography.dog/blog/responsible-bot-operation/
1•jllyhill•43m ago•0 comments

Apple Releases Open Weights Video Model

https://starflow-v.github.io
2•vessenes•51m ago•0 comments

It's No Dodo, but This Newly Discovered Bird Could Share the Same Fate

https://www.nytimes.com/2025/12/02/science/birds-dodo-slaty-masked-tinamou.html
1•fleahunter•54m ago•0 comments

Pushlog.ai – Summaries of GitHub push notifications

https://pushlog.ai/
1•CarterDixon•56m ago•1 comments

Ask HN: I have a job offer in Google MTV from Bangalore. Should I take it?

1•titirx•57m ago•3 comments

A Camera System Now Feeds Information to Police on Drivers Across the US

https://truthout.org/articles/a-vast-camera-system-now-feeds-information-to-police-on-drivers-acr...
2•measurablefunc•58m ago•0 comments

Decreasing Certificate Lifetimes to 45 Days

https://letsencrypt.org/2025/12/02/from-90-to-45
3•Sami_Lehtinen•1h ago•0 comments

Show HN: PKC Mark – open-source local benchmark for LLMs and Diffusers

https://github.com/PKC0412/pkc-mark-benchmark
1•parkkichoel•1h ago•0 comments

Slack Engineering – Advancing Our Chef Infrastructure

https://slack.engineering/advancing-our-chef-infrastructure-safety-without-disruption/
1•zdkaster•1h ago•1 comments

Show HN: Multi-Repo Tool

https://github.com/njoshi22/repoflow
1•anduril22•1h ago•0 comments

United States vs. Paramount Pictures, Inc

https://en.wikipedia.org/wiki/United_States_v._Paramount_Pictures,_Inc.
1•handfuloflight•1h ago•0 comments

Why Most Business Coverage Misses the Actual Drivers of Outcomes

https://capitalfolly.com/
1•d_e_solomon•1h ago•1 comments