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

Comments

bastawhiz•12mo ago
Is this a problem that people actually have?
xeromal•12mo ago
Fun side project man!
primitivesuave•12mo 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•12mo 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•12mo 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/

Vibe Coding Is Becoming an Osint Risk

https://www.dutchosintguy.com/post/vibe-coding-is-becoming-an-osint-risk
2•speckx•3m ago•0 comments

Fun with polynomials and linear algebra; or, slight abstract nonsense

https://guille.site/posts/abstract-nonsense/
1•LolWolf•3m ago•0 comments

Google founder Sergey Brin confronted Gavin Newsom then launched a political war

https://www.latimes.com/business/story/2026-04-27/google-co-founder-sergey-brin-confronted-gavin-...
1•1vuio0pswjnm7•4m ago•0 comments

Show HN: Raft to allow a group of AI agents to reach consensus

https://github.com/dhiaayachi/gravity-ai
1•neo2006•5m ago•1 comments

Claude Security Explained: Mythos, Glasswing, and What Opus 4.7 Changed

https://alirezarezvani.medium.com/claude-security-explained-mythos-glasswing-and-what-opus-4-7-ch...
1•jungard•6m ago•0 comments

Performance of a large language model on the reasoning tasks of a physician

https://www.science.org/doi/10.1126/science.adz4433
2•geox•7m ago•0 comments

Designers are having fun, again

https://metedata.substack.com/p/010-designers-are-having-fun-again
1•young_mete•7m ago•0 comments

What SaaSpocalypse? Atlassian, Twilio, and Five9 Stocks Soar

https://www.businessinsider.com/software-stocks-soar-atlassian-twilio-five9-saaspocalypse-ai-earn...
1•therobots927•9m ago•0 comments

iOS 18.7.3-18.7.6 were withheld from most devices; iOS 18.7.7 is enabled for all

https://support.apple.com/en-us/100100
1•seam_carver•9m ago•1 comments

Higher-order effects of LLM slop

https://www.natemeyvis.com/higher-order-effects-of-llm-slop/
1•Brajeshwar•9m ago•0 comments

Georgia's battleground races give a first look at a brewing political storm

https://www.politico.com/news/2026/04/26/ai-data-centers-georgia-midterms-00888668
2•1vuio0pswjnm7•9m ago•0 comments

What computer should you buy to run AI models locally?

https://fedecarg.substack.com/p/what-computer-should-you-buy-to-run
1•nanopi•10m ago•0 comments

Groth16, Intuitively

https://blog.zksecurity.xyz/posts/groth16/
1•baby•11m ago•0 comments

A 200-Person Chinese Team Just Embarrassed Every $500B AI Lab on Earth

https://curiousmodels.substack.com/p/deepseek-v4
1•yogthos•11m ago•0 comments

This Summer, the American Water Crisis Becomes Real

https://www.wired.com/story/the-summer-the-american-water-crisis-turned-real/
2•smurda•11m ago•0 comments

K3sup – bootstrap K3s over SSH in < 60s

https://github.com/alexellis/k3sup
1•rickcarlino•11m ago•0 comments

Full-Stack Gleam Guide

https://lukwol.github.io/gleam-guide/
1•TheWiggles•14m ago•0 comments

'The cost of compute is far beyond the costs of the employees' – Nvidia

https://finance.yahoo.com/sectors/technology/articles/cost-compute-far-beyond-costs-071100797.html
1•Vasniktel•16m ago•0 comments

Snap Is Down

https://status.snapcraft.io/
1•mmwelt•16m ago•0 comments

ValyrianEngine – High-performance 2D game engine in C++17

https://github.com/kostakis/Valyrian2DGameEngine
1•kostakisgr•17m ago•1 comments

WTC Simulation 2025, Part 1 ( South Tower)

https://www.youtube.com/watch?v=WpHXj62Ylw0
1•nsoonhui•19m ago•0 comments

Iris the AI Messenger

https://www.iris-ai.dev
1•jclvsh•23m ago•0 comments

Yehudi Lights [Active Camouflage]

https://en.wikipedia.org/wiki/Yehudi_lights
1•burnt-resistor•23m ago•0 comments

Musk in court: "standard practice in the field"

https://haebom.dev/?tl=en
1•haebom•25m ago•0 comments

AI Aftermath Scenarios

https://futureoflife.org/ai/ai-aftermath-scenarios/
1•andsoitis•26m ago•0 comments

I Saw the Earth Breathe

https://www.montananaturalist.org/blog-post/i-saw-the-earth-breathe/
2•jebarker•26m ago•0 comments

Pair-programming is a cheat code

https://www.germanvelasco.com/blog/pair-programming-is-a-cheat-code
1•germsvel•28m ago•0 comments

Year of the Linux Laptop: Omarchy on XPS

https://www.dell.com/en-us/blog/year-of-the-linux-laptop-omarchy-on-xps/
3•software_writer•28m ago•2 comments

Colorado lost more public lands jobs than any other state in 2025

https://coloradosun.com/2026/05/01/colorado-lost-public-lands-jobs/
1•mooreds•28m ago•0 comments

An example website that implements email address and password authentication

https://github.com/pilcrowonpaper/basic-example.auth.pilcrowonpaper.com
1•mooreds•28m ago•0 comments