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

Comments

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

No one on Hacker News can answer this question

1•mholubowski•1m ago•0 comments

Concerns about low-quality PRs beeing merged into main

https://discourse.llvm.org/t/concerns-about-low-quality-prs-beeing-merged-into-main/89748
1•todsacerdoti•3m ago•0 comments

Show HN: Turn text prompts into playable battle pets with stats and skills

https://www.webattle.ai
1•wdkwdkwdk•4m ago•1 comments

A Metal-Detection Objection at the Reception

https://aribrin.substack.com/p/metal-detection-objection-at-the
1•ctoth•4m ago•0 comments

A History of a Novel Idea

https://digitalcommons.cwu.edu/cgi/viewcontent.cgi?article=1006&context=hmvla_jampa
1•andsoitis•7m ago•0 comments

Undifferentiated Phenomenological Continuum

https://alexbierach.com/undifferentiated-phenomenological-continuum/
1•andsoitis•10m ago•0 comments

Decagonal and Quasi-Crystalline Tilings in Medieval Islamic Architecture [pdf]

https://www.physics.rutgers.edu/~pchandra/physics601/Lu_Steinhardt.pdf
1•andsoitis•16m ago•0 comments

A New AI Math Startup Just Cracked 4 Previously Unsolved Problems

https://www.wired.com/story/a-new-ai-math-ai-startup-just-cracked-4-previously-unsolved-problems/
1•battle-racket•18m ago•0 comments

Quitting

https://thepointmag.com/examined-life/quitting/
1•NaOH•19m ago•0 comments

Why is price comparison still so bad in 2026?

1•YourPriceHub•19m ago•0 comments

Trapping Electrons (or: how data is stored)

https://www.makingsoftware.com/chapters/how-is-data-stored
1•MatthewBF•20m ago•0 comments

Causal World Modeling for Robot Control

https://arxiv.org/abs/2601.21998
1•mountainview•21m ago•0 comments

Arthur Brooks: Can We All Relax About Bad Bunny's Spanish Halftime Show?

https://www.thefp.com/p/arthur-brooks-can-we-all-relax-about-bad-bunnys-spanish-halftime-show
4•donsupreme•27m ago•2 comments

Major political upheaval in Japan? Sanae Takaichi may dissolve the Diet

1•jocelyner•28m ago•1 comments

The Logic of State Surveillance

https://www.nber.org/papers/w34492
2•bediger4000•30m ago•0 comments

Moltbook was peak AI theater

https://www.technologyreview.com/2026/02/06/1132448/moltbook-was-peak-ai-theater/
3•spenvo•33m ago•0 comments

Show HN: Claude Code style personal website

https://www.ajwaxman.com/terminal
1•awaxman11•33m ago•0 comments

MRFF says US Military members were 'pressured' by commanders to see 'Melania'

https://www.businessinsider.com/us-military-members-pressured-to-see-melania-documentary-mrff-2026-2
16•hn_acker•33m ago•1 comments

The Original Power Rangers Is Officially Dead After 51 Years

https://screenrant.com/super-sentai-franchise-original-power-rangers-ending-gozyuger/
3•thunderbong•36m ago•0 comments

Sensing methane emissions from African livestock by drone, tower, and satellite

https://bg.copernicus.org/articles/22/4163/2025/
2•PaulHoule•54m ago•0 comments

Are LLMs Becoming Components Rather Than Systems?

https://www.corvic.ai/blog/part-1-of-3-indicting-the-villain-how-the-pipeline-tyranny-created-you...
1•GurbinderGill•55m ago•1 comments

From Interfaces to Intelligence: Where Agentic AI Shines

https://dvitsios.org/2026/02/07/from-interfaces-to-intelligence-where-agentic-ai-really-shines/
1•djif•55m ago•1 comments

An attempt at a First-Proof AI challenge

https://abhvio.us/posts/pony/
1•abhv•55m ago•1 comments

Seedance 2.0 preview: The best video model of 2026, outperforming Sora 2

1•Alisaqqt•57m ago•0 comments

Show HN: We built a tool to track the millions of dollars I ignore during ads

https://twitter.com/k0ba_eth/status/2020650212906418532
1•k0ba•59m ago•0 comments

A Remarkable Achievement (Old Fashioned Software)

https://mcauldronism.substack.com/p/a-remarkable-achievement-old-fashioned
2•nottheg•1h ago•0 comments

Show HN: Faaadmv – check and renew CA DMV registration

https://github.com/AshKash/faaadmv
1•innagadadavida•1h ago•0 comments

IA dans le service client: les 20 cas d'usage à prioriser en 2026

https://nadiaaccompagne.substack.com/p/ia-dans-le-service-client-les-20
1•NadiaAccompagne•1h ago•0 comments

Bounded Rationality

https://en.wikipedia.org/wiki/Bounded_rationality
2•toomuchtodo•1h ago•0 comments

More intelligent agents behave less coherently (2023)

https://sohl-dickstein.github.io/2023/03/09/coherence.html
1•627467•1h ago•0 comments